View Single Post
Old 01-30-2012, 01:45 PM   PM User | #9
jackvan
New Coder

 
Join Date: Jan 2012
Posts: 24
Thanks: 1
Thanked 1 Time in 1 Post
jackvan is an unknown quantity at this point
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()},
jackvan is offline   Reply With Quote