B4J Question ws.RunFunctionWithResult

Blueforcer

Well-Known Member
Licensed User
Longtime User
Hello,
Im really new in Webapp development.
For my current Project i need to get all IDs from the current document.
this is the working javascript function:
B4X:
document.querySelectorAll('*[id]')

But how i have to do it in B4J?
This one dont work.
B4X:
Dim F As Future = ws.RunFunctionWithResult("document.querySelectorAll",Array As Object("*[id]"))

thank you in advance
 

Blueforcer

Well-Known Member
Licensed User
Longtime User
that doesn't work either. Value is still Null
But before we look for the mistake:
is it even possible to access these elements at the end without having declared them explicitly beforehand? Because I have several HTML pages that are dynamically generated by another program. Each element has a unique ID. But I just want to read/describe the elements that are currently present on the called page. So I would also need a way to react to all events of the "unknown" IDs.
 
Last edited:
Upvote 0
Top