Re: How do I get HTML sent to server?




"Lasse Reichstein Nielsen" <lrn@xxxxxxxxxx> wrote in message
news:prqhbdss.fsf@xxxxxxxxxxxxx
"MC" <mica[removethis]@aisus.com> writes:

Because a 3rd party server library requires it for processing just as it
looks completed on the client browser.

Sending the HTML won't give you that. It only gives you the structure
of the HTML, not what it *looks* like when displayed in a browser.
For that, you need a screenshot.

If you insist on converting the page's document structure back to HTML
and send that back to the server (including user-entered values in
form controls), you'll have to traverse the DOM structure and build
the HTML.

The non-standard innerHTML property only reads the original value
of input controls (i.e., "inputControl.originalValue", not the currently
entered value, "inputControl.value"). I.e., it misses the user entered
values.

This means that the HTML you generate is not what is currently being
shown, but *your* conversion of the DOM objects into a text
representation. If you are doing that anyway, why not just send
the values and build the structure on the server side.

Or, if you really, really need to be sure what the user sees,
accept his values as a normal form submit, and then generate
a bitmap image displaying those values along with a secret word,
and have the user submit the secret word to confirm that he
agrees with the data in the image.
That way you know what image was displayed, and that he can see
images.

/L
--
Lasse Reichstein Nielsen - lrn@xxxxxxxxxx
DHTML Death Colors:
<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'

THANK YOU!
I appreciate someone trying to help rather than criticize!

Just sending the data back will not work, as the client view may have html
content from other sources in its view.

I understand that a screenshot would work...any ideas on sending one back to
the server based on a .js event? I would really prefer to have a data image
as I can encrypt that and still retrieve the data from it. This will allow
me to pull data from it and index it to a database while storing the image.
The image does not need to be perfect as a client view but as good as
possible.

Is there any way to traverse and build the HTML and get the user entered
data? This is the real question no one seems to be able to answer.

MC


.



Relevant Pages

  • Re: Cache
    ... about - writing data into the client HTML document. ... > Using <% ServerVariable%> can get values from the server then the java can ...
    (microsoft.public.dotnet.framework.aspnet)
  • some" folks are unable to post any file till "some" are able
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.asp.general)
  • Unable to post multipart/form-data
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.iis)
  • Re: How to do a post back when user press enter.
    ... It is hosted on a web server, ... the client browser, which is designed to read and interpret HTML. ... UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to do a post back when user press enter.
    ... > requested by a client browser, ... > by an ISAPI (Internet Server Application Programming Interface) ... > and interpret HTML. ... > to its process and UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)