www.webdeveloper.com

Search:

Type: Posts; User: jamesbcox1980

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. No problem at all! I know sometimes when I'm...

    No problem at all! I know sometimes when I'm working on a problem, things get overly complicated and it often helps to have a fresh perspective to simplify it again.
  2. Seems to me that what you really need to do is to...

    Seems to me that what you really need to do is to round to the nearest millionth, rather than using toFixed(). This way, there will never be trailing zeros, and the number will never be more than 6...
  3. Replies
    12
    Views
    1,744

    You're getting "Your answer is incorrect" because...

    You're getting "Your answer is incorrect" because you're comparing an object to a number:


    function checkAnswers() {

    if ( document.getElementById( "myQuiz" ) = sum )
    ...
  4. Replies
    8
    Views
    1,310

    Also, you can actually simulate a keypress....

    Also, you can actually simulate a keypress. jQuery has a method "trigger" attached to it's objects for triggering events. I don't know how it's accomplished, but I do know it works for jQuery, so...
  5. Replies
    8
    Views
    1,310

    What are you trying to trigger with the Enter...

    What are you trying to trigger with the Enter key? Are you trying to cause the form to submit? Or are you trying to enter a newline? What does the enter key do? If it fires some function, simply call...
  6. Replies
    3
    Views
    1,055

    Can you give us a URL to look at, or post your...

    Can you give us a URL to look at, or post your output HTML here on the forum so we can get something to work with? The PHP shouldn't be outputting an actual YouTube video object, rather it should...
  7. Try this instead: ...

    Try this instead:


    $("#tabs-2").text($("#tabs-2").text().replace("thumb1", "thumb2"));
  8. Replies
    3
    Views
    1,737

    You'll need to post the code for your field page....

    You'll need to post the code for your field page. Also what character is the barcode reader driver inserting after the code? Tab? Enter?
  9. Don't forget the "$": $_POST["varName"]

    Don't forget the "$":

    $_POST["varName"]
  10. Replies
    1
    Views
    1,476

    Well, since you created "x" and "y" inside your...

    Well, since you created "x" and "y" inside your getValueNext() and getValuePrev() functions, the variables do not exist outside of those functions. Their scope is local. You'll need to give them a...
  11. Replies
    3
    Views
    689

    document.write is a runtime method and is used in...

    document.write is a runtime method and is used in a linear execution of your code. In other words, document.write must be used while the document is being written, or a new one will be created.
    ...
  12. I think it's important to make it clear that by...

    I think it's important to make it clear that by "faster" you mean "faster to program". In the case of many iterations of a loop, createElement() is faster for the browser to execute. .innerHTML...
  13. Replies
    10
    Views
    1,478

    What markup language and version are you using? ...

    What markup language and version are you using? If you're using XHTML, it will fail in some browsers because the "script" content model is NOT empty. The browser expects something to be between the...
  14. function toDecimal(number, decimal) { return...

    function toDecimal(number, decimal) {
    return Math.round(number * Math.pow(10, decimal)) / Math.pow(10, decimal);
    }

    alert(toDecimal(3.897797, 1));


    There's also:
  15. Replies
    9
    Views
    3,430

    Very nice. Glad you were able to figure it out.

    Very nice. Glad you were able to figure it out.
  16. By default, headers do start on a new line,...

    By default, headers do start on a new line, unless you're modifying them by element attributes or through the CSS. Also by default, they have margins above and below them and a larger font size.

    ...
  17. Yeah, I got excited by the report I just read...

    Yeah, I got excited by the report I just read from W3Schools which holds FF first, however I didn't even think to look at their source... it's their own website, who's audience generally seeks out...
  18. Edit>> Sorry, I misread what you were looking for.

    Edit>> Sorry, I misread what you were looking for.
  19. Replies
    9
    Views
    3,430

    It sounds like your spring-back animation is the...

    It sounds like your spring-back animation is the problem. Can you post that script? I suspect it's because you're not really creating a true animation queue, so stop() doesn't really have anything...
  20. Replies
    9
    Views
    3,430

    Have you tried using stop() separately? ...

    Have you tried using stop() separately?


    $("#background").mousedown(function(){
    $("#background").stop(true, false);
    });
  21. Whether or not HTML5 validates as HTML 4.0, the...

    Whether or not HTML5 validates as HTML 4.0, the link that the OP provided saying it's not a "logoable" website actually has a logo at the very bottom for just that: http://www.w3.org/QA/Tools/Icons
    ...
  22. Nice, well then that's good. If it works, it...

    Nice, well then that's good. If it works, it works! Strange that I still get the confirmation in my IE9, but like you said, it doesn't matter. Excellent, good luck with the app!
  23. Replies
    9
    Views
    3,430

    I think the :not() condition will work with...

    I think the :not() condition will work with :animated


    $('#animated:not(:animated)').animate( ...

    Edit>> Actually that would prevent the dragging animation altogether. You might try stopping...
  24. Yes, some things will still work in some...

    Yes, some things will still work in some browsers, but in Firefox, currently the most widely used browser, it won't work properly. In fact, it won't work in IE9 either, even in IE8 mode.

    I'd...
  25. No way to actually maximize it, but you can make...

    No way to actually maximize it, but you can make it the width and height of the screen and move it to the top left position:


    window.moveTo(0,0);
    window.resizeTo(screen.width,screen.height);
Results 1 to 25 of 491
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles