Re: Web application



On Jan 10, 2:43 pm, Pascal Costanza <p...@xxxxxxxxx> wrote:
However, what I need is a way to trigger updates of a web page from the
server side, so that it can reflect state changes. I guess I need
something like Ajax for that, or so.

Can somebody recommend what libraries are good for that, and share some
experiences wrt things to watch out for? Also comments on what to avoid
would be useful.

With anything AJAX a library (for the client) is pretty much a must
(unless you like fiddling with little pieces of minutia in
javascript), because there's a fair amount of boilerplate needed for
just one request, and for added fun, the boilerplate changes slightly
from browser to browser.

There are several good ones out there, but right now I am really happy
with <a href="http://jquery.com/";>jQuery</a>. jQuery makes
javascripting so much easier, and the plug-in model for functionality
is very nice. jQuery does Ajax out of the box, and can support most
of what you need, and can get as simple as this:

<a href="http://docs.jquery.com/Ajax/load#urldatacallback";>Ajax/load</
a> the example there shows one line of code which will find the DOM
element with the ID "links", make an Ajax request to get new content
from the server, and put it in that DOM element.

Any good library should give you something close, but this seems to me
to be the simplest and also a well supported way to go.

I've even tried rolling my own Ajax code, a while ago, before I knew
about jQuery. And jQuery has all the features I thought I wanted,
simpler, and tons of support testing across browsers etc.


That may or may not have been a tangent, because the question was also
about lisp libraries for supporting this kind of thing. I don't have
any experience with lisp libraries for writing javascript or
simplifying the Ajax. For the kind of Ajax I do, I don't really see
the need. I use Allegroserve to produce my pages, and write the (what
little) javascript I need right into them. Although, I am finding the
escaping of quotes and things, along with formatting to be a bit of a
pain, so I might (very soon) start exploring some alternatives, like
ParenScript. Or just make a reader macro to escape all my quotes for
me -- although that won't help with the formatting in emacs.
.



Relevant Pages

  • Re: Jquery, Dojo, or none for realtime display?
    ... Not too many in this NG will recommend one of those libraries. ... The first concern is that you are already doing 4 requests per second ... Introducing a library like jQuery or DOJO is the exact ... If you worry that your ajax implementation is not up to par and may ...
    (comp.lang.javascript)
  • Re: ASP.NET Ajax vs jQuery
    ... If you intend on heading to ASP.NET MVC, you have to really kludge things up to use ASP.NET AJAX. ... It has a lot of neat control extenders that you can use to adorn your ASP.NET Server controls to get some really great effects. ... Now, one thing you should realize, is the more you put on the client, the more likelihood you will get into a corner you can unpaint yourself from. ... This is less likely with OO style JavaScript libraries, of course, but there is a danger you will use more than one library and end up butting heads. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Javascript Library
    ... I have been using YUI for almost two years. ... I have come to believe lately that there are no real helpful AJAX ... libraries and that the task of cobbling together your own AJAX object ...
    (comp.lang.javascript)
  • Re: ASP.NET Ajax vs jQuery
    ... other than webservice call support, ... asp.net ajax tries to make javascript and dom programming look like .net programing and implements a class and event model that looks like the ..net world. ... Jquery is a popular library for javascript developers. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Continuous Form
    ... Check out jQuery. ... libraries which also have built-in support for AJAX...cakePHP, ... has helpers available for AJAX too. ... projects typically roll out without much DOM manipulation, ...
    (comp.lang.php)

Loading