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)" <ji...@apache.org> on 2008/10/28 21:18:44 UTC
[jira] Closed: (TAP5-6) Unable to observe changes to textfield (of
Datefield component) using javascript
[ https://issues.apache.org/jira/browse/TAP5-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-6.
-----------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
Prototype's Event.observe() can only be used with DOM elements, not with arbitrary JavaScript objects.
> Unable to observe changes to textfield (of Datefield component) using javascript
> --------------------------------------------------------------------------------
>
> Key: TAP5-6
> URL: https://issues.apache.org/jira/browse/TAP5-6
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.0.15
> Environment: Firefox 2.0.0.13, Ubuntu linux 7.10
> Reporter: Michael Lake
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> 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