...

View Full Version : Include into a target



Dalsor
07-14-2002, 11:46 PM
Is there a method to include() a file and point it's contents into a <div id>?

I have some code which creates an external html file I'd like to be able to open in a div id when a link is clicked. Not sure if it's possible, and if not, perhaps there is another method of doing it?

Thanks in advance!

Eric, aka Dalsor

firepages
07-15-2002, 04:59 AM
not directly, currently you can not get PHP to do anything from a client-side action, you could however include() the page into a hidden div and show the div onclick via javascript, Iframes may be an option for you though?

Dalsor
07-15-2002, 06:46 AM
Thanks for the reply.

I tried iframes and layers with a splash of javascript and failed miserably. :o I'll try asking over at the JS forum and see if someone can make sense of my script.

Thanks again for the reply. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum