[
https://issues.apache.org/jira/browse/TOMAHAWK-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519554
]
paul reeves commented on TOMAHAWK-796:
--------------------------------------
I think i've succesfully patched this. The issue was indeed with the iframe.
opera 9 doesn't like xml strings in document.createElement.
However, opera doesn't need an iframe (its only used i believe for IE (versions
below 7) as I.E has problems with drop downs appearing through div's).
Opera tries to render the iframe as it doesn't "silently" detect the
document.all object, therefore, I needed to modify a few tests for document.all
to become document.all && !window.opera
There is also another issue with opera not rendering the calendar in the right
place. This is to do with a scroll offset bug see
http://dev.fckeditor.net/ticket/8 (which apparently will be fixed in opera
9.5) My patch also incorporates a bit of code from
http://dev.rubyonrails.org/ticket/7466 to fix it.
The code is only invoked if (window.opera && parseInt(window.opera.version()) <
9.5).
I cannot verify that opera 9.5 will fix it however.
I'm new to submitting patches here, do i just need to attach the file to this
issue?
If so i'll clean up my code and submit it when i hear back from someone.
Cheers
> inputCalendar doesn't work under Opera 9 when renderAsPopup is 'true'
> ---------------------------------------------------------------------
>
> Key: TOMAHAWK-796
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-796
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Calendar
> Affects Versions: 1.1.3, 1.1.5-SNAPSHOT
> Environment: Windows, Opera 9.02 (also 9.01), Sun Java Runtime
> Environment version 1.4
> Reporter: Safronov Sergey
> Priority: Critical
>
> after click on calendar image we have errors in Opera error console:
> Event thread: click
> Error:
> Unhandled exception: [Object DOMException]
> code: 5
> message: INVALID_CHARACTER_ERR
> Backtrace:
> Line 124 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/calendar.HtmlCalendarRenderer/popcalendar.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> iframe = document.createElement("<iframe id='" + overDiv.id + "_IFRAME'
> style='visibility:hidden; position: absolute; top:0px;left:0px;'/>");
> Line 1393 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/calendar.HtmlCalendarRenderer/popcalendar.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> this._hideElement(this.calendarDiv);
> Line 1282 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/calendar.HtmlCalendarRenderer/popcalendar.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> this._popUpCalendar_Show(ctl);
> Line 1 of script
> form_3AbeginDateCalendarVar._popUpCalendar(this,
> document.getElementById("form:beginDate"), "dd.MM.yyyy");
> At unknown location
> [statement source code not available]
> Timeout thread: delay 200 ms
> Error:
> Unhandled exception: [Object DOMException]
> code: 5
> message: INVALID_CHARACTER_ERR
> Backtrace:
> Line 124 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/calendar.HtmlCalendarRenderer/popcalendar.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> iframe = document.createElement("<iframe id='" + overDiv.id + "_IFRAME'
> style='visibility:hidden; position: absolute; top:0px;left:0px;'/>");
> Line 1390 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/calendar.HtmlCalendarRenderer/popcalendar.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> this._hideElement(this.calendarDiv);
> Line 52 of linked script
> http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11642727/prototype.PrototypeResourceLoader/prototype.js;jsessionid=9B5EA2BE7C36884AD86ABDEC32B2A84E
> return __method.apply(object, args.concat($A(arguments)));
> At unknown location
> [statement source code not available]
> you can try http://example.irian.at/example-simple-20061123/calendar.jsf
> (MyFaces Tomahawk Examples latest build) to see it.
> --
> Best regards, Sergey
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.