Announcement

Collapse
No announcement yet.

"undefined global variable:i" on javascript

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • "undefined global variable:i" on javascript

    I'm making a javascript function on blank application,
    the script is
    <script type="text/javascript">
    window.onload = fillDropDown();

    ?>

    function fillDropDown() {
    var ddl = document.getElementById( 'myDropdown' );
    var theOption = new Option;
    var x;
    var i;

    for(i = 0; i < 999; i++) {
    x = i + 1;
    theOption.text = x;
    theOption.value = x;
    ddl.options[i] = theOption;
    }
    }
    </script>

    <form id="myForm">
    <select id="myDropdown"></select>
    </form>
    <?php
    but when run the application i get the message:
    undefined global variable:i

    so why happen this and what i can do?
    i need make this application.
    thanks in advance
    Last edited by seyera; 12-28-2012, 06:45 PM.

  • #2
    may when confir my login this thread was duplicate.
    pls drop this thread

    Comment


    • #3
      Hello Mr. Seyera,

      No problem, I closed the other thread.

      I have just reported this issue to our bugs team.

      Additionally, I suggest you to get in touch with our support, I believe they have a solution to this issue.

      regards,
      Bernhard Bernsmann

      Comment

      Working...
      X