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

Looking for an equivalent to DropDown CheckList

LEGEND ,
Dec 09, 2010 Dec 09, 2010

I'm hoping that someone knows of a CF equivalent to DDCL?  We tried using DDCL and it kept bumping heads with one of the AJaX files and breaking functionality - so we have to forget about using it.

Preferably CF, but can be JavaScript/jQuery.

Thanks,

^_^

934
Translate
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
Contributor ,
Dec 09, 2010 Dec 09, 2010

You won't find a CF solution that doesn't involve some sort of client side manipulation via JavaScript.  I'd search for a jQuery plugin.

Translate
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
Contributor ,
Dec 09, 2010 Dec 09, 2010

What was it breaking?  Do you use prototype or some other ajax library?  You can run jquery in 'no conflict' mode if you need to.


Translate
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 ,
Dec 09, 2010 Dec 09, 2010

cfsilence wrote:

What was it breaking?  Do you use prototype or some other ajax library?  You can run jquery in 'no conflict' mode if you need to.


I'm not sure what it was breaking - I was working on other documents, at the time.  All I know, for sure, is that it wasn't working, then if one of the AJaX file includes was remarked out, it would work flawlessly.

Is it possible to run jQuery in "no conflict" mode for just one document?  Or is it site-wide?

Thanks,

^_^

Translate
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 ,
Dec 10, 2010 Dec 10, 2010
LATEST

Did some asking around and experimenting with this.  Here's what I've discovered, so far.

One of the errors involves the following code:

<script type="text/javascript">
     $(document).ready(function(){
    ERROR --->     $("#TYPEDROP").dropdownchecklist({ emptyText: "Please select",maxDropHeight: 200, firstItemChecksAll: true, width: 183 });

                ...

         }

</script>

"Object doesn't support this method" is the error message.

I've also noticed JavaScript errors with CF/AJaX:

<script type="text/javascript">/* <![CDATA[ */
     var _cf_VMP=ColdFusion.AjaxProxy.init('/xxxxxxxxxx/yyyyy/zzzzzzzz/components/yyyyy.cfc','yyyyy');
     _cf_VMP.prototype.getVendorArray=function(FIELD_VALUE) { return ColdFusion.AjaxProxy.invoke(this, "getVendorArray", {FIELD_VALUE:FIELD_VALUE});};
   ERROR ---> _cf_VMP.prototype.getVendorNames=function(FIELD_VALUE) { return ColdFusion.AjaxProxy.invoke(this, "getVendorNames", {FIELD_VALUE:FIELD_VALUE});};

        ...

        }

</script>

This is just one of three CF/AJaX errors that I'm getting.  So is it CF/AJaX that is causing the rest to fail?  Or is this specific to DDCL?  I think it's CF/AJaX, since commenting out one of the AJaX files allows DDCL to work.

Just a thought.

^_^

Translate
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
Valorous Hero ,
Dec 09, 2010 Dec 09, 2010

There's nothing that will NOT utilize JavaScript.

Whether there is any ColdFusion code out there that will make the JavaScript for you, I can not say.

But it is important to remember that ColdFusion runs on the server and anything that is done on the client must be done in a client side language.  I.E. HTML, CSS, JavaScript, etc.

Translate
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