I’m currently trying to create a script which can grab the HTML from a web page and store it. For example, if I want to use google and search for the term “dogs”, I want to be able to access that information.
How can I implement this in JavaScript, if at all?
@WolfShadeFeb 15.2011 — #I think there is a way (in JavaScript) to get and store the HTML of another page into a variable (kind of like "screen scraping"); but it (obviously) isn't permanent - you'd need either a database (which JavaScript AFAIK cannot DIRECTLY interact with) or save it to a flat file on the server/local computer (I'm not familiar with JavaScript handling files.)
In certain circumstances, it can be considered "stealing", so it is frowned upon for the most part.
I have a page where javascript is embedded in the html page with onchange()
event where a change in the text box calls for a calucalte function I have and it works fine when I try to isolate the Js into a separate file the onchage() stops working.can you pleasse point me in the right direction why this is happening?thank you in advance.
I have a page where javascript is embedded in the html page with onchange()
event where a change in the text box calls for a calucalte function I have and it works fine when I try to isolate the Js into a separate file the onchage() stops working.can you pleasse point me in the right direction why this is happening?thank you in advance.[/QUOTE] Welcome to the forum! But, please, don't hijack somebody else's Thread? Open a New Thread of your own (see the button New Thread on the top-left of the Forum), and put your problem there. Let's not mess-up the threads ?