Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 17:41, Ludovic THEBAULT via use-livecode 
>  a écrit :
> 
> 
> 
>> Le 17 avr. 2020 à 16:55, panagiotis merakos via use-livecode 
>>  a écrit :
>> 
>> Hello Ludovic,
>> 
>> Could you please file a bug report and include a (ideally simple) sample
>> stack, so as we investigate asap?
>> 
>> Kind regards,
>> Panos
> 
> Ok.
> 
> So, I wanted to remove all scripts and cards unrelated to the problem to 
> provide you with a test stack and... after checking no more errors!
> 
> So I'll try to delete little by little to determine the culprit. I will post 
> the bug report and the sample stack at that time.
> 



Here the bug report.

I didn't have any error with my test stack because I didn't add the code to 
display the errors ….  and the error had disappeared on my app when I had 
deleted this code !

Bug 22689 

I’ve retested on my iPhone, the sample stack compiled with Livecode 9.04 don’t 
show any error.

Thanks.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 16:55, panagiotis merakos via use-livecode 
>  a écrit :
> 
> Hello Ludovic,
> 
> Could you please file a bug report and include a (ideally simple) sample
> stack, so as we investigate asap?
> 
> Kind regards,
> Panos

Ok.

So, I wanted to remove all scripts and cards unrelated to the problem to 
provide you with a test stack and... after checking no more errors!

So I'll try to delete little by little to determine the culprit. I will post 
the bug report and the sample stack at that time.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread panagiotis merakos via use-livecode
Hello Ludovic,

Could you please file a bug report and include a (ideally simple) sample
stack, so as we investigate asap?

Kind regards,
Panos
--

On Fri, 17 Apr 2020 at 17:45, Ludovic THEBAULT via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
>
> > Le 17 avr. 2020 à 16:37, Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> a écrit :
> >
> > Have you tried without the wait?
> >
> > Thanks,
>
> Hello,
>
> Yes, without the wait, the error is always here.
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Ludovic THEBAULT via use-livecode


> Le 17 avr. 2020 à 16:37, Brian Milby via use-livecode 
>  a écrit :
> 
> Have you tried without the wait?
> 
> Thanks,

Hello,

Yes, without the wait, the error is always here.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-17 Thread Brian Milby via use-livecode
Have you tried without the wait?

Thanks,
Brian
On Apr 17, 2020, 2:06 AM -0400, Ludovic THEBAULT via use-livecode 
, wrote:
> Hello,
>
>
> I’ve a strange error :
>
> I have an application where you can change the GPS coordinates from a marker 
> on a map, in a browser widget.
> For this I use the code "myJSHandler" which allows to retrieve in Livecode 
> the GPS values of the map thanks to javascript.
>
> The code works fine on desktop, iOS and Android except for iOS apps compiled 
> with Livecode > 9.0.6 (and also with the new Livecode 9.6.0 dp4).
> (I’ve not tested with Livecode 9.5). I’ve already tried to remove the widget 
> browser and replace it with a « new ».
>
> When I run the code in my app :
> on myJSHandler theCoords
> wait 100 milliseconds with messages
>
> put theCoords into tnewcoords
>
> end myJSHandler
>
> // and the javascript in the html code of the map :
> function getCoords() {
> liveCode.myJSHandler(document.getElementById('info').value ) ;
> }
>
> I get an error message:
>
> 343,0,0
> 863,0,0,runtime
> 864,0,0,Value is not of correct type for
> assignment to variable - expected type
>  for
> assigning to variable tResult in
> com.livecode.widget.browser.browser-
> EvaluateJavaScript
> 865,0,0,browser.lcb
> 866,0,0,859
> 897,0,0,1
> 865,0,0,browser.lcb
> 866,0,0,852
> 897,0,0,1
>
> but the coordinates are well recovered...
>
> If I change my code with :
>
> on myJSHandler theCoords
>
> answer « New coordinates are saved !"
>
>  no error, so, the bug is here ! ###
> wait 100 milliseconds with messages
>
> put theCoords into tnewcoords
>
> end myJSHandler
>
>
> I don't get the error anymore!
>
> I created a test application with the same code and the same map and I got no 
> error !
>
> You could get this sample stack here to see the complete code (but not the 
> error !)
> https://www.dropbox.com/s/pswhwvoinyrm387/testJShandler.livecode?dl=1 
> 
>
> Thanks for your lights !
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Error in evaluatejavascript with widget browser only on iOS and Livecode > 9.06

2020-04-16 Thread Ludovic THEBAULT via use-livecode
Hello,


I’ve a strange error :

I have an application where you can change the GPS coordinates from a marker on 
a map, in a browser widget.
For this I use the code "myJSHandler" which allows to retrieve in Livecode the 
GPS values of the map thanks to javascript.

The code works fine on desktop, iOS and Android except for iOS apps compiled 
with Livecode > 9.0.6 (and also with the new Livecode 9.6.0 dp4).
(I’ve not tested with Livecode 9.5). I’ve already tried to remove the widget 
browser and replace it with a « new ».

When I run the code in my app :
   on myJSHandler theCoords
   wait 100 milliseconds with messages

   put theCoords into tnewcoords

   end myJSHandler

// and the javascript in the html code of the map :
 function getCoords() {
liveCode.myJSHandler(document.getElementById('info').value ) ; 
  }

I get an error message:

343,0,0
863,0,0,runtime
864,0,0,Value is not of correct type for
assignment to variable - expected type
 for
assigning to variable tResult in
com.livecode.widget.browser.browser-
EvaluateJavaScript
865,0,0,browser.lcb
866,0,0,859
897,0,0,1
865,0,0,browser.lcb
866,0,0,852
897,0,0,1

but the coordinates are well recovered...

If I change my code with :
 
on myJSHandler theCoords

 answer « New coordinates are saved !"

   no error, so, the bug is here ! ###
   wait 100 milliseconds with messages

   put theCoords into tnewcoords

end myJSHandler


 I don't get the error anymore!

I created a test application with the same code and the same map and I got no 
error !

You could get this sample stack here to see the complete code (but not the 
error !)
https://www.dropbox.com/s/pswhwvoinyrm387/testJShandler.livecode?dl=1 


Thanks for your lights !
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode