I've got an interesting issue with Firefox where, when opening multiple Atrium tabs in quick succession (using Atrium.launchURL()), the first one isn't getting fully rendered when the second one opens because FF will only render things that are visible. This is causing some JQuery stuff to fail as the elements aren't loaded.
So, I need to launch a tab and then verify that it has rendered before launching another tab. launchURL() indicates that it returns a tab object. Is there a property or function on that object that I can check to see if it has loaded?
Thanks!
Determining if a tab has loaded
-
- New User
- Posts: 1
- Joined: Fri Jul 22, 2011 9:25 am
- First Name: Aaron
- Last Name: Wadley
- Company Name: StoneRiver, Inc.
- Address 1: 12001 RESEARCH PKWY STE 200
- Address 2: Suite 200
- City: ORLANDO
- State / Province: Florida
- Zip / Postal Code: 32826-2970
- Country: United States
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Determining if a tab has loaded
I haven't actually tried this, but it should work...
Atrium's tabs are really iframes. It should be possible to put something in the 'onload' event of the iframe that you open so that your code will run when the frame has loaded. You could use this to signal the 'parent' (where you are running the launch code) that things have loaded.
Does that help?
Atrium's tabs are really iframes. It should be possible to put something in the 'onload' event of the iframe that you open so that your code will run when the frame has loaded. You could use this to signal the 'parent' (where you are running the launch code) that things have loaded.
Does that help?
Who is online
Users browsing this forum: No registered users and 0 guests