Displaying 2 results from an estimated 2 matches for "myalert".
2006 Feb 17
6
Ajax.Updater and loading new javascript functions.
...irly complicated I want to load up its relevant javascript
functions as well at the same time.
I am using the evalScript:true option, and somthing simple like alert
("foobar") gets triggered in my loaded code, but if I try to define a
function and then try to call it like
function myalert(txt)
{
alert(txt)
}
myalert("foobar")
It wont get called.
But if I move myallert() into my main page I can call the function
from the code loaded by Ajax.Update
I would much prefer to have my javascript loaded dynamically with
each different component as needed instead of...
2006 Feb 17
4
RE: Ajax.Updater and loading new javascriptfunctions.
...quot; size=\"2\">GFI MailSecurity''s HTML threat engine found HTML scripts in this email and has disabled them.</font></b></p>Also... with the evalScripts method, try assigning your functions
differently so they stay in memory (assign them as variables)...
myalert = function(txt)
{
alert(txt);
};
Then you should be able to access them...
________________________________
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On...