I have a page and there is a 3rd party response that comes in that I have to key off of. IF the third party exists, then I need to build the iframe and ppulate it with a src and attributes (height/width) etc...

So basically, the flow is like this..


page loads
callback to 3rd party.
--> is third party connected = yes --> build iframe (in parent page)
---> is third party connected = no --> do nothing

Any elegant ideas?