Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 August 5th, 2008, 03:28 PM
Registered User
 
Join Date: Aug 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anuraggunjan
Default Asynchronous call is not working with XMLHttp

I am calling a .net window service from classing asp page called manual.asp and manual.asp page being called by Home.asp
When widows service started I can not do any thing in Home.asp.
I am trying to call manual.asp page Asynchronous
I am using below code

I am calling manual(empid) in Home.asp
function manual(empid)
{
    if (retVal == 1)
    {
        poster = new ActiveXObject("MSXML2.XMLHTTP");
        poster.open("POST", "manual.asp", true);
        var xdoc = new ActiveXObject("msxml2.domdocument");
        xdoc.async = true;
        var str;
        str = "<upload><empid>" + empid + "</empid></upload>";
        xdoc.loadXML(str);
        poster.onreadystatechange = xmlhttpChange;
        poster.send(xdoc);
    }
}

I want manual.asp processing should be done on background and I can do some other work in Home.asp.
Please let me know the solution
Thanks in Advance


 
Old August 5th, 2008, 05:00 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Is this JS code *SERVER* code or code that runs in the browser??

If it's server-side code, you are hosed. You can't use asynch calls from ASP scripting.

By the by, you aren't specifying the *KIND* of post data your are sending.
 
Old August 5th, 2008, 06:50 PM
Registered User
 
Join Date: Aug 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anuraggunjan
Default

This JS Code I am calling "function manual(empid)" from Home.asp.
and This function again call to manual.asp , and manual.asp invoke the windows service.
Here i am just sending the empid, which is input of windows services


 
Old August 5th, 2008, 09:44 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Has nothing to do with my question to you.

*IS* this code server-side or client-side???

If you don't know the answer, then I can't really comment more.
 
Old August 6th, 2008, 04:19 PM
Registered User
 
Join Date: Aug 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anuraggunjan
Default

This JS Code is written in client side

 
Old August 6th, 2008, 06:05 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Don't know then. Looks basically right to me.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous Transactions jroxit Other Programming Languages 0 July 29th, 2008 11:12 AM
Contains function call not working correctly cnatale XSLT 7 May 8th, 2008 07:53 AM
Permission Denied error on xmlhttp.open call... mussitsch Classic ASP XML 3 October 9th, 2007 02:43 AM
Asynchronous call tapan General .NET 1 April 27th, 2007 08:12 AM
Asynchronous Functions in C# cloucas C# 2 July 25th, 2005 12:31 AM





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