Solved

JavaScript Undefined Function

Posted on 2012-12-26
3
581 Views
Last Modified: 2012-12-27
Hi

I require some help with my JavaScript - I trying to learn Web development along with Java Script by watching some JavaScript videos on Channel9 (JavaScript for Absolute Beginners - Bob Tabor).
While everything works just fine in the demonstration videos I run into problems when I enter and execute the same code (I believe to be the same code) on my computer.
Using the IE9 - F12 Developer Tools  it keep telling me I'm either missing a ';'  and/or my Function is undefined - see attached files.
I've checked and double checked my code against what is presented in the training videos but I can't spot what I'm doing wrong.
My computer is running under Vista and I have IE9 installed.
The video demonstartion JavaScript code is very simple and basic but I can't seem to get beyond square 1.
Any help would be much appreciated.
Java---Lesson-6.png
Java---Lesson-7.png
0
Comment
Question by:Adlerm
3 Comments
 
LVL 28

Accepted Solution

by:
chilternPC earned 200 total points
ID: 38722533
put the "If" in lower case "if"
0
 

Author Closing Comment

by:Adlerm
ID: 38723319
chilternPC - Thank you so much - a lesson well learnt. It never even crossed my mind that the JavaScript language was case sensitive. Even the second problem - Function ==> function now works. Again many thanks.
Cheers
Michael
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question