I can't use that, because the function does not fire.
Maybe because this script is inside a Tiles Component (Struts) ?

wrap is working wonderfully in FF, does anyone know why it breaks in
IE and how to solve it?

On Sep 12, 4:04 pm, Ken Snyder <[EMAIL PROTECTED]> wrote:
> FernandezPablo wrote:
> > Hi, I'm having a problem with prototype.
>
> > this code breaks in IE 6
>
> > $("formId").submit.wrap(function(proceed){})
>
> > because "wrap" is undefinded.
>
> > any ideas? Thanx!
>
> You're going to want to observe the submit event instead of altering the
> native submit function:
>
> $("formId").observe('submit', function(event) {
>   ...
>   // stop event if needed or don't stop to "proceed" with submission
>   event.stop();
>
> });
>
> - Ken Snyder
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to