Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem getting some code from jsfiddle to work.  RSS feed

 
Shane Stevens
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks, I found some code in jsfiddle that I would like to incorporate into my own site; http://jsfiddle.net/zLjae81b/18/. At the moment I'm just trying to get it working on my site before tailoring it. I've looked at some of the answers on this site and I thought I had covered everything but I can only get it nearly working. Basically the slider in the HTML part isn't showing up. I've downloaded the external resources (ol.css and jquery) tried $(document).ready(function() { and $(window).load(function(){. There are no errors showing up in 'console' mode. Can anyone spot something I may have missed? Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36875
481
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see the problem, but I've added this thread to our JavaScript forum. That way our JavaScript gurus are more likely to see it!
 
Shane Stevens
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:I don't see the problem, but I've added this thread to our JavaScript forum. That way our JavaScript gurus are more likely to see it!


Hi Jeanne, thanks for that. I've also posted the stylesheet code in case the problem is there.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65973
140
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ready handler is preferred over the load handler.

I'd recommen setting a breakpoint in the code and stepping through to find out what part is not doing what you expect. Then you can ask a more targeted question on that part.
 
Shane Stevens
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:The ready handler is preferred over the load handler.

I'd recommen setting a breakpoint in the code and stepping through to find out what part is not doing what you expect. Then you can ask a more targeted question on that part.


Thanks Bear Bibeault, I found a better example of what I was after which was commented so I could understand the code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!