Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 3rd, 2004, 12:00 AM
Authorized User
Join Date: Oct 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to save string value as html file?

Hi everyone! Does anyone know how to parse string to save function then save it as a html file in wysiwyg editor?

my code:
function MENU_FILE_SAVE_onclick() {

    filteredHTML = tbContentElement.FilterSourceCode (tbContentElement.DOM.body.innerHTML);


document.execCommand("saveas");//this will save the whole part of
editor, it can't use for it.

i want to save the string value (filteredHTML) in html file. Thank you. Example: <P>&nbsp;</P>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove orphaned html elements from html string pauliehaha C# 2008 aka C# 3.0 2 June 30th, 2008 09:40 AM
Assign label or string to external html file Gin262 ASP.NET 2.0 Basics 2 May 30th, 2007 06:39 AM
html form - save help bunnyhead HTML Code Clinic 2 January 24th, 2005 05:55 AM
File to binary and save as string eelisMX Pro VB.NET 2002/2003 4 December 8th, 2004 10:26 AM
how to save html output of xslt to file wtalbin XSLT 2 August 15th, 2003 09:14 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.