Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: open

Message Too Old, No Replies

Javascript base href problem

Stupid Fireworks drop down menu!

   
12:07 pm on Nov 14, 2002 (gmt 0)



I have a site which uses a drop down menu in the header which was generated using Fireworks. It has worked well in the past but I have just installed a PHP script to send out a newsletter.

The problem is that when the confirmation etc. screens load after the newsletter signup, the URLs in the drop down menu become mydomain.com/mailscript/page.htm instead of mydomain.com/page.htm. The other static URLs on the page are fine as they are reset by the BASE tag.

I'm no javascript guru but I read something about using document.write to add the base tag to the javascript (but this hasn't worked either). I'm using SSI to serve the header and footer on the confirm page and they look fine to me.

Any suggestions on this would be appreciated.

PS This only happens in IE6, Netscape 6 is fine - menu never worked in Opera but that's a whole other post ;)

3:10 pm on Nov 14, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I've run into a similar situation with a perl script mailer in the past. If I remember correctly, we fixed the problem by using absolute paths for the scripted menu choices.
11:20 pm on Nov 14, 2002 (gmt 0)



Thanks Tedster - I think that is what I will have to do. I'm close to ditching the whole drop-down menu thing as it doesn't work at all in Opera and gets a bit unwieldy when you want to create a new menu category. I think the best menus are the ones that go across the top of the page like Webmaster World - simple but intuitive.

Thanks again. ;)