IE Problem

Post your questions and problem reports here.
Post Reply
craygo
Posts: 6
Joined: Tue Feb 03, 2009 5:22 pm

IE Problem

Post by craygo »

There seems to be a problem with the javascript generated by the software. It seems the location of the javascript in reference to the body tags is causing problem in IE. You can see the error here

http://www.pranzi.com

I used the software to create the top menu, after the menu items the javascript needs to run to create the other menu items(ie mouseover) and such. This is what seems to be causing the error. Only problem the menu's won't work correctly unless the javascript is run right after the main menu. If I move the javascript to the head I do not get the error but the menu does not work. It writes the btncontainer in the head instead of in the body.

Any idea's on a fix.
craygo
Posts: 6
Joined: Tue Feb 03, 2009 5:22 pm

Re: IE Problem

Post by craygo »

I figured it out. Might want to stress this in a tutorial or in the faq section. IE has a problem running javascript while it is inside a table. I had to change the header on my page and transfer everything from tables to divs. Once I got the divs organized correctly the script ran fine.

So remember... NO JAVASCRIPT INSIDE OF A TABLE! :)

Ray

EDIT: It didn't work!!!
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: IE Problem

Post by MikeyB »

Yes, IE does have problems with running scripts that change or add the layout of the page if the script is sun while the page is still being rendered, as would be the case if the script was in a table on your page.
Generally scripts should be in the <head> section of your page anyway.

But your page looks the same to me in Firefox 3 and IE6, so no problems as fas as I can see.
craygo
Posts: 6
Joined: Tue Feb 03, 2009 5:22 pm

Re: IE Problem

Post by craygo »

Well only reason it looks the same now is because I had to move the script down below outside the body tags. But if you notice the submenu's show up half way inside the main menu. any way to change that???
craygo
Posts: 6
Joined: Tue Feb 03, 2009 5:22 pm

Re: IE Problem

Post by craygo »

UPDATE

Well got the submenu to move down. Had to go into the javascript and give a -10px offset to one of the top styles. But as you can se it also moved the second submenu down as well.

Wish someone would take a look and give me some advice here.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: IE Problem

Post by Karlis »

As I look at your menus, they seme ok to me. What is the problem?
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply