This is from the API docs...

load( url, params, callback )

Load HTML from a remote file and inject it into the DOM.

Note: Avoid using this to load scripts, instead use $.getScript. IE
strips script tags when there aren't any other characters in front of
it.


So you might need to use $.getScript

(http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29)



On May 3, 2:30 pm, Sean O <[EMAIL PROTECTED]> 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-tf36...
> Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to