Skip to main content

Bug Tracker

Side navigation

#2913 closed bug (invalid)

Opened May 21, 2008 03:35PM UTC

Closed May 22, 2008 02:13PM UTC

Last modified May 23, 2008 12:56AM UTC

function attr() was Ineffective in opera

Reported by: Rory Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: attr Cc:
Blocked by: Blocking:
Description

code:

<iframe id="test_frame" src="test.php"></iframe>

use jquery:

$(function()

{

$('#test_frame').attr('src', $('#test_frame').attr('src'));

});

i want that test_frame will reload (like window.location.reload()), but in opera it was Ineffective , please help me! thanks.

Attachments (0)
Change History (2)

Changed May 22, 2008 02:13PM UTC by flesler comment:1

resolution: → invalid
status: newclosed

It's kind of expected that re-setting the same src could not actually reload.

try

 $('#test_frame').attr('src','').attr('src', $('#test_frame').attr('src')); 

If it doesn't work, you'll need to access the location object or something like that.

Changed May 23, 2008 12:56AM UTC by flesler comment:2

Sorry, that code was wrong. Try this instead.

var oldsrc = $('#test_frame').attr('src');
$('#test_frame').attr( 'src','' ).attr( 'src', oldsrc );