Hi!
I have a WebView in which I call JavaScript functions using [[webView
windowScriptObject] callWebScriptMethod:.

When I do it for the first time everything works fine and my script runs
like it should. When I call it from another (objc) function my JS function
can not access the DOM elements using getElementByID though. Using the JS
Console shows me the results, but unlike other JS errors the log is
formatted as plaintext like this:
online.js (line 205)TypeError: Result of expression '$('number_input')'
[null] is not an object.

The second call is invoced through a function triggered by a c-library
callback.

Thank You!

Stefan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to