![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
Because a 3rd party server library requires it for processing just as it looks completed on the client browser. |
#5
| |||
| |||
|
|
On Sun, 15 Jun 2008 17:57:11 -0300, MC <"mica[removethis]"@aisus.com wrote: Because a 3rd party server library requires it for processing just as it looks completed on the client browser. Strange. If you want the *exactly* HTML sent back to your server, you should not use "innerHTML" (the browser may output it the way it wants), instead store (at server-side time) a copy of the HTML that must be sent back somewhere (hidden input, JavaScript variable, [...]) and when sending your form, grab that content. -- Jonas Raoni Soares Silva http://jsfromhell.com |
#6
| |||
| |||
|
|
Ok, again, the library wants the entire content to process. It will make an archive of the page the way the client sees it with their form data added. Does anyone know how to do this? |
#7
| |||
| |||
|
|
MC wrote on 16 jun 2008 in comp.lang.javascript: Ok, again, the library wants the entire content to process. It will make an archive of the page the way the client sees it with their form data added. Does anyone know how to do this? Who is the boss, you the programmer or the library? If you do not like a library function, write your own alternative one. |
#8
| |||
| |||
|
|
Evertjan. a écrit : MC wrote on 16 jun 2008 in comp.lang.javascript: Ok, again, the library wants the entire content to process. It will make an archive of the page the way the client sees it with their form data added. Does anyone know how to do this? Who is the boss, you the programmer or the library? If you do not like a library function, write your own alternative one. True but : that doesn't explain to me how it is possible to submit the html ... ?! (I thought it needs ftp) |
|
What I do not understand : certainly somebody or something did create the html, so it is most than probable that the html file must exist somewhere (or can be saved somewhere). |
#9
| |||
| |||
|
|
SAM wrote on 16 jun 2008 in comp.lang.javascript: Anyway, I repeat myself, your "need" is only due to a illogical slavery on your part to your library. |
#10
| |||
| |||
|
|
Evertjan. a écrit : SAM wrote on 16 jun 2008 in comp.lang.javascript: Anyway, I repeat myself, your "need" is only due to a illogical slavery on your part to your library. Thanks for the given light, but I'm not the OP :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |