Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to access include variable from another include
Message
 
À
09/01/2006 12:31:25
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
01084610
Message ID:
01084978
Vues:
8
>>Have you tried:
>>
>>nType=0;
>>document.write("<script language=JavaScript src=http://www.mywebsite.com/Images/MarketingTool/Banner400x77.js></script>")
>>if ((nType==1) || (nType==2))
>>{
>>   alert("1")
>>}
>>
>
>When I tried that last night, assuming that would have been a failure in the Javascript design, I ended with 0. Basically, the included script cannot be seen until the first one is completed. There is no way to achieve that but to add two includes in the HTML page. I have resolved the issue by doing that. Later on, I adjusted all that to be one call to a Javascript which is writing an IFRAME window with a SRC that point to VFP/WWC which gives me full flexibility of what I want.

Yep, that makes sense, since the executing needs to end before the exec on the embedded one.... I'll keep this in mind.

-R!
Ricardo A. Parodi
eSolar, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform