Skip to main content

Bug Tracker

Side navigation

#10151 closed bug (invalid)

Opened August 27, 2011 04:35PM UTC

Closed September 11, 2011 08:10AM UTC

$(iframe[name="browser"]').attr('src') not working correctly.

Reported by: jose@jrcconstela.com Owned by: jose@jrcconstela.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

I have an iframe named 'browser'. Inside it, I load allways same-domain urls.

So I have:

function iframeloaded()
{ var arr = $('iframe[name="browser"]').attr('src'); alert(arr); }
<iframe name="browser" src="/home" onLoad="iframeloaded();"></iframe>

If i use links from the parent page, arr contains the correct updated url.

If I use jquery.click(parent.replace('/home')) inside the iframe, arr contains the correct updated url.

BUT If i use html links inside the iframe, arr does NOT updates correctly.

Basic JS frames[0].location works fine allways.

Attachments (0)
Change History (3)

Changed August 27, 2011 05:01PM UTC by anonymous comment:1

Not a bug. HTML links are not jQuery driven events. Anyway, its strange, cause even arr baing local and using html links, iframeloaded allways popup a previously visited url.

Changed August 27, 2011 08:05PM UTC by dmethvin comment:2

owner: → jose@jrcconstela.com
status: newpending

This description isn't at all clear to me. Please create a test case.

Changed September 11, 2011 08:10AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!