Download as HTML file
3 posts by 3 authors in: Forums > CMS Builder
Last Post: March 4, 2012 (RSS)
I am trying to find a way to essentially allow for downloading a page as an HTML file.
I have a Newsletter creator that client will be using to creat email newsletters.. after they create one, on the preview page I have a button that I want them to click on to download the HTML version of the page so they can use it to send their email.
Is their a way to download the source code as an html file?
I cant have it download the php file b/c the data/images wil not be there.
I have a Newsletter creator that client will be using to creat email newsletters.. after they create one, on the preview page I have a button that I want them to click on to download the HTML version of the page so they can use it to send their email.
Is their a way to download the source code as an html file?
I cant have it download the php file b/c the data/images wil not be there.
Re: [s2smedia] Download as HTML file
By Damon - February 27, 2012
Hi,
Right clicking on the pages and using "Save as" will work, but for something else, I did a search and found some javascript:
http://www.codingforums.com/showthread.php?t=3762
I think this only works in IE so the JavaScript may need to be tweaked or alternative code found.
Hope that helps!
Right clicking on the pages and using "Save as" will work, but for something else, I did a search and found some javascript:
http://www.codingforums.com/showthread.php?t=3762
I think this only works in IE so the JavaScript may need to be tweaked or alternative code found.
Hope that helps!
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Download as HTML file
By sublmnl - March 4, 2012
If you have the HTML files in a single directory and they will always be there you can put an htaccess file in the folder that tells any files to force download.