Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe drop down to alert on parent

Status
Not open for further replies.

onressy

Programmer
Mar 7, 2006
421
CA
Hello, I trying to have an iframe with list box (from 1 domain) option value alert on the parent page (of another domain). This is what i have which i can't seem to get to work, any ideas? Thanks

domain1:
<IFRAME name="if1" SRC=" FRAMEBORDER=0 SCROLLING=no WIDTH=200 HEIGHT=200></IFRAME>

<script>
window.frames['if1'].document.f1.getElementById(document.f1.select2.selectedIndex.value).onChange=function(){
alert('asdf');
}
</script>

domain2 (
<form name="f1" id="f1">
<select name="select2" onChange="javascript:this.options[this.selectedIndex].value,'if1'">
<option value="1">property1</option>
<option value="2">property2</option>
<option value="3">property3</option>
</select>
</form>
 
Perhaps you could respond to this post: iframe text, first and last (thread216-1292619)?

You have an annoying habit of not providing "closure" on posts, or giving any feedback whatsoever!

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
turns out that it can't be done, i managed to get it working locally, but i get accessed denied as an error, in firefox and IE7.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top