Richard:

OK, I downloaded again from jqueryui.com/download as you suggested.

A copy of color-picker is now sitting at:
C:/Computers/JavaScript/JQuery/jquery-ui-1.7.2.custom/development-
bundle/demos/slider/colorpicker.html
and works fine.

I want to play with it, so I copied it to my main JQuery folder,
using the regular FireFox 'save page as' option.

That version now sits at:
C:/Computers/JavaScript/JQuery/colorpicker.html

with imports as follows:
        <link type="text/css" href="colorpicker_files/ui.css"
rel="stylesheet">
        <script type="text/javascript" src="colorpicker_files/jquery-1.js"></
script>
        <script type="text/javascript" src="colorpicker_files/ui_002.js"></
script>
        <script type="text/javascript" src="colorpicker_files/ui.js"></
script>
        <link type="text/css" href="colorpicker_files/demos.css"
rel="stylesheet">

and files with those names are indeed present in the folder:
C:\Computers\JavaScript\JQuery\colorpicker_files

Just as before, the copied version Does Not Work properly, to wit:

The slider handle is missing.

Instead of a color bar to the left of each slider, there is a one
pixel wide color bar at the far left.

The upper border of each bar is thick dark gray for a distance fixed
by the initial value of the slider.

The lower border of each bar is thick dark gray and its right end
moves like a slider handle should when I click or drag on the slider.

The swatch changes color appropriately as I drag the lower border, so
the guts of the slider is working.

It seems to me that there is some implicit file that is not getting
copied when I save the demo.

The file ui.css only says
@import "ui.base.css";
@import "ui.theme.css";

so, as before, I added those files to the colorpicker_files folder,
but that still doesn't help.

Do you have any idea what the missing files might be?

Harvey


On Nov 26, 7:01 am, "Richard D. Worth" <[email protected]> wrote:
> On Wed, Nov 25, 2009 at 8:33 PM, hsfrey <[email protected]> wrote:
> > I downloaded the "colorpicker" demo from
> >http://jqueryui.com/demos/slider/colorpicker.html
> > so I could experiment with it.
>
> > At first it showed no bars. I determined that was because the css file
> > imported files local to the jquery site.
>
> > I located and downloaded ui.theme.css and ui.base.css.
>
> You're missing ui.slider.css
>
>
>
> > Now there were bars, but no slider handle, and no colors to the left
> > of the handle.
>
> > Can anyone tell me what files I need to run the colorpicker demo
> > locally?
>
> You need a complete jQuery UI theme. This is true for all plugins. It's as
> simple as linking to a single css file when you download a pre-built or
> custom theme using jqueryui.com/download. The individual file route you've
> done so far works as well, but is a bit more work, and only needed in
> advanced use cases.
>
> > And, wouldn't it be a good practice to include all necessary files
> > with demos so that they would work properly when downloaded?
>
> How did you download the demo? When you download jQuery UI via
> jqueryui.com/download you get all demos and all theme files needed to run
> all demos.
>
> - Richard

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to