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


1187 Views

Avatar
Aperage

Community Member, 6 Posts

9 December 2009 at 5:00am

Edited: 09/12/2009 5:33am

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 :)