English 中文(简体)
How to get a flash url in a webpage using a webframe?
原标题:

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate):

webView:didStartProvisionalLoadForFrame:

webView:didChangeLocationWithinPageForFrame:

and I know when reload the page I can do this:

- (void)webView:(WebView *)senderdidStartProvisionalLoadForFrame:(WebFrame *)frame {
    if(![frame parentFrame]) {
        // There is no parent frame so this is the main frame.
    }
    // other actions for child frames.
}

Now I have question: Can I get the flash address in the webpage using the argu: frame . and a flash in a frame ? and How to get it , I thought maybe walk through all the every frame dom object? But how to do ?Thank you again!

最佳回答

You really ought to be clearer. It sounds like you re loading a webpage containing a Flash plug-in and you want to know the URL of that resource. But I m not sure. If so, you want the WebResourceLoadDelegate, which will tell you what resources the webpage references, including the Flash file.

问题回答

暂无回答




相关问题
PHP DOM - accessing newly added nodes

I use the following to get a html document into DOM: $dom = new domDocument( 1.0 , utf-8 ); $dom->loadHTML($html) and then I add some new content to an element in the html: $element = $dom->...

XML DOM parsing br tag

I need to parse a xml string to obtain the xml DOM, the problem I m facing is with the self closing html tag like <br /> giving me the error of Tag mismatch expected </br>. I m aware this ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...

热门标签