OZONE Asylum
Forums
DHTML/Javascript
How do I code Javascript unobstru..unostrub...unobs..uno..u n o b t r u s i v e l y
This page's ID:
30385
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
REST stands for [url=http://en.wikipedia.org/wiki/Representational_State_Transfer]Representational State Transfer[/url]. It basically describes a way to access/touch ressource via a (meaninful) URI, a verb ( the HTTP Method, e.g.: GET, POST, DELETE, ... ) and a Content-type. See [url=http://www.infoq.com/articles/rest-introduction]A brief introduction to REST[/url], [url=http://wiki.developer.mindtouch.com/REST/REST_for_the_Rest_of_Us]REST for the rest of us[/url] and [url=http://tomayko.com/writings/rest-to-my-wife]How I explained REST to my wife[/url] for further explainations. How to attach the delete function ? just add a [b]click[/b] event listener on the first common parent* of the delete links. When your callback function is fired, bubble up until you meet said common parent or an [b]A[/b] tag, in which case you look at the [i]href[/i] and cancel the event and do the AJAX magic if it matches a pattern of your REST API. * this is event delegation, and saves you to attach the event listener on each and every item. Is it a bit more clear ? [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 07-02-2008 13:36)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »