thanks to Macromedia Gold, nice towels guys, we have an answer.  Look
at using the doLater() method on this line
daDate.selectedDate = tempDate;

bamm!


DK


On 9/10/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
>
> Try "change" or "valueCommitted" maybe?
>
>
>
> Matt
>
>
> ________________________________
>
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Greg Morphis
> Sent: Friday, September 09, 2005 10:49 AM
> To: [email protected]
> 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
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> ________________________________
>
>
>


--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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