javascript on ie8
-
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.
-
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.
Perhaps you need to explain what you mean. A button click is SUPPOSED to generate a postback.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
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.
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> -
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.
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.
-
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>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.
-
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.
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
-
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
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 toreturn 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
-
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 toreturn 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
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
-
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.
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> -
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 toreturn 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
Thanks a ton bro, It is working now :)
-
Thanks a ton bro, It is working now :)
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.
-
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>;)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.