> At 17:20 -0500 19.04.2005, Craig Hunter wrote:
>> I am in the same boat as Dave -- all the WebViews in my app no longer
>> respond to "stringByEvaluatingJavaScriptFromString:" which was being used to
>> load local HTML files from the HD in an AppleScript Studio app. It worked
>> great as of 10.3.8.
>>
> We cannot say that stringByEvaluatingJavaScriptFromString does not
> work at all. It does, only the JS it accepts seems to be more
> restricted. In my case it's multltiple frames that do not work any
> more: I have a Javascript in a main page that tries to write into 3
> different subframes. Whatever tricks I try I cannot access the
> subframes any more, they are all "undefined". What makes all this
> especially nasty is that it's very hard to learn what the Javascript
> actually does - it just fails silently.
It must be real restricted -- I was calling it with something simple like
"location.href='http://www.apple.com'" and that broke!! I don't think
Javascript gets any dumber than that!
>> And of course I picked this weekend to roll out a new version of my app,
>> smack into the middle of a mess.... The good news is that the 10.3.9
>> problems break old versions of my app too, so at least it's consistent!
>
> Exactly the same thing here, we planned to release a new version too.
> Now I'm rewriting a great part of the webview display to get rid of
> the multiframe design.
That sucks. I think I found a workaround for my case (suggested by another
fellow on the AppleScript Studio list) using a slightly more cumbersome
approach. What I used to do in one compact line of code now takes about 4
lines of code, multiple casting, and mixing in Obj-C method calls with the
AppleScript. It's a real pain. Lot of work to just load a URL in a single
frame. I don't even want to think about multiple frames.....
Craig
--
Dr. Craig A. Hunter
NASA Langley Research Center
AAAC / Configuration Aerodynamics Branch
(757) 864-3020
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
This email sent to email@hidden