Save Page Problem
Aug 30, 2006I need to use the save page function in the website, but the document.execCommand("SaveAs") command only can run in IE, can't run in Netscape and FireFox. How should i do?
View 1 RepliesI need to use the save page function in the website, but the document.execCommand("SaveAs") command only can run in IE, can't run in Netscape and FireFox. How should i do?
View 1 RepliesI select an option availabe in select and on selecting yes on the confirm msg save and submit it.
Now i select another option and if i select no on the confirm msg I need to get the previously selected option and use it.
The code is as follows:
<html>
<head>
<script language="JavaScript" >
function joesFunc() {
var x=confirm('Do You want to select this value ?');
if (!x) {
alert('You want to select the previous value which is :
'+document.forms[0].preVal.value)
document.forms[0].myType.value=document.forms[0].preVal.value;
return;
} else {
alert('You have SELECTED:
'+document.forms[0].myType.value)
document.forms[0].preVal.value=document.forms[0].myType.value;
}
document.forms[0].submit();
}
</script>
</head>
<body>
<form name="testjsp">
<select name='myType'> <br>
<option value=Ɔ'>Please Select
<option value=Ƈ'>One
<option value=ƈ'>Two
<option value=Ɖ'>Three
<option value=Ɗ'>Four
<option value=Ƌ'>Five
</select>
<input type="button" value="Retrieve" onClick="javascript:joesFunc()">
<input type="hidden" name="preVal">
</form >
</body>
</html>
Here's a little script I wrote to save your place in larger documents.
View 2 Replies View RelatedIn my site I show low quality pictures. When someone right clicks an
image and selects 'Save Picture As...', I wish to let him save the
high quality picture.
I've got a form that's nested in a larger application. I need to
program it so that the user is warned to save upon clicking on any
exit point in the application.
So, if they click on any of the nav buttons in the header/nav bar,
they need to get an alert:
"Would you like to continue without saving your changes?"
_Yes_ _No_
It would be a big pain to retrofit the application's nav
buttons/framework for just these forms, so I'm looking for a solution
that doesn't require editing the source code of the application's
existing navigation.
What are my options?
Is there any plugin can let me save the part of page as pdf?
View 2 Replies View RelatedI need a javascript function to save a html table in my web page to excel work sheet on click of a button.
View 2 Replies View RelatedHow do I create a JavaScript script to save a web page's source code to a file?
Example: I will go to a website, it automatically from the web page's source code will be saved to a file.
I'd like to save a single page automatically. The page uses javascript, and therefore I can't seem to use links, elinks, lynx, w3m or curl (I've tried them with spidermonkey but it keeps telling me to enable javascript) to do so properly, it always saves everything except the javascript rendered output.
So I think the only what to do it would be in a web browser. So, say for intstance, I want to save the the main page, [url] and have it automatically save to my C:google.htm. How would I do that? Is this possible?
I have one save button in my html page and as soon as i click that button using javascript's onclick function the html/static page should be saved with .doc extension.As of now i want only the text in the html page to be saved as word document.But if possible suggest me for html pages with images too.I want the logic or sample source code for the above mentioned requirement
View 3 Replies View RelatedWhen a user is using internet explorer, I need a function that saves the text from within a textarea, and then refreshes the page, and then places the saved text back into the text area. Is this possible? Here's my code so far...
Code:
function RefreshIfIE(element_id) {
var browserName=navigator.appName;
[code]....
When you right click on a link you get the option to save target as...(ie) and save link as...(netscape). Is there some JavaScript to call this function like the JavaScript to open a new window?
View 3 Replies View RelatedOn one of my sites, I have a reather involved page (searchable map).
When the person leaves the page then all the AJAX generated
information is lost. Is there a way that I can retain all this data
in a cookie or so or how would you recommend I saved all the users
information (perhaps using a database on the serverside).
I need save to my html page id path adress like id="#videos/fashion/test.txt" but if I want find this line like $("div").find("#videos/fashion/test.txt") it doesn't find it. I think it for the slashes. What is the best way to save into html page value and not to be seen on design view?
View 1 Replies View RelatedI'd like to save a single page automatically. The page uses javascript, and therefore I can't seem to use links, elinks, lynx, w3m or curl (I've tried them with spidermonkey but it keeps telling me to enable javascript) to do so properly, it always saves everything except the javascript rendered output.
So I think the only what to do it would be in a web browser. So, say for intstance, I want to save the the main page, google dot com and have it automatically save to my C:google.htm. How would I do that? Is this possible?
I have recently worked on a flash based learning course and built functionality where users throughout the course can type in their own notes based on the course, and they can revisit these everytime they launch the course, the functionality is simply using flash cookies to store the notes on the users machine. I wanted to build functionality so that they could then save these notes to their hard disk and e-mail them on. To do this I call a javascript function from flash which opens a new webpage, passes through the notes from flash and uses document.write to write the notes to the new webpage. Then the user Saves (as web page html only) to save a copy to their machine.
The problem is I want to do this web page up a bit more, add graphics etc. but if I save as web page html only it won't include any images I add to the html page, and if I change it so that they save as (Web Page Complete) rather than write the webpage out with the notes it will write the webpage with the code document.write(string) but as this is on the users hard disk now string will be undefined as it no longer run alongside the course. Is their any other way anyone can think of doing this type of functionality, I am trying to stay away from using PHP
I am currently developing a page which allows access to music on a server. This music is being streamed, but users are also able to download this music (assuming they have the license to do so). All of the music uploaded is of the .mp3 format, however they have no filetype extensions, and were not named using any particular naming convention. Because of this, I was hoping to change the filename (when a downloaded is initiated) to variables I have stored based on the current song.
I am currently simply opening a new page, in Chrome is looks like this: chrome.tabs.create({ "url": song.url })
Hit presents the user with a prompt to save the file, however, its default name is a random alphanumeric string with no extension, as per their file name on my server. Is there an easy way to do this without renaming all the music server side? I do have the variables song.title and song.artist setup!
Edit: Since this page is only for Chrome users, I listed the code I am using. I understand window.open and was originally using this. It functions the same, and if I need to revert back to using is instead, I shall.
I use NETSCAPE established a catalog page in XML, which uses Javascript-DOM to add, remove and sort the products by their prices. But which Javascript function should I use in order to save the modified page into local hard disk? to sort products as well.
View 1 Replies View RelatedCode: //Define the class
class author{
function author(a:String,b:String,c:int)
{
this.name = a;
this.lastname = b;
this.age = c;
}
[Code]...
in this code the variable "newBook" to save the whole object, returns to save only the last one that was created...
Using a UI dialog I'd like to load in 10 or so images. Each would be unique and after you click on one the following needs to happen:
1. Image appears on the parent page in a specified ID.
2. A "hidden" field is updated so that when the user submits the db is updated with their selection.
3. Dialog closes automatically.
That's it. Basically it would work similar to "datepicker".I'm using the latest 1.4 and ui and been making great progress as learning basics. I need to do the above and it seems like such a no brainier and or it should already exist but after 2 days of searching and trial and error...
how can i save xml.
if i have an xml file on a server, lets say a dvd collection. and i have a
form that gets information for a new dvd and i append this dvd to the dom.
This i can do no problem so far using javascript the only thing that i can
not do is save the changes this is easy in vb.net and c# but seeing as i
have to work with the server its a whole new world. I dont want to have to
use asp or anything that requiers expensive software and or ides. If it can
be done with jscript this would be great. or does this sort of thing depend
on the server itself?
I am trying to make a Page with 8 Scrolling Text boxes, and I want to know how, If possible,I could save the page, As is, with everything I entered still on it...It could even stay a html. That is actually prefered....
View 1 Replies View RelatedI have a confirmation page, we would like to have a SAVE button option for our customer to save the page, is it possible to SAVE only the message or page, not for the entire site?
if you have done it before, can you please help...thanks so much in advance. Or please give some suggestions how can we save the confirmaiton message page
making a save as dialog appear in firefox?
IE was easy, just using this code:
java script:document.execCommand('SaveAs','1','test.txt')
Here's the problem when using IE for Windows: I have a website that has Word Documents to download, however these doc's open as word in the browser window. What I want: To automatically launch the save as box from a link Any dhtml tricks/advice for this?
View 1 Replies View RelatedI have this in a FORM tag:
OnSubmit="return SendForm(this);
to save the content of the form in a cookie. But I need to save it a on windows print,
where I reload the form with a css for print. Therefore the form must be filled in again from the cookie. But how do I save the form without submitting ?
I retrieve the saved data with:
onLoad="OldForm(document.forms(0));