Redo Cano, Xavier
2010-09-15 11:05:00 UTC
Hi,
I'm having a problem with Javascript and IE6 and I would like some
advice to be able to find what is happening. The problem is that when
i'm trying to use Ajax or some component that needs javascript (for
example: Date Picker) in Wicket, IE can't retrieve the needed javascript
files from the server. Or at least, it can't render them. I have no
problems with Firefox, Chrome, or IE7-8.
For example, i'm rendering this piece of HTML markup:
---------------------------------
<script type="text/javascript"
src="resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader.js
<view-source:http://localhost:7001/plash/AppJava/resources/org.apache.wi
cket.extensions.yui.YuiLib/yuiloader.js> "></script>
<script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket
-event.js
<view-source:http://localhost:7001/plash/AppJava/resources/org.apache.wi
cket.markup.html.WicketEventReference/wicket-event.js> "></script>
<script type="text/javascript" >
<!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "domready", function(event) { .....
---------------------
When IE6 reach the line Wicket.Event.add(window, "domready",
function(event) a message error pops up saying that the javascript
Wicket object is undefined. Debugging the application and the client
requests and responses I've found that the wicket app is serving the
needed javascript files and IE is downloading them, but for any reason
if I try to do a client-side debug, IE is not reading the Javascript
file it has downloaded.
Further testing has revealed that if the javascript files are retrieved
from the IE cache instead from the server, IE6 has no problem to render
the page correctly.
Moreover, any other resource I'm serving with wicket (static javascript
files, images, etc) are being rendered correctly with IE6.
I'm sure that this is happening due to a bad configuration of my wicket
app, because the Ajax examples from wicket-stuff work are working
correctly with IE6 for me but I've checked the source code and I'm not
able to find the reason why my application is not working properly.
I'm not looking for a specific solution (because the problem is so
generic that it's difficult to know what's not working) but I would like
to have some guidelines to know what could be the cause of the problem.
By the way, I'm using Wicket version 1.4.11.
Many thanks in advance,
Xavi
I'm having a problem with Javascript and IE6 and I would like some
advice to be able to find what is happening. The problem is that when
i'm trying to use Ajax or some component that needs javascript (for
example: Date Picker) in Wicket, IE can't retrieve the needed javascript
files from the server. Or at least, it can't render them. I have no
problems with Firefox, Chrome, or IE7-8.
For example, i'm rendering this piece of HTML markup:
---------------------------------
<script type="text/javascript"
src="resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader.js
<view-source:http://localhost:7001/plash/AppJava/resources/org.apache.wi
cket.extensions.yui.YuiLib/yuiloader.js> "></script>
<script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket
-event.js
<view-source:http://localhost:7001/plash/AppJava/resources/org.apache.wi
cket.markup.html.WicketEventReference/wicket-event.js> "></script>
<script type="text/javascript" >
<!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "domready", function(event) { .....
---------------------
When IE6 reach the line Wicket.Event.add(window, "domready",
function(event) a message error pops up saying that the javascript
Wicket object is undefined. Debugging the application and the client
requests and responses I've found that the wicket app is serving the
needed javascript files and IE is downloading them, but for any reason
if I try to do a client-side debug, IE is not reading the Javascript
file it has downloaded.
Further testing has revealed that if the javascript files are retrieved
from the IE cache instead from the server, IE6 has no problem to render
the page correctly.
Moreover, any other resource I'm serving with wicket (static javascript
files, images, etc) are being rendered correctly with IE6.
I'm sure that this is happening due to a bad configuration of my wicket
app, because the Ajax examples from wicket-stuff work are working
correctly with IE6 for me but I've checked the source code and I'm not
able to find the reason why my application is not working properly.
I'm not looking for a specific solution (because the problem is so
generic that it's difficult to know what's not working) but I would like
to have some guidelines to know what could be the cause of the problem.
By the way, I'm using Wicket version 1.4.11.
Many thanks in advance,
Xavi