Hey,
I got it working in IE & FF by adding a non-breaking space before the
<script> tag (echoed in PHP):
echo " <script
type='text/javascript'>$('#warn').html('required!');</script>";
$.getScript didn't work for either browser (perhaps because I'm calling a
PHP document?).
I'll have a look at the llnl.gov code next week.
Thanks for the pointers, folks.
And happy Quatro De Mayo.
________
SEAN O
http://www.sean-o.com
shelane wrote:
>
>
>
> I also had this problem and pleaded for help in these threads:
> http://groups.google.com/group/jquery-en/t/6722e380538892b9
> and
> http://groups.google.com/group/jquery-en/browse_thread/thread/7935f78c0cf61e4b
>
> eventually, I asked John for help.
>
> From John's email:
> Take into consideration that there's an open bug on executing document
> ready
> dynamically:
> http://dev.jquery.com/ticket/904
>
> I recommend that you simply remove the document ready wrapper from the
> file
> that's being loaded:
> http://education.llnl.gov/jQuery/pages/progressive.lasso
>
> and then move the script block to after the HTML
>
> This seems to work as demoed here: http://education.llnl.gov/jQuery/
>
>
> Sean O wrote:
>>
>> Hi,
>>
>> I'm trying to get IE6/Win to eval javascript returned from .load().
>>
>> What I have is a function that calls a file:
>> $("#master").load("inc/inc_master_update.php");
>>
>> That PHP script echoes a simple line of JS in a <script> tag:
>> echo "<script
>> type='text/javascript'>$('#warn').html('required!');</script>";
>>
>> The JS is evaluated in Firefox 2/Win (loaded into the "master" DIV), but
>> not in IE6/Win.
>>
>> How can I force the issue in IE?
>> I read quite a few posts on this, and couldn't find an answer...
>>
>>
>> Thanks,
>> ________
>> SEAN O
>>
>
> --
> View this message in context:
> http://www.nabble.com/Evaulating-script-tags-when-.load-ing-HTML-tf3689048s15494.html#a10323753
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> >
>
>
--
View this message in context:
http://www.nabble.com/Evaulating-script-tags-when-.load-ing-HTML-tf3689048s15494.html#a10327889
Sent from the JQuery mailing list archive at Nabble.com.