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
Hello,
It appears that the "OnClick" javascript method, as shown for example in the simplified sample code below,no longer works in WebStudio 2016.
function clickToolbar() { var tlb = ISGetObject("WebToolbar1"); var cmdTest = tlb.Commands.GetNamedItem("cmdTest"); cmdTest.OnClick();}
We make considerable use of this "OnClick" method in our applications, and it has worked for years without any problem until WebStudio 2016. Please provide a fix as soon as possible, as this prevents our applications from working as intended.
Regards
Jean
Hello Jean,
Thank you for the report. I am able to replicate this issue on my end and it's been addressed as an issue. Our dev team immediately came up with a nightly-built hotfix. To apply the hotfix manually, please follow these steps:
Regards,Erwin Sanders
Hello Erwin,
Thank you for your prompt reply.
Unfortunately, the hotfix you posted did not work. I copied the hotfix files to the noted installation folders folders as instructed in your email; I also replaced the old dll files with the new dll files in the bin folders of my application and in your samples . However, I could not get the toolbar to work in my application or in your samples.
Please double check this hotfix and post again.
I was testing the OnClick with an alert parameter and it worked fine. I assumed that you were trying to call something with that OnClick event. I am able to replicate the issue by calling the OnClick method without parameter.
May I know what event you are calling that function from? I tried calling it from CommandClientSideEvents OnClick event (since the function's name is clickToolbar), but this doesn't seem right because the function will give you an infinite loop (because it will call OnClick method after it's clicked). So, would you mind telling me the scenario you're trying to achieve?
Anyway, our dev team came up with another hotfix for the issue that you reported which I attached below.
The hotfix attached to your last email solved the problem. The toolbar is again working properly.
In response to your question about how I am using the function discussed in our previous emails, below is a simplified scenario.
I have a toolbar with toggle buttons named 1, 2, 3. Each button is assocaited with a respective function for loading a page, for example loadPage1(), loadPage2(), loadPage3(). The user can click button 1, 2, or 3 to load page 1, page 2 or page 3 in any sequence. But I also want the user to be able to jump to a particular page without having to click on all buttons to find that page. Thus, I also have a menu in the form of descriptive hyperlinks that tell the user which pages are available for loading. So the "clickToolbar" function discussed previously, and which contains the OnClick, is attached to the hyperlinks. Thus, clicking a hyperlink will click and toggle the corresponding toolbar button, thereby immediately loading the appropriate page desired by the user.
As mentioned above, your latest hotfix has corrected the issue, and the above scenario is working again.
Thank you.
Glad to hear that the hotfix is working and thanks for the information. If you've got any other questions, feel free to ask us 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