[thelist] Javascript - Permission Denied
Chris Heilmann
lists at onlinetools.org
Mon Mar 7 11:11:28 CST 2005
> Rob Smith wrote:
>> which comes last? :
>> page.asp?productauto=3#a919 - or - page.asp#a919?productauto=3
>
> page.asp?foo=bar&foo2=bar2#bookmark is the correct syntax.
>
>
>> However, in IE, I get a Permission Denied error on line 12, char 5, or:
>> if (document.getElementById(submenu).style.display == 'none') {
>
> try quotes:
>
> document.getElementById("submenu")
Erm, no:
function toggleSub(submenu) {
submenu is a parameter.
What could be the cause is that the style is not defined, say the element
you want to show and hide is s:
s.style.display=(s.style.display=='block' ||
s.style.display=='')?'none':'block';
--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
More information about the thelist
mailing list