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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]