You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Andrew Geery <an...@gmail.com> on 2013/03/29 19:06:32 UTC

IE8 error in wicket-date.js when used in a modalwindow

Using the DatePicker in a ModalWindow, I get the error below after
using the calendar widget and closing the modal.  The widget works
fine for me; it's simply throwing a JS error in IE8 (displayed in the
lower lefthand corner of the browser).  I don't see the error in other
browsers.

The problematic line in wicket-date.js is this one:

YAHOO.wicket[cfg.dpJs].hide();

I can avoid the error simply by adding a condition to the if-statement
that is wrapped around the hide method to check that
YAHOO.wicket[cfg.dpJs] is not null:

if (... && YAHOO.wicket[cfg.dpJs]) ...

I'm guessing that this is related to the bug fix for
https://issues.apache.org/jira/browse/WICKET-4975 -- perhaps the
widget is getting destroyed in IE before it can be hidden?

Thanks
Andrew

========================================

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 29 Mar 2013 17:54:46 UTC

Message: 'YAHOO.wicket[...]' is null or not an object
Line: 308
Char: 6
Code: 0
URI: http://127.0.0.1:8080/test/wicket/resource/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date-ver-1359131272000.js

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IE8 error in wicket-date.js when used in a modalwindow

Posted by Andrew Geery <an...@gmail.com>.
Done -- https://issues.apache.org/jira/browse/WICKET-5125

Andrew

On Fri, Mar 29, 2013 at 6:13 PM, Ernesto Reinaldo Barreiro
<re...@gmail.com> wrote:
> Please report this in a new issue so that proper action can be taken.
>
>
> On Fri, Mar 29, 2013 at 7:06 PM, Andrew Geery <an...@gmail.com>wrote:
>
>> Using the DatePicker in a ModalWindow, I get the error below after
>> using the calendar widget and closing the modal.  The widget works
>> fine for me; it's simply throwing a JS error in IE8 (displayed in the
>> lower lefthand corner of the browser).  I don't see the error in other
>> browsers.
>>
>> The problematic line in wicket-date.js is this one:
>>
>> YAHOO.wicket[cfg.dpJs].hide();
>>
>> I can avoid the error simply by adding a condition to the if-statement
>> that is wrapped around the hide method to check that
>> YAHOO.wicket[cfg.dpJs] is not null:
>>
>> if (... && YAHOO.wicket[cfg.dpJs]) ...
>>
>> I'm guessing that this is related to the bug fix for
>> https://issues.apache.org/jira/browse/WICKET-4975 -- perhaps the
>> widget is getting destroyed in IE before it can be hidden?
>>
>> Thanks
>> Andrew
>>
>> ========================================
>>
>> Webpage error details
>>
>> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2;
>> Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
>> 3.0.4506.2152; .NET CLR 3.5.30729)
>> Timestamp: Fri, 29 Mar 2013 17:54:46 UTC
>>
>> Message: 'YAHOO.wicket[...]' is null or not an object
>> Line: 308
>> Char: 6
>> Code: 0
>> URI:
>> http://127.0.0.1:8080/test/wicket/resource/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date-ver-1359131272000.js
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IE8 error in wicket-date.js when used in a modalwindow

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Please report this in a new issue so that proper action can be taken.


On Fri, Mar 29, 2013 at 7:06 PM, Andrew Geery <an...@gmail.com>wrote:

> Using the DatePicker in a ModalWindow, I get the error below after
> using the calendar widget and closing the modal.  The widget works
> fine for me; it's simply throwing a JS error in IE8 (displayed in the
> lower lefthand corner of the browser).  I don't see the error in other
> browsers.
>
> The problematic line in wicket-date.js is this one:
>
> YAHOO.wicket[cfg.dpJs].hide();
>
> I can avoid the error simply by adding a condition to the if-statement
> that is wrapped around the hide method to check that
> YAHOO.wicket[cfg.dpJs] is not null:
>
> if (... && YAHOO.wicket[cfg.dpJs]) ...
>
> I'm guessing that this is related to the bug fix for
> https://issues.apache.org/jira/browse/WICKET-4975 -- perhaps the
> widget is getting destroyed in IE before it can be hidden?
>
> Thanks
> Andrew
>
> ========================================
>
> Webpage error details
>
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2;
> Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
> 3.0.4506.2152; .NET CLR 3.5.30729)
> Timestamp: Fri, 29 Mar 2013 17:54:46 UTC
>
> Message: 'YAHOO.wicket[...]' is null or not an object
> Line: 308
> Char: 6
> Code: 0
> URI:
> http://127.0.0.1:8080/test/wicket/resource/org.apache.wicket.extensions.yui.calendar.DatePicker/wicket-date-ver-1359131272000.js
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro