I am one of the most barbad person in my branch if you want to talk about the above subject .
"Earlier me ladkiyon se gabrata tha ab sharmata hoon ", then point arise what am doing under this tag .There are some question jumping into my mind I want to share them, I know you may be having some important work to do then read this but "mere liye itna to kar hi sakte ho ".
I have a number of friends in both the gender. Most of the boys in there told me I like this girl ir that girl and then they ask me which girl I like , I told them I dont like anyone.
Which is a LIE as white as snow .
If truth has to be told I dont know what liking a girl actually mean. Most of them like the girl which is good looking ,some are even really preety. So what I dont understand does they like her body or love her body or they like her no matter how she look.
I havent ask this to anyone of them because it hardly matters to them.There ar exception also and I dont want to be nonsense because some of them really love those beautiful women, but I am not on that side of L.O.C. so no comments!!!!
Now the second question aries in my mind when person say to their girlfrien they love her what does it mean , are they going to marry her or If you marry someone then you can love her or you love her and not going to marry her is fine.
I am really confuse in these witty questions.Life around us is changeing at a very fast rate , and someone like a person who is supportive to him, according to my personal experience what I felt that we need someone and need is more emotional than physical. If anyone has to say against it he is most welcome
I want to add more things but what I want to see the response me bhi apko pakana nahi chata hu zyada
Monday, March 15, 2010
Saturday, March 13, 2010
Ajax Code
various people are having problem with code of AJAX at the coahing so here is the code to help you need any more help feel free to disturb me
///code below from now. code for main index file. i have removed html,head,script tag please add it yourself
var xmlhttp;
function processNumberAjaxStyle()
{
num=document.frm.num.value;
if(isNaN(num))
{
document.getElementById("squareDivision").innerHTML="Invalid Number";
document.getElementById("factorialDivision").innerHTML="";
return;
}
xmlhttp=GetXmlHttpObject();
if(xmlhttp==null)
{
alert("Your browser does not support XMLHTTP!");
return;
}
var url="servlet/getresult";
url=url+"?num="+num;
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function stateChanged()
{
if(xmlhttp.readyState==4)
{
result=xmlhttp.responseText;
alert(result);
var k=result.split(",");
document.getElementById("squareDivision").innerHTML="square : "+k[0];
document.getElementById("factorialDivision").innerHTML="factorial : "+k[1];
}
}
function GetXmlHttpObject()
{
if(window.XMLHttpRequest)
{
//code for IE7+, FireFox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if(window.ActiveXObject)
{
//code for IE6, IE5;
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
// code of body . i have removed '<' before every line please add it for eg '<'div id
div id="'frmDivision'">
form name="'frm'">
Enter Number
input type="'text'" name="'num'">
br />
input type="'Button'" value="'GetResult'" onclick="'processNumberAjaxStyle()'">
form>
/div>
Result
div id="'squareDivision'">
/div>
/div>
/body>
// code for servlet file with .java extension.below code should be in the file name getresult.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class getresult extends HttpServlet
{
public void doGet(HttpServletRequest rq,HttpServletResponse rs)
{
try
{
int num=Integer.parseInt(rq.getParameter("num"));
int ss;
ss=num*num;
int fact,e,x;
fact=1;
for(e=1;e<=num;e++)
{
fact=fact*e;
}
PrintWriter pw;
pw=rs.getWriter();
pw.print(ss+","+fact);
}
catch(Exception e)
{
System.out.println(e);
}
}
}
///code below from now. code for main index file. i have removed html,head,script tag please add it yourself
var xmlhttp;
function processNumberAjaxStyle()
{
num=document.frm.num.value;
if(isNaN(num))
{
document.getElementById("squareDivision").innerHTML="Invalid Number";
document.getElementById("factorialDivision").innerHTML="";
return;
}
xmlhttp=GetXmlHttpObject();
if(xmlhttp==null)
{
alert("Your browser does not support XMLHTTP!");
return;
}
var url="servlet/getresult";
url=url+"?num="+num;
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function stateChanged()
{
if(xmlhttp.readyState==4)
{
result=xmlhttp.responseText;
alert(result);
var k=result.split(",");
document.getElementById("squareDivision").innerHTML="square : "+k[0];
document.getElementById("factorialDivision").innerHTML="factorial : "+k[1];
}
}
function GetXmlHttpObject()
{
if(window.XMLHttpRequest)
{
//code for IE7+, FireFox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if(window.ActiveXObject)
{
//code for IE6, IE5;
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
// code of body . i have removed '<' before every line please add it for eg '<'div id
div id="'frmDivision'">
form name="'frm'">
Enter Number
input type="'text'" name="'num'">
br />
input type="'Button'" value="'GetResult'" onclick="'processNumberAjaxStyle()'">
form>
/div>
Result
div id="'squareDivision'">
/div>
/div>
/body>
// code for servlet file with .java extension.below code should be in the file name getresult.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class getresult extends HttpServlet
{
public void doGet(HttpServletRequest rq,HttpServletResponse rs)
{
try
{
int num=Integer.parseInt(rq.getParameter("num"));
int ss;
ss=num*num;
int fact,e,x;
fact=1;
for(e=1;e<=num;e++)
{
fact=fact*e;
}
PrintWriter pw;
pw=rs.getWriter();
pw.print(ss+","+fact);
}
catch(Exception e)
{
System.out.println(e);
}
}
}
various people are having problem with code of AJAX at the coahing so here is the code to help you need any more help feel free to disturb me
///code below from now. code for main index file
Result
// code for servlet file with .java extension.below code should be in the file name getresult.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class getresult extends HttpServlet
{
public void doGet(HttpServletRequest rq,HttpServletResponse rs)
{
try
{
int num=Integer.parseInt(rq.getParameter("num"));
int ss;
ss=num*num;
int fact,e,x;
fact=1;
for(e=1;e<=num;e++)
{
fact=fact*e;
}
PrintWriter pw;
pw=rs.getWriter();
pw.print(ss+","+fact);
}
catch(Exception e)
{
System.out.println(e);
}
}
}
///code below from now. code for main index file
Result
// code for servlet file with .java extension.below code should be in the file name getresult.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class getresult extends HttpServlet
{
public void doGet(HttpServletRequest rq,HttpServletResponse rs)
{
try
{
int num=Integer.parseInt(rq.getParameter("num"));
int ss;
ss=num*num;
int fact,e,x;
fact=1;
for(e=1;e<=num;e++)
{
fact=fact*e;
}
PrintWriter pw;
pw=rs.getWriter();
pw.print(ss+","+fact);
}
catch(Exception e)
{
System.out.println(e);
}
}
}
Subscribe to:
Posts (Atom)