SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to remove this error ??

    Hello forums!!
    I had used the following function(for deleting div elements) and its working properly
    Code JavaScript:
    function deleteCampaignRow(parentElem, childElem){	
    	var parentObj = document.getElementById(parentElem);
    	var childObj = document.getElementById(childElem);
    	parentObj.removeChild(childObj);		
    }
    when the form is submitted , it gives the error "parentObj has no properties".
    how to solve the above problem ?
    Any Idea ??
    Thanks in advance to all of you

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We need to see whats calling deleteCampaignRow as well. It seems that when your passing it across the parentElem is null.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •