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