Re: Running JavaScript in iOS WebView.
Re: Running JavaScript in iOS WebView.
- Subject: Re: Running JavaScript in iOS WebView.
- From: Laurent Daudelin <email@hidden>
- Date: Wed, 17 Nov 2010 14:58:30 -0800
On Nov 17, 2010, at 14:40, Glenn R. Martin wrote:
> On 17 Nov 2010, at 17:28 , email@hidden wrote:
>
>>
>> JavaScript execution time is limited to 10 seconds for each top-level entry point. If your script executes for more than 10 seconds, the web view stops executing the script. This is likely to occur at a random place in your code, so unintended consequences may result. This limit is imposed because JavaScript execution may cause the main thread to block, so when scripts are running, the user is not able to interact with the webpage.
>>
>>
>>
>> So one of your routines (I'm guessing rcs.invoke) is taking a long time (more than 10 seconds - perhaps it is waiting for some networked based action to complete). So if your JavaScript code is waiting for completion, you're going to have to refactor that code to work more asynchronously and not block.
>
> Another limitation i have noticed is that if the end point is secure (ie HTTPS), scripts dont seem to execute.
Seems to work for me on a secured connection (HTTPS)...
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden