Return to Snippet

Revision: 2610
at March 14, 2007 07:44 by 1man


Initial Code
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<title>Javascript Testing</title>
		
		<!-- CSS Links -->
		<link rel="stylesheet" href="css/ajax.css" type="text/css" media="screen" />
		
		<!-- Scripts Here -->
		<script src="js/global.js" type="text/javascript"></script>
		<script src="js/yahoo.js" type="text/javascript"></script>
		
	</head>
	<body>
		<h1>Yahoo Search</h1>
		<form onsubmit="searchYahoo(this.query.value); return false" action="">
			<fieldset>
				<label for="">Search For</label>
				<input type="text" name="query" id="query" />
				<input type="submit" value="Search" />
			</fieldset>
		</form>
		<div id="results"></div>
	</body>
</html>

Initial URL

                                

Initial Description
The simple form that calls the searchYahoo function.

Initial Title
Pull in News from Yahoo API Using JSON HTML

Initial Tags
form, ajax, simple, json

Initial Language
HTML