Chronology | Current Month | Current Thread | Current Date |
[Year List] [Month List (current year)] | [Date Index] [Thread Index] | [Thread Prev] [Thread Next] | [Date Prev] [Date Next] |
Bruce, that slider example seems to be buggy, at least on my Mac under
Chrome. When I adjust the slider it usually has no effect on the rotation
rate.
But more generally, thanks for the tip on jquery ui. I keep seeing
references to jquery, and I've tried to read enough about it to figure out
what the heck it is and if there's any reason why I might ever want/need to
learn it, and so far, what I've read has given me no such reason. My hope
remains that in a short time, support for input type=range will be
widespread enough that there will be no reason to use libraries just for
basic GUI controls. Still, it's good to know where to look for such a
library.
I assume, by the way, that you're working on a GlowScript tutorial along
the same lines as the the VPython tutorial at
http://www.vpython.org/contents/docs/VPython_Intro.pdf. Please let us
know when it's ready!
And thanks for the book recommendation. I haven't yet gotten hold of a
copy of Flanagan's latest edition. Meanwhile, a beginning JavaScript book
that I've found helpful is Modern JavaScript by Larry Ullman.
Dan
From: Bruce Sherwood <Bruce_Sherwood@ncsu.edu>independent
There is an important library "jquery" and its close relative "jquery ui"
that make access to sliders and other such widgets essentially
of the many differences among browsers. These libraries are very widelyhttp://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/ButtonsSlidersMenus
used. They are imported by GlowScript. Here's an example with buttons,
slider, and pulldown menu to run (click "Edit this program" to see the
code, which is browser-independent):
_______________________________________________
Forum for Physics Educators
Phys-l@phys-l.org
http://www.phys-l.org/mailman/listinfo/phys-l