Click here to Skip to main content
11,935,053 members (53,716 online)
Rate this:
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.

Posted 17-Aug-11 2:29am
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

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 2 Sep 2011
Copyright © CodeProject, 1999-2015
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