Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFind Local Time From UCT Time Pin
adkalavadia10-Nov-09 22:36
adkalavadia10-Nov-09 22:36 
AnswerRe: Find Local Time From UCT Time Pin
Covean11-Nov-09 2:49
Covean11-Nov-09 2:49 
GeneralRe: Find Local Time From UCT Time Pin
adkalavadia11-Nov-09 18:50
adkalavadia11-Nov-09 18:50 
GeneralRe: Find Local Time From UCT Time Pin
Covean11-Nov-09 21:05
Covean11-Nov-09 21:05 
QuestiononChange Event in javascript Pin
Jacobb Michael10-Nov-09 21:36
Jacobb Michael10-Nov-09 21:36 
AnswerRe: onChange Event in javascript Pin
Petr Pechovic10-Nov-09 23:19
professionalPetr Pechovic10-Nov-09 23:19 
AnswerRe: onChange Event in javascript Pin
Abhishek Sur11-Nov-09 0:29
professionalAbhishek Sur11-Nov-09 0:29 
QuestionAjax Help [modified] Pin
JMAboliEnrich10-Nov-09 21:29
JMAboliEnrich10-Nov-09 21:29 
I want to use Ajax in External .js File...

I have some code in PHP which is similar to following...

function Validate()
{
var pars="selectedIndex="+strUname+"&objname=checkPid";
var url ='/checkUser.php';
var sucReqUname=function(t){
document.getElementById("chackingmsg").innerHTML="";
avail_uname=t;
if(t == "1"){ val_failed();
return false;
}
else{ val_success(o.id);}
}
getAjaxRes(url,pars,sucReqUname);

}
//common ajax
function getAjaxRes(url,params,ResRetFun){
var http = new GetXmlHttpObject();
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.onreadystatechange = function() {
if(http.readyState == 4 && http.status == 200)
ResRetFun(http.responseText);
}
http.send(params);
}
function GetXmlHttpObject(){
var xmlHttp=null;
try{ xmlHttp=new XMLHttpRequest();}
catch (e){// Internet Explorer
try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
}
return xmlHttp;
}


i want to use this code in java script .. can any one tell me how to use
this in asp.net in external .js file...

its urgent........
Thanks in advance....

modified on Wednesday, November 11, 2009 4:21 AM

QuestionVS 2008 - Web Setup Project Failed to install Pin
Jay_se10-Nov-09 20:35
Jay_se10-Nov-09 20:35 
Questioncrystal report column should use column separator Pin
vikas shukla10-Nov-09 20:10
vikas shukla10-Nov-09 20:10 
Questionradiobuttonlist with image Pin
creative7710-Nov-09 20:10
creative7710-Nov-09 20:10 
AnswerRe: radiobuttonlist with image Pin
Christian Graus10-Nov-09 20:19
protectorChristian Graus10-Nov-09 20:19 
GeneralRe: radiobuttonlist with image Pin
creative7710-Nov-09 20:32
creative7710-Nov-09 20:32 
GeneralRe: radiobuttonlist with image Pin
Christian Graus10-Nov-09 21:06
protectorChristian Graus10-Nov-09 21:06 
AnswerRe: radiobuttonlist with image Pin
Abhishek Sur10-Nov-09 20:31
professionalAbhishek Sur10-Nov-09 20:31 
QuestionHow to get live stream from webcam in our web page? Pin
Member 446605910-Nov-09 20:07
Member 446605910-Nov-09 20:07 
AnswerRe: How to get live stream from webcam in our web page? Pin
Christian Graus10-Nov-09 20:20
protectorChristian Graus10-Nov-09 20:20 
AnswerRe: How to get live stream from webcam in our web page? Pin
Abhishek Sur10-Nov-09 20:36
professionalAbhishek Sur10-Nov-09 20:36 
AnswerRe: How to get live stream from webcam in our web page? Pin
saurabh8april11-Nov-09 1:41
saurabh8april11-Nov-09 1:41 
QuestionTexbox is not Clear On Postback Pin
alaminfad10-Nov-09 19:04
alaminfad10-Nov-09 19:04 
AnswerRe: Texbox is not Clear On Postback Pin
Gamzun10-Nov-09 19:20
Gamzun10-Nov-09 19:20 
AnswerRe: Texbox is not Clear On Postback Pin
Christian Graus10-Nov-09 19:34
protectorChristian Graus10-Nov-09 19:34 
AnswerRe: Texbox is not Clear On Postback Pin
Abhishek Sur10-Nov-09 20:50
professionalAbhishek Sur10-Nov-09 20:50 
GeneralRe: Texbox is not Clear On Postback Pin
alaminfad11-Nov-09 0:25
alaminfad11-Nov-09 0:25 
QuestionHTTP redirect request failed. Pin
Member-495917610-Nov-09 18:43
Member-495917610-Nov-09 18:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.