This is a migrated thread and some comments may be shown as answers.

Function execution order mismatch issue

0 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Radhakrishna
Top achievements
Rank 1
Radhakrishna asked on 23 Aug 2017, 05:10 PM

Hello Folks,

I am facing this problem from past one week. I request one and all to help me out ASAP if you have the solution.

We  are working with an application in ASP.NET Framework [ 3.5] and using Telerik [2009.1.527.35] version.

One of the page(.aspx) has tab panel inside. In tab we have ‘Add’ Icon where it can open popup. This page has two JavaScript reference files i.e, File1.js and File2.js

In File1.js -> In document.ready, we calling the ‘Function1()’ as Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Function1);
Function1 () – sets to varFromChange to False.

In File2.js --> In PageLoad() method we are calling the ‘Function2()’as  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(Function2);
Function2 () – sets to varFromChange to True. 

 

Telerik.Web.UI.WebResource.axd library file has to execute these functions sequentially i.e., Function1() and Function2(). But in some scenarios these functions are not executing sequentially. We could not able to debug this functions as these are calling by Telerik library.

Due to this issue page data is not getting saved.


Here is Stack Trace :

Function2 [Line: 253, Col: 5], File2.js

Anonymous function [Line: 6, Col: 29366], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._endPostBack [Line: 15, Col: 9894], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._scriptsLoadComplete [Line: 15, Col: 26829], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 195], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 298], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44836], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44744], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44744], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._nextSession [Line: 6, Col: 45193], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._loadScriptsInternal [Line: 6, Col: 44844], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype._nextSession [Line: 6, Col: 45193], Telerik.Web.UI.WebResource.axd
Sys._ScriptLoader.prototype.loadScripts [Line: 6, Col: 43462], Telerik.Web.UI.WebResource.axd
Sys.WebForms.PageRequestManager.prototype._onFormSubmitCompleted [Line: 15, Col: 19820], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 298], Telerik.Web.UI.WebResource.axd
Anonymous function [Line: 6, Col: 29366], Telerik.Web.UI.WebResource.axd
Sys.Net.WebRequest.prototype.completed [Line: 6, Col: 67411], Telerik.Web.UI.WebResource.axd
_onReadyStateChange [Line: 6, Col: 62071], Telerik.Web.UI.WebResource.axd

Thanks in advance,

Radhakrishna G


No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Radhakrishna
Top achievements
Rank 1
Share this question
or