Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy IE8 Object Error on JQuery/Javascript

    I'm getting the following error in IE8:

    object doesn't support this property or method

    The file in questions is a .js file, and the line in question is the following:
    It states that it's that first line, character 2.

    Code:
    $('#pSearchView')
             .height(startY - calcExtraLen('pSearchView', 'vert'))
             .width(contentWidth - calcExtraLen('pSearchView', 'hor'));


    I didn't write the program, so I'm a little lost. Can anyone see anything obvious? It's a problem in IE8 only, and causes the site not to render properly, with blank areas.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,378
    Thanks
    11
    Thanked 592 Times in 572 Posts
    i would guess contentWidth is null because they use an old IE width checker.
    IE8 uses the same width properties as other browsers, so perhaps they incorrectly ask "are you IE", when they should be asking "are you IE7 or before"...

    this is only a guess because the code itself looks valid.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • #3
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I know there is a stipulation on the page that says if IE8...

    Here's the content of the css it calls if it's IE8:

    Code:
    * html body {
    	padding:35px 0 0px 0;
    }
    
    * html #headerBar {
    	height:35px;
    }
    
    * html #content, {
    	height:100%;
    	width:100%;
    }
    
    table.pList {
    	width:97.5%;
    }
    
    table.pSearch {
    	width:97.5%;
    }

  • #4
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Trying to figure out the IE debugger, when I go to the "Locals" view it states the following:

    pSearchViewInnerHeight undefined Undefined

    The others are all numbers.

    The entire section of the script I posted above:

    Code:
    	$('#pSearchView')
    		.height(startY - calcExtraLen('pSearchView', 'vert'))
    		.width(contentWidth - calcExtraLen('pSearchView', 'hor'));
    
    	var pSearchViewInnerHeight = $('#pSearchView').height() - calcAbsPos('pSearchViewInner', 'top');
    	$('#pSearchViewInner').height(pSearchViewInnerHeight - calcExtraLen('pSearchViewInner', 'vert'));
    	$('#pSearchViewInner').width($('#pSearchView').width() - calcExtraLen('pSearchViewInner', 'hor'));
    
    	$('#pSearchViewBody').height(pSearchViewInnerHeight - 20);
    	$('#pSearchViewBody').width($('#pSearchViewInner').width());
    }
    Last edited by TechMistress; 03-17-2010 at 04:28 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •