Web Analytics Made Easy -
StatCounter Include into a target - CodingForum

Announcement

Collapse
No announcement yet.

Include into a target

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    if ( bad && possible ) happen();
    Sig re-written for faster processing...

  • #2
    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)

    Comment


    • #3
      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.
      if ( bad && possible ) happen();
      Sig re-written for faster processing...

      Comment

      Working...
      X