Skip to main content

Bug Tracker

Side navigation

#11554 closed bug (invalid)

Opened April 04, 2012 09:53AM UTC

Closed April 05, 2012 12:18PM UTC

JQuery 1.4.2: 'Object' not defined

Reported by: Owned by:
Priority: low Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

JQuery version: 1.4.2

IE version: 9.0.5

the error "'Object' not defined" happened on the line 87 "toString = Object.prototype.toString," of jquery.js, and it happen only with IE.

It seems that when JQuery is loaded inside an iframe it lose the value of "Object".

Attachments (0)
Change History (5)

Changed April 04, 2012 10:02AM UTC by diopralinato comment:1

"Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket."

Can you use the last version of jQ instead of 1.4.2?

Changed April 04, 2012 11:37AM UTC by sindresorhus comment:2

owner: →
priority: undecidedlow
status: newpending

We don't support old versions of jQuery. As mentioned above; please post a simplified jsfiddle testcase that clearly shows the issue using the latest jQuery and jQuery (edge).

Changed April 04, 2012 02:54PM UTC by comment:3

status: pendingnew

Oh sorry!! I was wrong ...

I've tryed with the 1.7.2 version.

The page html and JS is so normal and simple, something like:

<html xmlns="">
<head runat="server">
    <link href="Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <link href="Styles/jquery.alerts.css" rel="stylesheet" type="text/css" />

    <script src="Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.alerts.js" type="text/javascript"></script>

    <script type="text/javascript">
        jQuery(document).ready(function () {
    <form id="form1" runat="server">

<asp:Button ID="btnChiudi" runat="server" Text="Chiudi" 
                                    CssClass="pulsante" />

the trick is that this page is loaded inside an iframe from the parent page and then showed as part of a dialog div:

<script type="text/javascript">
$('#dialog_div_with_iframe').dialog({ autoOpen: false
                                                    , modal: true
                                                    , show: 'clip'
                                                    , hide: 'clip'
                                                    , width: 700
                                                    , height: 200
$('#iframe').attr('src', 'page_iframe.aspx');

<div id="dialog_div_with_iframe">
 <iframe id="iframe"></iframe>

... sorry if I don't use the right tools to communicate this bug, I'm new here and I don't understand well the jsFiddle usage.

Thanks a lot for the support!


Changed April 05, 2012 11:53AM UTC by comment:4


I must open the dialog BEFORE setting the 'src' property of the iframe, so:

$('#iframe').attr('src', 'page_iframe.aspx');

thx a lot!


Changed April 05, 2012 12:18PM UTC by mikesherov comment:5

resolution: → invalid
status: newclosed