Welcome to WebmasterWorld Guest from

Forum Moderators: ergophobe

Message Too Old, No Replies

Javascript/AJAX versus iFrame

Given the choice, which one is the most accessible and better to use?



1:58 am on Nov 17, 2006 (gmt 0)

10+ Year Member


I'm playing around with integrating Google Co-Op into my website.

Right now, I'm toying with the idea of outputting search results into a page on my site via javascript (AJAX if that makes a difference), or from their domain but shown through an iframe.

I know each poses its own unique challenges and benefits, but in general, I'm wondering which is more accessible and better to use, JavaScript/AJAX or iFrame


8:07 am on Nov 20, 2006 (gmt 0)

10+ Year Member

Just to put it into context:

  1. The AJAX solution will not work without javascript enabled, whereas the iframe will;
  2. The iframe is more than a little inconvenient for JAWS and similar assistive devices (along with Google's own code being about as inconvenient);

So, as you said, each have their pros and cons, but I think the iframe will work on more browsers (old and new) than AJAX.


1:36 pm on Dec 6, 2006 (gmt 0)

5+ Year Member

For the AJAX option, you should have a noscript alternative, which I would guess could send users directly to Google.

Featured Threads

Hot Threads This Week

Hot Threads This Month