My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: Nephtali
Feeds:
People details
Project owners:
  simpleshot

The Nephtali DOMAssistant plugin allows you to progressively enhance links and forms through use of the DOMAssistant Javascript library with just a few lines of code.

Nephtali's pages lend to progressive enhancement, as the html fragment for any dynamic region of a page can be retrieved through a RESTful API.

DOMAssistant provides an elegant interface to Javascript capabilities with fast processing.

The code below shows an example of code that wires up the Hijax functionality of the search form:

	$("#search").setNephtaliForm({	
		pipe : "yahooSearchResults",
		portGroup : "yahooSearch",
		invalidHandler : function(errors){
			$("#yahooSearchQ").setStyle("background-color", "#ffcccc");
		},
		responseHandler : function(htmlfrag){
			$("#canvas").replaceContent(htmlfrag);	
		},
		onLoading : function(){
			$("#canvas").replaceContent("<image src=\"http://nephtaliproject.com/images/ajax-loader.gif\" /> <span>Loading</span>");
			$("#yahooSearchQ").setStyle("background-color", "#ffffff");
		}
	});








Hosted by Google Code