JavaScript “Hello World” in Microsoft Visual Studio 2012

Slides:



Advertisements
Similar presentations
Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Creating and Editing a Web Page Using Inline Styles
Using Advanced Cascading Style Sheets
CSD 340 (Blum)1 Using Microsoft Visual Studio.NET Development Environment and Introducing Functions.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
JavaScript “Hello World” in Microsoft Visual Studio August 2012.
Images: HTML and CSS. The Bells page without images in Source View and Design View.
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Making a PowerPoint Slide By Ms. Wesley. Creating Your PowerPoint Slide Learn how to: – Open PowerPoint ………………………….…….………Slides 3, 4Open PowerPoint –
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Microsoft Expression Web-Illustrated Unit I: Working with Tables.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Project 2 Adding Web Pages, Links, and Images Dreamweaver MX 2004 Concepts and Techniques.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
Quick guide on making PowerPoint slides  PowerPoint is a presentation program  A PowerPoint slideshow is a stack of slides being presented one after.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
PHP Form Introduction Getting User Information Text Input.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Layers, Image Maps, and Navigation Bars
15.1 Fundamentals of HTML DeKalb County School System.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Creating and Editing a Web Page
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Creating and Editing a Web Page Using Inline Styles
Making a webpage using DreamWeaver CSC 152 (Blum)1.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Dive Into® Visual Basic 2010 Express
Windows Tutorial 3 Personalizing Your Windows Environment
Visual Studio 2010 Hello World CSC 230.
Chapter 2: The Visual Studio .NET Development Environment
JavaScript “Hello World” in Microsoft Visual Studio 2013
Chapter 2 – Introduction to the Visual Studio .NET IDE
ASP.NET Web Controls.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
Program and Graphical User Interface Design
Chapter 2 Adding Web Pages, Links, and Images
Visual Studio 2010 Hello World CSC 230.
NORMA Lab. 7 Generating Reports More Display Options
Integrating JavaScript and HTML
Dreamweaver 8: Introduction
Select tags CSD 340 (Blum).
Presentation transcript:

JavaScript “Hello World” in Microsoft Visual Studio 2012 August 2013

Start/All Programs/Microsoft Visual Studio 2012/Microsoft Visual Studio 2012

Select “General Development Settings” click Start Visual Studio

Takes a while the first time Takes a while the first time. Close Help Content Manager dialog (in lab , you don’t have the necessary permissions)

On menu go to File/New/File

Choose HTML Page and click Open

Click the mouse on the Toolbox icon on the left – the Toolbox slides out. Click on the tack icon to “pin” it into place.

Expand the HTML portion of the Toolbox

On the menu go to File/Save HTMLPage1 On the menu go to File/Save HTMLPage1.htm As… (or perhaps File/Save Solution As)

Use Safe File As dialog box to choose location (you might make a new folder) and name of file. Click Open. You might have to do the “solution” and then the file.

File created shown in Windows Explorer

Go to Start/Control Panel. Switch the View By to Small icons

Choose Folder Options.

On View tab of Folder Options dialog box, uncheck “Hide extensions for known file types”. Click OK.

Windows Explorer now showing file extension

Between the open and close <title> tags change the text to “Hello World”

Go to File/View in Browser

Page so far – nothing in the “body” the title showing on the tab bar.

Drag an Input (Button) from the Toolbox onto the page between the <body> tags. Change its id attribute to btnHello and its value attribute to Hello.

Drag a Div from the Toolbox onto the body

On the menu go to View/Properties Window

With the div highlighted, use the Properties window to give the div and id of “divMessage”

Same effect could be achieved by just typing in the opening <div> tag

Click on “Design” at the bottom to see the Design view – approximately what it would look like in a browser

Or you might like Split view

In Design view, double click on button. Effect 1 In Design view, double click on button. Effect 1. It adds the onclick attribute to the input element.

Effect 2. Open and close <script> tags

Effect 3. Makes boilerplate for function associated with onclick

Inside the function (between curly brackets) start typing the word “document”. Notice the IntelliSense help (drop-down).

After “document” type a dot (period) and start typing “getElementById” After “document” type a dot (period) and start typing “getElementById”. See IntelliSense. Watch capitalization. JavaScript is case sensitive.

In parentheses and quotes type divMessage – it must match the id of your <div>

Next type a dot and innerHTML (note the IntelliSense).

Type an equal sign followed by “Hello World” (with quotes) and a semicolon

Save. Then File/View in Browser. Test code by clicking on button