I'm doing some cross-site AJAX hack by dynamically inserting a script
tag. This script tag loads a PHP script that prints out javascript:
<?php
echo "alert('i am a cross site script');"
?>
$$('head').first().appendChild(
new Element(
'script', {
id: 'scriptTag',
type: 'text/javascript',
src: 'http://www.externalSite.com/script.php'
}
)
);
On every browser but IE6, this works. On IE6, the javascript will only
be executed when you refresh the page. It will not run when you
initially click into the page. My idea was to have IE6 eval the
contents of this script with eval($('scriptTag').innerHTML). It failed
because the innerHTML is always empty, no matter which browser you try
to do it on. So how do I get the contents of the script tag?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.