how to pass Querystring url

Posted by Jayakumars under ASP.NET on 1/21/2012 | Points: 10 | Views : 1753 | Status : [Member] [MVP] | Replies : 2
hi
how to pass query string to url Post Method. my code like this how to change this


function Test() {
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
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", "http://www.google.co.in?Nam="Test", true);
xmlhttp.send();
}

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com



Responses

Posted by: Prabhakar on: 1/21/2012 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Jayakumars,


read this link it's use full for u . .

http://code.google.com/apis/desktop/articles/e9.html

use like this manner

GET", "http://www.google.com/search?name=test
try it . . go with this above link..

Best Regard's
Prabhakar

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 1/21/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

prabhakar can you check the code. let me check below image file error have comes.
 Download source file

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response