Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
Niral Soni 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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900