Thanks for your nudge, I found it works on Firefox 3.0.4, but not on
IE6.0.2900.5512.xpsp.080413-2111 (the majority favorite), neither
Chrome 0.4.154.29 (my recent favorite). How about other guys?

Besides, now I understand that "input.delete" is originally designed
to work with web2py's default db record delete function. But I suggest
a more generic scenario: how about a radio button that can be "un-
choose"?
Though I know how to do that manually, I am still glad to see it
becomes "battery included" of web2py, say, a "input.deletable"
class. :)

Iceberg

On Dec 2, 12:11 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> If you have an input checkbox of class delete and you click on it
> (check it), it should ask for confirmation. Works for me. Does it not
> work for you?
>
> Massimo
>
> On Dec 1, 9:33 pm, Iceberg <[EMAIL PROTECTED]> wrote:
>
> > Hi pals,
>
> > In views/web2py_ajax.html, there is a line:
> >   $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T
> > ('Sure you want to delete this object?')}}")) this.checked=false;');
>
> > What is it for? I tried define a checkbox or a radio button with
> > "_class='delete'", then click it again and again, but nothing special
> > happened.
>
> > Besides, I guess there should not be an excalmatory mark in front of
> > the "confirm(...)". But I can not test it anyway.
>
> > Yours,
> > Iceberg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to