• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfslider - not passing value to forms

Explorer ,
Feb 25, 2011 Feb 25, 2011

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>

TOPICS
Advanced techniques

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 25, 2011 Feb 25, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2011 Feb 26, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2011 Feb 26, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2011 Mar 01, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 29, 2012 Oct 29, 2012

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation