re: [httpunit-develop] wrong subject in my last request
Brought to you by:
russgold
From: frank c. <fra...@cl...> - 2003-10-25 08:47:06
|
**************************************************************** *** THE FOLLOWING MESSAGE HAS BEEN RENDERED SAFE BY SAFESEND *** *** The original email contained a plain text message. Only *** *** the plain text portion of the message is included here. *** *** Other parts of the message may have been removed for *** *** security reasons. *** *** To: htt...@li... *** *** From: frank caputo <fra...@cl...> *** **************************************************************** hi itzik, did you set the parameters with webform.setparameter("i_user", "itzik") and something like this? i think it would be easier for you to submit the request directly by pressing the button. in the javascript-method beforesubmit() change the line document.login.submit(); to return true; and change the onclick to onclick=3d"return beforesubmit();". this should work in theory :-) ciao frank on 23.10.2003, at 13:19, itzik baruch wrote: > hi frank, > > thanks for your answer, but this did not help me. > the javascript function beforesubmit() is the function that is > submitting the form. this submit fail with error 400 (bad request) > because > the url being created contain parameter with no name, something like > &=3dvalue. > > itzik baruch > core team leader > orca interactive ltd > 22 zarhin st. p.o.box 2220 > industrial area, ra'anana 43662 > israel > tel: +972-9-7699444 > fax: +972-9-7699445 > mobile: +972-54910140 > www.orcainteractive.com <http://www.orcainteractive.com> > > > > -----original message----- > from: htt...@li... > [mailto:htt...@li...]on behalf of > frank caputo > sent: thursday, october 23, 2003 10:16 am > to: htt...@li... > subject: re: [httpunit-develop] wrong subject in my last request > > > hi itzik, > > i think you must return a value in your javascript: the onclick should > be something like onclick=3d"beforesubmit(); return true;" > > hope this helps. > > regards frank > > on 23.10.2003, at 09:48, itzik baruch wrote: > >> sorry for the wrong subject in my mail. >> i still have the problem. >> any help will be appreciated. >> =a0 >> >> itzik baruch >> >> =a0 >> -----original message----- >> from:itzik baruch >> sent:wednesday, october 22, 2003 6:08 pm >> to:'htt...@li...' >> subject:onload seems not to work for me >> >> hi, >> =a0 >> i am quite new to httpunit and also could not find reference to my >> problem in the archive so far. >> here is my problem: >> =a0 >> while trying to run an html page that use javascript to create a path >> and then change the action of a form with this path and submitting it, >> the url that is being created includes in it not only the fields that >> have a name attribute. >> i am getting something like this >> :http://www.orca.tv?i_user=3dadmin&=3dadmin&i_pass=3dpass >> =a0 >> notice the &=3dadmin ... >> =a0 >> here is my html page : >> =a0 >> >> >> >> function init(){ >> =a0 >> >> >> } >> =a0 >> function setpath(){ >> =a0=a0path =3d "http://www.orca.tv"; >> =a0=a0document.login.action=3dpath; >> =a0} >> =a0 >> function beforesubmit(){ >> =a0=a0//if (document.getelementbyid("host").value=3d=3d"" || >> document.getelementbyid("schemaname").value=3d=3d"" || >> document.getelementbyid("user").value=3d=3d"" || >> document.getelementbyid("pass").value=3d=3d""){ >> =a0=a0//=a0alert("please fill all the fields."); >> =a0=a0//}else{ >> =a0=a0=a0setpath(); >> =a0=a0=a0document.login.submit(); >> =a0=a0//} >> =a0} >> >> >> >> >> >> =a0=a0=a0 >> =a0=a0=a0=a0user name >> =a0=a0=a0=a0 >> =a0=a0=a0=a0> class=3d"link" style=3d"width: 200px; height: 18px;"> > class=3d"link">list: >> =a0=a0=a0=a0> 18px;" tabindex=3d"2"> >> =a0=a0=a0=a0=a0admin >> =a0=a0=a0=a0=a0sveta >> =a0=a0=a0=a0 >> =a0=a0=a0=a0 >> =a0=a0=a0 >> =a0=a0=a0 >> =a0=a0=a0=a0 >> =a0=a0=a0 >> =a0=a0=a0 >> =a0=a0=a0=a0password >> =a0=a0=a0=a0 >> =a0=a0=a0=a0> tabindex=3d"3" style=3d"width: 200px; height: 18px;"> > class=3d"link">list: >> =a0=a0=a0=a0 >> =a0=a0=a0 >> =a0=a0=a0 |