Series of JavaScript errors in my browser
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Series of JavaScript errors in my browser  XML
Forum Index -> Components
Author Message
mistraj

Joined: 13/06/2006 00:00:00
Messages: 6
Offline


Hi -

When I add the icesoft panelTabSet component, I keep getting JavaScript errors when the page first comes up:

Error: window.frames.0.location is null or not an object
Source File: http://localhost:8080/jsftest/xmlhttp/icefaces-d2d.js
Line: 1

And when I click on a tab, I get the following error:

Error: connection is not defined
Source File: http://localhost:8080/jsftest/xmlhttp/icefaces-d2d.js
Line: 1

This happens in IE or Firefox.

Thanks,
-Julio
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2701
Offline


Hi Julio,

We've seen the 2nd error before when a user trys to interact with a page before all of the JavaScript is loaded. But I don't think we've seen the 1st error before. If you could show us more of the JSF page we might have a better idea why it's happening.

Thanks,
Philip

.
mistraj

Joined: 13/06/2006 00:00:00
Messages: 6
Offline


Hi - I'm attaching the JSP and the rendered HTML page. I'm thinking that the first error is causing the JavaScript not to be loaded, which leads to the second error (even after I wait a couple of seconds, the 2nd error still appears).

Thanks,
-Julio
 Filename search.jspx [Disk] Download
 Description No description given
 Filesize 3 Kbytes
 Downloaded:  104 time(s)

 Filename search.jsp [Disk] Download
 Description No description given
 Filesize 7 Kbytes
 Downloaded:  106 time(s)

philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2701
Offline


Hi Julio,

Thanks for those. This is an interesting one. I was able to recreate the exact problem you were seeing. When I included a <body> tag in the JSF page, the problems disappeared. We'll definitely look into this, but in the mean-time, I'd suggest putting the <body> tag in.

Thanks,
Philip

.
robmat


Joined: 06/03/2007 00:00:00
Messages: 8
Offline


Hi there!

I do have the body tag inserted in the jsf page and I still get the same errors but only in IE.

Any ideas?

God damned programmers...
ullinker2008

Joined: 04/02/2008 00:00:00
Messages: 46
Offline


I have also the same problem, did you solve it ! only in IE
thanks
ullinker2008

Joined: 04/02/2008 00:00:00
Messages: 46
Offline



try moving any meta tags in the head so that they're before your script tags.
it works now for me !!
good luck
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team