Timing the call of a .js file
-
I have a reference to a .js file on a masterpage that my Defaut.aspx is using. I need a value from that javascript file that is being set when the file loads, however I need that value prior to the page load of Default.aspx. My problem is that all the referenced .js files on the Masterpage are called after the Page_Load() event of Default.aspx. Is there a workaround for this ? Thanks.
-
I have a reference to a .js file on a masterpage that my Defaut.aspx is using. I need a value from that javascript file that is being set when the file loads, however I need that value prior to the page load of Default.aspx. My problem is that all the referenced .js files on the Masterpage are called after the Page_Load() event of Default.aspx. Is there a workaround for this ? Thanks.
So you're trying to access something that's loaded on the client side, from the server side?
- S 50 cups of coffee and you know it's on! A post a day, keeps the white coats away!
-
So you're trying to access something that's loaded on the client side, from the server side?
- S 50 cups of coffee and you know it's on! A post a day, keeps the white coats away!
Yea, in a way I guess I am. I am basically working with a Javascript based HTML editor on which I have created a custom button, on that button's click event I want the contents of the editor (which is developed purely in javascript) to be transferred in to a .NET string that I can use to continue my logic. So this attempt is in view of one of the solutions I have thought of for that problem.