Runtime Exception Occurs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #16
    ... do you have a link to a testpage? or could you post the html source when it is laoded to IE ... have a look at view source in the browser and paste the code here ... so that we may see the code and test it?

    kind regards

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #17
      Originally posted by gits
      ... do you have a link to a testpage? or could you post the html source when it is laoded to IE ... have a look at view source in the browser and paste the code here ... so that we may see the code and test it?

      kind regards
      Yes i have link for that page and source code of that all legend is given below,
      [CODE=html]
      <fieldset>
      <legend style="color:Ma roon; font-size:medium;">F ilters</legend>
      <table class="content" width="100%">
      <tr>
      <td width="5%">
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortfname">F Name</span>
      </td>
      <td width="30%">
      <input name="ctl00$Con tentPlaceHolder 1$txtsortFName" type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortFName" />
      </td>
      <td width="5%">
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortlname">L Name</span>
      </td>
      <td width="30%">
      <input name="ctl00$Con tentPlaceHolder 1$txtsortlname" type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortlname" />
      </td>
      <td width="5%">
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortstatus"> Status</span>
      </td>
      <td width="10%">
      <input name="ctl00$Con tentPlaceHolder 1$txtsortstatus " type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortstatus" />
      </td>
      <td width="5%">
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortlofficer ">L.O.</span>
      </td>
      <td width="10%">
      <input name="ctl00$Con tentPlaceHolder 1$txtsortloffic er" type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortlofficer " />
      </td>

      </tr>

      <tr>
      <td>
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortFrom">Fr om</span></td>
      <td>
      <input name="ctl00$Con tentPlaceHolder 1$txtsortFrom" type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortFrom" style="width:70 px;" />
      <img id="imgFrom" src="../../images/calendar.gif" alt="" onclick ="showCalendarC ontrol(ctl00$Co ntentPlaceHolde r1$txtsortFrom) " />
      </td>

      <td>
      <span id="ctl00_Conte ntPlaceHolder1_ lblsortTo">To</span></td>
      <td>
      <input name="ctl00$Con tentPlaceHolder 1$txtsortTo" type="text" id="ctl00_Conte ntPlaceHolder1_ txtsortTo" style="width:70 px;" />
      <img id="imgTo" src="../../images/calendar.gif" alt="" onclick ="showCalendarC ontrol(ctl00$Co ntentPlaceHolde r1$txtsortTo)" />
      </td>

      <td colspan="4" align="right">
      <input type="submit" name="ctl00$Con tentPlaceHolder 1$btnFilter" value="Filter" id="ctl00_Conte ntPlaceHolder1_ btnFilter" />
      </td>
      </tr>
      </table>
      </fieldset>
      [/CODE]

      and my Validation is on the Filter Button...

      Comment

      • malav123
        New Member
        • Feb 2008
        • 217

        #18
        Originally posted by gits
        ... do you have a link to a testpage? or could you post the html source when it is laoded to IE ... have a look at view source in the browser and paste the code here ... so that we may see the code and test it?

        kind regards
        Sorry that i don't know about how to post code in proper format...

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #19
          hi ...

          i just cannot see something wrong ... could you give the link to the testpage ... so that we could test it online?

          kind regards

          Comment

          • malav123
            New Member
            • Feb 2008
            • 217

            #20
            Originally posted by gits
            hi ...

            i just cannot see something wrong ... could you give the link to the testpage ... so that we could test it online?

            kind regards
            Means about which link you are asking ? we still not put it online, my project is still in developing face...

            Comment

            • gits
              Recognized Expert Moderator Expert
              • May 2007
              • 5390

              #21
              Originally posted by malav123
              Yes i have link for that page ...
              sorry ... i thought you had a link to test the page online ... so that problem seems to be strange ... let me summarize:

              1. IE gives you the error FF does not und works properly?
              2. only when the button is placed within the fieldset? even when you call an empty handler function?
              3. the only javascript code that gets executed onclick is the onclick-handler function assigned to the button?

              did you test it on different machines and IEs? may be its a problem with your local IE installation?

              kind regards

              Comment

              • malav123
                New Member
                • Feb 2008
                • 217

                #22
                Originally posted by gits
                sorry ... i thought you had a link to test the page online ... so that problem seems to be strange ... let me summarize:

                1. IE gives you the error FF does not und works properly?
                2. only when the button is placed within the fieldset? even when you call an empty handler function?
                3. the only javascript code that gets executed onclick is the onclick-handler function assigned to the button?

                did you test it on different machines and IEs? may be its a problem with your local IE installation?

                kind regards

                Ok i will try on diifferent machine and than i will tell....
                Thanks...

                Comment

                • malav123
                  New Member
                  • Feb 2008
                  • 217

                  #23
                  Hi,
                  it's also giving the same error on the different machine....

                  Comment

                  • malav123
                    New Member
                    • Feb 2008
                    • 217

                    #24
                    Originally posted by gits
                    sorry ... i thought you had a link to test the page online ... so that problem seems to be strange ... let me summarize:

                    1. IE gives you the error FF does not und works properly?
                    2. only when the button is placed within the fieldset? even when you call an empty handler function?
                    3. the only javascript code that gets executed onclick is the onclick-handler function assigned to the button?

                    did you test it on different machines and IEs? may be its a problem with your local IE installation?

                    kind regards

                    Hi,
                    You was right now my all validation for buttons giving me same error that is js runtime error... so what can i do, should i reinstall IE ???

                    Comment

                    • gits
                      Recognized Expert Moderator Expert
                      • May 2007
                      • 5390

                      #25
                      nope not yet :) ... could you get alerts in your validation functions? if that is the case you should start to trace the elements that are used ... i mean whenever you use a html-node-reference just alert its tagName to see whether this works or not ... may be you could track the error this way? since you don't have a test-link i don't know what i could recommend instead ... since IE's js-debugging abilities are very limited ... may be tha MS IE Script Debugger may help?

                      Comment

                      • malav123
                        New Member
                        • Feb 2008
                        • 217

                        #26
                        Originally posted by gits
                        nope not yet :) ... could you get alerts in your validation functions? if that is the case you should start to trace the elements that are used ... i mean whenever you use a html-node-reference just alert its tagName to see whether this works or not ... may be you could track the error this way? since you don't have a test-link i don't know what i could recommend instead ... since IE's js-debugging abilities are very limited ... may be tha MS IE Script Debugger may help?
                        No i am not getting any alert also...in all the reference nodes it's giving the same error that is runtime js error... even if i calls simply without parameterized function and if i puts simple alert then also i m getting the same runtime js error...

                        Comment

                        • gits
                          Recognized Expert Moderator Expert
                          • May 2007
                          • 5390

                          #27
                          could you try to avoid

                          Code:
                          btn.Attributes.add();
                          and write an onclick directly to the tag ... does the error persist in that case?

                          kind regards

                          Comment

                          • malav123
                            New Member
                            • Feb 2008
                            • 217

                            #28
                            Originally posted by gits
                            could you try to avoid

                            Code:
                            btn.Attributes.add();
                            and write an onclick directly to the tag ... does the error persist in that case?

                            kind regards
                            No i have not tried it yet.... ok i will try this and then i will reply...
                            thanks...

                            Comment

                            • malav123
                              New Member
                              • Feb 2008
                              • 217

                              #29
                              Originally posted by gits
                              could you try to avoid

                              Code:
                              btn.Attributes.add();
                              and write an onclick directly to the tag ... does the error persist in that case?

                              kind regards

                              Hi gits,
                              Sorry for late reply but my problem is solved yesterday i was working on another module for 20-22 days that's why i have not reply, i have reinstall the IE7 and now it's working well.... thanks for your kind response....

                              Comment

                              Working...