I am a newbie and fighting my way thru the learning curve of Livecode. I have set up a private project in order to dig into the details. I want to capture data from a web site. In order to do so my script reads a HTML page (works) and capture some variable data(works as well). Now, not all data are in the same HTML page. Therefor, I need to grab the links in HTML und proceed to the next page. So far so good. I think, I have that (more or less) under control.
Where I get lost is the fact that not all of the neccessary pages are linked by a "regular" HTML-href-Link but are called by a javascript __doPostBack function. Somewhere at the upper region of the HTML there is a code snippet that looks like follows:
Code: Select all
::
::
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
::
::
Code: Select all
::
::
<td class="tableNIStdHL"><a id="ctl01_rpLigen_ctl01_lbRunde" href="javascript:[b]__doPostBack('ctl01$rpLigen$ctl01$lbRunde','')">Regional</a>
Your help is appreciated very much. Thank you.
Bernd