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


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to