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>
[TD="class: line-content"][ ******** type="text/javascript">[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]//<=!=[=C=D=A=T=A=[[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]var theForm = document.forms['aspnetForm'];[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]if (!theForm) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm = document.aspnetForm;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]}[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]function __doPostBack(eventTarget, eventArgument) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] if (!theForm.onsubmit || (theForm.onsubmit() != false)) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.__EVENTTARGET.value = eventTarget;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.__EVENTARGUMENT.value = eventArgument;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.submit();[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] }[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]}[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]//]=]=>[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]*********>[/TD]
</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:
<tbody>
[TD="class: line-content"][ ******** type="text/javascript">[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]//<=!=[=C=D=A=T=A=[[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]var theForm = document.forms['aspnetForm'];[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]if (!theForm) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm = document.aspnetForm;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]}[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]function __doPostBack(eventTarget, eventArgument) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] if (!theForm.onsubmit || (theForm.onsubmit() != false)) {[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.__EVENTTARGET.value = eventTarget;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.__EVENTARGUMENT.value = eventArgument;[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] theForm.submit();[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"] }[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]}[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]//]=]=>[/TD]
[TD="class: line-number"][/TD]
[TD="class: line-content"]*********>[/TD]
</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>