[Javascript] copying dynamic object

Troy III Ajnej trojani2000 at hotmail.com
Tue Aug 8 11:52:40 CDT 2006


Suresh,If only I could understand your English as well as you understand your problem?
>I want to copy r assign one dynamic object property to another
???Have you ever tried:
      x.mergeAttributes(y) 
(where x is your targeted element while y is your model)
'Cause I never did?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Date: Sat, 5 Aug 2006 11:04:21 +0100From: asureshkumar_1983 at yahoo.co.inTo: javascript at latech.eduCC: Subject: [Javascript] copying dynamic object
Hi,
   Can any one go through my code and solve my problem.i tried for past 6 hours .i can't able to solve this problem.I want to copy r assign one dynamic object property to another.I dont wat appendChild(),functionality to do this task.
this is my code.tnxs for response
 
<script type="text/javascript">
 oDis=document.getElementById('iedisplayarea');
if (oDis.children(1)=== null) {             var picObj = document.createElement('EMBED');            
       picObj.setAttribute('id',"aShow");                     picObj.setAttribute('width',frameData[0].UX[jj]);  
       picObj.setAttribute('height' ,frameData[0].UY[jj]);    
       picObj.setAttribute('src',"mirror.mpg");           
       //oDis.appendChild(this.picObj);       /*i dont want this method*/
          /*i tried this 2 methods but its not working*/
        oDis=picObj;
        oDis=picObj.cloneNode(true);             
}         
 
</script>
<body>
<div id="iedisplayarea" style="position:relative;visibility:visible;z-index:2;top:0; left:0; overflow:hidden;width:100%;height:100%;" >
</body>


Here’s a new way to find what you're looking for - Yahoo! Answers 
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060808/45adc36f/attachment.htm>


More information about the Javascript mailing list