Tuesday, April 12, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


Ajax and jsp related query.

Posted: 11 Apr 2011 10:28 PM PDT

hello friend's
Don't know why ajax is not working with my jsp pages.Look at this code
Code:

<html>
<script>
    function check()
    {
        //alert("mohit kumar singh");
        var k=document.getElementById("d2").value;
        //alert(k);
        if(window.XMLHttpRequest)
        {
            xmlhttp=new XMLHttpRequest();
        }
        else
        {
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange=function()
        {
            if(xmlhttp.readyState==4 && xmlhttp.status==200)
            {
                document.getElementById("mydiv").innerHTML=xmlhttp.responseText;
            }
        }
        xmlhttp.open("GET","new.jsp?t1="+k,true);
        xmlhttp.send();
    }
</script>
<body bgcolor="yellow">
<center>
<h1>Ajax Application</h1>
<div id="mydiv">
</div>
<form name="f1" id="d1">
<input type="text" name="t2" id="d2">
<input type="button" value="click here" onclick="check();">
</form>
</center>
</body>
</html>

and here goes the 2nd one
Code:

<h1><%=t1%></h1>
but don't know why it's not working.

Flooding protocol in shortest path fast algorithm (link state algo)

Posted: 11 Apr 2011 04:38 PM PDT

:confused::confused: Can any one please explain the basic concept of link state algorithm nick named shortest path fast algo and how does the flooding protocol work in it :rolleyes::rolleyes:

conversion-hi tech compiler format to ccs c compiler format

Posted: 11 Apr 2011 12:59 PM PDT

how to convert hi tech compiler based c code to ccs c compiler format
what differsnce is to be made..
http://www.hoperf.com/upfile/RF12B_code.pdf
the code is in the link above.

No comments:

Post a Comment