[Helma-user] Ajax

Maksim Lin for technical support mailling lists maksim_lin at ngv.vic.gov.au
Tue Oct 9 02:58:34 CEST 2007


Hi Kevin,

I have only done little bit of ajax with my helma aps so far, but I
would second Chris's suggestion to use seperate actions of ajax vs
"normal" full page rendering actions as this would also let you keep
your page rendering code separate from the ajax code that would normally
send back JSON or XML rather then full html pages.

Maks.

> -----Original Message-----
> From: helma-user-bounces at helma.org 
> [mailto:helma-user-bounces at helma.org] On Behalf Of Kevin Ethridge
> Sent: Tuesday, 9 October 2007 10:31
> To: Helma User Mailing List
> Subject: Re: [Helma-user] Ajax
> 
> Chris,
> Thanks for pointing out the code. I was just trying to get a 
> feel for how you guys coding ajax in your apps. I was just 
> trying to find some examples what would be considered, "good 
> coding style" for a helma app.
> I appreciate your time and the feedback.
> 
> Kevin
> 
> On Oct 8, 2007, at 6:59 AM, Chris Zumbrunn wrote:
> 
> >
> > On Oct 6, 2007, at 2:26 , Kevin Ethridge wrote:
> >
> >> Could anyone point out some ajax examples using Helma?
> >
> > Hi Kevin,
> >
> > You'll probably need to be more specific about what it is you are 
> > after. Due to the server-side use of Javascript and the 
> built-in way 
> > how Helma handles requests and sessions, there really is no 
> need for 
> > anything special on the helma server side. I can think of no ajax 
> > specific trick that your question could be fishing for.
> >
> > Anyway, a simple example where ajax is used is in the shell action 
> > that is part of the helmaTools module. In this case one 
> action handles 
> > both ajax and normal web requests and the code is a bit 
> convoluted in 
> > order to stay unobtrusive to the hosting app. Usually you would 
> > probably split that and simply handle the ajax requests 
> with actions 
> > dedicated for that purpose.
> >
> > 
> http://dev.helma.org/trac/helma/browser/apps/helmaTools/trunk/Global/
> > helma.shell.skin
> > 
> http://dev.helma.org/trac/helma/browser/apps/helmaTools/trunk/Global/
> > helma.shell.js
> >
> > Chris
> > _______________________________________________
> > Helma-user mailing list
> > Helma-user at helma.org
> > http://helma.org/mailman/listinfo/helma-user
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
> 
> 
> 


More information about the Helma-user mailing list