DOM and Javascript
Posted
by Bob Smith
on Stack Overflow
See other posts from Stack Overflow
or by Bob Smith
Published on 2009-02-12T18:52:30Z
Indexed on
2010/03/12
11:47 UTC
Read the original article
Hit count: 335
JavaScript
|dom
I let a user reconfigure the location of a set of rows in a table by giving them ability to move them up and down. The changes are done by swapping nodes in the DOM.
After the user has moved rows around, when I do a view source, I see the HTML in the original state (before the user made any changes).
Can someone explain why that is? My understanding was when we do any DOM operations, the underlying HTML will be changed as well.
EDIT: Does that mean on the server side, when attempt to get the state after user's changes, I will be able to get what I need? I am using C#/ASP.NET. Could it be because this is a HTML table (not ASP.NET Server control), that it's not maintaining the state of the changes?
© Stack Overflow or respective owner