Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can stringByEvaluatingJavaScriptFromString: call a local



on 12/7/05 12:44 PM, Mark Thomas at email@hidden wrote:

>   Yes that should work fine with no problems as I do something similar for
> the day job, one thing I would check that WebKit Object you have is top
> level Main View.

It's what I get from HIWebViewGetWebView() -- this is a Carbon app, if that
makes any difference. Since it works ok for everything else I call it with,
I presume it must be alright.

>   You will need to add some extra delegates to deal with opening windows and
> alert dialogs, as by default they won't appear until you implement them, as
> on window's system a window.open will open another instance of IE, which is
> not going to happen within your custom WebKit application.

Yeah, I have those, "alert('Hi there!')" and "window.open(yada,yada,yada)"
calls I pass directly work fine. It's just the functions defined in the
loaded HTML page that it can't seem to find. And the functions do seem to be
there, because when I click an HTML button in the loaded page,
feedback(x,y,z) does get called properly and pops up the expected window. So
stands to reason that if it works when called from inside WebKit, I ought to
be able to call it from outside, too. Somehow.

-- 
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

Thousands of years ago in ancient Egypt, cats were worshipped as gods.
The cats have never forgotten this.


 _______________________________________________
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

This email sent to email@hidden

References: 
 >Re: Can stringByEvaluatingJavaScriptFromString: call a local (From: Mark Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.