View Single Post
  #3 (permalink)  
Old 06-01-09, 08:16 AM
vitron's Avatar
vitron vitron is offline
Newbie Coder
 
Join Date: Mar 2009
Location: Bradford
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
The reason my if statements all have '===' is because its the correct javascript syntax, but it really doesn't matter if you use '==' or '===', I use it because I want to make sure my code runs perfectly on as many javascript browsers as possible
and yes, '?' is always sent to 'ajaxURL' by 'url' in my scripts:-
Code:
var ajax = new runAjaxTask();
ajax.getContent('run.php?task=checkprofiles&action=run','statusBox');
also, I forgot to mention in the first post, but my code is 100% syntax correct, so there is no errors in the way my coed has been displayed
if you don't believe me, check out using this tool:- JavaScript Lint
if you run my code with '==' instead of '===' you get the error messag:
Quote:
lint warning: comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
Reply With Quote