The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Javascript error with WebKit (iframes)
tunaunlimited
post Feb 23 2010, 12:01 PM
Post #1





Group: Members
Posts: 1
Joined: 23-February 10
Member No.: 11,185



So I'm building this site that utilizes an iframe for the content linked to a navigation bar at the top. Nothing too fancy and i'm sure you've seen many examples. The problem is, I have an anchor tag that references a javascript command outside of this iframe:
(<a href="java script:niftyplayer('niftyPlayer1').loadAndPlay('song.mp3')" target="_parent">Song Title</a>
I used the target command "_parent" to target the original page to send the javascript command. This works perfectly on Firefox and IE, but is in no way compatible with WebKit based browsers (Safari, Chrome). In the debug console in safari, it states that the site cannot find the variable "niftyplayer" (the flash object which is controlled through javascript). I am completely lost! I'm pretty new to html so any workarounds, and help at all would be greatly appreciated.

My page is at:
http://www.prism.gatech.edu/~rtovar3/Sunny...oney/test.shtml

Click the section for music, then click any of the song titles

Thanks,
Robert
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 02:10 PM