Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java script dynamic banner fails to render  RSS feed

 
A Johnson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning,
I've recently started a website using Wordpress 4.8 and Avanda theme, one of my affiliates is Agoda and I'm having some problems getting their dynamic banner to animate.

Of course I contacted them without a satisfactory solution but based on some online Java Script tests there are errors in the banner generation, I've done some reading and looking online but just am overlooking the solution which I am sure is right in front of me. Would someone mind helping me out on this? Here is their code.

<script type="text/javascript">
    agoda_ad_client = "1780050_83574";
    agoda_ad_width = 728;
    agoda_ad_height = 90;
</script>
<script type="text/javascript" src="//banner.agoda.com/js/show_ads.js"></script>

I know it's simple enough and I'm sure the solution is staring me in the face, I just keep missing it.

Thanks in advance.
 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Javascript isn't the same as Java, they have confusingly similar names but they are not the same language. I've moved your post to a forum where you may get an answer to your problem.
 
A Johnson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies, working a graveyard shift is really effecting ability to process things. Thanks much.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, all the work is being done in the script loaded from the agora website, so that might be were you need to go for help.

Any errors in the JavaScript console?
 
A Johnson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I contacted them regarding this and didn't get a solution. Would like to get the dynamic function to work but the link works at least. Been doing a bit of reading trying to sort it out without much luck so far.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!