locked
Java Script Problem RRS feed

  • Question

  • User-1102523120 posted

    Hello Every Body

    How r u

    i face a problem please any body tell me about this problem

    i create an ASP form in visual studio.net 2010 i attach java script file with it. the result of Asp.net form is ok. suddenly java script functions leave their function and client side checks does not work. i find the problem but can not find what is the problem

    next i create a new project of asp.net and copy paste the whole code of old project then press the debug button code works correctly

    please any body tell me which type of problem in my old project 

    thanks

    Saturday, February 14, 2015 6:42 AM

Answers

  • User281315223 posted

    Hi Abdullah,

    Have you tried using the Developer Tools (F12) within your browser and checking the Console area to see if any errors are present? This is generally the best approach to find out exactly why some of your Javascript code may or may not be working.

    Additionally, you might try posting some of your existing code as well so that we could take a look at it and possibly determine where (if any) issues might lie. It could be that events may not be accessible when they are called, issues with your Javascript file being referenced and the proper location or possibly something else. Any additional information you could provide would be helpful.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, February 14, 2015 8:38 AM

All replies

  • User281315223 posted

    Hi Abdullah,

    Have you tried using the Developer Tools (F12) within your browser and checking the Console area to see if any errors are present? This is generally the best approach to find out exactly why some of your Javascript code may or may not be working.

    Additionally, you might try posting some of your existing code as well so that we could take a look at it and possibly determine where (if any) issues might lie. It could be that events may not be accessible when they are called, issues with your Javascript file being referenced and the proper location or possibly something else. Any additional information you could provide would be helpful.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, February 14, 2015 8:38 AM
  • User1644755831 posted

    Hi Abdullah,

    As @Rion suggested you should post your code and also try to use developer tools (F12).

    Alternatively you could attach debugger in JavaScript using

    function onClickRow(detailUrl) {
        debugger;
    }

    When run your page in IE, a debug window will pop up, then select Visual Studio.

    I prefer using Developer tools.

    Please see below link to understand on how to use them

    https://msdn.microsoft.com/en-us/library/ie/gg589512(v=vs.85).aspx

    With Regards,

    Krunal Parekh

    Sunday, February 15, 2015 2:57 AM