Hello,
the code your provided did not work at all out of the box for me and required the following 3 things
adding library(shinywidgets) as sliderTextInput is used
adding an empty dashboardHeader() as otherwise dashboardPage complained
added trivial trial1.html and trial2.html files to my working directory, i made the contents of these <p>trial1</p> and <p>trial2</p> respectively.
Having made these changes the app ran; also seemed to behave perfectly as I expected.
the setup with the barebones html files works for me, therefore I can only assume something relevant to your problem appears in your different html (that I dont have access to) or else, the code you are trying is not quite the code you provided here plus my fixes... or there is some package version issue though this seems unlikely to me given the context.
if you remove all the content from trial1.html and trial2.html apart from the initial
i.e. get closer to the example that does in fact work on my machine, then does it start to work for you ?
Fist of all I really appreciate your efforts and the generous support, I think the problem with the HTML files that I have. I tested the code with a very simple HTML that contains as you have suggested: <p>trial1</p> and <p>trial2</p>, it works perfectly.
I attached to you under the following link my HTML files, and I would be grateful if you could give it a look and hopefully figure out what its problem:
These files are not pure HTML, they seem to contain significant amounts of javascript.
The script parts which simply embed images are fine, I tested that.
How did you create/come by these HTML ?
I would try to produce them or edit them down, to remove all non-essential javascript.