Bug Tracker

Modify

Ticket #4480 (closed bug: worksforme)

Opened 5 years ago

Last modified 3 years ago

.ready doesn't work if placed after iframe

Reported by: bjohns Owned by: brandon
Priority: minor Milestone: 1.3.1
Component: event Version: 1.3.1
Keywords: iframe, ready Cc:
Blocking: Blocked by:

Description

$().ready() doesn't work if declared after an iFrame.

ex. <html><head/><body> <iframe src=" http://google.com"/> <script type="text/javascript" src="js/jquery.js"></script> <script> $().ready(function() { alert('ready'); }); </script>

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

comment:2 Changed 3 years ago by anonymous

I had this same issue. What fixed it for me was to add </iframe> instead of using a self-closing tag.

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

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.