Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread David Morel


Le 6 mars 09 à 17:33, Francesc Romà i Frigolé a écrit :

 On Fri, Mar 6, 2009 at 6:43 AM, kakim...@tpg.com.auwrote:

 hello there,

  I would like to use AJAX in my catalyst app. Any good
  references/tutes
 to recommend?

 thanks.

 K. akimoto


 Hello,

 Depends on what do you want to do with AJAX. For example, if you want
 to do forms, I think it is a bit more complicated than suggested in
 previous replies.

 Ideally, for forms, you'd like to have some modules that magically
 initialize your forms with data from your model, then render a nice
 form with your favorite JS toolkit, using  AJAX for things like
 auto-complete with data from your model, validate the forms both on
 the client and on the server, and then update your model with the  
user

 submitted data.

 So far, I haven't found anything that does this for my tools of
 choice: DBIx::Class + Dojo

 There is HTML::FormFu::Dojo which sounds promising but hasn't been
 released yet. Check it out here: http://code.google.com/p/html- 
formfu/


Well, I don't know about Dojo, but I had to do this sort of things last
week (multiple forms on a page, with slide up  down, dynamically add
forms, update, display validation errors, etc). I started using Mootools
which I knew a bit, ran in a lot of issues, switched to jQuery which I
had no clue about and the thing was done in 10 lines of JS and 2 hours.

Of course HTML::FormFu powers it (it's a non-Cat app, made with mason),
but even without Catalyst, the simple FormFu + jQuery combination is
IMHO a killer. And I didn't even use the Forms plugin (which I should
probably have). I heard jQuery was crappy in some regards, notably
polluting the global namespace, which YUI takes care not doing IIRC, but
for what I had to do, using it was a real pleasure. It DWIM, easily,
and that's not so common.

D.Morel



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread kakimoto
hello, David,
   Sounds good.
For me, I have done away with html::Formfu, formbuilder and so forth
because my needs better met with manual old school html.

   Can you give us some links as a reference to the rest of us?


thanks

K. Akimoto


Quoting David Morel dmore...@gmail.com:

 
 Le 6 mars 09 à 17:33, Francesc Romà i Frigolé a écrit :
 
   On Fri, Mar 6, 2009 at 6:43 AM, kakim...@tpg.com.auwrote:
  
   hello there,
  
I would like to use AJAX in my catalyst app. Any good
references/tutes
   to recommend?
  
   thanks.
  
   K. akimoto
  
  
   Hello,
  
   Depends on what do you want to do with AJAX. For example, if you
 want
   to do forms, I think it is a bit more complicated than suggested
 in
   previous replies.
  
   Ideally, for forms, you'd like to have some modules that
 magically
   initialize your forms with data from your model, then render a
 nice
   form with your favorite JS toolkit, using  AJAX for things like
   auto-complete with data from your model, validate the forms both
 on
   the client and on the server, and then update your model with the 
 
 user
   submitted data.
  
   So far, I haven't found anything that does this for my tools of
   choice: DBIx::Class + Dojo
  
   There is HTML::FormFu::Dojo which sounds promising but hasn't
 been
   released yet. Check it out here: http://code.google.com/p/html- 
 formfu/
 
 Well, I don't know about Dojo, but I had to do this sort of things
 last
 week (multiple forms on a page, with slide up  down, dynamically
 add
 forms, update, display validation errors, etc). I started using
 Mootools
 which I knew a bit, ran in a lot of issues, switched to jQuery which
 I
 had no clue about and the thing was done in 10 lines of JS and 2
 hours.
 
 Of course HTML::FormFu powers it (it's a non-Cat app, made with
 mason),
 but even without Catalyst, the simple FormFu + jQuery combination is
 IMHO a killer. And I didn't even use the Forms plugin (which I
 should
 probably have). I heard jQuery was crappy in some regards, notably
 polluting the global namespace, which YUI takes care not doing IIRC,
 but
 for what I had to do, using it was a real pleasure. It DWIM, easily,
 and that's not so common.
 
 D.Morel
 
 
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/
 
 
 




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread David Morel


Le 10 mars 09 à 10:11, kakim...@tpg.com.au a écrit :


hello, David,
  Sounds good.
For me, I have done away with html::Formfu, formbuilder and so forth
because my needs better met with manual old school html.

  Can you give us some links as a reference to the rest of us?


Mmmh maybe you should think again, because I found FormFu so unobtrusive
that i could use it without any change with our current design.

The thing is, of course it's better to use a model and the full feature
set FormFu provides, but if you can't or won't have time to fuly grasp
everything in the docs (i didn't yet) you can still use it in a limited
although powerful way. This has saved me a lot of time already and I
didn't even scratch the surface of it.

As far as jQuery goes, i found the documentation  located here extremely
easy to browse and useful: http://visualjquery.com/

D.Morel



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread kakimoto
hello, David :)

  yep I do know that things like FormFu and FormBuilder are good but for
Perl people who maintain existing applications that have not ever
touched these form packages and Catalyst, it seems like a whole new
world . Add the requirement to get a prototype up pretty soon, and the
learnign curve really turns them off.
 What I think is needed is a good tute on how to use Form fu in catalyst
for applications that are not so simple (ie not just any basic blog
application). Something closer to the real world.


anyway, thanks for your  http://visualjquery.com/ link. Will hop to it!


K. akimoto



Quoting David Morel dmore...@gmail.com:

 
 Le 10 mars 09 à 10:11, kakim...@tpg.com.au a écrit :
 
  hello, David,
Sounds good.
  For me, I have done away with html::Formfu, formbuilder and so
 forth
  because my needs better met with manual old school html.
 
Can you give us some links as a reference to the rest of us?
 
 Mmmh maybe you should think again, because I found FormFu so
 unobtrusive
 that i could use it without any change with our current design.
 
 The thing is, of course it's better to use a model and the full
 feature
 set FormFu provides, but if you can't or won't have time to fuly
 grasp
 everything in the docs (i didn't yet) you can still use it in a
 limited
 although powerful way. This has saved me a lot of time already and I
 didn't even scratch the surface of it.
 
 As far as jQuery goes, i found the documentation  located here
 extremely
 easy to browse and useful: http://visualjquery.com/
 
 D.Morel
 
 
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/
 
 
 




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread Mesdaq, Ali
Not sure if this is even relevant anymore to this discussion but maybe this 
will help
http://www.catalystframework.org/calendar/2008/24


-Original Message-
From: kakim...@tpg.com.au [mailto:kakim...@tpg.com.au] 
Sent: Thursday, March 05, 2009 9:44 PM
To: The elegant MVC web framework
Subject: [Catalyst] Catalyst - any good AJAX tutes?

hello there,

 I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?

thanks.

K. akimoto


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


 Protected by Websense Hosted Email Security -- www.websense.com 

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Neo [GC]

Hi,

depends on the javascript-lib you are using for AJAX. Catalyst just 
builds a template, which is interpreted clientside by the AJAX-lib. This 
might be XML, JSON, plain HTML or $something. For the webserver / 
Catalyst, the requests look like any other normal HTTP-request.



Greets,
Thomas Weber


kakim...@tpg.com.au schrieb:

hello there,

 I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?

thanks.

K. akimoto


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
  


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread David Dorward

kakim...@tpg.com.au wrote:

 I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?
  
Ajax just comes down to making HTTP requests without leaving the page 
using JavaScript. There isn't really anything Catalyst specific about 
it (except possibly a mention that Catalyst::View::JSON could be useful 
for presenting data in a way that is easy to parse using JavaScript).


For some general Ajax material I would suggest 
http://domscripting.com/blog/display/41 and a library such as 
http://developer.yahoo.com/yui/connection/


--
David Dorward
http://dorward.me.uk/



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Chisel Wright
On Fri, Mar 06, 2009 at 04:43:36PM +1100, kakim...@tpg.com.au wrote:
  I would like to use AJAX in my catalyst app. Any good references/tutes
 to recommend?

It's just like using ajax anywhere else. Find a library you like, and
start using it.
View::JSON can be useful in sending responses to AJAX-y requests.

I've settled on YUI, but a quick google will reveal many other
libraries. (script.aculo.us, dojo, jquery, ...)

-- 
Chisel Wright
e: chi...@herlpacker.co.uk
w: http://www.herlpacker.co.uk/

  Rhinology Weevils

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Kieren Diment


On 06/03/2009, at 8:56 PM, Chisel Wright wrote:


On Fri, Mar 06, 2009 at 04:43:36PM +1100, kakim...@tpg.com.au wrote:
I would like to use AJAX in my catalyst app. Any good references/ 
tutes

to recommend?


It's just like using ajax anywhere else. Find a library you like, and
start using it.
View::JSON can be useful in sending responses to AJAX-y requests.

I've settled on YUI, but a quick google will reveal many other
libraries. (script.aculo.us, dojo, jquery, ...)



I seem to recall the last time I did any ajaj-ey stuff it was to  
render a json tree to the browser using DBIx::Class::Tree and  
serialising it to JSON.  The only tricky thing for me was remembering  
how to use javascript again (I don't do much js).  After that it was  
just a matter of using Catalyst::View::JSON to send the tree to the  
browser.  Really not much to it at all.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Neo [GC]



Kieren Diment schrieb:


On 06/03/2009, at 8:56 PM, Chisel Wright wrote:


On Fri, Mar 06, 2009 at 04:43:36PM +1100, kakim...@tpg.com.au wrote:

I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?


It's just like using ajax anywhere else. Find a library you like, and
start using it.
View::JSON can be useful in sending responses to AJAX-y requests.

I've settled on YUI, but a quick google will reveal many other
libraries. (script.aculo.us, dojo, jquery, ...)



I seem to recall the last time I did any ajaj-ey stuff it was to 
render a json tree to the browser using DBIx::Class::Tree and 
serialising it to JSON.  The only tricky thing for me was remembering 
how to use javascript again (I don't do much js).  After that it was 
just a matter of using Catalyst::View::JSON to send the tree to the 
browser.  Really not much to it at all.
To anyone: Be careful when converting perl-datastructures to JSON. I 
remember having a problem with boolean values, as javascript knows real 
booleans while perl uses 0 and 1. use JSON did have some magic 
settings to prevent a boolean 0/false to be sent as string false, 
which is interpreted as boolean true in javascript.
I will ask my collegue, where he has hidden his solution / the cause of 
the problem (of course, if int 0 and 1 is sent, js casts int 0 to 
boolean false).


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Peter Corlett

On 6 Mar 2009, at 10:33, Neo [GC] wrote:
[...]
To anyone: Be careful when converting perl-datastructures to JSON. I  
remember having a problem with boolean values, as javascript knows  
real booleans while perl uses 0 and 1. use JSON did have some  
magic settings to prevent a boolean 0/false to be sent as string  
false, which is interpreted as boolean true in javascript.
I will ask my collegue, where he has hidden his solution / the cause  
of the problem (of course, if int 0 and 1 is sent, js casts int 0 to  
boolean false).


I solved that problem in one of my projects by explicitly putting  
JSON:: constants into the data structure like so:


$c-stash-{myjsonresponse} = {
 boolean = $myboolean ? JSON::true : JSON::false,
}



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Stuart Watt
I've had some very good results with Dojo and Catalyst for AJAX. A 
couple of components in our app show this exceptionally - a table of 
contents based on a folding tree, and a grid backed by an SQL query, 
using to display filtered search results in different sort orders, etc. 
The grid will automatically request rows as it needs to, through a 
JSON-writing TT file, based on the built-in Dojo QueryReadStore - most 
of Dojo can use data stores that are backed in this way, and these can 
draw from most any request. Sorting was also more or less built-in.


The folding tree was harder, as we were stuck with a legacy XML format 
from the old Microsoft MSDN site. This was implemented by a view that 
generated JSON from the legacy XML. Both worked well for us, and allowed 
us to develop rich front-end behaviour while hiding all the awful parts 
that we wanted to abstract away from.


Dojo is weak in documentation compared to some, but rapidly improving. 
However, the main documentation site is pretty full of examples. Neither 
of these parts of the system ended up taking more than a couple of days 
to develop. If you stick close to the out of box functionality, all is 
fairly easy - if you want to develop your own widgets or data stores, it 
can get harder. Certainly, Catalyst made developing AJAX functionality 
in Dojo simpler and quicker than I had expected.


All the best
Stuart

Neo [GC] wrote:

Hi,

depends on the javascript-lib you are using for AJAX. Catalyst just 
builds a template, which is interpreted clientside by the AJAX-lib. 
This might be XML, JSON, plain HTML or $something. For the webserver / 
Catalyst, the requests look like any other normal HTTP-request.



Greets,
Thomas Weber


kakim...@tpg.com.au schrieb:

hello there,

 I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?

thanks.

K. akimoto


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/

Dev site: http://dev.catalyst.perl.org/
  


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/

Dev site: http://dev.catalyst.perl.org/

--
This message was scanned by ESVA and is believed to be clean.
Click here to report this message as spam. 
http://antispam.infobal.com/cgi-bin/learn-msg.cgi?id=8026A27FE8.9BC7B




--
Stuart Watt
ARM Product Developer
Information Balance
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Francesc Romà i Frigolé
On Fri, Mar 6, 2009 at 6:43 AM, kakim...@tpg.com.au wrote:


 hello there,

  I would like to use AJAX in my catalyst app. Any good references/tutes
 to recommend?

 thanks.

 K. akimoto


Hello,

Depends on what do you want to do with AJAX. For example, if you want to do
forms, I think it is a bit more complicated than suggested in previous
replies.

Ideally, for forms, you'd like to have some modules that magically
initialize your forms with data from your model, then render a nice form
with your favorite JS toolkit, using  AJAX for things like auto-complete
with data from your model, validate the forms both on the client and on the
server, and then update your model with the user submitted data.

So far, I haven't found anything that does this for my tools of choice:
DBIx::Class + Dojo

There is HTML::FormFu::Dojo which sounds promising but hasn't been released
yet. Check it out here: http://code.google.com/p/html-formfu/

cheers
Francesc
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Alexander Hartmaier
I'd suggest ExtJS if you want something pretty good looking with great
out-of-the-box features or YUI/jQuery if you like to stick with
JS-enhanced HTML.

The Dojo features + docs sucked *very* much when I used it about a year
ago...

On the Catalyst side I use Catalyst::Controller::DBIC::API which will
support the full DBIC API for searches, pagination and prefetch in the
next version which should be on CPAN in 2-4 weeks if lukes and I find
time to finish it.
trunk already contains my json-style search and pagination patches but
lacks prefetch support cause we need to find a way to restrict/validate
the user input to prevent huge queries killing the DB and/or revealing
data that shouldn't be revealed.

Help welcome ;-) (yes, I mean you Matt! that json in cgi param idea of
yours just rocks!)

-
Alex


Am Freitag, den 06.03.2009, 06:43 +0100 schrieb kakim...@tpg.com.au:
 hello there,

  I would like to use AJAX in my catalyst app. Any good references/tutes
 to recommend?

 thanks.

 K. akimoto


 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


***
T-Systems Austria GesmbH   Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
***
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
***

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Scott Pham (scpham)
I second that ExtJS recommendation. The user community is pretty good
from a support point of view. Once you get the hang of it, it's really
easy to do a lot of neat things with it.




-Original Message-
From: Alexander Hartmaier [mailto:alexander.hartma...@t-systems.at] 
Sent: Friday, March 06, 2009 12:14 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Catalyst - any good AJAX tutes?

I'd suggest ExtJS if you want something pretty good looking with great
out-of-the-box features or YUI/jQuery if you like to stick with
JS-enhanced HTML.

The Dojo features + docs sucked *very* much when I used it about a year
ago...

On the Catalyst side I use Catalyst::Controller::DBIC::API which will
support the full DBIC API for searches, pagination and prefetch in the
next version which should be on CPAN in 2-4 weeks if lukes and I find
time to finish it.
trunk already contains my json-style search and pagination patches but
lacks prefetch support cause we need to find a way to restrict/validate
the user input to prevent huge queries killing the DB and/or revealing
data that shouldn't be revealed.

Help welcome ;-) (yes, I mean you Matt! that json in cgi param idea of
yours just rocks!)

-
Alex


Am Freitag, den 06.03.2009, 06:43 +0100 schrieb kakim...@tpg.com.au:
 hello there,

  I would like to use AJAX in my catalyst app. Any good
references/tutes
 to recommend?

 thanks.

 K. akimoto


 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/



***
T-Systems Austria GesmbH   Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b

***
Notice: This e-mail contains information that is confidential and may be
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.

***

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread Jonathan Rockway
* On Fri, Mar 06 2009, Francesc Romà i Frigolé wrote:
 On Fri, Mar 6, 2009 at 6:43 AM, kakim...@tpg.com.au wrote:

 hello there,

  I would like to use AJAX in my catalyst app. Any good references/tutes
 to recommend?

 thanks.

 K. akimoto

 Hello,

 Depends on what do you want to do with AJAX. For example, if you want to do 
 forms, I
 think it is a bit more complicated than suggested in previous replies.

 Ideally, for forms, you'd like to have some modules that magically initialize 
 your
 forms with data from your model, then render a nice form with your favorite 
 JS toolkit,
 using  AJAX for things like auto-complete with data from your model, validate 
 the forms
 both on the client and on the server, and then update your model with the user
 submitted data.

 So far, I haven't found anything that does this for my tools of choice: 
 DBIx::Class +
 Dojo

We use JSORB for forms.

http://search.cpan.org/~stevan/JSORB-0.01/

Obviously, you are responsible for writing the JSORB endpoints, but
that's just a Simple Matter Of Metaprogramming (and is better than
fighting with form builders that don't quite work right).

Regards,
Jonathan Rockway

--
print just = another = perl = hacker = if $,=$

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-06 Thread kakimoto
hello, all :)

 thanks for the responses to help me out. I was wondering if there are
any good tutes that can be recommended for a perl programmer to

1) learn enough to set up the javascript itself ( be it in jQuery, dojo
or anything you prefer)
2) learn enough about how to intercept the ajax request in the
controller and send it back to the page ( ie JSON)? 

-tutes in relation to the cause above in areas of JSON (yes aside from
Catalyst::View::JSON) , jQuery or dojo would be really good.
 I am sure there's a lotta folks who got catalyst apps built (thanks,
Jon!) but have yet to use AJAX/JSON or any of these good stuff. Hence, a
lot of work has been put in place to reload forms, preserve parameter
values and so forth. With AJAX,i  guess we hope to cut down on
development time and also, to improve the application in terms of usability.


More recommendations/tute suggestions please :)


thank you :)

K. Akimoto


Quoting Jonathan Rockway j...@jrock.us:

 * On Fri, Mar 06 2009, Francesc Romà i Frigolé wrote:
  On Fri, Mar 6, 2009 at 6:43 AM, kakim...@tpg.com.au wrote:
 
  hello there,
 
   I would like to use AJAX in my catalyst app. Any good
 references/tutes
  to recommend?
 
  thanks.
 
  K. akimoto
 
  Hello,
 
  Depends on what do you want to do with AJAX. For example, if you
 want to do forms, I
  think it is a bit more complicated than suggested in previous
 replies.
 
  Ideally, for forms, you'd like to have some modules that magically
 initialize your
  forms with data from your model, then render a nice form with your
 favorite JS toolkit,
  using  AJAX for things like auto-complete with data from your
 model, validate the forms
  both on the client and on the server, and then update your model
 with the user
  submitted data.
 
  So far, I haven't found anything that does this for my tools of
 choice: DBIx::Class +
  Dojo
 
 We use JSORB for forms.
 
 http://search.cpan.org/~stevan/JSORB-0.01/
 
 Obviously, you are responsible for writing the JSORB endpoints, but
 that's just a Simple Matter Of Metaprogramming (and is better than
 fighting with form builders that don't quite work right).
 
 Regards,
 Jonathan Rockway
 
 --
 print just = another = perl = hacker = if $,=$
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/
 
 
 




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Catalyst - any good AJAX tutes?

2009-03-05 Thread kakimoto

hello there,

 I would like to use AJAX in my catalyst app. Any good references/tutes
to recommend?

thanks.

K. akimoto


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/