469,353 Members | 2,066 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

Keeping DOM changes intact

I have two HTML pages : page1.html and page2.html

When I click on the "Next" button on page1.html, page2.html is opened

Now on page1.html, I add a table with some content through DOM

Then I press the "Next" button to go to page2.html

Now if on page2.html, If i hit the browsers back button, the table that
i created through DOM on page1.html is lost.

Is there any way to keep the DOM changes intact?

Regards,
Angel

Apr 7 '06 #1
1 1333
"Angel" <ja*******@gmail.com> wrote in news:1144406711.195778.124820
@i39g2000cwa.googlegroups.com:
I have two HTML pages : page1.html and page2.html

When I click on the "Next" button on page1.html, page2.html is opened

Now on page1.html, I add a table with some content through DOM

Then I press the "Next" button to go to page2.html

Now if on page2.html, If i hit the browsers back button, the table that
i created through DOM on page1.html is lost.

Is there any way to keep the DOM changes intact?


nope, that's what on-the-fly DOM changing is all about. one starts with
a webpage, and manipulates it into something new.

now, you can 'record' the DOM changes/new additions in that first
document by putting the changes/additions into a hidden form field (or
fields). page2 can then read this info, post it to a database, so that
when you hit the 'back' button, page1 actually looks to the DATABASE
first to see if there are any modifications before spitting out the
webpage.

in other words, there is no natural way to recreate a modified DOM when
you reload a page/hit the back button without recording the changes
somewhere permanently to recreate it....
Apr 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Jerry Porter | last post: by
2 posts views Thread by Raja Kannan | last post: by
7 posts views Thread by BarryS | last post: by
20 posts views Thread by John Sheppard | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.