CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Location
    England
    Posts
    530

    Web page freezes between instantiating vb dll and dll spitting out html...?

    Hi

    Can't figure out a solution to this one...

    Have an asp file - NewWindow() is just a javascript function I wrote that opens, funnily enough, a new window. (Maybe I've typed this first part a little wrong but don't worry about that, it's correct at the office, but maybe a little wrong here):
    Code:
    <form id="blah" name="blah" target="anotherwindow" action="webcom.asp?WCU=Login" method="post" onsubmit="if (validateform()){NewWindow(temp.html);}else{return false;};">
    <!-- couple of inputs here-->
    </FORM>
    ok, form is submitted, a new window opens (temp.html) which contains an animated gif - looks like a progress bar - everything works great so far. Until...

    webcom.asp contains:
    Code:
    <% @ LANGUAGE = VBScript %>
    <%
    	set obj=Server.CreateObject("MyWeb_dll.clsWebCom")
    	obj.ProcessRequest
    	set obj = nothing
    %>
    Once set obj=Server etc line of asp is hit the dll comes into play. It takes about 8 seconds to return results (which is why the client wants a progress bar type animated gif).

    PROBLEM: Once the vb dll comes into play (instantiated pretty much instantly) the gif stops animating. It freezes. On really fast pc's it doesn't even have time to appear in the window (but viewing source confirms that it 'is' there).

    To finish, the html returned by the dll all appears nicely in the window (now webcom.asp?WCU=Login) that previously contained the frozen animated gif for about 8 seconds.

    REQUIRED SOLUTION: that the gif continues to be animated right up until the dll returns its html/results at which point the page switches (as it is doing now) from temp.html to webcom.asp?WCU=Login with the spat out html...

    Please help! Tried more searches on google that I care to think about right now - You are my only hope!!!!

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    530

    Re: Web page freezes between instantiating vb dll and dll spitting out html...?

    Some hope!!!

    Any suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured