Jump to content

Javascript: doPostBack()


nolochemical

Recommended Posts

Hey I'm trying to parse a web page [ http://www.duvalclerk.com/ONCOREWEB/search.aspx?bd=2%2F21%2F2008&ed=2%2F22%2F2008&n=***&bt=OR&d=2%2F22%2F2008&pt=-1&dt=MTG%2CSAT%2CASSIGN&st=fullname ]

 

Above and below the search data the pages are numbered (1-10) links. To move from page to page.

 

The links uses "javascript:__doPostBack('dgResults$_ctl1$_ctl2','')"  to move from page to page. I was wondering

 

how the function works so I can move from page to page within my script... what I have so far is but I seem to be getting errors:

 

<?php
$url = "http://www.duvalclerk.com/ONCOREWEB/search.aspx?'&bd=2/8/2008&ed=2/9/2008&n=***&bt=OR&d=2/9/2008&dt=MTG,SAT,ASSIGN&st=fullname";
$max = file_get_contents($url);
echo $max;
echo "<form action=".$url." method='post'>
<input type='hidden' name='try' value='javascript:__doPostBack('dgResults$_ctl1$_ctl2','')' />
<input type='submit'  name='zim' value='&&&&&&&&&&&&&&&&&&&&&&&' />
</form>";
?>

 

I searched the site, but the two previous posts don't give much insight. Any help would be greatly appreciated.

 

~Nolo

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.