Thomas Fuchs wrote:> Sure, ask! :)
Hokay.
So I''ve got Ajax.Updater working properly, being called as follows:
===CODE BLOCK==
<span
onclick="doAjaxTest(''/test.html'')">Click</span>
<div id="AjaxTestTarget"></div>
<script type="text/javascript">
function doAjaxTest(url)
{
new Ajax.Updater(''AjaxTestTarget'',url,{evalScripts:
true});
}
</script>
===END CODE BLOCK==
The page it''s calling is as follows:
===CODE BLOCK==
<span id="scriptSpan"></span>
<script>
// <![CDATA[
document.getElementById(''scriptSpan'').innerHTML =
''load complete'';
// ]]>
</script>
===END CODE BLOCK==
The problem: the script block isn''t executing. I peeked into prototype
during execution, and it seems that the ScriptFragment regex isn''t
matching. At line 313 of prototype1.4.0_pre2, there''s a "var
response",
which should contain the requested page WITHOUT any script blocks. It
still contains them. The next line has "var scripts", which should
just
contain the script blocks; it evaluates to null.
So I''m wondering if there''s something I''m not doing
right or if there''s
a patch I need or what. I could try to figure out what''s up with that
bloody regex, but I decided to try asking around before I began beating
my head against that particular wall...
Thanks!
Chris Tembreull