Wrox Programmer Forums
|
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2006, 12:17 PM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default app not run on ie6

hi all

im new to ajax n jus for learning i develop ajax app with asp.net.
the application run fine in firefox but not in ie6 and app doesnot show any error

following is the code:
var xmlHttp;

function showavailability(username)
{
xmlHttp=CreateXmlReq();
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="checkid.aspx?username="+username;
xmlHttp.onreadystatechange=stateChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{


document.getElementById("txtHint").innerHTML=xmlHt tp.responseText ;

}
}


function CreateXmlReq()
{
    try
    {
        XmlReq = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    {
        try
        {
            XmlReq = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(oc)
        {
            XmlReq = null;
        }
    }
    if(!XmlReq && typeof XMLHttpRequest != "undefined")
    {
        XmlReq = new XMLHttpRequest();
    }
    return XmlReq;
}

so plz let me know where is the problem.

thanks n with regards
Nm

 
Old September 27th, 2006, 03:51 PM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think

document.getElementById("txtHint").innerHTML=xmlHt tp.responseText ;
this line is not supported by ie6

am i correct or not plz lemme know

 
Old September 28th, 2006, 02:42 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

So what happens and what were you expecting?

Why not alert xmlHttp.responseText and see if it holds what you expect.

--

Joe (Microsoft MVP - XML)
 
Old September 28th, 2006, 05:40 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Joe

i solve the problem
actually i was receiving whole html coding of aspx file with what i wanted so i delete all html coding except what i wanted.

thanks joe for helping






Similar Threads
Thread Thread Starter Forum Replies Last Post
02 IN 01 Desktop App (App+Wind Handler) pk_ocp .NET Framework 2.0 0 February 26th, 2008 02:58 PM
Convert a VB.Net app to a web app? furjaw VB.NET 3 September 24th, 2007 12:27 PM
How to run app from network drive? nasimg VB.NET 1 January 25th, 2007 12:42 PM
What Windows can VB .NET App run on ocarroll General .NET 6 February 27th, 2006 08:14 AM
Run CrystalReport.NET app in a remote server hpallavi Crystal Reports 0 February 24th, 2006 05:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.