- Jun 6, 2020
- 11,559
- 4,422
Hi all,
I 've ported this @stevel05 B4J CodeMirror wrapper to B4A
Now I need to get values back from Javascript but I've some problems.
Steve in his B4J code implemented itself a Javascript interface on a JavaFX WebView, ExecuteJavaScript command can execute JS and return back an object so it can back with just one call.
B4X:
In my code I use WebViewExtras and ExecuteJavascript method do not return values, so I just created a JS function to get a value and then JS call a B4A sub to pass back it.
The problem here is that this require some time and I do not know how to wait a value.
It always return non last value assigned to a global variable (from previous call).
I've even tried to reset it...
I 've ported this @stevel05 B4J CodeMirror wrapper to B4A
برای دیدن لینک ها باید ثبت نام کنید
Now I need to get values back from Javascript but I've some problems.
Steve in his B4J code implemented itself a Javascript interface on a JavaFX WebView, ExecuteJavaScript command can execute JS and return back an object so it can back with just one call.
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
In my code I use WebViewExtras and ExecuteJavascript method do not return values, so I just created a JS function to get a value and then JS call a B4A sub to pass back it.
The problem here is that this require some time and I do not know how to wait a value.
It always return non last value assigned to a global variable (from previous call).
I've even tried to reset it...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید