A New Beginning

So it is a bit odd how a small accompaniment can go a long way.

Today I decided to get back into the thick of things and try and learn more on JavaScript and to my surprise it is working, In the past I never thought I would be able to do something with JS but today I believe  I can great great things with it.

Now to anyone that sees this note what I have done well not much. It is just me wanting to learn how to use JS with my php work and thought to give it another go the past has given me some issues but for not I am happy with the small thing I have done.

What is it you may ask? Well just some AJAX to add on a button push.

Code bellow

Index.html

</p><p>&lt;!DOCTYPE html&gt;<br />    &lt;html&gt;<br />        &lt;head&gt;<br />            &lt;meta charset="UTF-8"&gt;<br />            &lt;title&gt;Learn JavaScript&lt;/title&gt;<br />            &lt;script type="text/JavaScript"&gt;<br />                    function TimeisIt()<br />                        {<br />                        var xmlhttp;<br />                        if (window.XMLHttpRequest)<br />                          {// code for IE7+, Firefox, Chrome, Opera, Safari<br />                          xmlhttp=new XMLHttpRequest();<br />                          }<br />                        else<br />                          {// code for IE6, IE5<br />                          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");<br />                          }<br />                        xmlhttp.onreadystatechange=function()<br />                          {<br />                          if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)<br />                            {<br />                            document.getElementById("myDiv").innerHTML=xmlhttp.responseText;<br />                            }<br />                          }<br />                        xmlhttp.open("GET","SS.php",true);<br />                        xmlhttp.send();<br />                        }<br />            &lt;/script&gt;<br />        &lt;/head&gt;<br />        &lt;body&gt;<br />            &lt;a href="#" onclick="TimeisIt()"&gt;What Time is it?&lt;/a&gt;<br />                &lt;div id="myDiv"&gt;&lt;/div&gt;<br />        &lt;/body&gt;<br />    &lt;/html&gt;<br />

SS.php

</code></p><p><code>&lt;?php<br />session_start();<br />//echo "Hello it is ".date("g:i a");<br />if(isset($_SESSION['num'])){<br />    $_SESSION['num']++;<br />}else{<br />    $_SESSION['num']=1;<br />}<br />echo $_SESSION['num'];</code></p><p><code><br />?&gt;</code></p><p>

 

 

Yet Another Useless Blog

Well I thought to add the endless number of blogs that are on the net. This being it I am uncertain of what will come or if any will read. For the ones that do a warning about my grammar, as you can see It is not the best and my or may not improve.

So what to expect? Well at this time expect nothing but poor written things about random topics. Each post will be well random until I find what I fill best writing about. Or it could just stay random, who knows?