Click here to Skip to main content
15,889,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I a integrating third party API in my page. Now I want to find some data from that API in my application. When I am using this API its a iframe. So I want to find the elements data from this iframe using JQuery.
Please help.
Posted
Comments
F-ES Sitecore 23-Oct-15 7:06am    
If the src of the iframe is not your site then you can't do this for security reasons.

1 solution

User .contents()[^]: Get the children of each element in the set of matched elements, including text and comment nodes.
W3C[^]

Example,
JavaScript
var div = $('#iframe').contents().jQuery.find("#someData");


-KR
 
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