Solved

JavaScript Undefined Function

Posted on 2012-12-26
3
608 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

696 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