The error simply means you're trying to work with a DOM element that
doesn't exist or isn't in the document.

What you posted is clearly broken because there is no variable named
newTable. I suspect your actual problem is likely something else
though... but it's impossible to tell because you didn't post real
code. If you want someone to investigate your real problem, you'll
have to post real code -- the kind that someone else can run to verify
and debug the issue.

-bob

On 12/7/06, Roopesh <[EMAIL PROTECTED]> wrote:
>
> 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