Skip to main content
Participant
July 25, 2014
Question

Syntax Error: missing ;

  • July 25, 2014
  • 0 replies
  • 325 views

Here's my code: what's wrong?

var bOpened;

var app.launchURL;

function init()

{

if(bOpened != "true"){ //Choose an item

    var f = this.getField("Dropdown5#0").value;

    if(f == "Vocabulary 1")

    {

        napp.launchURL("http://www.google.com",true);

    }

    else if(f == "Vocabulary 2")

    {

        napp.launchURL("http://www.ThinkCentral.com",true);

    }

    else if(f == "Vocabulary 3")

    {

        napp.launchURL("http://www.cpalms.org",true);

    }

       

    bOpened = "true";

}

else

{

    // already open, do nothing

}

}

init();

This topic has been closed for replies.