Forums
View unanswered posts | View active topics It is currently Sat May 25, 2013 5:17 pm



Reply to topic  [ 10 posts ] 
 "Object required" errors with jquery-ui 
Author Message

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post "Object required" errors with jquery-ui
When using CSS3 PIE with jquery-ui, particular the dialog box widget, I very frequently get tons of these errors (sometimes with no visible effects and sometimes with):

Object required
PIE.htc
Code: 0
URI: http://localhost:8080/test/css/PIE.htc

Line: 50
Char: 86

I really wish I could get this to work with jquery-ui, is there a solution?


Sun Sep 12, 2010 4:30 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: "Object required" errors with jquery-ui
Can you please temporarily switch from PIE.htc to PIE_uncompressed.htc, and give me the line/char numbers of the error from that file? That'll help pinpoint the cause.


Sun Sep 12, 2010 10:28 am
Profile

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post Re: "Object required" errors with jquery-ui
I see slightly different behavior (errors happen at different times) when using PIE_uncompressed.htc vs PIE.htc. Here's what I get with uncompressed in IE8:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C)
Timestamp: Mon, 13 Sep 2010 00:26:42 UTC


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Message: Object expected
Line: 3029
Char: 9
Code: 0
URI: http://localhost:8080/test/css/PIE_uncompressed.htc


Sun Sep 12, 2010 6:28 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: "Object required" errors with jquery-ui
Did you change all references of PIE.htc to PIE_uncompressed.htc, or just one/some? They all have to use the same version, mixing the two will result in errors like the new ones you're seeing.

Also, a code snippet of jquery-ui code, or a URL demonstrating the problem, would be a great help.


Sun Sep 12, 2010 7:08 pm
Profile

Joined: Fri Sep 24, 2010 4:09 pm
Posts: 1
Post Re: "Object required" errors with jquery-ui
I am getting this error, as well, using jQuery UI tabs.

I did what you suggested and changed the behavior reference to the uncompressed file. I get the following error:

Line: 3029
Char: 9
Error: Object expected
Code: 0

Unfortunately, I can't provide the source URL, as it is a development site.


Fri Sep 24, 2010 4:14 pm
Profile

Joined: Wed Sep 29, 2010 11:55 am
Posts: 1
Post Re: "Object required" errors with jquery-ui
I am also getting errors and I am using the jquery tools lib.


Wed Sep 29, 2010 11:57 am
Profile

Joined: Mon Oct 18, 2010 5:43 am
Posts: 1
Post Re: "Object required" errors with jquery-ui
Bringing this thread back to life;

I have a site using infinite scroll to pull in content which has some rounded corners.

PIE and Inf Scroll exist happily together in IE7, but in IE8 I get the same error as OP when infinite scroll loads in new content to the page. For every object that should have the behaviour applied to it, I get a null object reference (exact error varies depending on what debug tool you use, but I have seen it referred to as Object Required and also as " 'null' is null or not an object" ) on line 50, char 86 and the rounded corners don't display.

The error only happens when new content is appended by Infinite Scroll, the first page of content applies PIE with no errors. Bizarrely if you have the IE Tester Debug bar addon installed, it fixes the problem.

Aside from Infinite Scroll, other plugins being used are the standard jQuery library, IE PNG fix behaviour and jQuery Cookies.

Any ideas about this are much appreciated, really don't want to have to retrofit oldschool png round corners.


EDIT:

I swapped in the uncompressed version, error now reports as:

null object reference on line 1812, char 17

code block around it reads:
Code:
     updatePos: function() {
        if( this.isActive() ) {
            var el = this.element,
                par = el,
                docEl,
                elRect, parRect,
                s = this.getBox().style, cs,
                x = 0, y = 0;

            // Get the element's offsets from its nearest positioned ancestor. Uses
            // getBoundingClientRect for accuracy and speed.
            do {
                par = par.offsetParent;
            } while( par && par.currentStyle.position === 'static' );
            elRect = el.getBoundingClientRect();
            if( par ) {
                parRect = par.getBoundingClientRect();
                cs = par.currentStyle;
                x = elRect.left - parRect.left - ( parseFloat(cs.borderLeftWidth) || 0 );
                y = elRect.top - parRect.top - ( parseFloat(cs.borderTopWidth) || 0 );
            
            } else {
           docEl = el.document.documentElement;
                x = elRect.left + docEl.scrollLeft - docEl.clientLeft;
                y = elRect.top + docEl.scrollTop - docEl.clientTop;
            }

            s.left = x;
            s.top = y;
            s.zIndex = el.currentStyle.position === 'static' ? -1 : el.currentStyle.zIndex;
        }
    }


EDIT 2:

it looks like under normal circumstances the code block runs through and executes the IF part of the statement. However on infinite scrolling, it instead tries to execute the ELSE block, and then finds that el.document.documentElement returns a null value. Updated the code block to show the whole function, in case that extra context helps.


Mon Oct 18, 2010 6:57 am
Profile

Joined: Mon Jan 31, 2011 11:47 am
Posts: 2
Post Re: "Object required" errors with jquery-ui
Did someone find any working solution of this problem?


Mon Jan 31, 2011 11:52 am
Profile

Joined: Sun Sep 12, 2010 4:18 am
Posts: 10
Post Re: "Object required" errors with jquery-ui
I don't remember what I did actually, but it works fine for me now... So PIE does work with jquery-ui...


Mon Jan 31, 2011 12:01 pm
Profile

Joined: Thu Feb 09, 2012 10:50 am
Posts: 1
Post Re: "Object required" errors with jquery-ui
mueller wrote:
I don't remember what I did actually, but it works fine for me now... So PIE does work with jquery-ui...


Glad to see this solved for you, hopefully someone can come up with more exact answer.

Jacob
Government Auction


Thu Feb 09, 2012 10:51 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.