Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Mac OS & passing variables w/ JavaScript

Problem with the Mac OS and passing variables to a SWF using JavaScript



3:08 pm on Jul 21, 2004 (gmt 0)

I have received from another developer a web page that passes a variable to a .SWF to play a movie, the link looks like this:

<a class="step" href="javaScript:playFlash1(1)" onMouseOver="window.status = 'View step'; return true" onMouseOut="window.status = ''; return true">[Show

The JavaScript looks like this:

function playFlash1(stepID)
label = "step" + stepID
document.medMovie1.TGotoLabel("/", label)

function playFlash2(stepID)
label = "step" + stepID
document.medMovie2.TGotoLabel("/", label)

This functionality does not work on a Mac in any browser. I believe the Mac may be interpreting the JavaScript has Active X. Has anyone run into this problem before? Any solutions? There are (of course) some 31 .swfs and 50 HTML pages using this logic, and the developer is long gone, leaving it up to me to make it work. Any help would be greatly appreciated.


Featured Threads

Hot Threads This Week

Hot Threads This Month