homepage Welcome to WebmasterWorld Guest from 54.161.236.92
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
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
ntfu




msg:4067175
 10:55 am on Jan 25, 2010 (gmt 0)

Hi,

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?

 

rocknbil




msg:4067384
 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

getURL("http://example.com/page.html?handle_div=1");

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