Solved

Jquery colpicker not loading

Posted on 2013-11-25
4
211 Views
Last Modified: 2013-11-26
Hi guys,

Im trying to implement
http://colpick.com/plugin

here:
http://www.deans-place.co.uk/colourpicker/

Im sure im missing something stupid, but what is it?

Thanks,
Dean
0
Comment
Question by:deanlee17
  • 2
  • 2
4 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39675126
Hi,
you might try to wrap your script into a
$(function(){
    $('#picker').colpick();
});

Open in new window

And/or try to use an older version of jQuery (at least the 1.10 did not work in jsFiddle):
http://jsfiddle.net/EE_RainerJ/Ry6rK/

HTH
Rainer
0
 

Author Comment

by:deanlee17
ID: 39675164
Hmmm I tried tried wrapping it into a function and it still didnt work, changed the version of Jquery, still no use?
0
 

Author Comment

by:deanlee17
ID: 39675175
I needed to put the jquery library before the colourpicker script
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39675186
Could be.
Normally you wrap the jQuery actions into a $(document).ready() - which should ensure that everything you need is there.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What does GoogleTagMgr javascripts below do 5 25
Customizing jQuery UI Accordion CSS 3 28
Javascript 2 17
Why is initialize not a function? 8 16
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question