Click here to Skip to main content
15,901,666 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Membership fees Pin
badgrs13-Jun-07 3:18
badgrs13-Jun-07 3:18 
GeneralRe: Membership fees Pin
intonet14-Jun-07 6:16
intonet14-Jun-07 6:16 
AnswerRe: Membership fees Pin
john3413-Jun-07 21:36
john3413-Jun-07 21:36 
QuestionRe: Membership fees Pin
Tauseef A13-Jun-07 21:53
Tauseef A13-Jun-07 21:53 
AnswerRe: Membership fees Pin
john3413-Jun-07 22:31
john3413-Jun-07 22:31 
QuestionAJAX using DIV throws a runtime error Pin
ajisthekingofpop12-Jun-07 22:59
ajisthekingofpop12-Jun-07 22:59 
AnswerRe: AJAX using DIV throws a runtime error Pin
badgrs13-Jun-07 1:27
badgrs13-Jun-07 1:27 
GeneralRe: AJAX using DIV throws a runtime error Pin
ajisthekingofpop13-Jun-07 11:25
ajisthekingofpop13-Jun-07 11:25 
the Jscript code is:
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function stateChanged()
{

if (xmlHttp.readyState==4)
{
alert('got data');
//document.writeln(xmlHttp.responseText);
var item = document.getElementById("cont");
//alert(item);
var res = xmlHttp.responseText;
item.innerHTML = res;
//.innerHTML=;
}
}

function loadArticle(id){

//alert('id is ' + id);
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
}
var url="articles.aspx";
url=url+"?id="+id;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);

}



the htnl sits klike this



o.k assigning just "hello" to the innerHTML of cont works fine,
but try and assign responseText and I getthe runtime error.
GeneralRe: AJAX using DIV throws a runtime error Pin
ajisthekingofpop13-Jun-07 11:27
ajisthekingofpop13-Jun-07 11:27 
AnswerRe: AJAX using DIV throws a runtime error Pin
bartedgerton15-Jun-07 9:37
bartedgerton15-Jun-07 9:37 
QuestionData Grid ISsue Pin
Tauseef A12-Jun-07 21:55
Tauseef A12-Jun-07 21:55 
AnswerRe: Data Grid ISsue Pin
PrakashBhaskar13-Jun-07 2:49
PrakashBhaskar13-Jun-07 2:49 
QuestionAutometic software updation process Pin
Elena200612-Jun-07 19:00
Elena200612-Jun-07 19:00 
AnswerRe: Autometic software updation process Pin
Sathesh Sakthivel12-Jun-07 19:41
Sathesh Sakthivel12-Jun-07 19:41 
AnswerRe: Autometic software updation process Pin
Pete O'Hanlon13-Jun-07 2:29
mvePete O'Hanlon13-Jun-07 2:29 
AnswerRe: Autometic software updation process Pin
Vasudevan Deepak Kumar15-Jun-07 3:45
Vasudevan Deepak Kumar15-Jun-07 3:45 
QuestionHow can I created a row clickabe GridView? Pin
kidus1212-Jun-07 16:04
kidus1212-Jun-07 16:04 
AnswerRe: How can I created a row clickabe GridView? Pin
szukuro12-Jun-07 22:09
szukuro12-Jun-07 22:09 
GeneralRe: How can I created a row clickabe GridView? Pin
kidus113-Jun-07 2:45
kidus113-Jun-07 2:45 
GeneralRe: How can I created a row clickabe GridView? Pin
szukuro13-Jun-07 3:57
szukuro13-Jun-07 3:57 
GeneralRe: How can I created a row clickabe GridView? Pin
kidus113-Jun-07 8:06
kidus113-Jun-07 8:06 
QuestionWEBCHARTVIEWER Pin
hifiger200412-Jun-07 4:58
hifiger200412-Jun-07 4:58 
QuestionMS Sharepoint Folders Pin
progman11-Jun-07 22:58
progman11-Jun-07 22:58 
QuestionJavaScript Higtlight Pin
Socheat.Net11-Jun-07 22:19
Socheat.Net11-Jun-07 22:19 
QuestionAudio streaming using AJAX? Pin
jadeqy11-Jun-07 20:08
jadeqy11-Jun-07 20:08 

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.