Results 1 to 3 of 3

Thread: Stop the function to call in javascript

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up Stop the function to call in javascript

    Hi friends,

    I have one small doubt. I am using javascript in my Asp.Net application. In my scenario i am calling two function using javascript in the aspx page. when i call first function i dont want to call second function. I need to stop the second function. I know that the problem is javascipt call all function in the aspx page. How can we achieve in this scenario that when i finished first call the first function after calling second function.

    Thanks
    Guvera
    Failing to plan is Planning to fail

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Stop the function to call in javascript

    Hello,

    You have lost me...

    Can you show the JavaScript that you are using? This statement:

    I know that the problem is javascipt call all function in the aspx page.
    Doesn't make much sense to me.

    Can you elaborate?

    Gary

  3. #3
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Re: Stop the function to call in javascript

    Are you calling the 2 JS Functions in Page load ? or is it assigned to any client side event? Not very sure what exactly your problem is.. But a wauge idea may be some thing like, Set A Global Variable and mark it as true when you execute the first function and in the second function, check if the variable is marked as true and then execute if required.
    However, like said by Gary, A detailed information from you will much help us to float different possible ways.
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

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