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

Thread: Simple question

  1. #1
    Join Date
    Apr 2011
    Posts
    1

    Simple question

    What would the correct syntax be for this:

    if('#loaded_max' == 3) {
    loading = false;
    }

    Thanks!

  2. #2
    Join Date
    Feb 2006
    Posts
    2,927
    The string '#loaded_max' will neve be equal to the number 3, so you could just delete those lines.

  3. #3
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by scotstown View Post
    What would the correct syntax be for this:

    if('#loaded_max' == 3) {
    loading = false;
    }

    Thanks!
    What that supposes to do? As it is now, it is wrong, because a string of non-numeric characters can not be compared with a number.

  4. #4
    Join Date
    Apr 2009
    Posts
    96
    if(loaded_max == 3) {
    loading = false;
    }

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