B4X FEED Run a Javascript embedded within an HTML document from B4a

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Run a Javascript embedded within an HTML document from B4a است. این موضوع تا کنون 72 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Run a Javascript embedded within an HTML document from B4a
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
72
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
I have an HTML document that contains this java script:
B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
If I put an input of type button within the HTML, and click it, it works fine and scrolls to the item with ID="Q1" :)
I would like to be able to, from within my B4a code execute the myFunction while I:
  1. pass a parameter into the myFunction like myFunction("Q1")
  2. and programmatically "click" or execute the java script function from B4a code
Is this possible? If so, how might I go about this?

If this is not possible, is there a way from within B4a code to scroll to an ID within the Webview HTML?
Thanks
Rusty

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا