Hi,

I am having trouble submitting a form using the RCurl package. My code runs
without errors but doesn't return the table I am after. I have a feeling it
is because there are 2 submit buttons on the page and I'm not hitting the
right one. I have tried everything I can think of to submit the form
correctly but with no luck.

My current code is as follows.

library(RCurl)
library(XML)

page<-postForm("http://tatts.com/racing/outletsearch.aspx";,
    `main_0$racingmiddle_0$CityTextBox`="",
    `main_0$racingmiddle_0$PostcodeTextbox`="4000",
    `main_0$racingmiddle_0$StateDropDownList`="Queensland",
    `main_0$racingmiddle_0$SearchButton`="List Outlets")
doc<-htmlParse(page,asText=TRUE)
readHTMLTable(doc)

Any help would be greatly appreciated. I've spent a considerable amount of
time trying to solve this problem and this is as close as I have got to a
solution.

Cheers,
Jai Vaughan

> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252
LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] XML_3.2-0.2    RCurl_1.5-0.1  bitops_1.0-4.1

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to