• 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.
  • Posts

    • Free AI in IDEs is shifting to paid models Or you know, you could just learn to actually design and code apps, use frameworks to handle the repetitive parts and not use AI at all - and voila... free for life!
    • In a sane world US antitrust laws wouldn't even allow these companies to be in the position to be subjected to EU directives. As you say, better than oligarch nothing.
    • Apple reportedly has a second-generation iPhone Fold planned for 2027 Good grief, Apple hasn't even released a first folding phone and the Apple faithful is already obsessing over the sequel? Seriously people, go out and touch grass... because this level of obsession is borderline stalkery/neurotic.
    • I checked on the IPs associated with every login and they're all mine... And whenever I get a new prompt, there is no activity to show for it. 
    • Brave Browser 1.91.178 by Razvan Serea Brave Browser is a lightning-fast, secure web browser that stands out from the competition with its focus on privacy, security, and speed. With features like HTTPS Everywhere and built-in tracker blocking, Brave keeps your online activities safe from prying eyes. Brave is one of the safest browsers on the market today. It blocks third-party data storage. It protects from browser fingerprinting. And it does all this by default. Speed - Brave is built on Chromium, the same technology that powers Google Chrome, and is optimized for speed, providing a fast and responsive browsing experience. Brave Browser also features Brave Rewards, a system that rewards users with Basic Attention Tokens (BAT) for viewing opt-in ads. This innovative system provides an alternative revenue model for content creators and a way to support the Brave community. SlimBrave Neo takes all the good things about Brave and makes them even better by keeping everything clean, light, and privacy-focused. It removes the extra clutter, turns off features you might not need, and cuts down on anything that could slow you down or collect unnecessary data. Because it relies on simple settings and policies instead of modifying the browser itself, you still get full Brave compatibility—just in a smoother, lighter, and more privacy-friendly package. Brave Browser 1.91.178 changelog: Fixed certain extensions not working as expected. (#56271) Fixed inability to use Brave Sync in certain cases. (#55203) Upgraded Chromium to 149.0.7827.196. (#56598) Download: Brave Browser 64-bit | 1.2 MB (Freeware) Download: Brave Browser 32-bit View: Brave Homepage | Offline Installers | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Enthusiast
      Xonos went up a rank
      Enthusiast
    • Conversation Starter
      Admir earned a badge
      Conversation Starter
    • First Post
      The_Focal_Point earned a badge
      First Post
    • Apprentice
      daryld went up a rank
      Apprentice
    • Contributor
      Carltonbar went up a rank
      Contributor
  • Popular Contributors

    1. 1
      +primortal
      406
    2. 2
      +Edouard
      170
    3. 3
      PsYcHoKiLLa
      129
    4. 4
      neufuse
      69
    5. 5
      Xenon
      68
  • Tell a friend

    Love Neowin? Tell a friend!