It would be interesting to NSLog the result of the outerHTML call to
see exactly what HTML you end up reloading. I suspect the result does
not include the script you've constructed, which may indicate a bug
in WebKit.
Geoff
On Dec 2, 2005, at 11:21 AM, Michael Hanna wrote:
Hi I'm trying to inject JS into the DOM dynamically, but I'm having
trouble getting a result from the injected JS which *would* give me
a result when I loaded the standard way from a file.
The html code in the webview is like this at first:
I know my technique is in error in some way. Is there a way to
dynamically inject JS like I'm trying to?
--
Michael Hanna
email@hidden
iChat: michaelkhanna(AIM)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/ggaren%
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden