Skip to main content

Bug Tracker

Side navigation

#3734 closed bug (worksforme)

Opened December 22, 2008 10:24AM UTC

Closed June 20, 2010 07:51PM UTC

Bug in function append with iframe in ie7

Reported by: LosGardos Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: append Cc:
Blocked by: Blocking:
Description

I have this code with iframe

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1250">

<meta name="generator" content="PSPad editor, www.pspad.com">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

<title></title>

</head>

<body>

<div></div>

<iframe id='okno' src='iframeUrl'></iframe>

</body>

</html>

and this is page code in this iframe

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1250">

<meta name="generator" content="PSPad editor, www.pspad.com">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

<title></title>

</head>

<body>

ahoj

<script type='text/javascript'>

var el;

var el2;

$(document).ready(function(e){

el = top.$('div');

el2 = $('<b>ahoj</b>');

});

</script>

<input type="button" value="click" onclick="el.append(el2)">

</body>

</html>

When click on button in ie7 i getting error. In FF3 and Opera 9 this working.

Attachments (2)
  • frame-3734.html (0.6 KB) - added by dmethvin June 20, 2010 07:52PM UTC.

    framed file

  • main-3734.html (0.4 KB) - added by dmethvin June 20, 2010 07:51PM UTC.

    main file

Change History (2)

Changed January 03, 2009 12:59AM UTC by flesler comment:1

component: unfilledcore
owner: flesler

Changed June 20, 2010 07:51PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

This worked for me in IE8 and jQuery 1.4.2, test files attached.