• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem getting some code from jsfiddle to work.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic