Clearline
07-18-2003, 07:22 AM
1)
I want to link a js file(s), dynamically, by using a var:
VAR=//current.js
<script language="javascript" src= VAR ></script>
I have tried every way to write this I can think of, including using &{VAR}; brackets, but can not get the js file to take.
2)
I am using a frame structure, and each file loaded into a frame or later targeted into a frame has to be linked to the JS in use, in its header.
I was hoping that by linking the JS to the top.Frameset, that all subsequent files would use the same JS.
(Again this has to do with dynamically linking to different scripts)
3)
I tried to load a framset, by declaring the frames / names, then tried to use a java script to fill the frames, but was not successful. I guess I could load the frames blank, and then have the last frame to load do an onload fill of the targetted frames. Can it be done directly from the frameset load with JS?
:rolleyes:
I want to link a js file(s), dynamically, by using a var:
VAR=//current.js
<script language="javascript" src= VAR ></script>
I have tried every way to write this I can think of, including using &{VAR}; brackets, but can not get the js file to take.
2)
I am using a frame structure, and each file loaded into a frame or later targeted into a frame has to be linked to the JS in use, in its header.
I was hoping that by linking the JS to the top.Frameset, that all subsequent files would use the same JS.
(Again this has to do with dynamically linking to different scripts)
3)
I tried to load a framset, by declaring the frames / names, then tried to use a java script to fill the frames, but was not successful. I guess I could load the frames blank, and then have the last frame to load do an onload fill of the targetted frames. Can it be done directly from the frameset load with JS?
:rolleyes: