How to get IFRAME to listen to same events as parent and trigger the event?

To solve your problem, please find code below.

To solve your problem, please find code below function getFrameTargetElement(oI) { /* get target document element based on provided frame element */ var lF = oI. ContentWindow; if(window. PageYOffset==undefined) { //IE lF= (lF.document.

DocumentElement)? LF.document. DocumentElement : lF=document.

Body; } //- return computed value return lF; } //- get frame target elements var oE1 = getFrameTargetElement( document. GetElementById("i1") ); var oE2 = getFrameTargetElement( document. GetElementById("i2") ); //- on source scroll oE1.

Onscroll = function (e) { var scrollTopValue; var scrollLeftValue; //- evaluate scroll values if(window. PageYOffset! =undefined) { //opera, firefox,& gecko browsers scrollTopValue = oE1.

PageYOffset; scrollLeftValue = oE1. PageXOffset; } else { scrollTopValue = oE1. ScrollTop; scrollLeftValue = oE1.

ScrollLeft; } //- mimic scroll oE2. ScrollTo( scrollLeftValue, scrollTopValue); } You can execute it, and test it directly using this link http://jsfiddle.net/CF5Lp/1/ Hope this helps.

Thanks Sebastien Thuilliez – user850234 Aug 31 at 10:34 Hope this helped you. Please consider marking your question as answered if any of the response you received was the one you consider as valid. – Sebastien Thuilliez Sep 1 at 5:50.

Your question was answered in this post: How to get IFRAME to listen to same events as parent (and fire the same handlers) Just listen for the scroll event instead of mousemove.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions