JQuery 'Object' is undefined when a jquery reference is twice

I have an asp.net page, in the header section I have the following:

<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.19.custom.min.js"></script>

And I also have:

<div id="dialog" title="Dialog Title">
    <iframe src="frameDemo.aspx" scrolling="no" style="border:0px" width="500"></iframe>
</div>

And in the header section of frameDemo.aspx I also have:

<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.19.custom.min.js"></script>

Each time I press the debug button, it opens IE and gives me an error message:

Microsoft JScript runtime error: "Object" - undefined

I click the Continue button and it appears again and again about 5-6 times for the same error message. And then finally it shows the page and it works fine.

URL- , . , Safari/Firefox , . IE, .

, frameDemo.aspx, :

<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.19.custom.min.js"></script>

, , JQuery sub-iframe IE, .

- ? !

+3

All Articles