Topic
No replies
SureshkumarReactivebus
1 Post
ACCEPTED ANSWER

Pinned topic Ajax Call to Generic Portal resources in Websphere Portal 8

‏2013-05-09T06:53:38Z |

I was trying to connect from my Ajax to Generic portal ,As I'm trying to call a portlet's Resource() method using jQuery/ajax.

 

My Ajax call is shown below

$.ajaxFileUpload

(
{
 
url:'<portlet:resourceURL id="ajax" ></portlet:resourceURL>',
secureuri:false,
fileElementId:fileElementId,
dataType: 'json',
success: function (data, status)
            {
//alert('data.STATUS='+data.STATUS);
if(data.STATUS=="success")
{
progressBar.style.display="none";
var id=document.getElementById("imageMessage");
id.innerHTML="<li class=\"successMes\"><span>Uploaded Successfully....<span></li>";
document.getElementById("logo").value=pageName+"/"+data.FILENAME;
setUploadImage();
}
Updated on 2013-05-09T06:55:34Z at 2013-05-09T06:55:34Z by SureshkumarReactivebus