there
i need to authenticate before request to the url, if i use XMLHTTPRequest, things go fine
var xmlHttp = ...//some code goes here
xmlHttp.Open('POST','http://www.somesite.com/',false,userID,password);
xmlHttp.Send(null);
But if i need to use a form, like below
>var objForm = eval(formString);
>objForm.target='demoFrame'; //where demoFrame is an iFrame in another page
>objForm.action='http://www.somesite.com/';
>objForm.username.value=userID;
>objForm.password.value=password;
>objForm.method='post';
>objForm.submit();
But seems that the objForm cannot use "username" & "password" as the input for authentication, since i keep receiving "authentication failed" message from the host site
Any idea?
Thanks
evalin JavaScript so bad? Any user can run what ever JavaScript he wishes in a website anyway using FireBug or an equivalentevalcan allow an attacker to run Javascript on someone else's compute (if he can modify the string beingevald). It's also very slow.