andyroo
09-22-2003, 02:01 AM
Hi, im pretty stuck here, for all i know this should be working.
i have a main window with the following function
function changeVis(thing){
if (thing.style.display == 'block')
{
thing.style.display = 'none';
}
else
{
thing.style.display = 'block';
}
to hide and display a table using CSS.
i can call the function fine, and it works, until i put it in an iframe i have on the page
im calling the function from the iframe with the following code
<a href="javascript:window.parent.changeVis(theObject)">
but i keep gettin errors saying theObject is undefined. I cant seem to get the function to break out of the iframe window. Ive tried every combination i can think of and still no go.
any thoughts?
i have a main window with the following function
function changeVis(thing){
if (thing.style.display == 'block')
{
thing.style.display = 'none';
}
else
{
thing.style.display = 'block';
}
to hide and display a table using CSS.
i can call the function fine, and it works, until i put it in an iframe i have on the page
im calling the function from the iframe with the following code
<a href="javascript:window.parent.changeVis(theObject)">
but i keep gettin errors saying theObject is undefined. I cant seem to get the function to break out of the iframe window. Ive tried every combination i can think of and still no go.
any thoughts?