PDA

View Full Version : Does Element update load a pages script


dimmoro
02-22-2007, 02:21 PM
Hi,
I'm loading php pages into a DIV using the update command.
var myDiv = getEL('myDiv');
myDiv.update('loadPage.php');
This works wonderful; php pages get evaluated and loaded into the DIV.

If there are javascripts on the loadPage.php, does that get evaluated?

Attempting to load a "complex layout" (based on the documented example) into the DIV.
Would you advise, to rip the layout script out of the 'loadPage.php' and place it into the main; using a callback on the main to "link" the elements?

Thank you.

Animal
02-23-2007, 05:00 AM
http://www.yui-ext.com/deploy/yui-ext/docs/output/YAHOO.ext.Element.html#update