Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript DOM
I have taken two iframe in browser. in one iframe i have have open pdf, and in other iframe i have taken a textbox contained page. when i am doing drag drop is working but i am not able to fetch the selected text into string on clientsite using javascript. as everybody knows well that DOM does not work for iframe in case of cross domain condtion.
 
**Thanks**
Posted 17-Aug-11 2:29am
Comments
NIRAL SONI at 2-Sep-11 8:24am
   
pdf viewer and the web browser are all together a separate thing.
you can never have single JavaScript which can manage both these things.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If they are of different domain then because of Same Origin Policy, you will not be able to access the content of Iframe. If both the iframes are pointing to same domain then i can suggest you the code to access the content of the iframe.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 2 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100