Personally I don't like the GWT approach at all, more often than not
it seems that you have to get down to the JavaScript level to make
things work across all of the browsers. It might work if you're
actually using GWT which presumably has a LOT of engineering effort
put into it to make it work somewhat predictably, but I would never
bother trying to develop something like that myself.

What we do is write JavaScript code separate from the server-side
code, using JSON for communication. Writing JS code isn't that big of
a deal (given the proliferation of libraries and frameworks to cut
down some of the repetition), and there really isn't a whole lot of
client-server interface/protocol code bloat when you're just sending
JSON over the wire. I don't think I've ever had the problem where
changing something on one side breaks the other in such an
arrangement, you simply don't make incompatible changes to the JSON
object you're sending across the wire.

-bob

On Feb 18, 2008 1:35 AM, Dmitrii 'Mamut' Dimandt <[EMAIL PROTECTED]> wrote:
>
> A friend of mine has approached me with the following question: how do
> you handle Ajax in Erlang/ErlyWeb/Mochiweb/Yaws?
>
> He likes the approach that GWT has - you only have to worry about
> necessary functions once, the framework generates all the necessary
> boilerplate code for you.
>
> By boilerplate I mean the code that implements the necessary
> client-server interfaces and protocols that you don't need to check
> twice (once on the server and once on the client). You also don't have
> to worry about changing things on one side and breaking things on the
> other side, thus effectively halving the time you need to spend on
> testing and debugging.
>
> How do you add ajax to your apps and has anybody considered a GWT approach?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to