ExpressJS + Jade Template: How to update a partial without refresh a page

2,412 views
Skip to first unread message

The Coder

unread,
Oct 16, 2011, 12:56:37 AM10/16/11
to nodejs
I need to refresh only the Partial Y

PS: See this image ( http://cl.ly/1P0X1g3q181m1p450n0l ) to
understand!

Thanks!

dvbportal

unread,
Oct 16, 2011, 2:54:29 AM10/16/11
to nod...@googlegroups.com
That's what Ajax is for. There is no premade lib for node though, but you can emulate it. On the server implement an API route that delivers the required data as JSON. On the client side use JQuery to call the API and rerender the div whenever you need an update.

For Node we need a port of a Java Faces lib. Is someone aware of any?

Dominic Tarr

unread,
Oct 16, 2011, 4:41:44 AM10/16/11
to nod...@googlegroups.com
I think substack made a thing that rendered jade on the browser,
On Sun, Oct 16, 2011 at 5:54 PM, dvbportal <dvbp...@gmail.com> wrote:
That's what Ajax is  for. There is no premade lib for node though, but you can emulate it. On the server implement an API route that delivers the required  data as JSON. On the client side use JQuery to call the API and rerender the div whenever you need an update.

For Node we need a port of a Java Faces lib. Is someone aware of any?

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

The Coder

unread,
Oct 16, 2011, 6:00:23 PM10/16/11
to nodejs
Very Very Thanks for all answer!

On 16 out, 05:41, Dominic Tarr <dominic.t...@gmail.com> wrote:
> I think substack made a thing that rendered jade on the browser,http://search.npmjs.org/#/jadeify

Tom Blobaum

unread,
Oct 16, 2011, 9:03:35 PM10/16/11
to nod...@googlegroups.com
You could do this with nodequery (which uses dnode and socket.io)

https://github.com/tblobaum/nodeQuery/

Tom

The Coder

unread,
Oct 17, 2011, 11:20:59 AM10/17/11
to nodejs
Thanks to all for the answers! :)
Reply all
Reply to author
Forward
0 new messages