Re: Setting the result of a javascript function to NSString
Re: Setting the result of a javascript function to NSString
- Subject: Re: Setting the result of a javascript function to NSString
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 21 Jan 2009 15:18:26 +0100
Completly untested:
NSString *content = [[myWebView windowScriptObject]
evaluateWebScript
:@"document.getElementById('box').contentDocument.body.innerHTML"];
And more info about Obj-C/JS integration at:
http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/JavaScriptFromObjC.html
Le 21 janv. 09 à 14:56, Alex Mills a écrit :
Hey,
The Javascript based editor is here http://www.alexmillsdesign.com/Developer/FernEngine/Default.htm
From Cocoa I want to get the 'innerHTML' from the iFrame and store
it in a NSString.
What would be the best way of accomplishing this?
Cheers Guys, very much appreciated your help so far!
Cheers
Alex Mills
_______________________________________________
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
_______________________________________________
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