Good thoughts and suggestions - thanks
I'll see if I can make a 'case' for the extra coding overhead.
1. a gazillion connections if I have to send html in little pieces all
the time - i am very very concerned about overloading the servers (total
80cores - 160gigs of ram - ~500gigSSD - not shared 100meg connection -
internal network between the nodes is gigabit) --- with the json method -
we do the initial DB dump - then each selection is sent to the servers
2. when the session starts I put the entire menu db (max 2100 items -
average is only about 150 items) as a var in the page
3. i use that data to draw the menus and the submenus(submenus are
dynamically shown as a client selects them)
4. once an item is selected it's displayed in the list of selected items
-- i also tee that process and send a json packet to the server
5. we are only supporting ipads
Make sense? -- if not let me know ..
On Fri, Nov 11, 2011 at 4:29 AM, Eric <lefauv...@gmail.com> wrote:
> On Nov 9, 8:34 pm, Victor <vkhomyac...@gmail.com> wrote:
> > So you plan to receive JSON from server, then convert it to HTML and
> > into page? HTML fragments are much easier in
> I am not so sure about this.
> It really depends of what you want to do with the result from the
> If it is text/image and more or less static stuffs, you may return
> HTML fragments, but if you plan to store/use those data for
> computation, JSON return is definitely the best choice.
> Also HTML fragments don't allow to do everything on all browsers
> (things like inserting rows into an existing table or options into an
> existing select tag for example are known to cause issues).
> Like Richard said, templates are a good choice here too if your data
> are often formatted in the same way.
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at