Hello, Here is a problem I have with prototype 1.5.0 and not with prototype 1.4.0.
You can test it here: http://bretin.net/tests/test_ajax_upload/test.html The problem is when you click on "do Ajax.Updater", an Ajax.Updater is launched and "tests2.html" is uploaded in "div1" from "test.html". In "tests2.html" I initialise a variable, "my_name" and when I click on "alert my_name" I have an error: my_name is not defined. Do you see if I made a mistake ? Here is the source of the 2 files. == test.html == <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="ajax1.6.1/lib/prototype.js"></script> <script type="text/javascript" src="ajax1.6.1/scriptaculous/scriptaculous.js"></script> </head> <body> <script language="javascript"> function charge() { var myAjax = new Ajax.Updater('div1', 'test2.html', {method: 'get', asynchronous:true, evalScripts:true}); } </script> <input type="button" name="bok" id="bok" value="do Ajax.Updater" onclick="charge();" /> <div id="div1"></div> </body> </html> == test2.html == <script language="javascript"> var my_name="didier"; </script> <br><a onclick="alert(my_name);">alert my_name</a> Regards. -- Didier BRETIN http://www.bretin.net/ _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
