Hi

I have a table and onclick of a link present in each row, I want to
replace that row with a table with values for editing purposes.

Code is as given below.

//html code
<tbody>

<tr id="2">
      <td class="small-font" id="conf1">
         <a  onclick="edituser(${rowid})">Edit</a>
      </td>

//javascript
function edituser(rowid)
{
   var newrow = TR(null, TD({'colspan':'4'}, TABLE({},
                TBODY(null,
                        map(row_display, rows))))));

  swapDOM(rowid, newTable);
}

The error that is coming is
_371 has no properties Mochikit.js (line 2933)

},swapDOM:function(dest,src){
2928var self=MochiKit.DOM;
2929dest=self.getElement(dest);
2930var _371=dest.parentNode;
2931if(src){
2932src=self.getElement(src);
2933_371.replaceChild(src,dest); <--

Can you please tell what is wrong with this?

Thanks and Regards
Roopesh


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to