by Elisabeth Robson | Jul 7, 2012 | Beginner's Mind, blog, Programming, Reader Question
Another great question from a reader of Head First HTML5 Programming is about passing functions as values. This comes up when using the Geolocation API: the way you get your location is to call the built-in function getCurrentPosition() and pass in two arguments, both...
by Elisabeth Robson | Jul 6, 2012 | Beginner's Mind, blog, Programming, Reader Question
A couple of weeks ago, I got a great question from a reader of Head First HTML5 Programming: What is a API? Is it like a constructor function or is it just an object or something else? We use the term “API” frequently in Head First HTML5 Programming...
by Elisabeth Robson | Feb 16, 2012 | blog
Web Sockets is a new addition to HTML5 that allows you to create a persistent connection with a server for communication. With Ajax, because you’re using HTTP to communicate, the connection between your client and the server must be reestablished each time you...
by Elisabeth Robson | Feb 14, 2012 | Beginner's Mind, blog, CSS, Reader Question
We recently got a question from Michael, who asks: When troubleshooting CSS issues, how can I determine the source of a style that is applied to an element? My favorite way to figure out how an element is getting its style is to use the Element inspector in the Safari...
by Elisabeth Robson | Jan 19, 2012 | Beginner's Mind, Programming, Reader Question
I got a good reader question today about incrementing variables. This reader is completely new to programming and was getting confused about two common ways to increment variables: count = count + 1; a statement that often appears in a while loop, and i++; a statement...
Comments