Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. javascript on ie8

javascript on ie8

Scheduled Pinned Locked Moved ASP.NET
javascripthelptutorial
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Denver Thomas

    Hi , There is an issue of ie8 on JavaScript.When I call a button click on ie8 , postback is occuring.It is working fine with ie7.How to prevent it from happening a postback With Warm regards.

    A Offline
    A Offline
    Abhijit Jana
    wrote on last edited by
    #3

    Denver Thomas wrote:

    .When I call a button click on ie8 , postback is occuring.It is working fine with ie7.

    What kind of button ? ASP Button or Input Button ? Are you calling any javascript on click of that button ?

    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

    D 1 Reply Last reply
    0
    • D Denver Thomas

      Hi , There is an issue of ie8 on JavaScript.When I call a button click on ie8 , postback is occuring.It is working fine with ie7.How to prevent it from happening a postback With Warm regards.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #4

      if you write like <input type="button" value="mybutton" onclick="javascript:func();return false;" /> here if onclick returns false, the event bubbling will not occur and thus the form will not be posted back. :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Microsoft Bing MAP using Javascript
      CLR objects in SQL Server 2005
      Uncommon C# Keywords
      /xml>

      A 1 Reply Last reply
      0
      • A Abhishek Sur

        if you write like <input type="button" value="mybutton" onclick="javascript:func();return false;" /> here if onclick returns false, the event bubbling will not occur and thus the form will not be posted back. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #5

        Why do we need to return false if it is client side button ?

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        A 1 Reply Last reply
        0
        • A Abhijit Jana

          Denver Thomas wrote:

          .When I call a button click on ie8 , postback is occuring.It is working fine with ie7.

          What kind of button ? ASP Button or Input Button ? Are you calling any javascript on click of that button ?

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          D Offline
          D Offline
          Denver Thomas
          wrote on last edited by
          #6

          THANKS FOR THE RESPONSE , HERE IS THE CODE button onclick="DoAction('first')" name="navbtn" id="btnfirst" class="button IT IS A SLIDE VIEWER , BUTTON IS USED TO CHANGE THE "src "OF AN IFRAME.IT WORKS FINE WITH IE-7 , BUT POST BACK IS HAPPENING IN IE-8.I DONT KNOW WHY WITH WARM REGARDS

          A 1 Reply Last reply
          0
          • D Denver Thomas

            THANKS FOR THE RESPONSE , HERE IS THE CODE button onclick="DoAction('first')" name="navbtn" id="btnfirst" class="button IT IS A SLIDE VIEWER , BUTTON IS USED TO CHANGE THE "src "OF AN IFRAME.IT WORKS FINE WITH IE-7 , BUT POST BACK IS HAPPENING IN IE-8.I DONT KNOW WHY WITH WARM REGARDS

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #7

            First of all Please dont put question with all UPPER CASE. This is not good :(

            Denver Thomas wrote:

            button onclick="DoAction('first')" name="navbtn" id="btnfirst" class="button

            Show us the code of DoAction() Method.I guess you need to return false; based on condition to avoid the postback,

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            modified on Wednesday, October 21, 2009 3:37 AM

            D 2 Replies Last reply
            0
            • A Abhijit Jana

              First of all Please dont put question with all UPPER CASE. This is not good :(

              Denver Thomas wrote:

              button onclick="DoAction('first')" name="navbtn" id="btnfirst" class="button

              Show us the code of DoAction() Method.I guess you need to return false; based on condition to avoid the postback,

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              modified on Wednesday, October 21, 2009 3:37 AM

              D Offline
              D Offline
              Denver Thomas
              wrote on last edited by
              #8

              Thanks for reply :) function DoAction(action) { switch(action) { case "first": RSExecute(url,"SlideViewer_DoAction","first",DoActionSuccess,DoActionFail); break; case "previous": if(SlideIndex > 0) { RSExecute(url,"SlideViewer_DoAction","previous",DoActionSuccess,DoActionFail); } break; case "next": if(SlideIndex < SlideViewer.Slides.length-1) { RSExecute(url,"SlideViewer_DoAction","next",DoActionSuccess,DoActionFail); } break; } } Here is the code

              1 Reply Last reply
              0
              • A Abhijit Jana

                Why do we need to return false if it is client side button ?

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                A Offline
                A Offline
                Abhishek Sur
                wrote on last edited by
                #9

                Yes bro... you are right... :-D :-D

                Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


                My Latest Articles-->** Microsoft Bing MAP using Javascript
                CLR objects in SQL Server 2005
                Uncommon C# Keywords
                /xml>

                A 1 Reply Last reply
                0
                • A Abhijit Jana

                  First of all Please dont put question with all UPPER CASE. This is not good :(

                  Denver Thomas wrote:

                  button onclick="DoAction('first')" name="navbtn" id="btnfirst" class="button

                  Show us the code of DoAction() Method.I guess you need to return false; based on condition to avoid the postback,

                  Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                  modified on Wednesday, October 21, 2009 3:37 AM

                  D Offline
                  D Offline
                  Denver Thomas
                  wrote on last edited by
                  #10

                  Thanks a ton bro, It is working now :)

                  A 1 Reply Last reply
                  0
                  • D Denver Thomas

                    Thanks a ton bro, It is working now :)

                    A Offline
                    A Offline
                    Abhijit Jana
                    wrote on last edited by
                    #11

                    You are welcome ! :thumbsup:

                    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                    1 Reply Last reply
                    0
                    • A Abhishek Sur

                      Yes bro... you are right... :-D :-D

                      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


                      My Latest Articles-->** Microsoft Bing MAP using Javascript
                      CLR objects in SQL Server 2005
                      Uncommon C# Keywords
                      /xml>

                      A Offline
                      A Offline
                      Abhijit Jana
                      wrote on last edited by
                      #12

                      ;)

                      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups