By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

'slider' applets

P: n/a
I have seen applets for mathematical functions with a mouse-operated
slide-bar to vary a parameter in lieu of direct numeric entry.

One waws online as Java I believe and the others were created by the
Maple math package. I believe it can export them to various languages.

Is such an entity possible and how difficult with PHP?

Thank you.

Murray

Feb 25 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Sun, 25 Feb 2007 01:21:40 +0100, <mu*******************@yahoo.com>
wrote:
I have seen applets for mathematical functions with a mouse-operated
slide-bar to vary a parameter in lieu of direct numeric entry.

One waws online as Java I believe and the others were created by the
Maple math package. I believe it can export them to various languages.

Is such an entity possible and how difficult with PHP?

Thank you.

Murray
PHP has nothing to do with it, so yeah, it can be done and it wouldn't
take a lot of time in PHP.

There's a reason why others have used Java: it runs in the client (the
browser). Thus you could build it in any browser-accepted environment.
Flash and Javascript come to mind. And maybe HTML Forms 2.0 will have a
slider, I should check that, so you don't need to build anything at all.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Feb 25 '07 #2

P: n/a
mu*******************@yahoo.com wrote:
I have seen applets for mathematical functions with a mouse-operated
slide-bar to vary a parameter in lieu of direct numeric entry.

One waws online as Java I believe and the others were created by the
Maple math package. I believe it can export them to various languages.

Is such an entity possible and how difficult with PHP?

Thank you.

Murray
Murray,

Impossible in PHP. PHP is server-side, only. You need a client-side
language to handle it. Java is obvious; Flash also should work. I've
never tried but it might also be possible in Javascript.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 25 '07 #3

P: n/a
OK, tradeoff there...

I've begun looking at PHP instead of JS because I like the fact that
things run on the server.

My thought was that an application had a better chance of running
server-side for people with various browsers and peoplr who refuse to
allow scripts to run or who have software that prevents scripts.

I don't NEED the slider input method, but like the interactive
functionality.

Thank you

Feb 25 '07 #4

P: n/a
On Feb 25, 6:44 am, murrayatuptowngall...@yahoo.com wrote:
OK, tradeoff there...

I've begun looking at PHP instead of JS because I like the fact that
things run on the server.

My thought was that an application had a better chance of running
server-side for people with various browsers and peoplr who refuse to
allow scripts to run or who have software that prevents scripts.

I don't NEED the slider input method, but like the interactive
functionality.

Thank you

Now I would suggest you to do it with JS. Last friday I just
prototyped a slider, which could resize an image, and it worked quite
neatly. Just google for javascript slider.

Now for the non-javascript -users, just provide the same functionality
with text-input -field.

t.tj.j.t

Feb 25 '07 #5

P: n/a
mu*******************@yahoo.com wrote:
OK, tradeoff there...

I've begun looking at PHP instead of JS because I like the fact that
things run on the server.

My thought was that an application had a better chance of running
server-side for people with various browsers and peoplr who refuse to
allow scripts to run or who have software that prevents scripts.

I don't NEED the slider input method, but like the interactive
functionality.

Thank you
Yes, that's nice. But something which runs server-side has no access to
the client end, except via the HTTP protocol (i.e. POST and GET
variables). To get client-side functionality like you want, you need
something which runs on the client.

And Jussist has the right idea - use JS to enhance the experience, but
don't force people to rely on it. Provide the slider for those with JS
enabled, and a text or select box for those who don't.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 25 '07 #6

P: n/a
The Yahoo javascript library has a slider.
http://developer.yahoo.com/yui/slider/

I've never used it, but I have used some of the other provided
components and find the library very easy to use.

Feb 26 '07 #7

P: n/a
Hello,

on 02/24/2007 10:21 PM mu*******************@yahoo.com said the following:
I have seen applets for mathematical functions with a mouse-operated
slide-bar to vary a parameter in lieu of direct numeric entry.

One waws online as Java I believe and the others were created by the
Maple math package. I believe it can export them to various languages.

Is such an entity possible and how difficult with PHP?
Yes, I am working on a plug-in for this forms generation and validation
class that will provide exactly whay you ask.

Just let me know if you would like to be notified when the plug-in is ready.

http://www.phpclasses.org/formsgeneration

Meanwhile you may want to take a look at some the available plug-ins in
action here:

http://www.meta-language.net/forms-examples.html

and also a tutorial video that covers all the features of this class and
the plug-ins:

http://www.phpclasses.org/browse/video/1/package/1.html
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Mar 4 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.