Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Florida, USA
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    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)

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Florida, USA
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •