Addo Well-Known Member Licensed User Longtime User Aug 5, 2019 #1 i am planing to do a chatbox like whatsapp that supports animated gifs and some html tags but also i am looking for a way to do it without lagging that can be caused by webbrowser the html of chat box will load a style css in the header. and i dont want to load that css each time message arrived is there a way to set webbrowser header with a style file from local folder and append html tags without reloading ?
i am planing to do a chatbox like whatsapp that supports animated gifs and some html tags but also i am looking for a way to do it without lagging that can be caused by webbrowser the html of chat box will load a style css in the header. and i dont want to load that css each time message arrived is there a way to set webbrowser header with a style file from local folder and append html tags without reloading ?
MarkusR Well-Known Member Licensed User Longtime User Aug 5, 2019 #2 you can add/replace html page parts by id or class name via javascript & jquery. css should be a separate file(s). Last edited: Aug 5, 2019 Upvote 0
you can add/replace html page parts by id or class name via javascript & jquery. css should be a separate file(s).
Addo Well-Known Member Licensed User Longtime User Aug 5, 2019 #3 I can use append using Javascript hmmm this is an idea I was looking for built in way from webbrowser directly Upvote 0
I can use append using Javascript hmmm this is an idea I was looking for built in way from webbrowser directly
MarkusR Well-Known Member Licensed User Longtime User Aug 5, 2019 #4 here is a example with a replace but you can also add new content. it calls a url and the return is new content as example someone answered. myself used a database to chat also offline. (web hosting with mysql & php) https://aiocollective.com/blog/refresh-content-automatically-after-some-period-time-jquery/ Upvote 0
here is a example with a replace but you can also add new content. it calls a url and the return is new content as example someone answered. myself used a database to chat also offline. (web hosting with mysql & php) https://aiocollective.com/blog/refresh-content-automatically-after-some-period-time-jquery/
KZero Active Member Licensed User Longtime User Aug 5, 2019 #5 you can but it will be bit heavier and laggy, use custom listview instead Upvote 0
Addo Well-Known Member Licensed User Longtime User Aug 5, 2019 #6 KZero said: you can but it will be bit heavier and laggy, use custom listview instead Click to expand... Can clv load animated gifs? Upvote 0
KZero said: you can but it will be bit heavier and laggy, use custom listview instead Click to expand... Can clv load animated gifs?
Brandsum Well-Known Member Licensed User Aug 6, 2019 #7 you can use a html template having an div with a specific id that will contain chat messages. Now you can use any websocket library like mqtt, socket.io, websocket etc to get real-time data. So when you get any new message you can add that message using JavaScript append function. Upvote 0
you can use a html template having an div with a specific id that will contain chat messages. Now you can use any websocket library like mqtt, socket.io, websocket etc to get real-time data. So when you get any new message you can add that message using JavaScript append function.
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2019 #8 xCLV can include any layout you like. Including: https://www.b4x.com/android/forum/threads/82104/#content Upvote 0
xCLV can include any layout you like. Including: https://www.b4x.com/android/forum/threads/82104/#content