You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Michael Lake (JIRA)" <de...@tapestry.apache.org> on 2008/04/14 16:29:05 UTC

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

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



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


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

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ 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.13)
                   5.0

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


[jira] Closed: (TAP5-6) Unable to observe changes to textfield (of Datefield component) using javascript

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ 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