Thanks for the advice Leon, will do a bit more digging of my own, but also 
rethink approach.

I don't need to support updates, but an XMLHttpRequest could still do the trick.

Was this the right forum to ask this question? (new to the Haskell community 
generally and Snap/heist etc in particular)

cheers, Todd

On 25/04/2011, at 7:46 PM, Leon Smith wrote:

> On Mon, Apr 25, 2011 at 3:09 AM, Todd Porter <[email protected]> wrote:
> 
> I'd have to dig into this issue;  sadly I've not made effective use of
> Heist on my current project.  And that's not saying anything bad about
> Heist, but rather my (lack of) skills relating to frontend work,  and
> my current priorities.
> 
>> I guess more broadly, am I taking the right approach to this?
>> 
> 
> I'd ask,  why not use an XMLHttpRequest to get the JSON data?   JQuery
> has functions to perform ajax requests with less hassle;  and many
> other libraries have comparable functions for convenience.
> 
> My suggestion does have the downside that this is two round trips from
> the client to the server instead of one.   But it can save bandwidth
> and processing over time if you find that you need to regenerate the
> entire page several times due to that one bit of data changing.
> 
>> Appreciate any guidance, cheers, Todd
>> _______________________________________________
>> Snap mailing list
>> [email protected]
>> http://mailman-mail5.webfaction.com/listinfo/snap
>> 

_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to