Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Other
Author Message
guilherne
New Member
New Member



Joined: Oct 21, 2009
Posts: 9

PostPosted: Wed Nov 14, 2012 1:51 pm Reply with quote

Hi.
I was thinking how to create a dynamic combo to use in raven nuke modules, like Your_Account, when people register to the site.
Example:
User select his state, than in the next field, he selects the city filtered by the state he has just selected.
Any idea? Is there any module with similar function?
Thanks
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Wed Nov 14, 2012 4:59 pm Reply with quote

Not sure what you need it to do, but you might try the Member Map module
http://sourceforge.net/projects/membermapnuke/
 
View user's profile Send private message Visit poster's website
guilherne







PostPosted: Fri Nov 16, 2012 6:42 am Reply with quote

Sorry. What I sugest is to use in Raven Nuke a Dynamic Combobox which populate using php scripting from db and onselection change values of another dynamic Combobox. Initially 2nd combobox should be invisible and on selection of 1st combobox make 2nd combobox visible related with similar data.
 
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Fri Nov 16, 2012 8:39 am Reply with quote

This is possible with every php script and db-connect and loaded jquery source. You must load the data with php from the database in a while loop and with jquery you can build your dropdown.

http://snipplr.com/view/65536/jquery-dynamic-combobox/
 
View user's profile Send private message
spasticdonkey







PostPosted: Fri Nov 16, 2012 8:56 am Reply with quote

I know Only registered users can see links on this board! Get registered or login! had a similar functionality, but sounds like alot of work as you would have to cover every country, state, and city in the world.

There are emerging browser technologies that allow you to request the location of the browser, which I would be more inclined to use, as opposed to a massive db of every country, state, and city in the world. http://support.google.com/chrome/bin/answer.py?hl=en&answer=142065

That being said I don't have time to look into either approach for the near future. I'm not sure the functionality is valuable enough for the work involved, but unsure what you plan on using this for??
 
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Sun Nov 18, 2012 4:49 pm Reply with quote

an example right here:

http://designpoodles.com/avtex/dynamic_dropdowns/test.php

Comming from this tutorial:

http://blog.avtex.com/2012/05/07/dynamic-asynchronous-country-and-state-dropdowns/

uses: http://www.geonames.org/

Another on Github (not tested or found demo of it):
https://github.com/LawnGnome/jQuery-geoselector#readme
 
View user's profile Send private message Send e-mail
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Nov 20, 2012 2:45 pm Reply with quote

Look at the admin function in nukeFEED. Once you select the Content type for the feed, the Order and Level drop downs are populated accordingly.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
kguske







PostPosted: Tue Nov 20, 2012 2:49 pm Reply with quote

Also, the number of items in the feed can be typed or selected (i.e. a combo box).

There are a number of other jQuery scripts that provide linked select boxes. Also, check out Only registered users can see links on this board! Get registered or login! to see some other cool stuff you can do with select input...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©