DomAPI Home
DomAPI
Build: 4.0
Topic: Setting elm id

  goodguy registered v4 wrote on Wednesday 9/13/06 at 5:13 PM (PST)  
 

The first line seems to fail in setting the id, but the second line works. Shouldn't I be able to set the id on the first line(create)?

     ELMmain = domapi.Elm({x:0,y:0,w:800,h:600,bgcolor:"white",id: "dave"});
     ELMmain.id = "dave";


Dave.

 
    RSS feed of forum  
  Darin Kadrioski registered v4 wrote on Wednesday 9/13/06 at 5:32 PM (PST)  
 

When id is passed in the constructor, the engine assumes you want to convert an existing element with that id into an Elm. It is not used to set the id of the Elm, this must be done after the fact. You can find more on this here:
http://domapi.com/index.cfm?action=docobj&id=13#699

Darin Kadrioski Darin Kadrioski
support@domapi.com

 
    RSS feed of forum  
  goodguy registered v4 wrote on Wednesday 9/13/06 at 5:47 PM (PST)  
 

Got it, Thanks.

Dave.

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