Hi!
I am dynamically generating external .js JavaScript resources to be used with a Tab control I created (using VB.NET).
Originally, the JavaScript was written directly into the <head> of the pages that used Tab controls. Because it was generated in this way I was able to specify which tab was to be displayed as the "current" tab upon rendering the page in the browser.
Since the JavaScript is now a fixed resource that resides on the server, I need to specify which tab is the current tab in a different manner.
I've attempted using a hidden field, but because the hidden field doesn't exist when the JavaScript is executed (recall the JavaScript is executed in the <head> section which is executed before the hidden field...in the <body>.... is created).
Since I could not a hidden field, I attempted adding the variable to the page (in the <head> section above my include for the external JavaScript). This obviously doesn't work....
Does anyone have a recommendation as to where and how to declare this "current tab" variable?
Thanks
-Frinny
I am dynamically generating external .js JavaScript resources to be used with a Tab control I created (using VB.NET).
Originally, the JavaScript was written directly into the <head> of the pages that used Tab controls. Because it was generated in this way I was able to specify which tab was to be displayed as the "current" tab upon rendering the page in the browser.
Since the JavaScript is now a fixed resource that resides on the server, I need to specify which tab is the current tab in a different manner.
I've attempted using a hidden field, but because the hidden field doesn't exist when the JavaScript is executed (recall the JavaScript is executed in the <head> section which is executed before the hidden field...in the <body>.... is created).
Since I could not a hidden field, I attempted adding the variable to the page (in the <head> section above my include for the external JavaScript). This obviously doesn't work....
Does anyone have a recommendation as to where and how to declare this "current tab" variable?
Thanks
-Frinny
Comment