DomAPI Home
DomAPI
Build: 4.0
Topic: Problems with Window

  zanekevin registered v4 wrote on Wednesday 7/5/06 at 9:57 PM (PST)  
 

When creating a Window,

xxx=domapi.Window({text:_WinTitle, x:_x, y:_y, w:_w, h:_h, windowType:"IFRAME"});

xxx.loadURL(urlAction);

After the window comes up I am unable to load any DOMAPI elements.

I have even made a reference to the parent window.

Any ideas on why DOMAPI elements cannot be used in a popup window?

 
    RSS feed of forum  
  zanekevin registered v4 wrote on Wednesday 7/5/06 at 9:57 PM (PST)  
 

Thank you
Zane

 
    RSS feed of forum  
  Darin Kadrioski registered v4 wrote on Wednesday 7/5/06 at 10:21 PM (PST)  
 

As long as the page being loaded into the IFRAME has it's own copy of the library, it should work just fine.

 
    RSS feed of forum  
  reabbotted not registered wrote on Thursday 9/21/06 at 9:32 AM (PST)  
 

Were you able to get this to work Zane? I'm doing something similar except that instead of loading a separate window with loadURL, I'm trying to load the window using document.write() or perhaps by adding DOM Elements to the window. Either way, I can't get it to work.

 
    RSS feed of forum  
  Darin Kadrioski registered v4 wrote on Saturday 9/30/06 at 9:59 PM (PST)  
 

99.9% of the time you're doing something wrong if you require document.write(). There is almost always a DOM solution. In your case, if you are unable to load the iframe from an url, I would suggest creating a script tag within it using createElement().

 
    RSS feed of forum  
  suwondo not registered wrote on Monday 6/2/08 at 7:20 PM (PST)  
 

I think it's can be solved by use DOAMAPI elemnt as a preperty of Top Window. for Example, in master document we can attach the DOMAPI Element like this : window.domapi['elm1'] = elm1;

And from the page loaded by iframe, we can tell to asked the domapi element as :

window.top.domapi['elm1']

OR

If we know what's ID of the DOMAPI Elements, we can do this at the page loaded by iframe :

mydomapielm = window.top.document.getElementById('id_of_DOMAPI_element')

I Think this can resolve the problem

 
    RSS feed of forum  
You could respond to this post if you were logged in.
DHTML by www.domapi.com