×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

CODE not working in IE7

CODE not working in IE7

CODE not working in IE7

(OP)
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

http://www.calvarycc.org.au

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."  

RE: CODE not working in IE7


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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


Aaah - the function is actually never defined, because your "AC_RunActiveContent.js" file cannot be found.

Try correcting this.

Hope this helps,
Dan

 

Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
OK, I re-uploaded the Script file. Can you check it now?

http://www.calvarycc.org.au

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."  

RE: CODE not working in IE7


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:

http://www.calvarycc.org.au/js/awmlib/

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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


To get validating SWF, search on Google for "Flash satay". I use it regularly, and it's fine cross-browser.

Hope this helps,
Dan

 

Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


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

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7


For the site that that code was copied from, I used:

CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

But you should be able to use others.

Dan

 

Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch
http://www.codecouch.com/dan/


 

RE: CODE not working in IE7

(OP)
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."  

RE: CODE not working in IE7

(OP)
Just thought I'd let you know that I have used your <object> Tag code you mentioned earlier and the page did validate and it seems to be working on IE as well as Firefox. So good news so far. I'll check with the customers who seem to be having issues to see is they can see them. I do suspect that they need to update some software on their network though.

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."  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close