- $(document).ready(function(){
- try{
- ExecuteOrDelayUntilScriptLoaded(downloads, "sp.js");
- }
- catch(e)
- {
- alert(JSON.stringify(e));
- }
- });
- function downloads() {
- var pagename = window.location.href.split('/').reverse()[0];
- $.ajax({
- url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getByTitle('DownloadLinks')/items?$filter=CategoryDownload eq '"+ pagename +"'&$orderby=Order_ID asc",
- type: "GET",
- headers: {
- "accept": "application/json;odata=verbose",
- "content-type": "application/json;odata=verbose",
- },
- success: DownloadLinksSucceeded,
- error: DownloadLinksFailed
- });
- }
- var results1;
- var banner;
- function DownloadLinksSucceeded(data) {
- console.log(data);
- results1 =data.d.results;
- var htmlString="";
DOWNLOADS
- htmlString+="
- "
- for(var i=0; i< results1.length; i++){
- var item1= results1[i];
- htmlString += '
- '
; - htmlString += '+ results1[i].DownloadURL.Url +'">';
- htmlString += results1[i].Title;
- if(results1[i].Banner_Image.Url!=null)
- {
- var banner=results1[i].Banner_Image.Url;
- htmlString +='
+banner+'" alt="">';
- }
- else
- {
- alert('hello');
- }
- htmlString += '';
- htmlString+=' ';
- //htmlString += ''+ results1[i].Title +'';
- }
- htmlString+="";
- $("#download1").html(htmlString);
- }
- function DownloadLinksFailed() {
- alert('Sorry An Error Has Occurred!');
- }
Loading

Muthu KumarRank #935 · 2.2K reputationPosted Aug 6, 2018, 1:04 AM EDT
I hope its solve your problem
Arutselvan MuthukannuRank #732 · 3.2K reputationPosted Aug 6, 2018, 1:13 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 6, 2018, 1:39 AM EDT
Like This
Praveen Kumar59 reputationPosted Aug 9, 2018, 2:18 AM EDT
Praveen Kumar59 reputationPosted Aug 9, 2018, 2:21 AM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 9, 2018, 2:57 AM EDT
please refer this link for more details
https://stackoverflow.com/questions/43668518/jquery-add-multiple-filter-parameters-to-url
Praveen Kumar59 reputationPosted Aug 9, 2018, 8:43 PM EDT
Nanddeep NachanRank #38 · 35.2K reputationPosted Aug 6, 2018, 1:09 AM EDT