Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-19-2012, 11:11 AM   PM User | #1
Abilemythi
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Abilemythi is an unknown quantity at this point
Saving Dynamic Page

Hi..Friends.. Am in confusion to creating html page.
I have a 2 fields in my form and I have added another text box by clicking add button.
Text Box appears. Now totally 3 fields are there in a form..
And Now I need to save this page with 3 fields as Reg.html
How can I do it??????????????
Anybody Plz help me out!!!!!!
Abilemythi is offline   Reply With Quote
Old 12-19-2012, 02:33 PM   PM User | #2
niralsoni
Regular Coder

 
Join Date: Mar 2008
Location: London
Posts: 129
Thanks: 1
Thanked 31 Times in 31 Posts
niralsoni is an unknown quantity at this point
Browser "view source" or "save web page" does not preserve dynamically created DOM objects. For that use below given function, which will open a new window with all the source code including dynamically created DOM objects -

Code:
function viewSource()
{
  var win     = window.open('','_blank');
  var results = document.documentElement.innerHTML;
  var match = "<";
  var re = new RegExp("<", "g");
  var newresults = results.replace(re, "&lt;");
  win.document.write('<pre>' +newresults+'</pre>' );
}
niralsoni is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:44 PM.


Advertisement
Log in to turn off these ads.