Prev: Iteration through File.file? misses entries for which File.file?(entry) == true -- FIXED
Next: ARGV, STDIN and gets
From: Arpit Tandon on 2 Aug 2010 17:46 I am trying to pull out some information from a site. There are 2 steps involved in order to get data from site. The first step is a translation of the some user id to THEIR id. After the translation is complete,use THEIR id to pull out information. This first page is performing the translation step and is then forwarding the results to the tool page. I am able to get the first page but cant save session to resubmit the information. It is required that the resubmission must be within the original api session as necessary session variables are also set in that first step. How can i keep session alive? Arpit -- Posted via http://www.ruby-forum.com/.
From: Alex Stahl on 2 Aug 2010 17:55 Try using Mechanize. It will handle all the session & cookie detail for you. On Mon, 2010-08-02 at 16:46 -0500, Arpit Tandon wrote: > I am trying to pull out some information from a site. > > There are 2 steps involved in order to get data from site. The first > step is a translation of the some user id to THEIR id. After the > translation is complete,use THEIR id to pull out information. This first > page is performing the translation step and is then forwarding the > results to the tool page. > I am able to get the first page but cant save session to resubmit the > information. > It is required that the resubmission must be within the original api > session as necessary session variables are also set in that first step. > > How can i keep session alive? > > Arpit
From: Arpit Tandon on 3 Aug 2010 12:16
Thanks, it worked. There are couple of radio button that I need to "check" and then generate a report by clicking another button. Below is example: </tr> <tr> <td><button class='term' onClick="CreateNRChart();" type="button" value="Functional Annotation Clustering" name="B23" >Functional Annotation Clustering</button></td><td></td> </tr> <tr> <td> <button class='chart' onClick="CreateChart();" type="button" value="Functional Annotation Chart" name="B2" > Functional Annotation Chart </button> </td> </tr> <tr > <td><button class='table' onClick="CreateTable();" type="button" value="Functional Annotation Table" name="B1" > Functional Annotation Table </button> </td> </tr> How can I "click" on 1st one- Functional Annotation Clustering? It might be very simple but I am having hard time to find the solution Thanks -- Posted via http://www.ruby-forum.com/. |