Re: How can I access full source of a WebView

2008-10-07 Thread Ömer Kardaş
Thanks Rob, I tried your way (DOMHTMLElement* el...) and it gave me the source. Unfortunatly it gives only source and does not include external files. I already tried your second approach. [pb setData:[[[myWebView mainFrameDocument] webArchive] data] forType:WebArchivePboardType]; I just

Re: How can I access full source of a WebView

2008-10-07 Thread Rob Keniger
On 08/10/2008, at 8:45 AM, Ömer Kardaş wrote: This works better. However external CSS code is not copied, which makes the page look different. When I select all and copy from the webview manualy and then paste it on a new mail window it works fine, the external CSS is copied as well. Is th

How can I access full source of a WebView

2008-10-07 Thread Ömer Kardaş
Hi I am trying to send the contents of a webwiew with email. I have found several ways to do that, but there are minor problems. // get the attributes string of the webview id res = (id )[[[myWebView mainFrame] frameView] documentView]; NSAttributedString *p = [res attribute