dcsimg
Passing username/password with XMLHTTP object gives error!
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rock_action
Posted On:   Thursday, January 4, 2007 06:07 PM

I'm getting an error when sending XMLHTTP requests with the final two parameters of the request (username, password). It seems to work in IE7, but gives an error on some service packs of IE6. The error is "Invalid Syntax" and I'm assuming it's because this version of IE doesn't support the final two params. Does anyone have any info, links, or experience with this issue? How does IE handle security if it doesn't accept the username/password params!? We're rolling out soon and need help ASAP!!! My only thoughts are to catch the error when it happens and then send the open without the params, but that's ugly. I'm kinda new to JS so if you could even show how to test for an objects parameters tha   More>>


I'm getting an error when sending XMLHTTP requests with the final two parameters of the request (username, password). It seems to work in IE7, but gives an error on some service packs of IE6. The error is "Invalid Syntax" and I'm assuming it's because this version of IE doesn't support the final two params.




Does anyone have any info, links, or experience with this issue? How does IE handle security if it doesn't accept the username/password params!? We're rolling out soon and need help ASAP!!!




My only thoughts are to catch the error when it happens and then send the open without the params, but that's ugly. I'm kinda new to JS so if you could even show how to test for an objects parameters that might help.



EXAMPLE THAT BREAKS:

myRequest.open("CHECKOUT", sURL, true, sUser, sPass)
myRequest.send()



EXAMPLE THAT WORKS:

myRequest.open("CHECKOUT", sURL, true)
myRequest.send()

   <<Less
About | Sitemap | Contact