/    Sign up×
Community /Pin to ProfileBookmark

HTML generating and Saving the Generated page

Dear all,

I’m writng a javascript code that generates a table with desired properties. I have linked a HTML page that includes a .js file. When the table is generated with document.write(), the screen is wiped and table appears. I want to give users the ability to save the new page but selecting menu-> file -> Save as

But when I do this the original HTML page is savedand not the new generated table page. So I have to save the source of the new page in notepad which eliminates Unicode. I even tried to put the generated HTML in new window but that also didn’t worked. Plz Help me find a way for saving directly from File->Save AS

Regards,

Siavash

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@andyp_182Oct 05.2006 — I had a very similar problem today. I found that when a page was automatically generated using javascript, the page that called the functions was being saved as opposed to the report. I tried using the .innerHTML method to update a html template page as well but with exactly the same problem.

The only way I have found so far to get around the problem is to use file - save as and then choose Web Page, HTML only instead of Web Page, complete. Obviously, you will need absolute references to any external files then or the auxilliary files will not be found.

Hopefully this will be of use. I know its not ideal

Andy
Copy linkTweet thisAlerts:
@notimportantauthorOct 07.2006 — Hi,

Thanks! That's almost good and resolves the problem. I'd be grateful if you share your more information in the future!

Siavash
Copy linkTweet thisAlerts:
@felgallOct 07.2006 — The only way to save the version of the page after Javascript has updated it is to use Netscape 7.0

All other browser save the original page rather than the updated version.
Copy linkTweet thisAlerts:
@notimportantauthorOct 09.2006 — Thank you!
×

Success!

Help @notimportant spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...