1
Set 6: Web Development Toolkits
IT452 Advanced Web and Internet Systems
Why Use a Toolkit?
- Choices
Set 6: Web Development Toolkits Why Use a Toolkit? Choices jQuery - - PDF document
IT452 Advanced Web and Internet Systems Set 6: Web Development Toolkits Why Use a Toolkit? Choices jQuery www.jQuery.com Yahoo! UI Library (YUI) developer.yahoo.com/yui Google Web Toolkit Dojo Prototype more 1
$('#target').append("<p>"+data+"</p>").css("color","blue"); },
function handleResponse(resp) { // Get all all the apples from XML var list=resp.getElementsByTagName("apple"); for (var ii=0; ii<list.length; ii++) { var str = list[ii].firstChild.nodeValue; $("div").append("<li>"+str+"</li>"); } $("li").css("color","red"); } function sendRequest() { // Setup your Ajax settings. var ajaxSettings = { type: "POST", url: "data.xml", data: "name=mcdowell&location=USNA", success: handleResponse, error: function(xhr, status, error) { alert("error: " + error ); } }; // Make the call. $.ajax(ajaxSettings); }
<head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="jquery.autocomplete.css"> <script type="text/javascript" src="jquery.autocomplete.js"></script> <script type="text/javascript"> function myonload() { $("#query").autocomplete({ url: 'search.pl', minChars: 1, useCache: false, filterResults: false, }); } </script> </head> <body onload=“myonload()"> <form> <p>Local data: <input type="text" id="query" /> </form></body>
#!/usr/bin/perl use strict; use CGI qw( :standard ); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); print "Content-Type: text/plain; charset=UTF-8\n\n";
while( my $line = <IN> ) { print "$line"; } close IN;