954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Access Global Variables Between <script> </script> Tags

. How do I reference variables declared and assigned inside a script in the head section from the body of my page?

On a separate topic, how do I get rid of the error message (below) that pops up when the function which opens the Excel spreadsheet executes as follows:


......


......

ms_sws
Light Poster
31 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

Well. I just answered one of my questions. For anyone else out there trying to figure out how to dynamically write text based on some test condition, I did the following.

Instead of using tables in the body, I used span as in:


In my case, everything to go inside the span block would be dynamic so it literally was "empty" as in the above.

In the section inside my loadexcel() function at the very end (or at least after I've defined the content of my variable to be written inside my span block), I added the following at the very end:

document.getElementById('dynamic_block').innerHTML = global_var;

I've obviously simplified. If you want the full example, please post a reply and I will extract the entire code.

But I still need help with naming my add-on and control that pops up in response to the open of an excel object. I have to believe there is a parameter or something that can be added to the open that will provide something other than "unknown" in the message.

So I still need your help!

MS

ms_sws
Light Poster
31 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: