• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting content out of a WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting content out of a WebView


  • Subject: Re: Getting content out of a WebView
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 23 Sep 2009 08:19:29 -0700


On Sep 22, 2009, at 5:53 PM, Eddie Aguirre wrote:

getting the data from the WebView through the mainFrame and dataSource works for the initial contents but not the edited contents. The dataSource always returns the unedited content. I've tried editing in the WebView then turning off editing thinking that this may be needed to push the changes but with no luck.

WebView doesn't have a notion of updating its data source; it's one- way, like a web browser. If you want to access the current contents, you'll need to do like a web-app and access the DOM. You need to get the document's body's innerHTML property.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting content out of a WebView
      • From: Eddie Aguirre <email@hidden>
References: 
 >Getting content out of a WebView (From: Eddie Aguirre <email@hidden>)

  • Prev by Date: Re: Stability on Snow Leopard
  • Next by Date: Multiline label allignment issue.
  • Previous by thread: Re: Getting content out of a WebView
  • Next by thread: Re: Getting content out of a WebView
  • Index(es):
    • Date
    • Thread