Jump to content
Larry Ullman's Book Forums

WinstonMuijs

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by WinstonMuijs

  1. My question is about the source code.

     

     

    On page 116 the maxlenght="100" is placed by the comments textarea in the HTML.

     

    If i preview the page in chrome with DW- after setting up the source code and the JSfile - i can't enter more then a 100 characters in the comments textarea.

     

    That's not the purpose of the limitedText form, i think.

     

    If i put the line - maxlength...- within the results textarea, than it works great.

     

    What is wrong with this picture ...

     

    Did i something wrong or is it something else?

     

    BTW Larry

     

    It's a very practical, accessible, not to techical book. Great for a beginner like me....:)

    Book and Forum is an absolute winner...

  2. To get a clear picture of it all i have a couple of questions about javascript in general.

     

    example:

     

    var quantity = document.getElementById("quantity") --> document.getElementById is a method to call for a form element object?

    --> var quantity is a reference of that form element object quantity?

     

     

    var quantity = document.getElementById ("quantity").value --> document.getElementById("quantity") is still a form element object?

    --> var quantity is still a reference of the form element object quantity?

    --> var quantity gets the property "value" of the form element object quantity?

    --> So the value of var quantity is the property value?

     

    Thank you all

     

    Greetz

  3. I've a question about the code of chapter 4.

     

    When i test the calculator in a webbrowser ( for the testing i used 4 browsers), it doesn't perform any calculations...

     

    Is it about the script or is it a real working calculator? Am i missing something? Any HTML?, CSS? or JS?

     

    The tool doesn't calculate the total of any order, but only reset to the start value.

     

    I'm a noob when it comes to JS, so maybe i have missed something.

     

    Could someone shed some light on my problem?

     

    Thank you very much!

×
×
  • Create New...