Re: [flexcoders] setting value to datefield text..
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: 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. 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/
Re: [flexcoders] setting value to datefield text..
Neither of those worked, I've created a new post asking about valueCommitted but it wont work here. On 9/12/05, Greg Morphis [EMAIL PROTECTED] wrote: 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 -- Auxilium meum a Domino Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/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/
Re: [flexcoders] setting value to datefield text..
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/
RE: [flexcoders] setting value to datefield text..
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 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.
[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 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/