ah, why we are only getting the content from between the body tags? I don't know.
I adapted your test, and attached to this mail.
It now works in IE/NS/Mozilla.
In all these browsers all alerts show.
So it would seem that a code-loading widget would be pretty easy, and a lot more robust than loadpanel.
 
Richard.
 
----- Original Message -----
Sent: Wednesday, November 21, 2001 1:13 AM
Subject: Re: [Dynapi-Dev] Loading ecternal HTML files (or Loadpanel)

but Why?!?!
I didn't need to strip out and tags..
the embed.html has <html> and <head> tags..
And it all works just fine.
 
----- Original Message -----
Sent: Tuesday, November 20, 2001 6:29 PM
Subject: Re: [Dynapi-Dev] Loading ecternal HTML files (or Loadpanel)

> I have yet to try a similar solution in IE (no time).
> But this has gotten me thinking that we _must_ be doing something wrong for javascript to _not_ execute in a loadpanel..
 
Nothing wrong,  you just have to put all code in the body of the document, as loadpanel parses out everything between <body> tags, and add the "defer" parameter to your script tags, like this:
 
<body>
<script defer>
alert("hi")
</script>
</body>
 
Cheers,
Richard.
hello? insert file

Reply via email to