My domain object is in a folder that both my server side code can get to it 
and client side can get to it.
I use require.js so that i can use the same .js in Node as well as a web 
browser.

When you click submit on a form in the web browser, Knockout.js populates 
my domain object then calls the isValid method on my domain object.
It then does an AJAX post to the server using JSON. The serverside 
repopulates the domain object and re-validates on server side.
If its valid, then processes, if not returns an error.

Hope that makes sense.

-- 
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

Reply via email to