Wednesday, May 22, 2013

Latest Train Updates - http://railradar.trainenquiry.com/

http://railradar.trainenquiry.com/

I found this site very useful for trains running in India, normally we got to a lot of places in net and over phone to get the latest update on the trains, but this site just solves the probelm......Go and have a peek in youself.

Happy Rides.

Tuesday, May 21, 2013

how to convert an int to string in java

Say int i = 10;

and String compare = "10";----Value from the Program

You can use either of these

1) Integer.toString(i)

                or

2)String.valueOf(i)

(i.e)

String convertedValue = Integer.toString(i);


if(convertedValue.equals(compare)){
----------Which turns out to be true
}
 

Friday, May 10, 2013

body onLoad not working in IE

Even though you may use
<body onnload="javascript:functionX;">      
to call the functionX, we have to give window.onload = functionX;
inside <script language="javascript"></script>



<script language="javascript">
window.onload = functionX;

functionX() {
             --------
             --------
}
</script>

For chrome and firefox window.onload is not needed........

I am using IE 9.0.8.112, (i.e) IE 9