iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
<ISWebDesktop:WebButton ID="WebButton1" runat="server" Height="20px" Width="46px" Text="save" OnClientClick="test()" AutoPostback="false"> </ISWebDesktop:WebButton> <script> function test() {alert(1);} </script>
The WebButton1 display normal on IE8.0,but it display unnormal on firefox 3.6.10.
(when I click the WebButton1 ,the page will be refreshed,how to avoid it?)
Hello Frank,
Please try to call alert with using timeout in firefox.
E.g
function WebButton1_OnClientClick(controlId, parameter) { var WebButton1 = ISGetObject(controlId); window.setTimeout(function () { alert("1"); }, 100); return true; } <ISWebDesktop:WebButton ID="WebButton1" runat="server" Height="20px" OnClientClick="WebButton1_OnClientClick" Text="WebButton" >
As I said before, it is browser behaviour. When it returns error from mozila. the page would postback.Somehow, in mozila, calliing alert directly would also returns an error. If you put timeout, you will that the page won't postback.
Regards,Handy
If I am not mistaken, this is a default behaviour from the browser itself.Mozila would postback the page if there is an error in the script or process. However, when WebButton calls alert, mozila will assume it as an error result. If you don't use any alerts but set the text/value or call the function from WebButton click, it surely works well.
I am so sad to hear that!I think I will use "alert()" usually.But when I use HtmlButton,it display normal on fireFox.
<input id="Button1" type="button" onclick="myalert()" value="htmlBtn" /> function myalert() { alert(1); }
Any way,thanks Handy!
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname