Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CODE not working in IE7 1

Status
Not open for further replies.

jedel

Programmer
Jan 11, 2003
430
AU
Hi All,

Not sure if this is the right area to post this, but it's the closest forum to the problem I can find.

I have a website which has it menu, which is just a <ul><li> set up and uses a js file to cause it to become a drop down menu. This is set up from Dreamweaver CS3, that being the SpryAssets (For those familiar with Dreamweaver).

The menu works great with Every browser I have except for IE. I also have some issues with some flash file not showing on certain PCs using IE as well.

I'm at a loss as to why this is or how to fix it so that these elements will show up on IE.

here is the site


The big black bar underneath the header images should have the menu showing. If you're using firefox, it will work fine. Try it with IE and let me know how you go.

Cheers

Dean


-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
Your page continually errors for me in both IE6 and IE7 when trying to call "AC_FL_RunContent".

Perhaps you need to wait for an "onload" event before calling it? Perhaps the script file with that function in hasn't loaded before you're calling it?

Hope this helps,
Dan





Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
OK,

How exactly would I do this? I've never usually had to worry about this sort of thing so It's a real weakness for me.

Cheers

Dean

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
OK, I re-uploaded the Script file. Can you check it now?


Cheers

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
Well - it still doesn't work for me, so presumably when you retried it it didn't work for you either?

It looks like you're missing a file (or files) in the folder:


Possibly called "1.js"? (unless you've set your "scriptNo" variable to some other value)...

It looks like you just haven't followed the installation instructions for the menu you're using. Try going back to them, re-reading them, and re-implementing them.

Until the page works for you, it's not likely to work for anyone else either.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
That's the problem,

It DOES work for me and not for other people. I will upload the Lib folder again.

Interesting that you think that the js file name is "1". It is actually named "awmlib1.js" and is located in a folder called "lib". This menu works fine on all pages except for the front page of a couple of PC that I know of. which I find strange considering it's that same menu on every.

What about the Flash items on the page. Did they load? There are three of them. These alos work for me and not for others.

I've alos noticed that now, the menu falls behind the Flash items on the page, even though I have the wmode set to transparent.

I hate IE Explorer. If its not one thing its another.

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
It could be a timing thing, perhaps? Try not using document.write to include the script file. Given you know you're going to need it, put it in your HEAD section above the other script files.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Where is the Document.write code? I can't see it in the page link I gave?

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
So you've never looked at the files you're including on the page, and yet you wonder why they don't work?

Why don't you take a look at your own source code before getting others to try?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan,

You must have had a bad week. It's the first thing I did before i posted. Let me list for you the pages that I have linked to the 'Child.asp' page I have pointed people to:

1. <b>Calvary.asp</b> (This is the DSN connection page)
2. <b>CSS_Styles.css</b> (Formatting, Never seen asp code in these, I'm not that good)
3. <b>SpryMenuBar.js</b>( The first document for the menu bar that is not showing)
4. <b>SpryMenuBarHorizontal.css</b> (Formating for the menu bar)
5. <b>ChurchHeader.asp</b>(the header include page)
6. <b>Churchmenu.asp</b> ( the menu include page)
7. <b>Churchfooter</b> (the footer include page)

I did a search for the text 'document.write' and It did not appear anywhere. If you like I can send you pages and you can tell me where is is.

I am not a puritan. I do not write in HTML or js or asp. I use Dreamweaver and let the program do it for me. As I said, Unlike you, I am not that clever, just trying to learn

So I ask again which of the above pages has the "document.write" code in it so that I can identify whith you answer? If there is another page that you have found that is linking to this one, please, let me know becasue I certainly did not put it there.

I do appreciate you suggestions. As Much as I love these forums pages, it's usually my last resort after I have tried everything I know (Albeit limited).

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
I saw it in the file "menu.js", which is included on your home page.

Try moving the script include from that file and putting it as a regular script include in the pages the menu file is called from.

Hope this helps,
Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I think so, I checked with the owners of the site and they said they could see the flash objects and the menu on the front page.

I was so frustrated with it I decided to rebuild the page using a Dreamweaver template and I checked it using the validation page you showed me every step of the way. I managed to keep it validated until I started to place in the swf Files. Dreamweaver 'Double cooks' these so IE and the NEtscape family can see the files.

I went through some of the tutorials linked to the validation page, they worked to a point, but could not get the desired result. When I went back to the double cooking method, they could see everything. Unfortunately, the page is not validated. However, everything seems to be working on both browsers.

It must have been the basic structure of my page. ie the w3C "Transitional" jargon at the top of the page (Still don't fully understand what the different lines do and are for).

But hey, all seems to be well at the moment. Thanks for you suggestions on this. I probably would never have had to the stage its at now if not for your ideas.

Cheers

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
Satay was the tutorial that was linked to the validation page. I could get it to work. I thought I followed every step right down to the recoding of the SWF files.

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
You don't need to "recode" any SWF files to get validating markup... or are we talking about two different things?

Here's the code I use:

Code:
<object type="application/x-shockwave-flash" data="/assets/banners/flash/Inspire_Banners_1.0.swf" width="598" height="88">
	<param name="movie" value="/assets/banners/flash/Inspire_Banners_1.0.swf">
	<!-- A non-SWF fallback image or text can go here -->
</object>

It works for me cross-browser just fine, and validates (although this depends on your DOCTYPE).

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Very good point. What Doctype do you use? I really don't understand what they all do. I primarily work with asp pages


-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
For the site that that code was copied from, I used:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]

But you should be able to use others.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
You know, I tried this one and a number of others when I went through the validation activity. I thik the "...strict.dtd" DOCTYPE brought up the most errors.

I will give it a go again though with your SWF <object> coding and see if I can't get it back to being a valid page and have everybody see everything again.

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top