Estevam Guilherme
New Member
- Joined
- Jul 16, 2015
- Messages
- 9
I'm trying to submit a form on a old asp classic page.
Here some script:
<tbody>
</tbody>]
Using Fiddler and navegating manually I got this:
And when I navegates using my code:
<dim sformlogin="" as="" string
sFormParameters = Join(Array( _
"__EVENTTARGET=", _
"__EVENTARGUMENT=", _
"__VIEWSTATE=", _
"__EVENTVALIDATION=", _
"ctl00$ContentPlaceHolder1$acc_Calendario1$myCalendario1$ctl22=17", _
"ctl00$ContentPlaceHolder1$acc_Calendario1$HiddenField1=", _
"__VIEWSTATEGENERATOR=C2EE9ABB", _
"__VIEWSTATEENCRYPTED"), "&")
Call IE.document.parentWindow.execScript("javascript: __doPostBack('sFormParameters')", "JavaScript")>
I have this: But it's not working.
How can set the parameters to get this working</dim>
Here some script:
[ ******** type="text/javascript"> | |
//<=!=[=C=D=A=T=A=[ | |
var theForm = document.forms['aspnetForm']; | |
if (!theForm) { | |
theForm = document.aspnetForm; | |
} | |
function __doPostBack(eventTarget, eventArgument) { | |
if (!theForm.onsubmit || (theForm.onsubmit() != false)) { | |
theForm.__EVENTTARGET.value = eventTarget; | |
theForm.__EVENTARGUMENT.value = eventArgument; | |
theForm.submit(); | |
} | |
} | |
//]=]=> | |
*********> |
<tbody>
</tbody>
Using Fiddler and navegating manually I got this:
And when I navegates using my code:
<dim sformlogin="" as="" string
sFormParameters = Join(Array( _
"__EVENTTARGET=", _
"__EVENTARGUMENT=", _
"__VIEWSTATE=", _
"__EVENTVALIDATION=", _
"ctl00$ContentPlaceHolder1$acc_Calendario1$myCalendario1$ctl22=17", _
"ctl00$ContentPlaceHolder1$acc_Calendario1$HiddenField1=", _
"__VIEWSTATEGENERATOR=C2EE9ABB", _
"__VIEWSTATEENCRYPTED"), "&")
Call IE.document.parentWindow.execScript("javascript: __doPostBack('sFormParameters')", "JavaScript")>
I have this: But it's not working.
How can set the parameters to get this working</dim>