Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to send invoice rows to webserver
Message
From
10/08/2001 14:04:15
 
 
To
All
General information
Forum:
Internet
Category:
Microsoft Internet Explorer
Title:
Best way to send invoice rows to webserver
Miscellaneous
Thread ID:
00542429
Message ID:
00542429
Views:
98
I need to edit invoice rows and send edited data back to webserver. I need to use Visal FoxPro code (COM object) in server for update.

I desided to use IE 5.5 (IE 6 in future) in clients. I don't have IIS nor PWS for server but I can run by custom VFP code in webserver to process POST request.

I send a .htm page containing xml data island to client IE:

note: double quotes are replaced to single quotes in code samples.
< html > < body >
< xml id='result' javaDSOCompatible='true'>
< mytable xmlns:dt='urn:schemas-microsoft-com:datatypes'>
< row>
	< field1  dt:dt='string'>value1 < /field1>
	< field2  dt:dt='string'>field2value < /field2>
< /row>
< /mytable >
< /xml>
This xml data island is bound to a html < table> element. I can add, edit, delete rows in XML DSO recordset.
< table DATASRC='#result'>
< tr>< td> < input datafld='field1' dataformatas='localized-text'>< /td>
< input datafld='field2' dataformatas='localized-text'>< /td>
< /tr>< /table>
My form frmdoc has a hidden field Rowdata. Form submit button OnClick event contains the following code to send changed data back:
OnClick= ' document.frmdoc.RowData.value =result.recordset.GetString(); 
document.frmdoc.action='SaveDocument' ' ; 
SaveDocument is a custom com object whict retrives form variables using Request.Form() and updates Visual FoxPro dbf files.

However, SaveDocument needs to know field names to update.
It must update different fields if called from different pages
but GetString() does'nt return field names !

Which is the best way to implement this style of document editing ?
Which is the best way to send embedded xml data island data back to server?
How to seda DSO field names to server ?
Andrus
Reply
Map
View

Click here to load this message in the networking platform