Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-14-2002, 10:46 PM   PM User | #1
Dalsor
New Coder

 
Join Date: Jul 2002
Location: Florida, USA
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Dalsor is an unknown quantity at this point
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
Dalsor is offline   Reply With Quote
Old 07-15-2002, 03:59 AM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,896
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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?
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 07-15-2002, 05:46 AM   PM User | #3
Dalsor
New Coder

 
Join Date: Jul 2002
Location: Florida, USA
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Dalsor is an unknown quantity at this point
Thanks for the reply.

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

Thanks again for the reply.
Dalsor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:06 PM.


Advertisement
Log in to turn off these ads.