Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   XML and HTML DOM in parallel (http://www.velocityreviews.com/forums/t591191-xml-and-html-dom-in-parallel.html)

manu3d 02-12-2008 04:36 PM

XML and HTML DOM in parallel
 
Hi everybody,

I'm having a lot of fun with XML+XSL generating XHTML+Javascript, but
I'm also having a bit of an issue with how to go back into the
original XML.

Specifically, thanks to Javascript I can create input fields and
selector menus on the fly accessing the HTML DOM. Basically the user
clicks on a some parts of the page text and it automagically becomes
editable or it transforms itself into a selection menu. But how do I
then update the original XML DOM? Can't I update -that- instead and
refresh the HTML DOM as a consequence?

Furthermore, how do I save back the DOM object into the original file?
A generic visitor using a browser doesn't normally have the permission
to overwrite existing file does it?

Thanks for your help.

Manu

Joseph Kesselman 02-12-2008 09:03 PM

Re: XML and HTML DOM in parallel
 
manu3d wrote:
> Furthermore, how do I save back the DOM object into the original file?
> A generic visitor using a browser doesn't normally have the permission
> to overwrite existing file does it?


No, it doesn't. You have to perform an explicit transaction with the
server if you want to send data back to the server, and the server has
to be set up to support that request.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden

manu3d 02-13-2008 11:01 AM

Re: XML and HTML DOM in parallel
 
On Feb 12, 9:03 pm, Joseph Kesselman <keshlam-nos...@comcast.net>
wrote:
> manu3d wrote:
> > Furthermore, how do I save back the DOM object into the original file?
> > A generic visitor using a browser doesn't normally have the permission
> > to overwrite existing file does it?

>
> No, it doesn't. You have to perform an explicit transaction with the
> server if you want to send data back to the server, and the server has
> to be set up to support that request.


Thank you for the confirmation, I'll then have to investigate on how
to achieve this.

Ciao!

Manu


All times are GMT. The time now is 11:50 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.