www.webdeveloper.com

Search:

Type: Posts; User: Airblader

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. WebStorm, by far. That is if you can invest a few...

    WebStorm, by far. That is if you can invest a few bucks. I'm not sure about the Open-Source/Freeware field since I haven't use an editor from that sector in a while
  2. Replies
    1
    Views
    774

    You can just assign it: var resultArray =...

    You can just assign it:


    var resultArray = [];
    for( var i = 0; i < 1000; i++ ) {
    resultArray[i] = Number.NaN;
    }

    In fact, it could even be only resultArray[i] = NaN, though I personally...
  3. Replies
    3
    Views
    1,034

    That's an understatement! Yes, this problem may...

    That's an understatement! Yes, this problem may need solving, but having a website that does not take 30 seconds to load should have a higher priority.
  4. Replies
    8
    Views
    1,958

    You're welcome. Glad to have helped you learn...

    You're welcome. Glad to have helped you learn something!
  5. Replies
    8
    Views
    1,958

    Your post is longer than mine and since it is...

    Your post is longer than mine and since it is nothing but a "fixed" code block, it is not aimed at the general audience, but at the OP directly – who has already signaled that his problem was...
  6. Replies
    15
    Views
    2,796

    Has been asked as a new question here:...

    Has been asked as a new question here: http://www.webdeveloper.com/forum/showthread.php?283223-JavaScript-Namespacing
  7. Replies
    1
    Views
    765

    The first two will fail because you are reading a...

    The first two will fail because you are reading a variable (myNS) that has not been declared. It will work in the last example, because you are referencing a property of the global window object,...
  8. Replies
    8
    Views
    1,958

    Bravo – an inferior answer to a thread that has...

    Bravo – an inferior answer to a thread that has long been answered, garnished with wrong information!
  9. Replies
    1
    Views
    753

    1. Quality code 2. Development tools (Console...

    1. Quality code
    2. Development tools (Console and inspector, if it's an UI application)
    3. Testing
    4. Testing
    5. Testing

    Occasionally I also still like some good, old log statement debugging,...
  10. Replies
    8
    Views
    1,958

    You should look up what an error console /...

    You should look up what an error console / development console is and how to use it in your browser – it will help you a lot from now on. In Chrome, you can open it by pressing Ctrl+Shift+J. Also,...
  11. Replies
    3
    Views
    813

    You don't need to know the size of the screen,...

    You don't need to know the size of the screen, that's what relative units (%) are for. Centering horizontally is a piece of cake, simply set your wrapper to "margin: 0 auto;". If you search for "CSS...
  12. Replies
    7
    Views
    2,076

    jQuery This isn't a free coding service. If you're...

    This isn't a free coding service. If you're completely disinterested in learning, go pay someone to do your job for you. If you want to learn something, then start with showing your attempts, even if...
  13. Replies
    3
    Views
    813

    Centered how? Horizontally or vertically? Either...

    Centered how? Horizontally or vertically? Either way you're looking for CSS, not Javascript.
  14. Replies
    3
    Views
    654

    You thought wrong! You better read up on it here...

    You thought wrong! You better read up on it here and make sure to understand the difference, because it is crucial.

    But FYI, even if it were true, 'i == images.length' would still be wrong. Your...
  15. Replies
    2
    Views
    676

    Methods like alert and confirm are widely...

    Methods like alert and confirm are widely considered "out of date" and should be avoided in favor of proper DOM methods to display these information (a simple, small lable shoulf suffice). Popups are...
  16. Replies
    1
    Views
    535

    You should start off with showing us your work so...

    You should start off with showing us your work so far, how else would we help you without doing your homework.
  17. Replies
    3
    Views
    654

    There is one major and one minor issue with your...

    There is one major and one minor issue with your code. The minor issue is that the push call to imageholders is completely pointless as you will override that element in the next line anyway. The...
  18. As for my solution and the checkbox that needs to...

    As for my solution and the checkbox that needs to be excluded: if you actually try to understand my code – which should really be about as easy as it gets –, and know some jQuery, you should be able...
  19. You are using an out-dated version of jQuery...

    You are using an out-dated version of jQuery then. Either upgrade (recommended) or change 'on' to the deprecated version 'live'.
  20. Then try this: http://jsfiddle.net/Q6ExD/2/ This...

    Then try this: http://jsfiddle.net/Q6ExD/2/
    This assumes a proper (i.e. consistent!) pattern in the value of the checkbox. If you cannot guarantee that the value pattern will exactly look the same...
  21. Tcobb's script differs in behavior (select all...

    Tcobb's script differs in behavior (select all checkboxes and deselect the second one to see a difference). The OP should clarify what behavior he intends in such cases. Another case would be if the...
  22. Without thinking about whether there is a simpler...

    Without thinking about whether there is a simpler way to do it, this seems to work fine (but uses jQuery – you did not say anything about if or what frameworks you use; feel free to convert it to...
  23. Replies
    1
    Views
    696

    var foo = "World", bar = "Hello " + foo +...

    var foo = "World",
    bar = "Hello " + foo + "!";
    alert(bar);

    See Expressions and operators – String operators (MDN)
  24. Replies
    8
    Views
    1,686

    No, it is not. Luckily the argument still works...

    No, it is not. Luckily the argument still works with the correct result.
  25. Replies
    4
    Views
    1,119

    It should be noted that this script was probably...

    It should be noted that this script was probably written over a decade ago (or by someone who didn't learn anything since over a decade ago). It is littered with out-dated stuff and I would strongly...
Results 1 to 25 of 66
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles