[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]