Is it possible to post the whole html page to the server(assuming that the server can handle it)?
I’m trying to implement the following setup. The user makes some changes(the user selects some text, and this text is wrapped in <span> tags with some class) to html and submits the page. The server extracts some relevant changes from a page.
Is this possible? Or I need to design some more complex scheme?
It is quite possible –
document.getElementsByTagName('html')[0].innerHTMLshould get you the page’s HTML, and XMLHttpRequest (AJAX) allows POST for sending data. Combining these two should get you the basic functionality.