I've recently extended my FileIO work to included an applet that downloads the content of a URL.  This allows for code to be downloaded and used without the need for additional frames / layers.

As seem here, I have been able to get the contents of the <script> tags to execute.  This can allow for code to be downloaded and executed automatically.

It works and has been tested in ns4.75 / IE 5.5 (only browser I have access to.

Current limitations:
    - requires java.
      (mac IE java does not contain required classes and will not work)
    - limits allowed urls to only be from same server.
      (java security limitation, can be overcome by signing the applet
      which will require a secure certificate and I don't have one)

Advantages:
    - execute javascript without the need for additional code to handle it.
    - more stable as it uses java and the layer's setHTML() method
    - Smaller code than LoadPanel
    - Less objects created as it only needs to load the single applet
      instead of a series of listeners and loaders.

Future Expansion:
    - Almost able to use it to dynamically load API modules after inital load.
      This can mean that addtional modules can be loaded as needed and destroyed
      afterwards.  Eventually the page will not need to reload to add additional
      widgets.

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

url.zip

Reply via email to