DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Save webpage (http://www.daniweb.com/forums/thread129339.html)

ardeezstyle Jun 14th, 2008 8:27 am
Save webpage
 
Hi everybody!

I'm trying to save my web page using javascript. Can anyone please help me write the code for the same.

document.execCommand(sCommand [, bUserInterface] [, vValue]) is not working in firefox. If there is any alternative to this code please let me know.


Thanks a lots for reading my thread. Any help from your side will highly be appreaciated.


Regards

MidiMagic Jun 14th, 2008 5:48 pm
Re: Save webpage
 
This is a security violation.

It is normally a security violation for any web page (origin known or unknown) to mess with the file system on the browser's computer without permission of the owner of that computer.

If IE permits it, it is foolish to use IE.

ardeezstyle Jun 16th, 2008 1:40 am
Re: Save webpage
 
Hi MidiMagic !

First of all I convey my thanks to you for taking a look at my thread. Since I tried to find solution to my problem visiting many websites, I posted the thread but what you responded is not the solution to my problem. It may be a security violation in normal cases but there should be a solution to every problem. If you do know the solution please let me know. I heard that there are solutions to such kind of problems.


Thanks and Regards
Rupam Datta


Quote:

Originally Posted by MidiMagic (Post 627519)
This is a security violation.

It is normally a security violation for any web page (origin known or unknown) to mess with the file system on the browser's computer without permission of the owner of that computer.

If IE permits it, it is foolish to use IE.


R0bb0b Jun 16th, 2008 10:45 pm
Re: Save webpage
 
Most of the WYSIWYG Editors that I see require activeX which requires IE but I know that some claim to be cross browser compatible. I would go to a website that offers scripts like hotscripts.com and search for "WYSIWYG editor" and you will probably find a couple that you can tear apart and look at the source.

ardeezstyle Jun 17th, 2008 3:40 am
Re: Save webpage
 
Thanx for writing RobbOb, I'll definitely see through it.

Regards
Rupam

Quote:

Originally Posted by R0bb0b (Post 628687)
Most of the WYSIWYG Editors that I see require activeX which requires IE but I know that some claim to be cross browser compatible. I would go to a website that offers scripts like hotscripts.com and search for "WYSIWYG editor" and you will probably find a couple that you can tear apart and look at the source.



All times are GMT -4. The time now is 6:36 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC