On Tue, Nov 25, 2008 at 4:44 AM, Mark Murphy <[EMAIL PROTECTED]> wrote: > > David Orriss Jr wrote: >> I need to call a JavaScript function in a page in a webkit view and >> get a return value. >> >> Possible? Suggestions? > > I don't think you can get a result directly from calling > loadUrl("javascript:yourfunctionhere()") on a WebView. > > However, you *could*: > > 1. Add a callback via addJavascriptInterface() > > 2. Have your Javascript function call that callback with your result > > 3. Call the Javascript function as described above > > On the plus side, this probably works. On the minus side, it requires a > change, or at least a wrapper, for the Javascript function to use the > callback.
Hi Mark, Y'know I did some digging after posting this and came to this exact same conclusion. Thanks for verifying what I thought was the case. I'll tinker around and see if it works. I'll let the list know what I find. Thanks. And happy holidays.... -- David Orriss Jr. My blog: http://www.codethought.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---