Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 15th, 2007, 10:35 AM
Authorized User
Points: 514, Level: 8
Points: 514, Level: 8 Points: 514, Level: 8 Points: 514, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default Possible Conflicting Callbacks

I'm using this form of callback (aspx page-side code)

==================================
  <script>

        function CallBackClientSender(varDataString) {
            //alert("at callback sender")
            var Command = varDataString;
            var context = new Object();
            context.CommandName = "CallBackClientSender";
            <%=CallBackSenderSetupString%>
              return
               }

        function CallBackClientReceiver(varCallBackResult, varContext) {
          //alert("at callback receiver")
          if (varContext.CommandName == "CallBackClientSender" ) {
            //alert("calling client-side router")
            CallAndPostBackRouter(varCallBackResult)
            return
            }
         }

        function onError(message, context) { // This will occur if there's an exception from the server side
          CallBackErrorProcessing(message) } // message will be the exception message

</script>
=================================================

 I've got two things going on that use the above mechanism to communicate with the client.

 One is a "prompter" in the page-side javascript that does this (next bit of code) repeatedly, basically "pinging" the server for app status info every so often

setTimeout("CallBackClientSender('" + wrkDataString + "')",gvPromptInterval )

The other is a set of buttons/transactions that do callbacks instead of postbacks.

 Once in awhile one of the button/transactions will "fail to operate"....the associated highlighting works, so the button isn't dead, but the callback clearly doesn't happen.

I suspect that a "prompter" callback may be happening right then, and the button/transaction call back gets "lost".

I'm looking for a way to keep these two sets of callbacks from getting tangled up with each other.

Any suggestions on how to accomplish this, based on the above mechanism (not ready for AJAX), would be appreciated.

Thanks!
 


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
Conflicting Libraries in VBA References echovue Access VBA 1 July 11th, 2006 10:56 AM
2 questions about asynchronous callbacks pooh2006 ASP.NET 2.0 Professional 0 March 24th, 2006 11:20 AM
Conflicting Event Handlers chp Excel VBA 3 February 24th, 2006 03:00 PM
Conflicting References.... john_hearn Access VBA 0 April 21st, 2004 07:08 AM



All times are GMT -4. The time now is 08:21 PM.


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