Gossamer Forum
Home : Products : DBMan : Customization :

Re: [Watts] JavaScript & CSS in perl script?

Quote Reply
Re: [Watts] JavaScript & CSS in perl script? In reply to
Okay... I think we're closer. Those tags were indeed missing-- Might have been deleted before. I added the <body> and </head> tags.

The problem is definately here, in this javascript:

**************************
function WM_initializeToolbar(){
var i;
if (document.all){
for(i = 0; i < document.all('container').all.length; i++){
if ((document.all('container').all.className == 'header') ||
(document.all('container').all.className == 'links')){
document.WM.menu.dropdown[document.WM.menu.dropdown.length]
= document.all('container').all;
}
}
} else if (document.getElementsByTagName && document.getElementById){
var contained =
document.getElementById('container').getElementsByTagName('div');
for(i = 0; i < contained.length; i++){
if ((contained.getAttribute('class') == 'header') ||
(contained.getAttribute('class') == 'links')){
document.WM.menu.dropdown[document.WM.menu.dropdown.length]
= contained;
}
}
}
}
**************************
Problem is with the pipes "||".

So... After testing, I found the javascript does not like "or" in place of the pipes [as suggested in an earlier post].

Also tried replacing all the CGI pipes "|" with "~" ... The html.db errored-out when I tried that.

Question: I need a workaround here. Looks like the pipes MUST stay in the javascript.

I've attached my html.pl [store_html.pl].

You'll notice a java error when you launch the page. That is due to the above javascript erroring out. [This particular javascript executes the nav tree menu in the left column. Everything else on the page works fine.]

As mentioned, the same javascripts work fine in links.

Thanks!
Subject Author Views Date
Thread JavaScript & CSS in perl script? jmueller 4436 Jan 15, 2002, 9:34 PM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Watts 4347 Jan 16, 2002, 10:14 AM
Thread Re: [Watts] JavaScript & CSS in perl script?
jmueller 4319 Jan 16, 2002, 11:01 AM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Watts 4321 Jan 17, 2002, 12:33 PM
Thread Re: [Watts] JavaScript & CSS in perl script?
jmueller 4339 Jan 21, 2002, 9:09 AM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Paul 4319 Jan 21, 2002, 9:16 AM
Thread Re: [RedRum] JavaScript & CSS in perl script?
jmueller 4314 Jan 21, 2002, 9:41 AM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Paul 4325 Jan 21, 2002, 10:03 AM
Thread Re: [RedRum] JavaScript & CSS in perl script?
jmueller 4325 Jan 21, 2002, 10:17 AM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Paul 4304 Jan 21, 2002, 10:21 AM
Thread Re: [RedRum] JavaScript & CSS in perl script?
jmueller 4286 Jan 21, 2002, 10:51 AM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Paul 4275 Jan 21, 2002, 10:54 AM
Thread Re: [RedRum] JavaScript & CSS in perl script?
jmueller 4281 Jan 21, 2002, 12:19 PM
Thread Re: [jmueller] JavaScript & CSS in perl script?
Watts 4257 Jan 21, 2002, 2:23 PM
Thread Re: [Watts] JavaScript & CSS in perl script?
jmueller 4260 Jan 21, 2002, 6:21 PM
Thread Re: [jmueller] JavaScript & CSS in perl script?
davidolley 4248 Jan 22, 2002, 2:29 AM
Post Re: [davidolley] JavaScript & CSS in perl script?
jmueller 4239 Jan 22, 2002, 7:45 AM