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.
I created and populated WebCombo dynamically on a Server Side (and added it to the table).
This is a main declaration:
Dim wcbo = New WebCombo
------ more coding-------
-------and finally:--------
wcbo.PopulateUnboundData(....)
Everything works fine. Now I need to code for a ClientSideEvent, for example OnAfterItemSelected.
I need to pass parameters to a JavaScript function and have a problem doing that.
I tried two methods:
wcbo.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "MyFunction(document.all.wcbo);" - parameter is passed as an Input instead of a WebCombo and it doesn't work
and
wcbo.Attributes.Add("OnAfterItemSelected", "MyFunction(document.all.wcbo);" - I don't get any errors, but Attributes.Add seems to not working for WebCombo at all. I cannot even make work a simple function like "alert('Test');".
Unfortunately, knowledge base id down. Does anyone know how to call JavaScript function from the Server Side?
Thank you.
Niven,
Thank you for your help. Actually, it was my mistake. I instead of ISGetObject, I used IsGetObject what caused all the trouble.-Ellen
Thank you for your help.
Actually, it was my mistake. I instead of ISGetObject, I used IsGetObject what caused all the trouble.
-Ellen
Hi,
Yes you can. Please try the snippet below based on your given code.
wcbo.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "MyFunction";
You can only type the method's name not with the paramaters.
Hope this helps.
Regards,
Niven
Thanks for the replying. The problem is I need to pass a WebCombo (wcbo) as a parameter. Otherwise,
I cannot take any actions with this control in JavaScrtiptj, since this WebCombo is created dynamically on the .aspx.vb page and doesn't exist in the .aspx page.
Thanks,
Ellen
Hello,
Please look into my attached simple sample of your scenario. You can do whatever you want with your function. It will automatically pass a parameter.
Regards,Niven
Hi Ellen,
Glad to hear its working well.
Please don't hesitate if you have anymore questions. We will do our best to keep assisting you.
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