Results 1 to 2 of 2

Thread: Reference Error

  1. #1
    Join Date
    Jun 2013

    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:


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

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

    //function pageWrite(){
    // code here


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

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



    If anyone can help I will gladly appreciate it

  2. #2
    Join Date
    May 2006
    Somewhere behind your screen
    try function initialLoad(vraiFaux) instead of function initialLoad(boolean vraiFaux)
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

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