www.webdeveloper.com

Search:

Type: Posts; User: JPnyc

Page 1 of 20 1 2 3 4

Search: Search took 0.33 seconds.

  1. Replies
    3
    Views
    1,011

    Every time you call the function test, your...

    Every time you call the function test, your variable is RE initialized to zero. You either need to use a global variable outside the function, or don't use a loop at all, and use set interval instead...
  2. $(document).ready(function () { $("img['src =...

    $(document).ready(function () {
    $("img['src = /img/00789-reg-1.jpg']").attr('src","img['img/much-better-img.jpg']");
    });
  3. Replies
    14
    Views
    1,435

    Did you post the HTML somewhere, because I didn't...

    Did you post the HTML somewhere, because I didn't see it. Also, what browsers must it work in? I assume the p's have to be editable one at a time, yes, and onclick of some element?
  4. Replies
    14
    Views
    1,435

    If this is a beginner course, the code above...

    If this is a beginner course, the code above might draw suspicion that you didn't do it yourself. Here's a very simplistic working example I just whipped up


    <!DOCTYPE html>


    <head>...
  5. Replies
    14
    Views
    1,435

    When you say "a save button" do you mean just for...

    When you say "a save button" do you mean just for that page load, or subsequent page loads as well? Because if it's the latter, it requires either local storage or a cookie, if only JavaScript is to...
  6. It can be done with either. When is it supposed...

    It can be done with either. When is it supposed to happen? What is the event handler?
  7. Replies
    6
    Views
    594

    The page is refreshing because your form is...

    The page is refreshing because your form is submitting.
  8. Replies
    9
    Views
    812

    Not necessary. Just include the no script tags as...

    Not necessary. Just include the no script tags as the previous poster suggested and put whatever message you like inside them.
  9. Replies
    9
    Views
    812

    There is no other option. Today's web pages have...

    There is no other option. Today's web pages have so much scripting that if a user disabled JavaScript in most cases the site will become unusable for them.
  10. Replies
    8
    Views
    621

    That's exactly what's happening. The last line is...

    That's exactly what's happening. The last line is running before the vars are populated. They're printing null strings because that's what they're set to.
  11. Replies
    8
    Views
    1,084

    You only need it for your final output. It'll...

    You only need it for your final output. It'll force a round-up and fixed dec. places, whatever # you set.
  12. Replies
    8
    Views
    1,084

    .toFixed(1) on the output should fix it.

    .toFixed(1) on the output should fix it.
  13. Replies
    4
    Views
    777

    My 2¢, don't build anything today that will be...

    My 2&#162;, don't build anything today that will be antiquated tomorrow. HTML5 is mostly about search engines and more semantic markup, so even if there is no immediate benefit today, there will be...
  14. Replies
    16
    Views
    4,367

    if (numbersArrray[i] > maximum) { maximum =...

    if (numbersArrray[i] > maximum) { maximum = numbersArrray[i]; }
  15. Replies
    2
    Views
    502

    function printDate() { var...

    function printDate() {
    var month,today,year,mydate;
    var now = new Date();
    month = now.getMonth();
    today = now.getDate();
    year = now.getFullYear();
    mydate = month + "/" + today + "/" + year;...
  16. Replies
    3
    Views
    1,084

    You're defining a function twice. First you...

    You're defining a function twice. First you declare it, then you try to call it with a second declaration after the call. That can't work.
  17. Replies
    3
    Views
    1,084

    Exactly what it says, you're missing a curly...

    Exactly what it says, you're missing a curly brace afterval( ui.value );
    And a closing parentheses:

    $("#slider").slider({
    min: 1990,
    max: 2008,
    value: 1990,
    step:1,
    change: slideyear(...
  18. Replies
    2
    Views
    676

    Unless you're still supporting IE 6, this kind of...

    Unless you're still supporting IE 6, this kind of thing is much better achieved with CSS.
  19. screen.width and screen.height will give you the...

    screen.width and screen.height will give you the dimensions, in pixels.
  20. Replies
    11
    Views
    1,103

    Where is the dupe ID in that code? I don't see it.

    Where is the dupe ID in that code? I don't see it.
  21. Replies
    11
    Views
    1,103

    There's more to this than just not validating....

    There's more to this than just not validating. The script simply won't work with duplicate IDs. They must never be duplicated under any circumstances. IDs MUST be unique on each page, period.
  22. Replies
    47
    Views
    10,876

    I'm on the westside of Manhattan, but now I work...

    I'm on the westside of Manhattan, but now I work in northern jersey, yep. Fortunately the co. runs a shuttle to and from ;)
  23. Replies
    3
    Views
    737

    Try changing the event to window.onload.

    Try changing the event to window.onload.
  24. Replies
    47
    Views
    10,876

    Oh and hello Charles.:D

    Oh and hello Charles.:D
  25. Replies
    47
    Views
    10,876

    If you lived a bit closer I could get you a job....

    If you lived a bit closer I could get you a job. I got one for one of my former coworkers at draft, where I worked before CNBC. There is tons of work in this city and the surrounding areas for...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles