Category Archives: UI

Single.action

I created a new action called Single to facilitate opening single kaiten panels by accessing a URL. In order to use it, you have to specify the action, the action parameters and an optional kTitle. For example, to directly open mapping tool with specified parameters, you can access

/Single.action?action=DoMapping.action&transformationId=1077&kTitle=Mapping+Tool

This will redirect to:

/Home.action?kConnector=html.page&url=DoMapping.action%3F%26transformationId%3D1077&kTitle=Mapping+Tool

which is essentially the same. The added value is that you can type the url without worrying about escaped characters in the url.

Cross domain requests

I created a CrossDomainPage action to use for cross domain AJAX requests in the browser. It gets a URL in the url parameter, makes a request to that URL and copies the results to the crossdomain.jsp (through the html attribute).

You can make a cross domain request from the browser by using the Mint2.crossDomainPage function like this:

Mint2.crossDomainPage("http://the.url.com", function(response) {
    // This is a callback that gets the results in the response variable
});

PS. I thought I needed it for the documentation functions, but I didn’t use it after all. If we ever need such a functionality, we can build on that.