Hi, Any time you want to access Prototype's extensions to DOM elements, you have to be sure you're dealing with an "extended" instance of the element by passing it through the `$` function[1]. You haven't shown how your `SubmitForm` function is called, but I'm guessing it gets called at some point within `nbSubmitRequestFormProfil`, which is receiving an un-extended element instance when you pass `this` into it from the DOM0 handler you're using.
So why do you get away with it on Firefox (and most other browsers) but not IE? Because Prototype can extend the *prototypes* of elements on most browsers, but not on IE. So on most browsers, elements are automatically extended. But you can't rely on it (and a future version of Prototype will probably stop doing it), you need to use ` $`. [1] http://api.prototypejs.org/dom/dollar.html HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Jan 12, 2:08 pm, "[email protected]" <[email protected]> wrote: > Hi, > I have a problem with Form.request in IE > > My Script : > > function SubmitRequest(formId) > { > formId.request({ > onComplete: function(transport){ > alert("Saved"); > } > > }); > return false; > } > > My Html Code : > > <form action="" onsubmit="return nbSubmitRequestFormProfil(this)" > method="post"> > <table> > <tr><td class="label">Nom : </td><td > class="champs"> <input > type="text" name="first_name" value="test" id="first_name" > size="30"/></td></tr> > > <tr><td class="label">Prénom : </td><td > class="champs"> <input > type="text" name="last_name" value="test" id="last_name" size="30"/></ > td></tr> > <tr><td colspan="2"> > <input type="submit" value="Enregistrer" > class="button_profil"/> > </td> > </tr> > </table></form> > > All works fine under Firefox and Safari/konqueror, but fails under > IE8 , Do you have any idea about this ? > > Thank's
-- 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 [email protected]. 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.
