[SOLVED] Chained Selects jQuery Plugin

More
12 years 8 months ago #37887 by brandonking
Is this feature coming next release?
Regards,

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37898 by ggppdk
Hello,
did you try duplicating the 'select' field and making the customization that you propose?

This way you can have this feature now ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37899 by brandonking
No I haven't tried creating duplicate of select field coz don't know what's the best way to disable select2.
Regards,

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37901 by ggppdk
Hello,
to disable select2 simply:
remove the the CSS class "use_select2_lib"

Find line
Code:
$classes = ' use_select2_lib ';
and change to
Code:
$classes = '';//' use_select2_lib ';

We will put a parameter for this, (to disable select2, but anyway when using chained selects select2 may not be as important or necessary)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37905 by brandonking
I see... I will try to duplicate select field.

But I am still thinking using Select2 as Chained will be bettter... :)
As I mentioned earlier, The Select2 can be used as Chained Select as well but don't know how to implement. I have requested sample code but unfortunately no reply at all.
github.com/ivaynberg/select2/issues/1300

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #37907 by ggppdk
Hello,

i liked a specific lib that you suggested :
jquery.chained.js

i think the above will give a smooth/powerful implementation

just no time to review/implement it

and i know that despites v2.0.3 having quite a few of mainly minor bug-fixes it also has additions, so you might ask yourself why not implement chained-select which is a really useful feature

well most time costly addition were templating ... which we will need anyway for J3.x support


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #42646 by brandonking
Just curious, Are you planning for this in near future?

P.S: Please check this.
stackoverflow.com/questions/17083661/jqu...ajax-chained-selects

It maybe helpful to make Select2 as Chained Select.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #42654 by ggppdk
Hello

we
a. either we use the select2 to make the AJAX query
b. or we create and replace the full HTML of the field

maybe a is preferable,

just using a. complicates a bit the item creation before calling the onDisplayFilter() function

but using b. will is also a bit tricky in another way (have to re-add JS events after replacing the filter's HTML)

so i think we will do a. (what we originally planned anyway)

this will be a new field 'selectchained' that will use selectmultiple and will be in commercial version, along with a grouping field
(and other features, just still 95% of features will be free)

Would like to do this commercial version by 10 of January, but not sure if possible by that date
(just you can have this field earlier than that 10 of Jan for testing, send me a PM in mid of December)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #42659 by brandonking
Okay, I will. Thank you.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #42663 by brandonking

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save