PDA

View Full Version : echo foriegn html in static page


fergusom
11-06-03, 11:21 AM
I'm sure there must be a way to do this: -
I have a php page with a small calendar dynamically connected to a db. I would like to echo this dynamicaly generated table in a part of a static page i.e. a page with no server side ability. I therefore only have jscript open to me.
What I am thinking of is some way to echo the HTML of the php page in a table of my static page.
i.e. I would like this dynamic table
http://www.tech.port.ac.uk/textCal.php
to be included some where on this page here
http://www.port.ac.uk/tech.

Any idea's would be swell!

evo4ever
11-06-03, 06:38 PM
It is impossible to include a php file into a static HTML file and get results. Why would you want to do this anyway? Just change this HTML to a PHP file and include the calander using php.

fergusom
11-07-03, 03:54 AM
I was afraid I might not have explained myself properly.
The uni has bought in a CMS system which publishes flat html pages - which is why I pointed out that I believe I only have j.script open to me. I am aware that you physicaly can't include php code and expect to get it parsed.
What I was thinking was that on my old server I have this php script but what is output to a browser is pure html.
Thus I was wondering if it is possible in jscript to call a web page (i.e. the php page), take the (html) source of that page (i.e. after parsed by server) and print/echo/write the source i.e. an html table into the 'opener' flat/static page using jscript.
(As you might do for eg in frames, though not of course). I could do a pop-up but don't really want to do that unless that is all that is left to me.
Does this make it any clearer what I want to do?
Sorry if not.
Thanks for reply though.

evo4ever
11-08-03, 09:26 PM
Using JavaScript as client side in a HTML file?, or JScript as server side in a ASP file?

fergusom
11-10-03, 03:35 AM
The former; JavaScript client side in a HTML file?