Click to See Complete Forum and Search --> : $20 if you can get me the code I need


cjs18
05-18-2003, 02:05 PM
Okay I don't know how easy or hard this will be since I know nothing about JavaScript, but hopefully it's doable.
...And yes, I will send 20 bucks to the first person who posts some working code for what I need.

Basically I want the text from this page (weather.htm) (http://s.freeshell.org/weather.htm) to be automatically inserted into the space provided on this page (index.htm) (http://s.freeshell.org/index.htm).

My goal, at least in this example, would be to update weather.htm and as a result index.htm would also be updated, without making any changes to index.htm.

pyro
05-18-2003, 02:09 PM
You can just include the page, either using PHP or SSI, depending on which your server supports. Also, remove the opening and closing <html> on the weather page.

PHP (.php)
<?PHP
include ("weather.htm");
?>

SSI (.shtml)
<!--# include file="weather.htm"-->

cjs18
05-18-2003, 02:12 PM
Okay, but I can't use PHP or SSI for what I am going to do.

pyro
05-18-2003, 02:26 PM
Then can you include your weather in an external .js file, and call that? javascript doesn't have file i/o ability, so that is the only way to do it, without using server side coding.

David Harrison
05-18-2003, 02:32 PM
Take a look at the attachment, rather that have a separate page (weather.htm) I would have a separate file called weather.js you'll have to open it by dragging into an open text document window but this is the only way I know how to do it.

cjs18
05-18-2003, 02:37 PM
That's all I needed lavalamp, thanks!