Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sujeet Kumar
Dynamic Triple Drop Down with mysql
December 18, 2011 11:45 PM
Answer

Sujeet Kumar

Rank: New Member

Posts: 24

Join Date: November 2, 2011

Recent Posts

Hi All,

i want to create a triple drop down.

If i select One country in one drop down, then all the states of that country come into the second drop down, and when i select a state from second drop down, then all the District should be populated in the third drop down. But all should be dynamic,means whatever the data is populated in state should populated from mysql similarly for city.


Thanks in advance..

Sujeet
Ravi Kumar Gupta
RE: Dynamic Triple Drop Down with mysql
December 19, 2011 12:16 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

I hope you know that you need ajax to make this work..
Raja Seth
RE: Dynamic Triple Drop Down with mysql
December 19, 2011 1:12 AM
Answer

Raja Seth

Rank: Regular Member

Posts: 223

Join Date: August 18, 2011

Recent Posts

Hi Sujeet,

You can make this out much easily with "Direct Web Remoting". Its very easy. You can go to this link and get deeper knowledge about it.

Regards,
Raja
Sujeet Kumar
RE: Dynamic Triple Drop Down with mysql
December 19, 2011 1:12 AM
Answer

Sujeet Kumar

Rank: New Member

Posts: 24

Join Date: November 2, 2011

Recent Posts

Hi Ravi,

Firstly thanks for reply.
Yes ajax in the option but as i m very new to liferay.So i m unable to handle ajax in liferay.If u have any reference for handling ajax in liferay please let me know.

Regards

Sujeet
Ravi Kumar Gupta
RE: Dynamic Triple Drop Down with mysql
December 19, 2011 1:15 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

I have a portlet on sourceforge which you can check out for basic and 2 possible ways for ajax. http://sourceforge.net/projects/ajaxjqueryportl/files/

HTH
Ranen Das
RE: Dynamic Triple Drop Down with mysql
October 30, 2012 1:33 PM
Answer

Ranen Das

Rank: Regular Member

Posts: 137

Join Date: April 6, 2011

Recent Posts

The examples are not Ajax base, its pure jquery....though it works
Harish Kumar
RE: Dynamic Triple Drop Down with mysql
October 30, 2012 11:49 PM
Answer

Harish Kumar

Rank: Expert

Posts: 474

Join Date: July 31, 2010

Recent Posts

http://michi-path.blogspot.in/2012/07/three-dynamic-dropdowns-in-liferay.html