开发者

DOMDocument change when webframe loadrequest

开发者 https://www.devze.com 2023-03-18 06:15 出处:网络
In my webkit plugin, I can get DOMDocument from [webFrame DOMDocument] in the first time load the web that embed my plugin.

In my webkit plugin, I can get DOMDocument from [webFrame DOMDocument] in the first time load the web that embed my plugin.

 webFrame = [[arguments objectForKey:WebPlugInContainerKey] webFrame];

   DOMDocument *dom = [webFrame DOMDocument];

But when the webframe load another url (that not embed my plugin)

 [webFrame loadRequest: myRequest];

   DOMDocument *dom1 = [webFr开发者_StackOverflow中文版ame DOMDocument];

it is error to access dom1!! I do not know which method to access DOMDocument with the webframe that loaded myRequest?? any help would be appreciated!!


you have to wait for the download to complete before calling domDocument by using a the delegate

0

精彩评论

暂无评论...
验证码 换一张
取 消