I'm interested in using JavaScript inside a LoadPanel also. From tests I
noticed that IE ignores inline scripts within the <body>. For example if you
have <script>alert("hello!")</script> in your page in loadpanel, the alert
will not be executed in IE. It will in Netscape. I got the impression that
Netscape will load the whole page, and IE will only load the bits inside the
<body> tag. In Netscape you can define styles in the <head> of the doc and
they will appear in the LoadPanel. This isn't the case in IE.

Both Browsers generate events from LoadPanel pages, so the onclick's work
fine, but if you want complex scripts to be available I get the impression
that they will need to be defined in the main document. If I'm wrong someone
please show me the true way ;-)

Cam.

> Not sure about IE, but in Netscape, loading external content only extracts
> whatever is between the BODY tags of the external page.  So if you have
> scripts in the header, they're gone.  I think.
>
> Also, NS evaluates any loaded JS as if it were part of the top-level page,
> so scripts within the HTML of an external page don't stay local to the
> loadpanel, but become part of the top-level document.  I think.
>
> ------
> scott andrew lepera
> [EMAIL PROTECTED]
> web stuff: www.scottandrew.com
> music stuff: www.walkingbirds.com
>
>   -----Original Message-----
>   From: Doug Melvin <[EMAIL PROTECTED]>
>   To: dynapi-help <[EMAIL PROTECTED]>
>   Date: Sunday, December 10, 2000 9:28 PM
>   Subject: [Dynapi-Help] loadpanel & javascript
>
>
>   Am I correct in understanding that you can't execute javascript
> inside of
> a loadpanel ?!?!?
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help

Reply via email to