Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Ajax DropDown in DOM popup


Reply

1182 Views

Avatar
Aperage

9 December 2009 at 5:00am (Last edited: 9 December 2009 5:33am), Community Member, 6 Posts

Hey,

I've implemented the DOM module on my website and all is working well.
But now i would like to optimize it a little by implementing some Ajax.
I currently have a dropdown for countries, states and cities in the DOM popup
I would like them to be linked by some ajax ( ie: When selecting a country, refresh the list of states, then the cities )

[EDIT]At the moment im a little confuse. When i select one of my object to modify it, i have some trouble recovering the informations already saved ( object country, state and city ). I've tried $this->Country but it doesn't seems to work that way.[/EDIT] => Look like it worked ($this->Country)...Well nevermind that post :P

Aperage

P.S. First post on the forums, been using Silverstripe for about 3weeks now and gotta say i love it :) Keep up the good work and i look forward working with SS community from now on :)