jaunt api - how to submit form when input type is image -


I'm new to web scrapping. Scrapping to use the amazing API Joint I want to have a Filling Out Form field and the problem is the input type image used for submitting a form is not a submit button.

Sample code:

  try {userAgent = new UserAgent (); Try {UserAgent.visit ("http://www.xxxx.com/section"); Grip (Response Exception) (LoggerGetLugger (JetKitty.Clash.Jetem ()). Logs (level .spee, rickle, x); } Document Doctor = userAgent.doc; Println (doc); Form form = useragent.doc.getForm ("& lt; form name = browse & gt;"); Form.setHidden ("root", "10004"); Form.setHidden ("category", "7"); Form.setHidden ("rdc_select", "tw"); Form.submit ("go");  

Background Code:

  & lt; Form onsubmit = "if (preprocessBrowse ()) submitBrowseForm (this);;" id = "ccs_form" name = "Browse" Action = "/ Browse" & gt; & Lt; Input type = "image" src = "http://s1.ticketm.net/tm/en-us/img/sys/1000/blank.gif" title = "go" alt = "go" name = "go" Id = "browse_go_button" class = "go mgTop5 floatRight" & gt; & Lt; Div class = "clear" & gt; & Lt; / Div & gt; & Lt; Input type = "hidden" value = "tm_homeA_browse" name = "tm_link" & gt; & Lt; Input type = "hidden" value = "10004" id = "root" name = "root" & gt; & Lt; Input type = "hidden" value = "7" id = "category" name = "category" & gt; & Lt; Input type = "hidden" value = "mm" id = "rdc_smonth" name = "rdc_smonth" & gt; & Lt; Input type = "hidden" value = "dd" id = "rdc_sday" name = "rdc_sday" & gt; & Lt; Input type = "hidden" value = "yyyy" id = "rdc_syear" name = "rdc_syear" & gt; & Lt; Input type = "hidden" value = "mm" id = "rdc_emonth" name = "rdc_emonth" & gt; & Lt; Input type = "hidden" value = "dd" id = "rdc_eday" name = "rdc_eday" & gt; & Lt; Input type = "hidden" value = "yyyy" id = "rdc_eyear" name = "rdc_eyear" & gt; & Lt; Input type = "hidden" value = "tw" id = "rdc_select" name = "rdc_select" & gt; & Lt; Input type = "hidden" id = "type" name = "type" value = "selected" & gt; 

Enter image details here

Please help me, how to submit a form using Jat.

Thanks


Comments