Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

*Javascript within Flash help*

Status
Not open for further replies.

nomaam

Programmer
Dec 29, 2003
39
CA
i have a button within flash with the following code:

on(release) {
getURL("javascript:popup('}

The html page with this movie has the following code:

<script language=&quot;JavaScript&quot;>
function popup(arg) {
window.open(arg, &quot;test&quot;, &quot;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='100%',height='100%',left=200,top=20&quot;);
}
</script>

This works fine, but if i use a redirection service and enable URL Masking then this will not work. I get no error when i click the button, nothing happens at all.


i have put up an example to show more clearly what my problem is.

this site has a button that uses the javascript function and it works fine:


i have set up a redirection link to that page that has URL Cloaking enabled.


I was wondering why wont that same button work if you visit the site via the redirected link? It will only work if i have URL Cloaking disabled. Why would URL Cloaking effect the javascript function?

Thanks.
 
I tried it and it works if you want I can send you my example on e-mail.

So, check your syntax
 
you have got this to work when useing a redirection service with URL Cloaking enabled? if so then yes i would like to see your example. please send it to:

stylepictures@hotmail.com

thank you.
 
thank you for the example. it is very interesting.

were you able to get this to work without useing frames?

thanks again for your help, much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top