-
Asynchronous calls
Hello. Does anyone know a way to asynchronously call a function of an ActiveX
DLL so that the script will continue to process while the DLL processes the
function?
I have an ActiveX DLL that sends e-mail and is called from within some ASP
script which is in a table cell:
<BODY>
<TABLE>
<TD>
<%
objDLL.SendMail
response.write "Mail Sent"
%>
</TD>
</TABLE>
</BODY>
The page hangs while the mail server is contacted and mail sent -about 5
- 10 seconds.
I've tried to flush the HTML in the buffer right before the function call,
but it makes the page go blank until the whole page is processed, ex:
<BODY>
<TABLE>
<TD>
<%
response.flush
objDLL.SendMail
response.write "Mail Sent"
%>
</TD>
</TABLE>
</BODY>
Is this because the HTML code in the buffer at time of flush isn't yet valid
- ie the closing </TD>, </TABLE>, and </BODY> tags have yet to be processed?
(If that is so, seems like it limits the usefulness of flushing the buffer).
Thanks for any suggestions you have.
Joe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks