H
hgl1976
Hi!
I have a web page that from a query that loads the search result into
an iframe on the page. In the search result inside the iframe i would
like to be able to load content into div tag that is in the main page.
Is that possible?
The code i have tried goes like much like this
....
function showObj(theid){
document.getElementById('externalDiv').innerHTML=document.getElementById(theid).innerHTML;
}
....
<div id="externalDiv">
//here is where i would load content from javascript
</div>
....
<iframe>
html for the object desription
.... onClick="showObj('objectdescription1')>
</iframe
<div id="objectdescription1">thedesription for nr1</div>
<div id="objectdescription2">thedesription for nr2</div>
<div id="objectdescription3">thedesription for nr3</div>
/Henrik
I have a web page that from a query that loads the search result into
an iframe on the page. In the search result inside the iframe i would
like to be able to load content into div tag that is in the main page.
Is that possible?
The code i have tried goes like much like this
....
function showObj(theid){
document.getElementById('externalDiv').innerHTML=document.getElementById(theid).innerHTML;
}
....
<div id="externalDiv">
//here is where i would load content from javascript
</div>
....
<iframe>
html for the object desription
.... onClick="showObj('objectdescription1')>
</iframe
<div id="objectdescription1">thedesription for nr1</div>
<div id="objectdescription2">thedesription for nr2</div>
<div id="objectdescription3">thedesription for nr3</div>
/Henrik