Re: Calling javascript from Cocoa 'facelessly'

2010-07-03 Thread Izidor Jerebic
You did not spell out where exactly this code will run - who is going to be the host application. To prevent all stupid errors (typing, etc.), I would suggest you start from the beginning - create a simple GUI app, make a window with WebView, and then load your stuff into this WebView.

Re: Calling javascript from Cocoa 'facelessly'

2010-07-03 Thread Geoffrey Holden
Thanks for this. I'll try that. I have produced WebViews before with no problems, although this is the first time that I've tried to do it facelessly. What I'd really like, of course, is a means of running JavaScript without a webview - i.e. provide a link to the JavaScript directly, without

Calling javascript from Cocoa 'facelessly'

2010-07-02 Thread Geoffrey Holden
Thanks for this. I tried it, checking that provisionalDataSource is nil before continuing as per the documentation, but sadly I still get the same result - regardless of whether I have the real javascript function name or a made up one, and regardless of whether the URL I use is real or

Calling javascript from Cocoa 'facelessly'

2010-06-30 Thread Geoffrey Holden
My company has a webpage (internal, sadly, so I can't let you have a link to look at) which is entirely driven by Javascript, and which requires authentication to access (the authentication too is driven by Javascript, rather than by the more normal https sign in methods). The website is a)

Re: Calling javascript from Cocoa 'facelessly'

2010-06-30 Thread Michael Ash
On Wed, Jun 30, 2010 at 1:01 PM, Geoffrey Holden 45rpmli...@googlemail.com wrote: I realize that this is a hell of a big query, and I'm not entirely sure that I've given enough information for anyone to help answer it.  At the very least, I guess I'm hoping for a reference to some really