Tag Info

New answers tagged

0

It should just be: var liHtml5= "<li>" + $(this).attr("ows_Important_x0020_Link").split(", ")[0] + "</li>"; You have extra parans in there. If the column isn't required then you need to adapt your code: var liHtml5 = ""; var link = $(this).attr("ows_Important_x0020_Link"); if (link.length){ liHtml5= "<li>" + link.split(", ")[0] + ...


1

Try this code $(document).ready(function(){ $().SPServices({ operation: "GetListItems", listName: "Project review", webUrl: "/internal/", async: false, CAMLQuery: "<Query><Where><Gt><FieldRef Name='Id'/><Value Type='Number'>0</Value></Gt></Where></Query>", ...


0

Here is the code which gets all items in a list and then gets attachments for each item. $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: "MahAwesomeListName", /*CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",*/ completefunc: function (xData, ...


0

You can examine the built-in filtering functionality of list view web parts - if you use the header dropdowns, they filter the list view by changing the url and adding parameters. Most of the fields, however, are not very filter-friently. For example you cannot have multi-select on one column, and you cannot use regular expression to select all items ...


1

If the current user is part of the FARM ADMINISTRATORS group then the below code currentUser.get_loginName() will return Sharepoint\System. This is the expected behavior and you don't need to worry much. Try using a normal user account and you can see it returns the expected result. Alternatively you can also use currentUser.get_title()


0

The easiest is use JavaScript global variable _spUserId. More read is available at http://sympmarc.com/2013/03/26/using-_sppagecontextinfo-to-determine-the-current-sharepoint-context-in-script/


0

Try below var user = {}; $().SPServices({ operation: "GetUserProfileByName", async: false, AccountName: $().SPServices.SPGetCurrentUser(), completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode("PropertyData").each(function() { user[$(this).find("Name").text()] = $(this).find("Value").text(); ...


1

SharePoint renders dropdowns differently in Internet Explorer depending on whether they have fewer than 20 options or 20+ options. (In Firefox, Chrome, and other browsers, SharePoint doesn’t give us this “benefit”.) You can use SPComplexToSimpleDropdown function as below: How Does It Work? The SPComplexToSimpleDropdown function works like this: When the ...


2

This is a known issue of IE7/8, see for example here or here: ECMA-262 r3 does not define any date formats. Passing string values to the Date constructor or Date.parse has implementation-dependent outcome. It is best avoided You could consider the following solutions: Use custom parseISO8601 function or Date.fromISO function to parse string to ...


0

The date format in IE and Chrome differs. Hence it is failing in IE and working in chrome. You have two options Check the browser version and act accordingly Use jQuery date parsing $.datepicker.parseDate('yy-mm-dd', Today);


0

Do the following changes <select id="StateSelect" onchange="LoadCities(this.value);"></select> $(document).ready(function() { $("#StateSelect").Forms7LoadDDL ({ listName: "States", firstOptionText: "Select State", fieldName: "Title" }); }); function LoadCities(stateID) { ...



Top 50 recent answers are included