Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
javascript onclick image swap is broken on server side
Old 08-10-2006, 12:29 AM javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
I used Macromedia Fireworks to create the code for the image behaviors. (i.e. mouseover the thumbnail, the images changes like a regular button and once the thumbnail is clicked another image should show up in the large main black square to the right) They work fine locally in both Fireworks and in Dreamweaver. Once it's loaded to the live server only the mouseovers work and the onclick behavior stops working properly using IE 6 - works fine in Mozilla. Any ideas on what's broken or have an alternative coding suggestion?

I've included the link to the web page below:

index.jpg


Last edited by crr0617; 08-10-2006 at 09:09 PM..
crr0617 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2006, 12:44 AM Re: javascript onclick image swap is broken on server side
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Works fine for me.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 08-10-2006, 02:10 AM Re: javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
Here's an example on another site of what my page should do. It does not work in IE6 --try Mozilla. The Concept Wheel - Product Branding
crr0617 is offline
Reply With Quote
View Public Profile
 
Old 08-10-2006, 04:44 AM Re: javascript onclick image swap is broken on server side
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Works for me too. Just takes the images a long time to load. It most likely worked like you thought on you local computer since you didn't have to wait for the images to load.

Try optimizing your images to reduce their file size and also try adding an image preloader script.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-10-2006, 06:01 AM Re: javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
Chris Loomis Photography

If I right click on the main area that's supposed to have the picture and select show picture in IE6 --the picture appears. But, it works without forcing the picture in Mozilla.



I already have the preload script in. I'll try reducing the file size on the main pictures (not thumbnails) from 50 to 4k and see if it does anything. The thumbnails are byte size already. It's always 'fun' working with image heavy sites.
crr0617 is offline
Reply With Quote
View Public Profile
 
Old 08-10-2006, 03:13 PM Re: javascript onclick image swap is broken on server side
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I think you might be working on the site as I'm writing this, but when I looked last night it was working. I didnt have to right click to get the image. Worked exactly the same for me in both FF and IE
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-10-2006, 06:12 PM Re: javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
I thought it might be my browser so I dumped my browser cache and reset it to the default settings -- still the same thing. I tried removing the doc type and separating out the table with the image swaps and rollovers from the rest of the site template. Same thing -- works fine in Mozilla and not in IE6 for me.

Last edited by crr0617; 08-10-2006 at 09:00 PM..
crr0617 is offline
Reply With Quote
View Public Profile
 
Old 08-10-2006, 09:02 PM Re: javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
I polled a few friends and found that all versions on a mac seem to work, as well as mozilla and netscape. Plus, some could view and some could not using IE6.

Going on a hunch that it might be a browser setting, I played with....

Internet Options | Temporary Internet Files | Settings | Uncheck Every Time You Visit a Page and CheckEvery Time you Start IE or any of the others and the web page seems to work fine.

Could it be this simple? And if so, is there something I can code on the web page to ensure consistency? The everyday user will not know to change this browser setting to make it work and they shouldn't have to.
crr0617 is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 12:27 AM Re: javascript onclick image swap is broken on server side
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
There really isn't anyway you can override the users setting. You're right the user shouldn't have to change that setting, but something tells me most won't need to at all. I don't think the 'every time you visit a page' is the default so it really shouldn't be a problem.

How many people was it that had problems viewing it in IE besides yourself? And do you know if they gave everything enough time to load?

Something tells me this isn't going to be as much of an issue as it might be.

Have you moved the page at all. Anytime I've gone to look today when I click on any of the links I'm taken to a file not found page. If it's up maybe people viewing this thread could try and let you know if it's working for them.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-11-2006, 07:37 PM Re: javascript onclick image swap is broken on server side
Average Talker

Posts: 17
Name: Cristie
Trades: 0
That's weird, I haven't modified any of the files as of yet today.

From the handful of users that it didn't work for, I asked them to check their browser settings and they had the "every time you visit a page" checked in their IE6 browser.

I would certainly feel more comfortable knowing that the setting I had in my browser is not the norm. I'd also be curious to know if it works in version 7.

Last edited by crr0617; 11-23-2006 at 01:32 AM.. Reason: link doesn't exist any more
crr0617 is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 09:18 PM Re: javascript onclick image swap is broken on server side
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I see what you mean now. I tried it in IE and works fine until I set to 'every time you visit a page' and then I just get a blank image.

I'm not sure why that's happening, but if I can come up with anything I'll let you know.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to javascript onclick image swap is broken on server side
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.00047 seconds with 12 queries