styleBunny
Technical User
Hi guys ad girls,
I have a js function in which i use some asp session variables, which are generated when the page is loaded.
if i declare the session variables, then have the js function below that (all in the head) it works fine, but when i put the js into an external js file, it stops working?
Could this be because the js is being executed before the creation of the asp variables? Maybe not, cos the js function is only called when the user inputs.
Its not a deal breaker, as i said it works fine when its all in one page, but in theory i should be able to have an external js file and asp variables working in harmony.
Cheers,
Paul.
I have a js function in which i use some asp session variables, which are generated when the page is loaded.
if i declare the session variables, then have the js function below that (all in the head) it works fine, but when i put the js into an external js file, it stops working?
Could this be because the js is being executed before the creation of the asp variables? Maybe not, cos the js function is only called when the user inputs.
Its not a deal breaker, as i said it works fine when its all in one page, but in theory i should be able to have an external js file and asp variables working in harmony.
Cheers,
Paul.