You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2006/04/18 01:37:36 UTC

[jira] Commented: (TOMAHAWK-261) Do not use document.write in popup calendars

    [ http://issues.apache.org/jira/browse/TOMAHAWK-261?page=comments#action_12374828 ] 

Adam Winer commented on TOMAHAWK-261:
-------------------------------------

In addition, document.write() cannot be used in XHTML.

http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite

> Do not use document.write in popup calendars
> --------------------------------------------
>
>          Key: TOMAHAWK-261
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-261
>      Project: MyFaces Tomahawk
>         Type: Improvement

>   Components: Calendar, Date
>     Versions: 1.1.2-SNAPSHOT, 1.1.1, 1.1.3-SNAPSHOT
>     Reporter: Andrew Robinson
>     Priority: Blocker

>
> The popup calednar for the date control (and I think the calendar control) uses javascript "document.write" methods. Unfortunately this is not very compatible with AJAX as it is hard to write content to the document after the document is closed.
> Instead, can this be changed to have: 
> A) printed hidden component  (visibility: hidden; display: none) and just shown when the user clicks the popup button.
> or 
> B) Use the DOM JavaScript API to add new elements to the DOM instead of document.write.
> Unless this is changed, these controls cannot be used with AjaxAnywhere and probably not with other AJAX solutions.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira