Dan,
The file is all handled by code. All menus, shortcut menus and shortcut keys are deleted or disabled upon openeing (they are reset uopon close).
The file is saved to a specific location within the code upon clicking a certain button. If changes are made, and the file is closed without...
tsuji, tried your suggestion and it works brilliantly (in IE anyway). Thanks again.
Pity it won't work in other browsers.
I may have a look at some PHP to find something simlar. But in the meantime, I will use your code with much appreciation.
I don’t think it needs to apply to other elements. For instance, if you get an error message in Firefox, try changing each line at a time, then see when the next error occurs.
Also, I would suggest (maybe) creating a variable for the “Graphic_div” and using that instead of referring to it...
May I suggest that when referring to the DIV’s id, you use the “getElementById()” function.
So, as an example, try replacing your line
if (Graphic_Div.style.display == "none")
if ((getElementById(‘Graphic_Div’)).style.display == "none")
and continue that theory throughout.
I have a link to open an Excel file in a new window, which works fine unless the user does not have Excel installed.
If they don’t, the window doesn’t open, and they are given the option to choose a program to open it with, or to save (download) the file.
As it is a sensitive “members only”...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.