Jump to content


[updated 24/11/2012] Dependent dropdown (library)

Dependent dropdown categories ajax dropdown Categories and sub-categories

  • Please log in to reply
345 replies to this topic

#41 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 22 November 2012 - 10:54 AM

how many dropdown menu do you have?

#42 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 22 November 2012 - 11:03 AM

Show Javascript code which you get ?(Page Source)

#43 tofayelahmed

tofayelahmed

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 22 November 2012 - 11:06 AM

Hi!
I need two dependent dropdown menu.
Each dependent dropdown menu has two dropdown. menu

#44 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 22 November 2012 - 11:12 AM

draw a scheme and show dependences of your menu.

#45 tofayelahmed

tofayelahmed

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 22 November 2012 - 12:34 PM

This is My schema :

Posted Image

#46 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 22 November 2012 - 12:39 PM

send me your database dump(these tables)

#47 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 22 November 2012 - 08:22 PM

Your problem is solved. Tomorrow I'll post a new version of the library

#48 kenshicu

kenshicu

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts
  • LocationHolguín, Cuba

Posted 22 November 2012 - 10:01 PM

Victor, you've seen the problem of Dependent dropdown to not hide, but are empty at the beginning?

regards

#49 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 23 November 2012 - 07:50 AM

Yes, I know. Thanks.

#50 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 23 November 2012 - 10:02 AM

The library will be updated! The bugs has been fixed. I added more functionality. Wait... :D

#51 palme

palme

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 23 November 2012 - 04:50 PM

Hello victor! I'm using the plugin but when I implement receive this error:

A PHP Error was Encountered

Severity: 8192

Message: Call-time pass-by-reference has been deprecated

Filename: controllers / examples.php

Line Number: 74

I'm using php 5.3

This is the line: $ categories = new gc_dependent_select (& $ crud, $ fields, $ config);

Greetings!

#52 kenshicu

kenshicu

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts
  • LocationHolguín, Cuba

Posted 23 November 2012 - 04:59 PM

palme, in line:
$categories = new gc_dependent_select (& $crud, $fields, $config);

delete symbol &

$categories = new gc_dependent_select ($crud, $fields, $config);

#53 palme

palme

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 23 November 2012 - 05:10 PM

Hi kenshicu! Already did but when I do not work the drop down.
In file gc_dependent_select.php on the constructor i do var_dump of the object $crud_object and the dump is empty

Excuse my English!

Greetings!

#54 kenshicu

kenshicu

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts
  • LocationHolguín, Cuba

Posted 23 November 2012 - 06:46 PM

palme, if you do not operate the Dependent dropdown, I do not modify the library is the solution, do not tell, do not quite understand your problem. am not the expert here :)

#55 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 24 November 2012 - 03:45 AM

palme, show your code, please.

#56 tofayelahmed

tofayelahmed

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 24 November 2012 - 09:03 AM

Hello Victor!
I am waiting for your new verson.

#57 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 24 November 2012 - 05:52 PM

The library has been adapted!!!
Added new parameters:
  • where
  • order_by
  • {first_name} {last_name} - you can use this format for the "title"
These options are valid for all fields except the first!!!
you can download it and read how to use on the first page(the first post of this topic)

#58 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 24 November 2012 - 10:09 PM

The library has been adapted!!!
Added new parameters:

  • where
  • order_by
  • {first_name} {last_name} - you can use this format for the "title"
These options are valid for all fields except the first!!!
you can download it and read how to use on the first page(the first post of this topic)

Thank you!!! I'll have a go and let you know!!!
Thanks again for your efforts!

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#59 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 25 November 2012 - 07:23 AM

I confirm that the version 1.2.0 works great!
I didn't have time to try the where part but I am sure it will work great!

Well done Victor and thank you very much!!!

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#60 tofayelahmed

tofayelahmed

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 26 November 2012 - 04:53 AM

Great!
Thanks for your library.





Also tagged with one or more of these keywords: Dependent dropdown, categories, ajax, dropdown, Categories and sub-categories

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users