You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/06/03 21:38:45 UTC

[jira] Updated: (TAPESTRY-2355) Unable to observe changes to textfield (of Datefield component) using javascript

     [ https://issues.apache.org/jira/browse/TAPESTRY-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2355:
-------------------------------------------

    Fix Version/s:     (was: 5.0.12)
                   5.0.13

> Unable to observe changes to textfield (of Datefield component) using javascript
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2355
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2355
>             Project: Tapestry
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 5.0.11
>         Environment: Firefox 2.0.0.13, Ubuntu linux 7.10
>            Reporter: Michael Lake
>            Priority: Minor
>             Fix For: 5.0.13
>
>
> I'm trying to listen for changes to datefield but not having much success.
> In the "createPopup" method in datefield.js i noticed this:
>  {
>     this.datePicker = new DatePicker;
>     this.popup = $(this.datePicker.create());
>     this.field.insert({after:this.popup});
>     this.popup.absolutize().hide();
>     //relavent line:
>     this.datePicker.onselect = (function () {this.field.value = this.formatDate(this.datePicker.getDate());this.hidePopup();new Effect.Highlight(this.field);}).bind(this);
> }
> Shouldn't the "observe" function be used here?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org