-->
Page 2 of 5

Re: Javascript Gauge On Web Page, Example Code.

PostPosted: Wed Dec 09, 2015 7:21 pm
by tayfun
Nice,

But realy problem is refresh delay , because every time need to reload java aplet, have you any solition not html refreshe?

Re: Javascript Gauge On Web Page, Example Code.

PostPosted: Wed Dec 09, 2015 7:50 pm
by Mmiscool
If the value for the guage can be set with java script. The function in my first post in this thread should be able to fetch the value from the esp with out refreshing the whole page.

The msgbranch feature allows for this kind of thing. The non working code is also in that same post with the msgbranch code.

Re: Javascript Gauge On Web Page, Example Code.

PostPosted: Wed Dec 09, 2015 8:15 pm
by tayfun
:cry: i cant runing msgbruch :S sorry!

i dont understand

Re: Javascript Gauge On Web Page, Example Code.

PostPosted: Wed Dec 09, 2015 8:41 pm
by Mmiscool
The msg branch can be used for ajax calls from a static web page. It receives a msg in the form of a URL and responds with some dynamic information that the interpreter returns. You could make a bunch of html pages and java script for an interface and interact with the interpreter to control I/o or to pass a msg back to the page.

See this demo.
http://www.esp8266basic.com/msg-url-usage.html

I don't know enough java script at this time to really make it work but the capability exists.