Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8547057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:10:58+00:00 2026-06-11T13:10:58+00:00

My code when run in Chrome or Firefox worked as intended. However in Internet

  • 0

My code when run in Chrome or Firefox worked as intended. However in Internet Explorer an error is picked up. Unfortunately the debugger only gets the top level from the call stack, meaning it will pick up the line number of the first function call in my own scripts, and line 3 out of 4 for the compressed jQuery. Furthermore the error is the confusing:

Object doesn’t support this property or method

Which looks weird when linked in the jQuery source; neither error is for a line which called an object method. The function whose call in my scripts is given as the line number of the bug is as follows:

$('title').text('Student accommodaton in '+loc.title);
$('fieldset.search').data('loc',loc.loc_id).find('p.locs').slideUp().end().find('ul.blurb').hide();
$('nav.top').find('li.index a').attr('href',loc.url)
.end().find('p.user').addClass('show');
$('header.title').find('h2').each(function(loc){
    return function(){
        $(this).data('text',$(this).text()).text('Student accommodation in '+loc.title);
    }
}(loc))
.end().find('p').fadeIn();
$('section.register h3:first').textPrepend('Scroll down and ');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:11:00+00:00Added an answer on June 11, 2026 at 1:11 pm

    It turned out that the error was caused by the following code

    $('title').text('Student accommodaton in '+loc.title);
    

    I found this out through deleting lines one at a time as I’m using IETester which has no decent debugging software. Whereas the following code:

    $('p').text().text('Test');
    

    Would correctly indicate that the returned object (a text string) didn’t have the method .text() it seems that using $('title') returns a more abstract error as jQuery tries to apply the method. Hence the line number of the bug was wrong as it propagated back up the function stack.

    In short, when changing a title use

    document.title='Test';
    

    And if you get errors showing up in the jQuery source look first for any odd selectors or <head> element selectors which you might be using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run this code http://jsfiddle.net/KW3Dw/4/ in Chrome and Firefox, both display border differently.
I have this code to run a slideshow (this is only part of what
The following code works in Google Chrome and Firefox, but don't work in IE8.
the following code works on firefox,chrome and IE9 on my PC. But the callback
I have this code, which is working fine in FireFox, chrome and IE8 but
This javascript code run without problem in chrome and IE but have a problem
I'm developing an app to read QR code via ZXing. The code run flawlessly
We run code from adress 8002000 to 80020028 and the question is what is
i need run code that will create a database and populate tables. i am
This code is run from within a subclass of UITableViewCell CALayer* greenLayer = [CALayer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.