2013年9月6日星期五

Take the cross-domain iframe js dom object

protocol and domain name are the same, but different ports , called a denial of access , I do not need data exchange , just take ifame the dom object, and iframe introduction of the most disgusting is the page I might add not any js code , doucument.domain may die, Will there solutions? knees and begged , nausea ah
------ Solution --------------- -----------------------------
js there a way to get the iframe method is called document.frames like it, you Soso
------ For reference only ----------------------------------- ----
you can use the next document.getElementById ("iframe 's id"). contentWindow;


js is not cross-domain , you can use jsonp
------ For reference only ----------------------- ----------------
document.getElementById ("iframe 's id"). contentWindow;

is denied access , jsonp I see demo are requested action or something, I do not need data exchange , jsonp you can get to the dom object
------ For reference only ------ ---------------------------------
I just needed an outlet player objects , the realization of these operations on the line began to pause
------ For reference only -------------------------------------- -
Thank you for this demand is the second death so many brain cells

没有评论:

发表评论