Results 1 to 4 of 4

Thread: Google Adwords not appearing in ajax tabs

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Google Adwords not appearing in ajax tabs

    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?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  4. #4
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •