Re: How do I get HTML sent to server?



MC a écrit :
Hey,

I have a need to get HTML from a client back to a server to do server processing. I would like the HTML and form data both. Is there a simple way to capture that? I do not want to submit the page...I will use ajax to send the data.

I know how to get the elements but not the entire page or form. I am really just interested in specifying document.form2 and sending that.

I do not understand why you need the html ...
Simplest being to submit the form2 using Ajax, then on response, to populate the fields (or to replace the whole content of form2).

--
sm
.



Relevant Pages

  • =?iso-8859-1?B?UmU6IEFKQVggYW5kIOEg6SDtIPMg+iBjaGFyYWN0ZXJz?=
    ... Each link refers to and html file. ... master HTML with no sucess. ... The new way, so i heard, is to use AJAX. ... there's also php script. ...
    (comp.lang.javascript)
  • =?iso-8859-1?B?UmU6IEFKQVggYW5kIOEg6SDtIPMg+iBjaGFyYWN0ZXJz?=
    ... Each link refers to and html file. ... master HTML with no sucess. ... The new way, so i heard, is to use AJAX. ... there's also php script. ...
    (comp.lang.javascript)
  • Stuffing JSON for an AJAX response
    ... I'm fairly new to using AJAX. ... updates to the grid. ... But now I've decided it would be useful to split my response into (at ... The first will be the raw HTML to place in the div. ...
    (comp.lang.javascript)
  • Re: AJAX without Rails
    ... friend told me Rails was a bit to much for what I need, ... How do Ajax work for ruby? ... of it and use HTML or JSON to deal with it. ... If you want to include JSON data and do DOM manipulation directly, ...
    (comp.lang.ruby)
  • Re: standards-compliant equivalent of innerHTML
    ... innerHTML with a string of HTML retrieved from an Ajax call. ... of them - I need my application to work with any valid HTML content. ...
    (comp.lang.javascript)