Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: id from another frame as a function call argument


Message #1 by "Inge Larsson" <inge.larsson@f...> on Sun, 7 Jan 2001 18:55:52 -0000
I found it! The function call shall be

togglecolumn(parent.frame1.togglecol)

and the object reference in the function shall be the
same as in the case that the id-element is in the same
frame as the function, i.e the function will be

function togglecolumn(column_id) {
	if (column_id.style.visibility=="hidden") {
            column_id.style.visibility="visible";
        }
		else {
            column_id.style.visibility="hidden";
        }
}

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to javascript as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-javascript-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index