> Yes, that's probably a relatively good meantime solution - however,
> I'll probably have to write something ugly to access the DOM from
> node...
Without knowing your App in detail you don't need to. The tendancy is
to write the server-end in node only caring for the things you need
the server for, and the frontend in Browser Javascript which does all
the markup. Then have both communicate with each other via JSON. You
should not need to access some DOM specifics from node. Of course you
can easily do your JSON-based call to do that, but it would be far
more elegant to have the communication on a more abstract level.
Instead of for example server saying "write headline, make it bold,
and red, and write warning", you just send "{cmd: warning}" and have
the browser client do the markup.
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en