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'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 can use the jQuery ajax function to grab all of the html from a remote page, and that's cool. What I would like to do is to grab only a particular element of the remote page, not the entire page. Is this possible? I've tried some variations of the ajax 'url' param, but I haven't gotten anything to work yet.
I've used about everyone i've found online, with no success.The problem seems to be that these tooltips don't use the fully qualified domain to include pages just tip1.htm instead of somedomain.com/tip.htmTrying to create a "plugin" of script that people coming to the site can cut and paste into their own page and that code will show the content of my remote page.
I have a PHP script that displays my online status and shows a window if I am online, or doesn't show anything if I am offline.
I'd like to include the content of this remote PHP file inside a web page using JS. I have created an xmlHttpRequest script to do that but it doesn't work as expected... It should work just like the status.php file, but instead, the content doesn't show up in IE, and in Opera, it it stuck in the upper-left corner...
I have 3 tabs that call an external ASP page that has a rather intensive Database query and takes a while to execute and display. On my tab there's a link to another page. once that page is finished the user goes back to the tab. But my problem is it's going back to the database page (that takes a while to execute).Can the original page be cached and remembered so that I dont have to keep calling my database page?
We use the services of an external company in our website. We load this content in via an iframe. Some of this content happens to be an image.
This image is only stored on the external company's site for a limited time. We need this image to be stored on our servers somehow. Because the content is loaded dynamically from another site it's a little more difficult to access via a server side script I'm thinking it would go something like:
load in the html for the iframe into a variable, (no idea how yet, I don't think 'include' works like that) then scan through the file for the link to the image, (would be easy with javascript selectors) then request that url from them and save it as a file somewhere.
I can't think how i can do this easily with php nor ajax... any ideas? This should work: maybe something like, use javascript to find the element url, then send a request to another page with a server side script to handle saving the url ...but I'm thinking there might be a better way of doing it.
The people who made the application I'm supposed to be maintaining/extending didn't care for users with no javascript (i know, i know), so because other key functionality doesn't work without javascript (at current...but I'm rebuilding the whole thing at some point but this is a priority feature for asap) i'm not worrying about making sure it works for users without javascript.
I want to write a script that will read a .php file on a remote server and print to the current page a portion of the text contained in the remote file. I am just wondering what the best method is for reading from a file in this case - the file is only a few bytes long. I've seen a tutorial or two that only tangentially addresses my problem, and even then each one has varied greatly as to which object they utilize.
Im wondering if there is any way to access and traverse through a remote web page. im trying to traverse through a remote web page from a diferent domain so i can display some text from that page to users. is it possible to do it using javascript if so how else what is the best way to do this with out keeping the user waiting for long.
I'm trying to set a variable which a remote page can access. I can do this, but I need to set this variable inside "window.onload = functio(){". When I do this the remote page can't access it. This is a breakdown of what I'm doing:
I created a page a set of tabs, each tab loads an external page. The problem is that when I click on each tab, the external page contains script jquery and will not run.How I can do to upload the script to each page there is external?
I download the jquery library, when i include it as such:
It loads but i always get some sort of error in the functions in the page or something...as if the js is loaded but not correctly or as if it's missing, even though the download itself is correct
If i change the include path to (which is the exact same file i downloaded):
Everything works fine i am thinking maybe it could be something that has to do with encoding maybe? am not sure...any clue? it's only happening with the jquery JS files, the rest are working fine.
I 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>
I 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?
In 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.
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
When 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;
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?