Welcome to WebmasterWorld Guest from

Forum Moderators: open

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)

Preferred Member

10+ Year Member

joined:Aug 12, 2005
votes: 0


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)

Preferred Member

10+ Year Member

joined:Feb 28, 2005
posts: 646
votes: 0

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)

Junior Member

10+ Year Member

joined:July 18, 2006
posts: 60
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members