Click here to Skip to main content
15,908,166 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i am having code in my javascript file , I want to know what is the meaning of this function ajaxFunction(url, "1"); url is given here but what is 1 here means?

JavaScript
//alert(element.getAttribute("id") + ":" + element.value);

function populateList(element) 
var strStoreId = document.forms[0].strStoreId.value;
var strApprovingTypeId = document.forms[0].strApprovingTypeId.value;
var strCommitteeFlag = element.value;

var url = "ApprovingAuthorityMstCNT.cnt?hmode=populateList&strStoreId="
        + strStoreId + "&strApprovingTypeId=" + strApprovingTypeId
        + "&strCommitteeFlag=" + strCommitteeFlag;

ajaxFunction(url, "1");  // what is 1 here means??
Posted
Updated 17-Dec-15 15:40pm
v2
Comments
Richard MacCutchan 18-Dec-15 3:49am    
Where is ajaxFunction defined?

1 solution

We cannot answer you because we do not have access to your code. ajaxFunction is not a built-in JavaScript function so it means you have the function somewhere. All you have to do is find it and then you can see what the parameter is used for.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900