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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to