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
Hi Intersoft,
I have customized the webscheduler's callout (where we will edit event and delete events). I have added another button as showed in the attachment and wrote the code related to it too.
Button click on that custom button works perfectly in IE 10.0 browser. But the same button click event wont fire in Chrome browser. I have latest chrome browser on my machine.
Is there anything i should do in case of chrome browser. I am using WEBUI studio 2014.
Thanks.
I managed to get the redirecting problem resolved by replacing/modifying b1 element from button element into input element. Please apply the changes below in OnCallOutInitialize function.
function WebScheduler1_OnCallOutInitialize(controlId) { var WebScheduler1 = ISGetObject(controlId); var b1 = document.createElement("input"); var tr1 = document.createElement("tr"); var td1 = document.createElement("td"); b1.id = "Button1"; b1.type = "button"; b1.value = "Test"; b1.attachEvent("onclick", Redirect); WebScheduler1.GetCallOutContainerElement().childNodes[0].appendChild(tr1).appendChild(td1).appendChild(b1);; WebScheduler1.CallOutSetHeight("135"); return true; }
The attached image, Error.jpg, is truncated. Could you please kindly re-attach the image so that we can assist you further?
Hi Yudi,
I have attached the snapshot again. Please help.
I modified the FirstExperience.aspx sample file of WebScheduler by adding OnCallOutInitialize client-side event; OnCallOutShow client-side event; and a JS function named Redirect().
The JS function is as follow:
<script> function WebScheduler1_OnCallOutInitialize(controlId) { var WebScheduler1 = ISGetObject(controlId); var b1 = document.createElement("Button"); var tr1 = document.createElement("tr"); var td1 = document.createElement("td"); b1.id = "Button1"; b1.innerText = "Test"; b1.attachEvent("onclick", Redirect); WebScheduler1.GetCallOutContainerElement().childNodes[0].appendChild(tr1).appendChild(td1).appendChild(b1);; WebScheduler1.CallOutSetHeight("135"); return true; } function WebScheduler1_OnCallOutShow(controlId, action) { var WebScheduler1 = ISGetObject(controlId); return false; } function Redirect() { alert("test"); return false; } </script>
Save all the changes and view the page in Google Chrome version 36.0.1985.125 m (most recent version of Chrome as of now). However, I was unable to reproduce the reported problem in my local end. The alert (as user click the button) shown without problem.
I enclosed the modified version of FirstExperience.aspx sample as attachment. You need to copy and replace the existing file in the local WebScheduler sample project in order to view it in browser.Should you find anything that I might miss during my attempt in order to reproduce the reported problem, please feel free to let me know.
For your information, I'm using WebScheduler 4 build 4 and WebUI.NET Framework 3 build 912 assembly.
Thanks for the Response.
I have used the Redirect method with alert as you shown. The alert functions gets triggered. But i am actually using redirecting to a page instead of alert. I have problem in redirecting to another page.
function Redirect() {
var temp = window.location.pathname;
window.location = "/Patient/Patient_Search.aspx?tempPatientName=" + text;
return false;
}
This rediricting thing works perfect in IE browser but this redirect function wont even triggers in Chrome if i use the above code. So, alert works but problem is only with Redirecting to another page.
Glad to hear that replacing button element into input element helps.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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