Javascript and flash with php???

Discussion in 'JavaScript' started by jmansa, Aug 5, 2008.

  1. #1
    I'm trying to create a link/button in my flash movie wich opens a link in a popup window which is modified using javascript like this:

    infomov.cpg_btn.onPress = function() { getURL ("javascript:NewWindow=window.open('http://' + downloadUrl + '?' + downloadNation + '&' + downloadClub + '&' +downloadHole,'newWin','width=350,height=285,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No');NewWindow.focus();void(0);"); };
    Code (markup):
    The problem is taht it doesnt get any link. The problem seems to be with the "+downloadUrl" and the other + statements... If I just inserts www.adobe.com it does what it is surposed to do... Does anybody know how to solve the issue with the + statements in this javascript...
     
    jmansa, Aug 5, 2008 IP
  2. yleiko

    yleiko Peon

    Messages:
    74
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you had some confusion when mixing ' and "
    this one should work

    window.open('http://+ " downloadUrl + "?" + downloadNation + "&" + downloadClub + "&" + downloadHole,'newWin','width=350,height=285,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No')
     
    yleiko, Aug 5, 2008 IP