Try “change” or “valueCommitted” maybe?

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Greg Morphis
Sent: Friday, September 09, 2005 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setting value to datefield text..

 

As per my previous post I've having problems trying to set the value
of the textbox of the datefield component. I've tried mouseUp,
mouseDown and offFocus.
Is there a way of doing this so it's seemingly unnoticable to the user?

I have a function that sets the selectedDate value..

      function getNextSaturday(date)
      {
            // define variables
            var cMonth;
            var cYear;
            var cDay;
            var dayNum;
            var tempDate;

            // set variables
            cMonth = (date.getMonth());
            cYear = date.getFullYear();
            cDay = date.getDate();
            dayNum = date.getDay();

            // create date object for the next Saturday of the date chosen
            tempDate = new Date (cYear,cMonth,cDay + (6 - dayNum));

            // set the datefield's value to your date object
            daDate.selectedDate = tempDate;

            //daDate.text=;
      }      

I know it's the text value you want to change but every event I try
fails to change it.
offFocus works however the user has to click elsewhere to see it's effect.
The mouseDown and mouseUp, if they work they're changed back. I did
notice the mouseUp works AFTER you select the value and then reclick
on the datefield component.

Is there an event I'm missing?

Thanks!


--
Auxilium meum a Domino



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to