Here's something I came up with while working on the project that almost killed
me last week. I needed ( or wanted ) to load external contents inside of my
layers, but didn't want to use the loadpanel.
My personal opinion is that the future of loading external contents does not go
through the loadpanel. Not because of the panel itself but because of the very
nature of the browsers and all the problems of synchronization that involve.
I'd like to use setHTMLs (with or without Java would be another discussion).
My main concern was to have an external page that could be browsed as
standalone and yet loaded into a dynlayer. Even edited with dreamweaver. Here's
the solution. I thought I'd share.
<script>
if(parent.content.DynAPI) // Insert your condition here
{
window.onload = function() {
parent.content.scroll.setHTML(document.form1.txt.value)
}
document.write("<form name=form1><textarea name=txt>")
}
</script>
This is the page
<script>
if(parent.content.DynAPI) // Insert your condition here
{
document.write("</textarea></form>")
}
</script>
----
This worked fine. Pages can be seen as stand-alone and can be loaded inside my
application. It is a bit dirty but back in the old Dyn1 days we needed to have
a parent.scroll.activate() call anyway. If you have links inside you will need
the scroll object to parse them and change them to
'javascript:scroll.load(.....)'
Hope this helps anyone
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
[Dynapi-Dev] External loading trick - advanced -
Jordi - IlMaestro - Ministral Mon, 26 Feb 2001 05:21:21 -0800
- RE: [Dynapi-Dev] External loading trick - ad... Jordi - IlMaestro - Ministral
- RE: [Dynapi-Dev] External loading trick... Pascal
- Re: [Dynapi-Dev] External loading t... Jordi - IlMaestro - Ministral
- Re: [Dynapi-Dev] External loading trick... Doug Melvin
- RE: [Dynapi-Dev] External loading t... Pascal Bestebroer
- Re: [Dynapi-Dev] External loading trick... Michael Pemberton
- Re: [Dynapi-Dev] External loading t... Doug Melvin
- RE: [Dynapi-Dev] External loading t... Cameron Hart
- RE: [Dynapi-Dev] External loading trick... Pascal
- RE: [Dynapi-Dev] External loading t... Cameron Hart
