By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,483 Members | 1,727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,483 IT Pros & Developers. It's quick & easy.

Adsence disappear with Ajax

P: n/a
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
Jul 17 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 18 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.