Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 23rd, 2002, 11:23 AM
ChasDevlin ChasDevlin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 ChasDevlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
JavaScript not working on Mac. Pls help!

I've posted this on a dozen forums and still no luck. It's a small piece of code (2 lines!) and is causing a snafu.

This is the url:
URL

Basically: 2 iFrames.
Lower iFrame has row of thumbnails.
Top iFrame contains 'hold' image that *should* be activated when thumbnail is clicked.

Everything works fine on PC. No on Mac. If anyone can test on a Mac and knows JavaScript, I'd be extremely grateful.

This is the offending piece of code:
<script>
function click(clicks) { document.images['hold'].src="gfx/" + clicks; var nombre = clicks.substring(0,clicks.length-4); }
</script>

with this for the thumb:
<a href="javascript:click('apr_2.jpg')" target="hold"><img src="gfx/apr_2.jpg" width="83" height="50" class="imgBorder" alt="" border="0"></a>

Reply With Quote
  #2  
Old August 23rd, 2002, 06:14 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
when you say doesnt work, what does it do instead, and what error messages. im thinking some of the functions your using arnt suported by mac computers

Reply With Quote
  #3  
Old August 23rd, 2002, 06:34 PM
ChasDevlin ChasDevlin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 ChasDevlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
JavaScript not working on Mac

Well, it just doesn't activate the 'hold' image. You click the thumb and nothing happens... can't remember the exact error message. The main JavaScript could very well be dodgy, it was taken from another site (a lesson learned!).

Actually, a Mac wasn't showing an error message (as far as I could see). Just wouldn't activate the 'hold' image.

Very confusing...

Reply With Quote
  #4  
Old August 23rd, 2002, 06:37 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i dont have a mac, but i would say the javascript functions you are using dont work on macs

Reply With Quote
  #5  
Old August 23rd, 2002, 06:49 PM
ChasDevlin ChasDevlin is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 ChasDevlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hmmm, could be. i didn't even think that JavaScript could differ between Mac and Win. but, hey it's possible!

some people think the iFrame is the problem. worst comes the worst, it will be a PC-only site!

Reply With Quote
  #6  
Old December 5th, 2003, 09:16 AM
master_rickster master_rickster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 master_rickster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 0
It's probably not a Mac problem - it's probably a Mozilla/Safari problem.
Does the Javascript work on Netscape 7.1 on Windows? That's where I would start debugging first.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > JavaScript not working on Mac. Pls help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT