I use change to set the value of the DateField but the text field
accompanying it doesnt change. I havent tried the valueCommited event
yet. I'll give it a try.

On 9/10/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Try "change" or "valueCommitted" maybe? 
> 
>   
> 
> Matt 
> 
>   
>  
>  ________________________________
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 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 
>  
>  
>  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. 
>  
>  ________________________________
>  
> 
> 


-- 
Auxilium meum a Domino


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