This is a migrated thread and some comments may be shown as answers.

My Output from Disappears when i respond to alert

0 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Uday
Top achievements
Rank 1
Uday asked on 17 Jul 2008, 12:37 PM
Hi all,

I am novice of TelerikRad Controls in ASP.NET Pls help.

I have downloaded TelerikRadControlsASPNET_tutorial.zip --TelerikRadControlsASPNET_tutorial.pdf file, in which "1.2.5 XHR and ASP.NET " contain an eg of XHR(XmlHttpRequest) usage i can summarize that I have

I am using vs2005 & ASP.Net Website(not ajax enabled) 

1) xml document 
<catalog>
 <book id="bk101">
  <author>Gambardella, Matthew</author>
  <title>XML Developer's Guide</title>
  <genre>Computer</genre>
  <price>44.95</price>
  <publish_date>2000-10-01</publish_date>
  <description>
   An in-depth look at creating applications
   with XML.
  </description>
 </book>
&..,, so on

2) thr below code

var xmldoc = XmlHttp.responseXML.documentElement;

var text = XmlHttp.responseText;

//Use DOM to get the div and display the XML data in the div

var div1 = document.getElementById("Div1");

div1.innerText = text;

alert(

"Done.");

I want to display catalog.xml data which displays but as  i click "done"  it refreshes and data disappears from webbrowser 

Regards & Thanks in Advance,
Uday Kumar Lazurus.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Uday
Top achievements
Rank 1
Share this question
or