0

I have a JavaScript function func1() and a service form(service.aspx) with method central().

The module has the following workflow:

1) func1() is called to perform a check.

2) Central() is called and some data is loaded

3) Data is validated and then displayed.

The problem: In method central(), I want to check if func1() was invoked or not. How do I do this?

9
  • When you call the service method, pass in a validation token that was generated in func1() Commented Dec 23, 2015 at 9:10
  • Ok. But how do I access that token in method central() ? I am kinda novice in javascript handling. Commented Dec 23, 2015 at 9:14
  • I think service class is misleading here. Guess you have normal form with central() page method in code behind. Do you call central() from JavaScript (say from within func1())? Commented Dec 23, 2015 at 9:16
  • How are you calling central at the moment? Commented Dec 23, 2015 at 9:18
  • @nvartak No. I dont. I am calling the Central() through another service method. The func1() and central() dont share any relation as of now. But the order of execution is as per given in the question. Commented Dec 23, 2015 at 9:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.