ok sorry but I just encountered another strange behavior, the submit
button/image itself is always swallowed so i have to pass an extra
hidden var

{{=FORM(INPUT(_type='submit',_value='scrape people'),INPUT
(_type='hidden', _name='scrapepeople',_value='1'))}}
request.vars = <Storage {'scrapepeople': '1'}>

it would be nicer to just do
{{=FORM(INPUT(_type='submit',_value='scrape
people',_name='scrapepeople'))}}
but it returns request.vars = <Storage {}>

I am really sorry that I do not suggest changes to the jscrip
functions but I learned javascript and jquery just when I started with
web2py ... like a month ago, so it would take me quite some time to
get it right and I am desperately working in the few hours of these
christmas days to push my project further (a movie database)

On Dec 23, 8:12 pm, selecta <gr...@delarue-berlin.de> wrote:
> yeah this one works fine for image and submit buttons
>
> On Dec 23, 4:01 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
>
>
> > Can you try
>
> > jQuery(':submit,:image',this).click(function()
>
> > On Dec 23, 6:22 am, selecta <gr...@delarue-berlin.de> wrote:
>
> > > added this below
>
> > >  jQuery(':image',this).click(function()
> > >               {
> > >          jQuery('.flash').hide().html('');
> > >          web2py_ajax_page('post',action,form.serialize(),target);
> > >          return false;
> > >          });
>
> > > no very beautiful code but not it works
>
> > > On Dec 23, 12:59 pm, selecta <gr...@delarue-berlin.de> wrote:
>
> > > > repaced the line in web2py_trap_form
> > > > but with an image as submit button it still reloads the whole page
>
> > > > On Dec 23, 12:42 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > Can you run a test for me?
>
> > > > > Edit web2py_ajax.html and replace this line:
>
> > > > > jQuery('input[type="submit"]',this).click(function()
>
> > > > > with this line:
>
> > > > > jQuery(':submit',this).click(function()
>
> > > > > does it do what you ask?
>
> > > > > Massimo
>
> > > > > On Dec 22, 5:34 pm, selecta <gr...@delarue-berlin.de> wrote:
>
> > > > > > when i use a submit button of type "submit" to submit the form the
> > > > > > refresh works fine, but if i use a submit button of type "image" the
> > > > > > whole page reloads, can u please change that behaviour, image 
> > > > > > buttons
> > > > > > are just so much nicer
>
> > > > > > On Dec 19, 4:19 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > > >http://www.web2py.com/AlterEgo/default/show/252

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to