|
Write a comment |
Articles |
DHTML Gallery |
.NET |
MyBlog |
About Me |
FAQ
|
|
|
Doing AJAX with popular javascript libraries
| Basic | Prototype.js | Dojo Toolkit | Yahoo UI Library | ASP.NET | Rails |
Yahoo UI Library
<script type="text/javascript" src="yahoo/yahoo.js"></script>
<script type="text/javascript"
src="connection/connection-min.js"></script>
var handleSuccess = function(res)
{alert(res.responseText);}
var handleError = function(err)
{alert('Something went wrong');}
var callback =
{
success:handleSuccess,
failure: handleError ,
argument: { uid:"A", pwd:"B" }
};
function ValidatePwd() {
var request = YAHOO.util.Connect.asyncRequest('GET',
'http://ashishware.com/login.cgi', callback);
}
</script>
The following links contain more information: http://developer.yahoo.com/yui/examples/connection/get.html http://developer.yahoo.com/yui/examples/connection/post.html
| Basic | Prototype.js | Dojo Toolkit | Yahoo UI Library | ASP.NET | Rails | |
| Copyright (c) 2007-2008 Ashish Patil . Please read FAQ for more details. |