benjamin.morgan
Members-
Posts
38 -
Joined
-
Last visited
-
Days Won
1
benjamin.morgan last won the day on January 28 2013
benjamin.morgan had the most liked content!
benjamin.morgan's Achievements
Newbie (1/14)
6
Reputation
-
It does help for another set of eyes to look at it, but it also helps to read over it a few times, then take a break, and a couple of days later come back and study it, if you still can't find anything, dissect it and take it one line at a time! Read the logic out loud to make sure that is what you wanted. It has really helped me find errors in the code this way.
-
Assignment Operators
benjamin.morgan replied to pakoch's topic in Modern Javascript: Develop and Design
Basically it would be written as this. It just takes the discount value and subtracts it from the total and assigns the new value to the total variable. The second one would be the same except with the multiplication operator. total = total - discount; -
Mistake On Page 137
benjamin.morgan replied to pawelmhm's topic in Modern Javascript: Develop and Design
There is an errata page as well, http://www.larryullman.com/books/modern-javascript-develop-and-design/errata/ . That is one of the errors on there.- 1 reply
-
- 1
-
I think the hardest part for people losing weight is not just eating healthy, but forgetting to exercise (moderately for around 30 minutes a day). Daily exercise boosts metabolism so the calories burn off faster. I like to run, but I know a lot of people that like riding bikes or using an exercise bike. The problem for me is that I don't like eating healthy! Plus I love coffee.
-
Chapter 11 Contact Form
benjamin.morgan replied to Christopher Bergin's topic in Modern Javascript: Develop and Design
It's also in the errata. "The name and id values of the comments input need to be lowercase." -
Chapter 13 Jquery Widget
benjamin.morgan replied to Christopher Bergin's topic in Modern Javascript: Develop and Design
Which you can set a preset text before they enter a date as the value of the input. <!-- Will change when they click a date --> Date: <input type="text" id="datepicker" value="Please select a date!"> -
Chapter 13 Jquery Widget
benjamin.morgan replied to Christopher Bergin's topic in Modern Javascript: Develop and Design
I like to be safe than sorry, there has been plenty of times when I forgot that little function and couldn't get the script to work.. Even when I tested it it wouldn't work without the ready function. @Christoper, don't forget you can shorten the ready function to this if you like. $(function() { }); Basically the point of the post was to have an input element not a paragraph element. -
Chapter 13 Jquery Widget
benjamin.morgan replied to Christopher Bergin's topic in Modern Javascript: Develop and Design
jQuery (don't forget the document.ready function. <script type= 'text/javascript'> $(document).ready(function() { $('#datepicker').datepicker(); }); </script> HTML Date: <input type="text" id="datepicker" value="Please select a date!"> -
Mine is to become more advanced with PHP and get back in shape. Hopefully be able to run 2 miles in under 14 minutes. (Gonna take a lot of work for me) What are y'alls New Year Resolutions?
-
I do hope you mean index.php or the includes won't work. When viewing index.php view the source of the page. Click on the css link in the source. If it doesn't show the css and says something like page not found check the link. Find the stylesheet in the folder and open it in the browser. Compare the two links to check for any errors. Also make sure there are html and head tags, and all tags are closed properly.