Skip to main content


 

Symptoms


Custom Controls with Javascript
 

Diagnoses


I am currently doing a custom control, and it renders a button.

What I want to do is invoke a method in my class using Ajax call.
This is a VS2013 Class Library Project that compiles as .dll.

What I want to know is , how to make a JQuery Ajax call when I render my control.

how do I pass the url parameter in my Ajax call to call a method in my .cs class hanlder?
 

Resolution

Unfortunately we do not support any custom controls, custom code or custom changes made to the K2 database, we only support K2 product break fix issues. Thus since this request is to find out how to make a JQuery Ajax call I will not be able to assist due to this request falling into the scope of custom code.
I did however do some research and found the below articles that you can have a look at, this might help in assisting you to achieve your required outcome. Should you feel you need some assistance or more information I recommend that you reach out to your local services team.

http://help.k2.com/onlinehelp/k2smartforms/devref/1.0.5/webframe.html_adding_and_using_an_ajax_handler.html
http://www.w3schools.com/jquery/ajax_ajax.asp
http://html.net/tutorials/javascript/lesson21.php




 
Be the first to reply!

Reply