You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Stefan Esterer (JIRA)" <ta...@jakarta.apache.org> on 2006/12/21 15:47:21 UTC
[jira] Created: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
-------------------------------------------------------------------------------------
Key: TAPESTRY-1206
URL: http://issues.apache.org/jira/browse/TAPESTRY-1206
Project: Tapestry
Issue Type: Bug
Affects Versions: 4.1.1
Environment: We are using the 4.1.1 snapshots of tapestry
Reporter: Stefan Esterer
We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
example files are attached below
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "David Davis (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466279 ]
David Davis commented on TAPESTRY-1206:
---------------------------------------
I tested the above patch modification, and it works for me:
{{{
node.outerHTML = selectOuterHtml.replace(/(<SELECT[^<]*>).*(<\/SELECT>)/, '$1' + content + '$2');
}}}
Also, FYI: IE on Linux is possible through ies4linux: http://www.tatanka.com.br/ies4linux/
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Fix For: 4.1.2
>
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page, TAPESTRY-1206.patch
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466054 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
Oh, I see: the regular expression does not fill in the new element, when it's empty (sometimes I need some time ;))
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465388 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
The Maven/Eclipse project in selectAjaxUpdate.zip makes it easier to reconstruct the problem. I tried to find the error - it seems that Dojo in connection with IE update the DOM tree in some weird way (see screenshot_i6.jpg). The first open-tag for the options is not added. I couldn't find the source of this problem. Maybe someone has an idea!?
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert resolved TAPESTRY-1206.
-------------------------------------
Resolution: Fixed
Assignee: Jesse Kuhnert
Thanks for all the hard work on this ! (and the link to ies4linux - had no idea someone had something done for this in wine)
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Assigned To: Jesse Kuhnert
> Fix For: 4.1.2
>
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page, TAPESTRY-1206.patch
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
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] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466067 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
OK, now I think I've got it.
This replace should do it correctly:
node.outerHTML = selectOuterHtml.replace(/(<SELECT[^<]*>).*(<\/SELECT>)/, '$1' + content + '$2');
I've tested it with IE6/7 on WinXP and Firefox 2.0.0.1 on WinXP.
Test cases were:
1. empty SELECT
2. SELECT with OPTIONs
3. SELECT with OPTGROUPs and OPTIONs
Here's the (hopefully final) patch:
Index: src/js/tapestry/core.js
===================================================================
--- src/js/tapestry/core.js (revision 497116)
+++ src/js/tapestry/core.js (working copy)
@@ -196,12 +196,15 @@
dojo.event.browser.clean(node); // prevent mem leaks in ie
+ var content=tapestry.html.getContentAsString(element);
if (djConfig["isDebug"]) {
- var content=tapestry.html.getContentAsString(element);
dojo.log.debug("Received element content for id <" + id + "> of:", content);
+ }
+ // fix for IE - setting innerHTML does not work for SELECTs
+ if (dojo.render.html.ie && node.outerHTML && node.nodeName == "SELECT") {
+ node.outerHTML = selectOuterHtml.replace(/(<SELECT[^<]*>).*(<\/SELECT>)/, '$1' + content + '$2');
+ } else {
node.innerHTML=content;
- } else {
- node.innerHTML=tapestry.html.getContentAsString(element);
}
// copy style/class css attributes
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page, TAPESTRY-1206.patch
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAPESTRY-1206:
---------------------------------------
Attachment: TAPESTRY-1206.patch
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page, TAPESTRY-1206.patch
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465447 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
Seems like that this browser bug in IE is still not fixed (even in IE7 - I hate those MS guys)
http://support.microsoft.com/default.aspx?scid=kb;en-us;276228
This causes the problem because the SELECT boxes are updated via innerHTML.
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAPESTRY-1206:
---------------------------------------
Attachment: selectAjaxUpdate.zip
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465502 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
The problem is in core.js of tapestry-framework. Here the innerHTML is used to update a node in the dom tree.
I did a simple workaround for MSIE. It works for IE6 on XP and it does not change the behavior of other browsers. I have to test in in IE7. Here is the patch:
Index: src/js/tapestry/core.js
===================================================================
--- src/js/tapestry/core.js (revision 497116)
+++ src/js/tapestry/core.js (working copy)
@@ -196,12 +196,15 @@
dojo.event.browser.clean(node); // prevent mem leaks in ie
+ var content=tapestry.html.getContentAsString(element);
if (djConfig["isDebug"]) {
- var content=tapestry.html.getContentAsString(element);
dojo.log.debug("Received element content for id <" + id + "> of:", content);
+ }
+ // fix for IE - setting innerHTML does not work for SELECTs
+ if (dojo.render.html.ie && node.outerHTML && node.nodeName == "SELECT") {
+ node.outerHTML=node.outerHTML.replace(/<OPTION.*OPTION>/, content);
+ } else {
node.innerHTML=content;
- } else {
- node.innerHTML=tapestry.html.getContentAsString(element);
}
// copy style/class css attributes
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAPESTRY-1206:
---------------------------------------
Component/s: XHR/dhtml/Ajax
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Stefan Esterer (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1206?page=all ]
Stefan Esterer updated TAPESTRY-1206:
-------------------------------------
Attachment: SelectionTest.html
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert updated TAPESTRY-1206:
------------------------------------
Fix Version/s: 4.1.2
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Fix For: 4.1.2
>
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page, TAPESTRY-1206.patch
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAPESTRY-1206:
---------------------------------------
Attachment: screenshot_ie6.jpg
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Stefan Esterer (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1206?page=all ]
Stefan Esterer updated TAPESTRY-1206:
-------------------------------------
Attachment: SelectionTest.java
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Christian Köberl (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466039 ]
Christian Köberl commented on TAPESTRY-1206:
--------------------------------------------
@Dave:
the regular expression replace should work anyway because it should not match anything when no options are present. At least it works for me IE6/WinXP.
You have an IE6 running on Linux?!
But your comment made me think about the patch and I realized the there could also be <OPTGROUP> elements in there. So, the replace should be:
node.outerHTML=node.outerHTML.replace(/<OPT(ION|GROUP).*OPT(ION|GROUP)>/, content);
Here's the new patch:
Index: src/js/tapestry/core.js
===================================================================
--- src/js/tapestry/core.js (revision 497116)
+++ src/js/tapestry/core.js (working copy)
@@ -196,12 +196,15 @@
dojo.event.browser.clean(node); // prevent mem leaks in ie
+ var content=tapestry.html.getContentAsString(element);
if (djConfig["isDebug"]) {
- var content=tapestry.html.getContentAsString(element);
dojo.log.debug("Received element content for id <" + id + "> of:", content);
+ }
+ // fix for IE - setting innerHTML does not work for SELECTs
+ if (dojo.render.html.ie && node.outerHTML && node.nodeName == "SELECT") {
+ node.outerHTML=node.outerHTML.replace(/<OPT(ION|GROUP).*OPT(ION|GROUP)>/, content);
+ } else {
node.innerHTML=content;
- } else {
- node.innerHTML=tapestry.html.getContentAsString(element);
}
// copy style/class css attributes
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "David Davis (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465927 ]
David Davis commented on TAPESTRY-1206:
---------------------------------------
One note on the above patch:
{{{
node.outerHTML=node.outerHTML.replace(/<OPTION.*OPTION>/, content);
}}}
That line only works if at least one OPTION is initially present. So it doesn't work (on IE6) if the HTML is initialized as:
{{{
<SELECT id="foo">
</SELECT>
}}}
Otherwise, the patch worked for me on IE6/Linux.
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: screenshot_ie6.jpg, selectAjaxUpdate.zip, SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1206) Asynchronous Selection Boxes work
with Firefox 2.0 but not with Internet Explorer 6/7
Posted by "Stefan Esterer (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1206?page=all ]
Stefan Esterer updated TAPESTRY-1206:
-------------------------------------
Attachment: SelectionTest.page
> Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7
> -------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1206
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1206
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: We are using the 4.1.1 snapshots of tapestry
> Reporter: Stefan Esterer
> Attachments: SelectionTest.html, SelectionTest.java, SelectionTest.page
>
>
> We have discovered that the use of dependency in selection boxes leads to problems, if you use asynchron calls and internet explorer.
> example files are attached below
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org