Moderator: Mmiscool
The javascript command will add a
<script src="myscripts.js"></script>
into the html buffer.
If you have upload a ".js" file in the file manager you can include it in to your page by using the java script command.
Will work on putting a demo together with some practical application.
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com
I've written a trivial javascript file and shown that it runs by using "document.write" inside the script.
The big question of course is whether there is any mechanism of getting data from the Basic program into the javascript and whether any Basic variable can be manipulated by the javascript so that its changed value is available to Basic?
Thanks
Peter
I have n example here.
http://www.esp8266basic.com/msg-url-usage.html
Used in conjunction with the following java script you can do some cool things.
function httpGet(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
The above javascript code could be used to push and pull data from the esp with the above example.
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com