Server-side jQuery, E4X, and more with Jaxer
Davey Waterson of the Aptana Jaxer team has posted an article on using jQuery on the server-side with E4X and more that shows an example of server-side Ajax with a popular framework.
The article describes a polling application that features:
- Using jQuery server-side to manipulate a DOM before it’s sent to the client
- Doing some database / SQL interactions, server-side in javascript of course
- User sessions in javascript (Jaxer.session.set(’status’, status);)
- Using E4X on the server-side.
There are fun little features such as nuking portions of the page if the permissions call for it:
-
-
$((status == ‘voter’) ? ‘.nonvoter’ : ‘.voter’).remove();
-
Since the application delivers no JavaScript itself, this would all work even if the user has JavaScript turned off, on a simple mobile phone, etc.
Read more on the source site
No comments yet.
feel free to leave a comment
Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs are automatically generated. Off-topic or inappropriate comments will be edited or deleted. Email addresses will never be published. Keep it PG-13 people!
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
All fields marked with " * " are required.

