Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 5th, 2008, 03:28 PM
Registered User
 
Join Date: Aug 2008
Location: Salt Lake City, Utah, USA.
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


Reply With Quote
  #2 (permalink)  
Old August 5th, 2008, 05:00 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
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.
Reply With Quote
  #3 (permalink)  
Old August 5th, 2008, 06:50 PM
Registered User
 
Join Date: Aug 2008
Location: Salt Lake City, Utah, USA.
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


Reply With Quote
  #4 (permalink)  
Old August 5th, 2008, 09:44 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
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.
Reply With Quote
  #5 (permalink)  
Old August 6th, 2008, 04:19 PM
Registered User
 
Join Date: Aug 2008
Location: Salt Lake City, Utah, USA.
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

Reply With Quote
  #6 (permalink)  
Old August 6th, 2008, 06:05 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:23 AM.


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