nohfreakz at web.de
2010-Jan-23 20:34 UTC
[Mechanize-users] Having Problems with JS-Button within a form.
Hi there, i get following issue with a form. Within the form there are two buttons: ... <input type="button" value="Edit" onclick="bookmarks.do_some_js()" id="BlaBlaBtn" class="hidden" /> ... <input type="submit" value="Submit" /> ... When i get the page and choose the form, the form only has the first button ( with the js call ) in its buttons-list, so i can not submit the form. Is there any solution ? Greetz, Nils ______________________________________________________________________ Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190. Von 5 Euro je SMS (zzgl. SMS-Geb?hr) gehen 4,83 Euro an UNICEF.
jeremywoertink at gmail.com
2010-Jan-23 22:47 UTC
[Mechanize-users] Having Problems with JS-Button within a form.
Create the submit button and submit the form :) On Jan 23, 2010, at 12:34 PM, nohfreakz at web.de wrote:> Hi there, > > i get following issue with a form. > > Within the form there are two buttons: > > ... > <input type="button" value="Edit" onclick="bookmarks.do_some_js()" > id="BlaBlaBtn" class="hidden" /> > ... > <input type="submit" value="Submit" /> > ... > > When i get the page and choose the form, the form only has the first > button ( with the js call ) in its buttons-list, so i can not > submit the form. > > Is there any solution ? > > Greetz, > Nils > ______________________________________________________________________ > Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190. > Von 5 Euro je SMS (zzgl. SMS-Geb?hr) gehen 4,83 Euro an UNICEF. > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users
Nils Haldenwang
2010-Jan-26 17:00 UTC
[Mechanize-users] Having Problems with JS-Button within a form.
Dumb question maybe, but how can i create the button myself ? :-)> Create the submit button and submit the form :) > > > > On Jan 23, 2010, at 12:34 PM, nohfreakz at web.de wrote: > > > Hi there, > > > > i get following issue with a form. > > > > Within the form there are two buttons: > > > > ... > > <input type="button" value="Edit" onclick="bookmarks.do_some_js()" > > id="BlaBlaBtn" class="hidden" /> > > ... > > <input type="submit" value="Submit" /> > > ... > > > > When i get the page and choose the form, the form only has the first > > button ( with the js call ) in its buttons-list, so i can not > > submit the form. > > > > Is there any solution ? > > > > Greetz, > > Nils > > ______________________________________________________________________ > > Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190. > > Von 5 Euro je SMS (zzgl. SMS-Geb?hr) gehen 4,83 Euro an UNICEF. > > > > _______________________________________________ > > Mechanize-users mailing list > > Mechanize-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mechanize-users > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users________________________________________________________________________ Kostenlos tippen, t?glich 1 Million gewinnen: zum WEB.DE MillionenKlick! http://produkte.web.de/go/08/
jeremywoertink at gmail.com
2010-Jan-26 18:29 UTC
[Mechanize-users] Having Problems with JS-Button within a form.
If I were in front of a computer I would totally show ya, but best I can say is look up the mechanize docs. You pretty much create a new button object, and then something like page.forms.first.buttons << @my_new_button I think it''s something like WWW::Mechanize::Form::Button ,but don''t quote me on that :) hope that helps. On Jan 26, 2010, at 9:00 AM, Nils Haldenwang <nohfreakz at web.de> wrote:> Dumb question maybe, but how can i create the button myself ? :-) > > >> Create the submit button and submit the form :) >> >> >> >> On Jan 23, 2010, at 12:34 PM, nohfreakz at web.de wrote: >> >>> Hi there, >>> >>> i get following issue with a form. >>> >>> Within the form there are two buttons: >>> >>> ... >>> <input type="button" value="Edit" onclick="bookmarks.do_some_js()" >>> id="BlaBlaBtn" class="hidden" /> >>> ... >>> <input type="submit" value="Submit" /> >>> ... >>> >>> When i get the page and choose the form, the form only has the first >>> button ( with the js call ) in its buttons-list, so i can not >>> submit the form. >>> >>> Is there any solution ? >>> >>> Greetz, >>> Nils >>> ______________________________________________________________________>>> Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer >>> 81190. >>> Von 5 Euro je SMS (zzgl. SMS-Geb?hr) gehen 4,83 Euro an UNICEF. >>> >>> _______________________________________________ >>> Mechanize-users mailing list >>> Mechanize-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mechanize-users >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users > > > ________________________________________________________________________> Kostenlos tippen, t?glich 1 Million gewinnen: zum WEB.DE MillionenKl > ick! > http://produkte.web.de/go/08/ > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users