1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<script type="text/javascript" id="master-detail-portlet">
// Associative array of name.
var adminSettingsArray = new Array();
// Associative array portletID.
var portletIDsArray = new Array();
// Just for testing. We get normally these values from elsewhere
portletIDsArray[0] = 1623;
portletIDsArray[1] = 1625;
portletIDsArray[2] = 1626;
// Index
var i = 0;
// function which calls a server-side request URL (Asp.net application)
function get_Content_$$PORTLET_ID$$()
{
// Requesting to get the content for the first div (id = 1623)
adminSettingsArray["ADMIN_PREFERENCES"] = ("some_values");
var request = new PTHTTPPOSTRequest(gatewayedUrl, adminSettingsArray, handleResponse_1);
request.invoke();
// Requesting to get the content for the first div (id = 1625)
adminSettingsArray["ADMIN_PREFERENCES"] = ("some_values");
var request = new PTHTTPPOSTRequest(gatewayedUrl, adminSettingsArray, handleResponse_2);
request.invoke();
// Requesting to get the content for the first div (id = 1626)
adminSettingsArray["ADMIN_PREFERENCES"] = ("some_values");
var request = new PTHTTPPOSTRequest(gatewayedUrl, adminSettingsArray, handleResponse_3);
request.invoke();
} |
Partager