poc portal:
1)the dark one is the fragment
2) ?uri=fragment:pm:oid:com.policy.view---> until here is the potlet window url
3) @oid:com.viewRegisteredPage---> this is the page unique name
4)after doing this append it to the page url,the page url should be the url of the page in which the portal is deployed.
<script>
function ajaxCall(){
var ems='http://localhost:10039/wps/myportal/!ut/p/b1/pZDNboMwEISfpQ9Qef2Lc3RJCjSYgENa4kuE-icoSXqIosLT10W59BBzyN5W-mZnZ5BFW8wJF5RLQlGF7KE-N5_1qTke6u5vt2KXKPOULSMMkM8eISmlVFiUbsUO2DogjFTMghRAcokhUfEmEOs5AUX_61c6dnrKjA60AWAMvaAK2G7dym_dn6p0CM9lOxS9nidUDxrrtqA6y_O3Z7N5UOFrN8x-_J6RITf9HBm4LXPBRv218ym4zNZby4pcAF-tIwBXRsGExVL4LcYW_QBMACWfSOGKyuLj_h3tbZf2TXP_ZRZm8aHufgFJmT2f/dl4/d5/L2dJQSEvUUt3QS80SmtFL1o2X0NHQUg0N0wwMDg1ODEwSUFIVTc2U0QyMEEz/?uri=fragment:pm:oid:com.policy.view@oid:com.viewRegisteredPage&mode=download'
alert("in ajax call");
var xhrArgs = {
handleAs : "json",
url : ems,
load : function(response) {
alert("succes");
}
};
dojo.xhrPost(xhrArgs);
}
</script>
<a href="#" onclick="javascript:ajaxCall()">poc</a>
1)the dark one is the fragment
2) ?uri=fragment:pm:oid:com.policy.view---> until here is the potlet window url
3) @oid:com.viewRegisteredPage---> this is the page unique name
4)after doing this append it to the page url,the page url should be the url of the page in which the portal is deployed.
<script>
function ajaxCall(){
var ems='http://localhost:10039/wps/myportal/!ut/p/b1/pZDNboMwEISfpQ9Qef2Lc3RJCjSYgENa4kuE-icoSXqIosLT10W59BBzyN5W-mZnZ5BFW8wJF5RLQlGF7KE-N5_1qTke6u5vt2KXKPOULSMMkM8eISmlVFiUbsUO2DogjFTMghRAcokhUfEmEOs5AUX_61c6dnrKjA60AWAMvaAK2G7dym_dn6p0CM9lOxS9nidUDxrrtqA6y_O3Z7N5UOFrN8x-_J6RITf9HBm4LXPBRv218ym4zNZby4pcAF-tIwBXRsGExVL4LcYW_QBMACWfSOGKyuLj_h3tbZf2TXP_ZRZm8aHufgFJmT2f/dl4/d5/L2dJQSEvUUt3QS80SmtFL1o2X0NHQUg0N0wwMDg1ODEwSUFIVTc2U0QyMEEz/?uri=fragment:pm:oid:com.policy.view@oid:com.viewRegisteredPage&mode=download'
alert("in ajax call");
var xhrArgs = {
handleAs : "json",
url : ems,
load : function(response) {
alert("succes");
}
};
dojo.xhrPost(xhrArgs);
}
</script>
<a href="#" onclick="javascript:ajaxCall()">poc</a>