Get the javascript variable in formsubmit

Posted by Sakthivel on Stack Overflow See other posts from Stack Overflow or by Sakthivel
Published on 2010-03-29T10:20:36Z Indexed on 2010/03/29 10:23 UTC
Read the original article Hit count: 134

Filed under:

HI friends i have the issue in screen scrapping , in the page the links are available as follows ,

<a id="linkbuttonAlphaA" href="javascript:__doPostBack('linkbuttonAlphaA','')">A</a>
<a id="linkbuttonAlphaB" href="javascript:__doPostBack('linkbuttonAlphaB','')">B</a>

<a id ="linkbuttonAlphaC"ref="javascript:__doPostBack('linkbuttonAlphaC','')">C</a>

and the __doPostBack function contains this

function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
}

in this is it possible to set the eventtarget and eventArgumnet manually ? that means by passing that values in URL and call the __doPostBack function ? Please help me to find out this . Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript