Adsence disappear with Ajax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EnjoyNews

    Adsence disappear with Ajax

    Hi

    I have a little problem with java ajax...

    On my site I have a google adsence placed in a list. After the first 10
    records it shows a adsence commecial.

    But.. on my search page I use Ajax to get the search result while you type
    the searchword.
    This works fine and a list is shown that matched the searchword.
    The page that ajax calls contains a list which is exactly the same as the
    normal list on my site. So there are also a google adsence placed in the
    search list.
    But, the adsence isn't shown.

    I have tried testing it a litlle more, and it seems that an adsence placed
    somewhere in the page that ajax calls doesn't show on the screen. In the
    source hte adsence is just gone.

    So my question is, why do the adsence script disappear when the page is
    calls with an ajax script.
    If I type the direct url to the page called by ajax the google adsence is
    shown. So it's only the ajax calls the page it doesn't work ?


    Does anyone have a solution for this problem ?


    best
    Michael


  • Bart Van der Donck

    #2
    Re: Adsence disappear with Ajax

    EnjoyNews wrote:
    On my site I have a google adsence placed in a list. After the first 10
    records it shows a adsence commecial.
    >
    But.. on my search page I use Ajax to get the search result while you type
    the searchword.
    This works fine and a list is shown that matched the searchword.
    The page that ajax calls contains a list which is exactly the same as the
    normal list on my site. So there are also a google adsence placed in the
    search list.
    But, the adsence isn't shown.
    >
    I have tried testing it a litlle more, and it seems that an adsence placed
    somewhere in the page that ajax calls doesn't show on the screen. In the
    source hte adsence is just gone.
    >
    So my question is, why do the adsence script disappear when the page is
    calls with an ajax script.
    If I type the direct url to the page called by ajax the google adsence is
    shown. So it's only the ajax calls the page it doesn't work ?
    >
    Does anyone have a solution for this problem ?
    Hard without looking at the code, but my first thought goes to a
    conflict in variables, DOM, namespace or the like.

    --
    Bart

    Comment

    Working...