nancy
04-22-2005, 07:34 PM
Hi,
I want to say how easy it was to implement your floating frame script... very straight-forward.
I'm having trouble, however, to target that IFrame ("masterdiv") with a <AHREF..>
Briefly, I have a list of people that when clicked on, their picture *should* load into this IFRAME, and replace the "temporary.htm" page I've put into it as a placeholder.
The picture loads .. but it replaces the page completely ..not IN the IFRAME ???
Here's the chunk of HTML code:
************************************************
<a href="<%=PICurl%>" OnClick="javascript:changePic()" class="docs"><img src="../img/EMPpic.jpg" border="0"></a>
**************************************************
and Here's the chunk of Javascript code:
**************************************************
<script>
function changepic(){
parent.document.getElementById("masterdiv")
}
</script>
**************************************************
I think it has to do with my DOM stucture...
Please advsie,
Thanks
nancy
I want to say how easy it was to implement your floating frame script... very straight-forward.
I'm having trouble, however, to target that IFrame ("masterdiv") with a <AHREF..>
Briefly, I have a list of people that when clicked on, their picture *should* load into this IFRAME, and replace the "temporary.htm" page I've put into it as a placeholder.
The picture loads .. but it replaces the page completely ..not IN the IFRAME ???
Here's the chunk of HTML code:
************************************************
<a href="<%=PICurl%>" OnClick="javascript:changePic()" class="docs"><img src="../img/EMPpic.jpg" border="0"></a>
**************************************************
and Here's the chunk of Javascript code:
**************************************************
<script>
function changepic(){
parent.document.getElementById("masterdiv")
}
</script>
**************************************************
I think it has to do with my DOM stucture...
Please advsie,
Thanks
nancy