Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to access include variable from another include
Message
From
08/01/2006 23:59:25
 
 
To
All
General information
Forum:
Internet
Category:
Javascript
Title:
Need to access include variable from another include
Miscellaneous
Thread ID:
01084610
Message ID:
01084610
Views:
69
I have a HTML page which includes a javascript file. So, this HTML page looks like this:
<P>
This is my Html.
</P>
<script language=JavaScript src=http://www.mywebsite.com/Javascript/Banner.js></script>
Banner.js includes the following, which is mostly a bunch of document.write to create some content on the page:
document.write("<script language=JavaScript src=http://www.mywebsite.com/Images/MarketingTool/Banner400x77.js></script>")
if ((nType==1) || (nType==2))
{
   alert("1")
}
What I am trying to resolve is to make nType variable visible in Banner.js but I can't because it is initialized in Banner400x77, which is an include .js file and it won't take effect until Banner.js is finished processing. Anyone would know how I can have nType variable visible from Banner400x77.js while I am still inside Banner.js?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform