You cannot define functions in the Ajax response. You will have to put
the function in your page.
On Jan 2, 12:02 am, Ehsun
<ehsu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I update the content of a DIV by means of Ajax.Updater. The content
> which is comming to that DIV is something like this:
>
> <script type=''text/javascript''>
>
> sendForm = function() {
> alert(''sending...'');
>
> }
>
> </script>
>
> <form onsubmit=''return false;''>
> <input type=''text''/>
> <input type=''text''/>
>
> <input type=''submit''
onclick=''sendForm()'' />
> </fotm>
>
> /////////////////////////////////////////////////////////////
>
> So everything is working in Firefox, Opera and Safari, but IE can not
> execute sendForm after clicking the submit button!!!
>
> I''m using prototype 1.6.0
>
> Thanks in advance...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---