• 0

Alternative to Iframes?


Question

12 answers to this question

Recommended Posts

  • 0

Hey guys, PHP inclues are what I want to swap out, can they be swapped out without refreshing? I have never heard of this method.

I have like 20 php include boxes that I want loaded into the site when certain links are clicked without refreshing.

Flash is out of the question just because of what the includes contain.

And if anyone can show me a link to the AJAX way I'd love to give that a shot.

Thanks for the replies,

Mario

  • 0

Javascript won't work if people disable Javascript, so no, it won't

And IE7 and most other browsers use the XMLHTTPRequest object, IE6 uses an ActiveX Object (luckily with the same function calls and return values, which makes sense since other implementations are based off it)

You can also do it by using hidden iframes, but if the browser supports a native object for it, it would be a better way to go (less overhead)

  • 0

Take a look here, I found this a while ago when I was trying to learn some ajax.

http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

You can turn javascript off, and it will still work, well, sorta lol But its the next best thing to frames. And it works in FF, IE, Opera and such, and suppose to work with webcrawlers and such.

Hope that helps :)

  • 0

As a fallback for JS disabled people (I know I dont want to enable JS just to view a website properly), always make it so that the page would still work except it'll reload rather than dynamically changing. A rule of thumb is that you use client side scripting to ENHANCE website functions, not to IMPLEMENT website functions.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.