Solved

JavaScript Undefined Function

Posted on 2012-12-26
3
587 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

827 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