Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By forlotto
#33817 Wow basic is somewhat like the sledgehammer it allows you to use most everything.
User avatar
By tayfun
#35755 How to using this code, i cant use esp basic with

Code: Select all<HTML>
<HEAD>
<TITLE>Crunchify - Refresh Div without Reloading Page</TITLE>
 
<style type="text/css">
body {
    background-image:
        url('http://cdn3.crunchify.com/wp-content/uploads/2013/03/Crunchify.bg_.300.png');
}
</style>
<script type="text/javascript"
    src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
    $(document).ready(
            function() {
                setInterval(function() {
                    var randomnumber = Math.floor(Math.random() * 100);
                    $('#show').text(
                            'I am getting refreshed every 3 seconds..! Random Number ==> '
                                    + randomnumber);
                }, 3000);
            });
</script>
 
</HEAD>
<BODY>
    <br>
    <br>
    <div id="show" align="center"></div>
 
    <div align="center">
        <p>
            by <a href="http://crunchify.com">Crunchify.com</a>
        </p>
    </div>
</BODY>
</HTML>
User avatar
By forlotto
#35763 errr why not just:

Save this as a webpage
Upload it using the file manager
Then open the file?

Otherwise you could just print all of it...
User avatar
By tayfun
#35766 yes this code normally working, i want to use realtime showing any variable on the web page but! i dont want to refresh all web page, want to only my variable refresh.

Code: Select allmemclear
timer 1000 [branch]
cls


wprint "<html>"
wprint "<head>"
wprint "<meta http-equiv=Content-Language content=tr>"
wprint "<meta http-equiv=Content-Type content=text/html; charset=windows-1254>"
wprint "<meta http-equiv=refresh content=5>"
wprint "<title>DENEMEEEEEEE</title>"
wprint "</head>"
wprint "<body>"
wprint "<p><b><font color="blue" size=7>DENEMEEEEEEE</font></b></p>"
wprint htmlvar(ADCin)
wprint "</body>"
wprint "</html>"




button Exit [TestExit]
wait
[TestExit]
timer 0
end


[branch]
gosub readdata
wait

readdata
ADCin = ADCin + 1
return




how to updare only my ADCin variable, not resfresh all page!