Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT



AJAX NEWS
My-BIC = Easy Ajax : Ver 0.6 Released - Client Side JSON encoding and Network Down Handling
04/01/2006, By Ajax Impact News



Looking for some Ajax/PHP library that have feature like JSON Client Side Encoding and Network Down Protection.

Jim Plush today released the new version of My-Bic library, an AJAX/PHP implementation. The new version has two major features: JSON client side encoding and network down handling.

My-BIC provides support for XML, JSON and TEXT ajax transactions. My-BIC has also been tested to work with Safari, Firefox, IE and Opera web browsers

Client side JSON encoding will allow you to send more complex structures to your PHP script and they can get converted to normal PHP objects. The other major feature is handling network down issues. For example if your client script cannot get a response back from the server My-Bic will now allow you to define your own network down function or you can use the default method which creates a div on the screen alerting the user of network issues. If there are 3 requests that fail in a row My-Bic disables itself until the page is reloaded. All of those settings are configurable so you can change or override them.

Jim Writes "After tiring of over hyped ajax frameworks trying to hide the guts that make ajax programming fun I decided to share my recipe for easy to make ajax applications where you still have control over everything, but the setup of it all is handled for you. This is a basic state of mind system rather than a framework. I offer you 3 files and a design pattern that allows you to focus on making things happen rather than setting things up."

My-Bic is a very simple concept, we keep javascript and PHP seperate instead of trying to mash them together. This concept allows you to use the client side framework with whatever backend language you choose and gives you COMPLETE control over everything.

Some of the new features added are:

  • Easy Forms - one function call will take all your form values and create a pretty little query string for you ajaxObj.getForm('formid');


  • JSON Client Side Encoding - Now you can send and receive JSON encoded data from client or server!


  • Network Down Protection - MyBic can help to detect when the server is down and will disable itself from making more calls


  • Submission Queue built-in - All of your AJAX requests will be sent in the correct order, all requests are stored in the queue to prevent overwriting


  • Debugging Aid - just set ajaxObj.debug=1; and you will get a little popup that gives you info on your current request/responses


  • Sample Demos:

  • Online NoteBook Demo - click me


  • Changing Views from a Drop Down - click me


  • Download the latest source code from here.

       Read More...


     Rate this Ajax News
    Error connecting to mysql