⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

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



victor
  • profile picture
  • Member

Posted 22 November 2012 - 10:54 AM

how many dropdown menu do you have?

victor
  • profile picture
  • Member

Posted 22 November 2012 - 11:03 AM

Show Javascript code which you get ?(Page Source)

tofayelahmed
  • profile picture
  • Member

Posted 22 November 2012 - 11:06 AM

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

victor
  • profile picture
  • Member

Posted 22 November 2012 - 11:12 AM

draw a scheme and show dependences of your menu.

tofayelahmed
  • profile picture
  • Member

Posted 22 November 2012 - 12:34 PM

This is My schema :

[img]http://mysoftheaven.net/ems_nilg/schema.png[/img]

victor
  • profile picture
  • Member

Posted 22 November 2012 - 12:39 PM

send me your database dump(these tables)

victor
  • profile picture
  • Member

Posted 22 November 2012 - 20:22 PM

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

kenshicu
  • profile picture
  • Member

Posted 22 November 2012 - 22:01 PM

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

regards

victor
  • profile picture
  • Member

Posted 23 November 2012 - 07:50 AM

Yes, I know. Thanks.

victor
  • profile picture
  • Member

Posted 23 November 2012 - 10:02 AM

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

palme
  • profile picture
  • Member

Posted 23 November 2012 - 16: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!

kenshicu
  • profile picture
  • Member

Posted 23 November 2012 - 16:59 PM

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

delete symbol &

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

palme
  • profile picture
  • Member

Posted 23 November 2012 - 17: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!

kenshicu
  • profile picture
  • Member

Posted 23 November 2012 - 18: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 :)

victor
  • profile picture
  • Member

Posted 24 November 2012 - 03:45 AM

palme, show your code, please.

tofayelahmed
  • profile picture
  • Member

Posted 24 November 2012 - 09:03 AM

Hello Victor!
I am waiting for your new verson.

victor
  • profile picture
  • Member

Posted 24 November 2012 - 17:52 PM

The library has been adapted!!!
Added new parameters:[list]
[*]where
[*]order_by
[*]{first_name} {last_name} - you can use this format for the "title"
[/list]
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)

davidoster
  • profile picture
  • Member

Posted 24 November 2012 - 22:09 PM

[quote name='victor' timestamp='1353779528' post='4426']
The library has been adapted!!!
Added new parameters:[list]
[*]where
[*]order_by
[*]{first_name} {last_name} - you can use this format for the "title"
[/list]
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)
[/quote]
Thank you!!! I'll have a go and let you know!!!
Thanks again for your efforts!

davidoster
  • profile picture
  • Member

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!!!

tofayelahmed
  • profile picture
  • Member

Posted 26 November 2012 - 04:53 AM

Great!
Thanks for your library.