Updating Flash Form Multiple Selects Related

Posted on Aug 15, 2005

Just a quick post. I finally finished my Flash form project the other day, and what I needed was to update multiple related selects after data was loaded in via flash remoting. It was easy enough to pre-select the first select box, but I needed the related select box to populate before I could pre-select the selections in it. This took a 1 line of code:

choosebrands.dispatchEvent({type:'change'});

Note, choosebrands is the name of the first select box, and I am broadcasting that I have made a change. After that, I could simply proceed with pre-selecting options in the related select box. I only used this on two related selects, but I assume the procedure would not be any different regardless of how many related selects were involved.

As always, to give credit where credit is due, this post is just filling in some implementation details where the heavy lifting was done by the folks at ASFusion.

Comments

There are currently no comments for this entry...be the first!

Write your comment



(it will not be displayed)





About

My name is Brian Rinaldi and I am the Web Community Manager for Flash Platform at Adobe. I am a regular blogger, speaker and author. I also founded RIA Unleashed conference in Boston. The views expressed on this site are my own & not those of my employer.