homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

getURL with Java not working in IE

5+ Year Member

Msg#: 4067173 posted 10:55 am on Jan 25, 2010 (gmt 0)


I have a problem with IE. The folowing code does not work in IE: getURL("javascript:handle_div()");

But the strange thing is that in FireFox and Chrome it works just fine.. So the javascript itself works just fine.
Any ideas?



WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4067173 posted 5:25 pm on Jan 25, 2010 (gmt 0)

Welcome aboard ntfu, this doesn't work because javascript:anything is not a valid URL.

Second, the call the the Javascript is within Flash, so it's out of context/scope of the page.

You're going to have to craft this somehow so it passes the data to the page and is interpreted by javascript. One example might be


Then in your Javascript in a window.onload function, check if a value for handle_div exists, if is does, execute the JS within the page.

A more graceful one might be to use Flash's internal communication methods, flashVars or something, but nothing's coming to me at the moment.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved