Dr. Ebrahimi - Web Technology and Network Management in Fall 2007

Home  |  Syllabus Journal Assignment   | TestsResearch  |  Gallery

Journal- Thursday, October 31, 2007

 

 

How to make a web program running

    a) Edit a program ( to type) can be edited in notepad, geocities (web hosting), FrontPage, and anything that lets you save it as a text.( ex: word pad, Microsoft word)

    b) Interpreter a program  ( make understandable for computer (activate))

                We are going to use Java or VBscript and browsers understand these 2 languages

Compiler- takes whole program and translates it. example: C++

Interpreter- translate sentence by sentence

Java script is built into HTML.

Language there is decision making

Every HTML you should have head and you should have body.

Head it to put program there

Body to activate the program

 

When there is an error in code in preview this message pops up

Char: the column

Syntax error: wrong spelling

Script language is used for validation( check for error) because data is in the server

 

Code

<html>
<title>figure it out</title>
<head>
<script language= "javascript">
function buttonPressed()
{
searchForm.result.value ="Match not found";
document.write ("Match found");
return -1;}
</script>
</head>
<body>
<form name="searchForm"><p> ENTER THE PERSON'S ID <br>
<input name="inputVal" type="text" size="32">
<input name = "search" type= "button" value= "Just Do IT"
oneclick= buttonPressed()"><br></p>
<p> result <br>
<input name= "result" type="text" size="30"></p>
</form>
</body>
</html>

Preview

ENTER THE PERSON'S ID

 

result