문제

There is a page: http://vkontakte.ru/share.php?url=google.com that has an IFRAME. I try to access IFRAME DOM:

   html = new HTMLLoader();
   var urlReq:URLRequest = new URLRequest("http://vkontakte.ru/share.php?url=google.com");
   ...

   trace(html.window.document); // return DOM object. It's ok.
   trace(html.window.document.getElementsByTagName("iframe").contentDocument); // return undefined, and that is the problem
도움이 되었습니까?

해결책

I don't think you can do it. I tryed different approaches but the thing is : you cannot access IFrame content if your not in the same domain and even if you use loadString instead of a simple load call and even if placeLoadStringContentInApplicationSandbox is set to true. May be there is a way to cheat the integrated browser and tell him :

It's Ok, I am in the same domain.

But I don't see how do it in flash.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top