DomAPI Home
DomAPI
Build: 4.0 BETA
Topic: elm source file

  DeanL registered v4 wrote on Wednesday 11/23/05 at 3:48 PM (PST)  
 

I see you can set the .innerHTML (is this a member of elm?) on an elm, can you reference a template file instead of assigning a string to the .innerHTML?

 
    RSS feed of forum  
  Darin Kadrioski registered v4 wrote on Wednesday 11/23/05 at 4:05 PM (PST)  
 

innerHTML is standard DOM. If you are looking to load a page into an elm, use an IFrame.

 
    RSS feed of forum  
  DeanL registered v4 wrote on Wednesday 11/23/05 at 5:06 PM (PST)  
 

my apologies...my shortage of dom experience makes all this tougher...

I search the forum for best ways to create a dynamic iframe and saw this old post...

...I've hammered out most of the inconsistencies (with the exception of IEMac) in the RPC unit. You can find examples of how to create and address dynamic IFRAMEs there....

What is the latest way you would create a dynamic iframe? (same as the old message?)

 
    RSS feed of forum  
  Henry registered v4 wrote on Wednesday 11/23/05 at 5:57 PM (PST)  
 

var myIframe = domapi.Elm({type:"IFRAME"});


;)

Henry

 
    RSS feed of forum  
  DeanL registered v4 wrote on Wednesday 11/23/05 at 6:31 PM (PST)  
 

oop..I was just going to 'revise' my last post asking if just as simple as setting the type property...thx for confirming

 
    RSS feed of forum  
  DeanL registered v4 wrote on Thursday 11/24/05 at 8:39 AM (PST)  
 

just to finish off this thread for others....

Once creating the iframe elm (as above), you can then set the src property of the elm...myIframe.src = 'myfile.html';

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