Free Behavioral Targeting and Segmentation - BTBuckets

Hi

I need to modify several divs at the same time. I was wondering if I could achieve this by repeating the JS

<script>BTBaddOnload(window, 'load', function(){document.getElementById('divtoupdate').innerHTML = "Updated div content";});</script>

 

with different IDs. Have you tried that before? 

I have also thought of targeting the div containing the whole site but it seems kind of extreme. Would you know of any other way of doing this?  

Thanks a lot for your help

 

Rafael

Views: 63

Reply to This

Replies to This Discussion

only repeat this

function(){document.getElementById('divtoupdate').innerHTML = "Updated div content";}
changing the id of the div in each iteration, all into the same js function

Million thanks for your help. I'm trying it out straight away

Cheers

Rafa

Hi Antonio

 

I've tried

option A

<script>BTBaddOnload(window, 'load', function(){document.getElementById('ID1').innerHTML = "updated HTML A";} {document.getElementById('ID2').innerHTML = "updated HTML B";});</script> 

 

and 

 

option B

 

<script>BTBaddOnload(window, 'load', function(){document.getElementById('ID1').innerHTML = "updated HTML A"; document.getElementById('ID2').innerHTML = "updated HTML B"; });</script>

 

None of them seem to work. What am I doing wrong?

Thanks again for your help

Cheers 

Rafa

Correct syntax is at option B, it must work.

Are you defining BTBaddOnload function prior to this script?. Can you post all the code here?

Thanks a million again, Antonio

I'll try option B again and see what happens


I got the code from a reply from BTB themselves at this forum. Here http://community.btbuckets.com/forum/topics/html-possibilities-of

 

Cheers

Rafa

Nashville Web Design will be that last customized piece you’ve been looking for to complete your companies cohesive online presence and branding across all major facets of internet marketing venues.

RSS

Follow us on Twitter

© 2013   Created by BTBuckets.

Badges  |  Report an Issue  |  Terms of Service