Pull in News from Yahoo API Using JSON HTML

<!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>

source

Leave a Reply