GayaBalan / struts2-jquery-plugin

Automatically exported from code.google.com/p/struts2-jquery-plugin
0 stars 0 forks source link

IE HTML Parsing Error for datepicker #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. <@j.datepicker id="datepicker1" displayFormat="yyyy-MM-dd" 
                  imageTooltip="誕生日を入力してください" showButton="true" 
changeYear="true" 
                  changeMonth="true" onChangeTopics="datepickerSelectedDate" 
                  onCompleteTopics="datepickerClosed" 
imageUrl="images/icon/calendar.gif" name="datepicker11"/>
        <@j.div uri="hoge" reloadTopics="datepickerSelectedDate" 
elementIds="datepicker1"/>
2. use IE to show the page.
3. IE complains that the page has an error:
HTML Parsing Error: Unable to modify the parent container element before 
the child element is closed (KB927917)

What is the expected output? What do you see instead?
a page without error. a break table. although the datepick itself works, but 
the other things behind it cannot be shown.

What version of the product are you using? On what operating system?
IE8 on windows Xp

Please provide any additional information below.
if I change the template/jquery/jquery-bind.ftl 
from
_struts2_jquery.bind($('#${parameters.id?html}'));
to
$(function() {_struts2_jquery.bind($('#${parameters.id?html}'));});

the problem will be resolved. I think the problem is IE's components' 
rendering order, or IE cannot rendering the component in time.

Original issue reported on code.google.com by yan...@gmail.com on 25 Sep 2009 at 6:01

GoogleCodeExporter commented 9 years ago
I cannot reproduce the problem.
I am testing the datpicker samples on the showcase site
(http://struts2-jquery.appspot.com/home.action) with IE7.

I'll try with IE8 later...

Original comment by obinna@gmail.com on 27 Sep 2009 at 4:21

GoogleCodeExporter commented 9 years ago
I'm using IE8 on WinXP and I had the same problem.
I changed as "yangnf" said e now its working.

Original comment by lcam...@gmail.com on 2 Dec 2009 at 7:04

GoogleCodeExporter commented 9 years ago
Thanks for the update.
Does this happen only for the date-picker or have you noticed it happen for 
other
components as well? 

Original comment by obinna@gmail.com on 2 Dec 2009 at 7:08

GoogleCodeExporter commented 9 years ago
This happened only with the component date-picker

Original comment by lcam...@gmail.com on 2 Dec 2009 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by obinna@gmail.com on 2 Dec 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Thanks. It's fixed and in version 1.1.3

Original comment by obinna@gmail.com on 2 Dec 2009 at 11:40