jdickens Posted March 28, 2005 Posted March 28, 2005 I'm not sure this is an AutoIt question.I'm trying to get publicly available data through an .aspx web page.http://www.investinginbonds.com/MarketAtAGlance.asp?catid=32You fill in a couple selections and hit continue.So far so good. I can automate that part.Then the page I want pops up with no address bar.I can get the first page of data there.To access the other pages of data (if there are any), I must click on 2, 3, etc.There is no next button (sneaky b*st*rds)I can see (in IE) that the command executed on the link would be:java script:__doPostBack('MuniTrades$_ctl1$_ctl1','')orjava script:__doPostBack('MuniTrades$_ctl1$_ctl2','')etc.Could I1) simulate mouse click on the consistant position of the links2) send the javascript command itself3) some other wayI am not experienced in this topic.J If I am too verbose, just say so. You don't need to run on and on.
SlimShady Posted March 28, 2005 Posted March 28, 2005 2) send the javascript command itselfThat is possible. What you need to do is:1. Use ControlSetText() to replace the current address bar content with for instance:java script:__doPostBack('MuniTrades$_ctl1$_ctl1','')2. Use ControlSend() to send an enter to the address barThe above should work.
jdickens Posted March 28, 2005 Author Posted March 28, 2005 Yes, that does work. Very nice. Thank you. J If I am too verbose, just say so. You don't need to run on and on.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now