GithubHelp home page GithubHelp logo

ajaxml's Introduction

/*
* AjaxML v1.0
* 
* Copyright 2012, Accorpa, LLC
* Licensed under GPL Version 3 License
* http://www.gnu.org/licenses/gpl-3.0.txt
*
* download: https://github.com/Accorpa/AjaxML
*/

Declarative Ajax Toolkit:
=-=-=-=-=-=-=-=-=-=-=-=-=
    AjaxML is a set of functions that allow you to declare Ajax behaviour in your web pages with as little coding as possible. In fact, if you have no special needs beyond basic XHR use, you need no code at all.
	
    The idea is simple. A set of attributes added to your web page elements specify what you need to be done. The javascript code is automatically injected once you include "ajaxml.js" in the page.

Issues:
=-=-=-=
    AjaxML can be seen as a small addition to HTML. Although currently reported as invalid in strict XHTML, no exceptions will be raised.

    The first implementation uses (and thus requires) jQuery for cross-browser compatibility. Support for other libraries is being considered.

    The first implementation handles HTML data. It does not automatically handle JSON, XML, or XSL transformations on returned data. These are being developed and tested and will be released shortly.

    Special handling for Ajax-enabled widgets is also being developed. The first widgets to be supported will be jQuery UI components. More will be coming shortly.
	
	
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dependencies:
=-=-=-=-=-=-=
    * jQuery 1.7.2 - http://docs.jquery.com/Downloading_jQuery
    * Hashchange 1.3 - https://github.com/cowboy/jquery-hashchange/tree/v1.3
    * Ajax Loading Animations - http://ajaxload.info/


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Basic Usage:
=-=-=-=-=-=-
    1) Put this line in <head>: 
        <script type="text/javascript" src="jquery.js"></script>
    2) Followed by this line in <head>: 
        <script type="text/javascript" src="jquery.hashchange.js"></script>
    3) Followed by this line in <head>: 
        <script type="text/javascript" src="ajaxml.js"></script>
    4) For any hyperlink to be ajaxified add attribute into: 
        <a href="/example.html" into="some_target">Ajaxify This</a>
    5) Put the id of the reciever the same as the value of into: 
        <div id="some_target">Response will be placed here</div>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Full Documentation and Live Demo:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    For full documentation and live demonstration, please visit http://www.ajaxml.com

ajaxml's People

Contributors

accorpa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.