Reputation: 35
I am have one doubt , here is what i am trying out
var widgetlink=(window.parent.location.orgin).toString(); //https://www.ajaxcall.com
$.ajax({
url : widgetlink.concat("/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItemEditableProperties?includeArchived=false&newWorkItem=true&typeId=task&ignoreScriptBasedAttributeAdvisors=true&projectAreaItemId=")
+ projectAreaContextId
+ '&projectAreaConfigurationStateId='
+ paConfigStateIdList,
headers : {
'Accept' : 'text/json',
'Content-Type' : 'application/x-www-form-urlencoded; charset=utf-8'
},
Here my exceptation is that the full url shall come i.e https://www.ajaxcall.com/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItemEditableProperties?includeArchived=false&newWorkItem=true&typeId=task&ignoreScriptBasedAttributeAdvisors=true&projectAreaItemId=_abcdfgr23 ......(rest things) But the problem is i am not able to use concat method due to which WidgetLink string is not able to concat with rest part.So can anyone help me out here to find out where exactly i am doing wrong
Upvotes: 1
Views: 141