CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Include into a target (http://www.codingforums.com/showthread.php?t=1976)

Dalsor 07-14-2002 10:46 PM

Include into a target
 
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 03: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 05: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. :)


All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.