|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Parsing large amounts of post dataI have a
form with form fields that are each loaded with data from eXist.
The number and data within each form field that eXist
outputs depends on which user is logged in.
I need to be able to
update the db when there is a change to the page (exiting, adding a
new record, etc). I thought to do this by parsing the Post data similar
to:
Is this the
correct/most efficient approach to this? Note: there may be many form
fields on the page upwards of 40 or 50 or even more some of which are text
areas, so I wrote off parameters.
Any help or guidance
would be greatly appreciated.
Scott Vanya
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: Parsing large amounts of post dataThe most efficent approach in my opinion would be to use an XForms
Server instead of your XHTML forms, in this way the XForms engine is responsible for updating the db and you dont have to write lots of manual parsing code! Orbeon can be configured to work with an existing eXist instance or Chiba can be setup in such a way that the updated document is either POST (onto an XQuery with a little bit of storage login) or PUT to the database. 2008/6/27 Vanya, Scott <Scott.Vanya@...>: > I have a form with form fields that are each loaded with data from eXist. > The number and data within each form field that eXist outputs depends on > which user is logged in. > > I need to be able to update the db when there is a change to the page > (exiting, adding a new record, etc). I thought to do this by parsing the > Post data similar to: > http://en.wikibooks.org/wiki/XQuery/Parsing_Query_Strings > > Is this the correct/most efficient approach to this? Note: there may be > many form fields on the page upwards of 40 or 50 or even more some of which > are text areas, so I wrote off parameters. > > Any help or guidance would be greatly appreciated. > > Scott Vanya > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Exist-open mailing list > Exist-open@... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- Adam Retter eXist Developer { England } adam@... irc://irc.freenode.net/existdb ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
|
|
|
Re: Parsing large amounts of post dataScott,
The simplest way to do this is to: * Have an XML document with only the data you want to store in the database (no UI). * From XForms GET it from the eXist through the REST API when you need to read it to present the data to users. * From XForms POST the document back to eXist after users have done modifications to the document through the form. You can do this directly with the <xforms:submission> construct, which plays very well with the eXist REST API, and in most cases you'll see you won't even need to worry about writing XQuery. Alex |
| Free Forum Powered by Nabble | Forum Help |