List Info

Thread: Ajax.Updater evalScript Problem




Ajax.Updater evalScript Problem
user name
2008-01-01 23:02:08
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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Ajax.Updater evalScript Problem
user name
2008-01-02 13:15:43
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...gmail.com> 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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )