A ClientForm Question

John J. Lee jjl at pobox.com
Mon Apr 4 17:57:56 EDT 2005


Francesco <francesco at f0x.it> writes:

> Il Fri, 01 Apr 2005 02:36:24 -0800, narke ha scritto:
> 
> > Does anyone here use ClientForm to handle a HTML form on client side?

Yes. :-)

[...]
> >     forms = ParseResponse(urlopen(url))
> > 
> >     form = forms[0]
> >     urlopen(form.click("ZoomControl1:Imagebutton2"))
> > 
> > unfortunatly, however, when the code run, it just got a page which is
> > not the one i desired ( i actually wish to get the same page as i
> > 'click' the button).  I guess that is "onclick=" statement cause
> > something weird, but I do not understand it.  And, in the source
> > containing the form, i found nowhere the Page_ClientValidate() resides.

Learn JS ;-/  Could be lots of things, read these:

http://wwwsearch.sourceforge.net/ClientForm/index.html#faq

http://wwwsearch.sourceforge.net/ClientCookie/doc.html#debugging


> Similar problem for me.
> In the form, i have
> <input type="button" value="entra" class="button"
> onClick="document.UserForm.submit()">
> and i don't know how to click this.
> urlopen(form.click()) doesn't nothing.
> UserForm is the name of the form.

http://wwwsearch.sourceforge.net/ClientForm/index.html#faq


See second bullet point under "Why does .click()ing on a button not
work for me?".


John



More information about the Python-list mailing list