|
No differences...Hmm..then I think the Perl code inventer has a better idea in the use of " " and ' '.
If Javascript inventers will do the same like Perl, treat " " and ' ' differently, i.e. variables inside " " are treated as variables.
Then my problem earlier can be solved easily like this:
url: "/cgi-bin/isaccount.cgi?username=name.val()",
Instead of this:
url:"/cgi-bin/isaccount.cgi?username=" + encodeURIComponent(name.val()),
Or this:
url:"/cgi-bin/isaccount.cgi",
data : {username: name.val()},
|