aaronk Well-Known Member Licensed User Longtime User Dec 22, 2020 #1 Hi, This is a follow up to my other thread (https://www.b4x.com/android/forum/threads/websocket-get-html-selected-option-id.125643/) If on my webpage I have a variable, is there a way in returning that using the web socket in my B4J app ? JavaScript: Copy var test = "testing"; Is there a way in returning 'testing' from the variable in the B4J app ?
Hi, This is a follow up to my other thread (https://www.b4x.com/android/forum/threads/websocket-get-html-selected-option-id.125643/) If on my webpage I have a variable, is there a way in returning that using the web socket in my B4J app ? JavaScript: Copy var test = "testing"; Is there a way in returning 'testing' from the variable in the B4J app ?
DonManfred Expert Licensed User Longtime User Dec 22, 2020 #2 Create a DIV/P Tag in your website (giving it a unique ID), output the var in this DIV/P and fetch the content similar to the code in the other thread. Upvote 0
Create a DIV/P Tag in your website (giving it a unique ID), output the var in this DIV/P and fetch the content similar to the code in the other thread.
aaronk Well-Known Member Licensed User Longtime User Dec 22, 2020 #3 DonManfred said: Create a DIV/P Tag in your website (giving it a unique ID), output the var in this DIV/P and fetch the content similar to the code in the other thread. Click to expand... Yeah, that is what I was thinking of doing, but wasn't sure if there was a way in getting it directly. Upvote 0
DonManfred said: Create a DIV/P Tag in your website (giving it a unique ID), output the var in this DIV/P and fetch the content similar to the code in the other thread. Click to expand... Yeah, that is what I was thinking of doing, but wasn't sure if there was a way in getting it directly.