• 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: webview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: webview


  • Subject: Re: webview
  • From: wayne melrose <email@hidden>
  • Date: Sun, 11 Sep 2011 13:41:54 +0200


On Sep 11, 2011, at 12:42 PM, wayne melrose wrote:


I guess the real question is then, is a way to load a web view from a html string that does not come from a file. 


Found the answer here.. 
https://secure.macscripter.net/viewtopic.php?pid=129509





And my application of that code.. 


property NSString : class "NSString"

on loadWebView_(sender)
set htmlString to NSString's stringWithFormat_("<html><body style=\"font-family:helvetica;color:green;size:12px;\">Woohoo</body></html>")
my mywebView's mainFrame's loadHTMLString_baseURL_(htmlString, missing value)
end loadWebView_

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >webview (From: wayne melrose <email@hidden>)
 >Re: webview (From: "email@hidden" <email@hidden>)
 >Re: webview (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: webview
  • Next by Date: Moving to Lion - don't want full Xcode
  • Previous by thread: Re: webview
  • Next by thread: Moving to Lion - don't want full Xcode
  • Index(es):
    • Date
    • Thread