Copy link to clipboard
Copied
I am missing something?
This form returns only "go" - not the value of slider1. It wioll onhly retunr a value only works if I use format applet.
<cfform method="post" name="form01" >
<cfslider name="slider1"
format="HTML"
vertical="false"
width="350"
value="100"
min="0"
max="200"
increment="10"
tip="true"/>
<cfinput type="submit" name="go" value="go">
</cfform>
Copy link to clipboard
Copied
>I am missing something?
If you have, then there are two of us.
Seems like a bug to me. Couldn't find that one in Adobe Bug database either. Go ahead and post a new one, I say.
You could probably go around this by using Javascript function to change a value of a hidden input field.
-Fernis
Copy link to clipboard
Copied
Make that three of us (I am running 9.0.1, fully patched). I've annotated the docs to point out there example doesn't work. And will vote for a bug if you raise one and post the ref back here.
--
Adam
Copy link to clipboard
Copied
Thanks for checking it out. Here is the bug report:
*****BUG******
Concise problem statement:
Steps to reproduce bug:
1. Run this code:
<cfform method="post" name="form01" >
<cfslider name="slider1"
format="HTML"
vertical="false"
width="350"
value="100"
min="0"
max="200"
increment="10"
tip="true"/>
<cfinput type="submit" name="go" value="go">
</cfform>
Results: slider1 returns no value on submit - actually does not exist in the form submit. It only works in applet (which is not practical for our users.)
Expected results: slider1 should be returning the slide value.
See post: http://forums.adobe.com/thread/796754?tstart=0. Two other users get the same results.
Copy link to clipboard
Copied
What's the direct URL to the bug? I cannae find it (which makes it hard to vote for 😉
--
Adam
Copy link to clipboard
Copied
I had to come back at this issue, because I need a slider in one of my forms.
The solution would be using the onchange attribute to call a javascript function which updates a hidden form field.
Cfslider documentation doesn't give any clue about the javascript function properties that will be passed. http://www.raymondcamden.com/index.cfm/2010/3/30/Quick-example--updating-stuff-with-CFSLIDER offers help, luckily.
For example, my cfslider controls the opacity of the page background image.
function updateBackgroundAlpha(ob,value)
{
document.getElementById('preview_pagebgimage').style.opacity = value/100;
// insert hidden form field update here
}
And yeah, it's stupid that cfslider only supports integer values. I would have liked to use min = 0, max = 1, increment = 0.1.