dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Reference Error

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    1

    Reference Error

    I've been scratching my head for hours trying to figure this out. But hours later,still no luck. So I've created a function but when I run the code it says im getting a Reference error and saying that the variable isnt declared

    Here is my code:

    <html>

    <head>
    <script src = "fileLoading.js"></script>
    <script>

    function initialLoad(boolean vraiFaux){
    fileLoading("inventory.xml", vraiFaux); //boolean to variable
    }

    //function pageWrite(){
    // code here
    //}

    </script>

    </head>
    <button type = "button" onClick = "initialLoad(true)">
    <img src = "panda4.png" alt="Does this work?"></img>
    </button>

    <body id = "body" onload="initialLoad(false)">

    </body>

    </html>

    If anyone can help I will gladly appreciate it

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,671
    try function initialLoad(vraiFaux) instead of function initialLoad(boolean vraiFaux)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles