PDA

View Full Version : Google Adwords not appearing in ajax tabs



tankman
04-02-2008, 06:12 PM
1) Script Title: Ajax Tabs Content Script (v 2.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent/index.htm

3) Describe problem:

google adwords not appearing in my ajax tabs

Anyone else experience this problem?

Medyman
04-02-2008, 06:23 PM
Not 100% sure, but it might be due to domain restrictions.


Reminder: Due to security limitations, the external pages loaded via each tab using Ajax must reside on the same domain as the script itself. This limitation doesn't apply if you use the "IFRAME" option to fetch and show the external page instead.

ddadmin
04-02-2008, 11:54 PM
Medyman is right in that if you switch to the IFRAME mode to load the page containing Adwords or any other JavaScript content, it will appear correctly. The problem isn't due to domain restriction though, just that browsers have difficulty parsing any JavaScript inside an Ajax fetched page, so Adwords doesn't appear in this case.

tankman
04-03-2008, 03:56 AM
What would I be sacrificing if I switch to iframes?

and...

Can I adjust the height of the iframe automatically to only be as long as the document it is loading? That's what I like about ajax, however, if I can do it with iframe too, then all the better.

thanks