How to integrate/use ajax and display dynamic content in webMethods DSp pages.

How to integrate/use ajax and display dynamic content in webMethods DSp pages.

Problem : I have many Search criteria and also date range . On random typing of values (like google search) results table will keep displaying and changing its content dynamically.

Also when user selects one of the search criteria from a select tab and enters its value and additionally selects the date range , the results will be displayed as a table view in the current dsp page itself with dynamic content from the backend flow service adapter results.

You can do an Ajax call and then parse the table to extract the data.

Sample with jQuery:

$.ajax({
type: “POST”,
url: “/invoke/folder/service”,
data: {“input”: value},
success: function(data){
var output = $.parseHTML(data);
// dump data to a table which is not displayed
$(“#output”).html(output);
$(“#output”).find(‘table’)
$(“#output”).find(‘tr’).each(function (rowIndex, r){
$(this).find(‘tr,td’).each(function (colIndex, c) {
// find the data
}};
}
// do the next thing

I would not recommend trying to insert Ajax into Integration Server DSP but use Application Platform, which allows for much better integration of Java coding and web standards with Integration Server. It will run in the same osgi context, provide a tomcat and allow for easy integration with Integration Server but at the same time allows for better fit to Java and webcoding standards.