{"id":21916889,"url":"https://github.com/zenoo/ajaxtable","last_synced_at":"2026-05-19T10:06:29.690Z","repository":{"id":32440036,"uuid":"133478124","full_name":"Zenoo/ajaxTable","owner":"Zenoo","description":"Handles a table loading with AJAX","archived":false,"fork":false,"pushed_at":"2025-01-07T12:07:05.000Z","size":1240,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T01:15:46.119Z","etag":null,"topics":["ajax","jquery","plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zenoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-15T07:36:33.000Z","updated_at":"2025-01-07T12:06:58.000Z","dependencies_parsed_at":"2025-04-15T20:35:00.051Z","dependency_job_id":"2a89aa79-3576-463a-9793-d79ed3b1e41d","html_url":"https://github.com/Zenoo/ajaxTable","commit_stats":{"total_commits":179,"total_committers":4,"mean_commits":44.75,"dds":"0.36871508379888274","last_synced_commit":"2bb31a41f18d607d34613b5b330a3bb53bd21021"},"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"purl":"pkg:github/Zenoo/ajaxTable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FajaxTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FajaxTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FajaxTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FajaxTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zenoo","download_url":"https://codeload.github.com/Zenoo/ajaxTable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2FajaxTable/sbom","scorecard":{"id":156601,"data":{"date":"2025-08-11","repo":{"name":"github.com/Zenoo/ajaxTable","commit":"61da6e2c9e9d4fc16185148e75133f05b740c0ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-release-publish.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/github-release-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-please.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Zenoo/ajaxTable/release-please.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/github-release-publish.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release-please.yml:7","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/github-release-publish.yml:9"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T11:58:00.405Z","repository_id":32440036,"created_at":"2025-08-16T11:58:00.405Z","updated_at":"2025-08-16T11:58:00.405Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121168,"owners_count":24702723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","jquery","plugin"],"created_at":"2024-11-28T19:21:27.429Z","updated_at":"2026-05-19T10:06:29.652Z","avatar_url":"https://github.com/Zenoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ajaxTable [(Demo)](https://jsfiddle.net/Zenoo0/g4goby5m/)\n\n![Dependencies](https://david-dm.org/Zenoo/ajaxTable.svg)\n\nHandle your table display asynchronously\n\n### Doc\n\n* **Installation**\n\najaxTable uses [slick-loader](https://www.npmjs.com/package/slick-loader), [csvexporter](https://www.npmjs.com/package/csvexporter) and [jQuery-excel-exporter](https://www.npmjs.com/package/jquery-excel-exporter)  \nSimply import JQuery, those 3 packages \u0026 ajaxTable into your HTML.\n```\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/slick-loader/slick-loader.min.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/ajax-table/ajaxTable.min.css\"\u003e\n\u003cscript src=\"https://code.jquery.com/jquery-3.2.1.min.js\" integrity=\"sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://unpkg.com/slick-loader/slick-loader.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://unpkg.com/csvexporter/csvExport.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://unpkg.com/jquery-excel-exporter/excel-export.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://unpkg.com/ajax-table/ajaxTable.min.js\"\u003e\u003c/script\u003e\n```\n* **How to use**\n\nCall `.ajaxTable()` on an existing table (or array of tables) jQuery object :\n```\n$('table').ajaxTable({\n    ...\n});\n```\n* **Options**\n\n```\n{\n  source: false,            // URL used to fetch the data. Set to false to disable AJAX loading\n  sourceContext: {},        // Optional object to pass to the server while fetching the data\n  printButtons: true,       // Should the print buttons be displayed?\n  orderBy: 0,               // Index of the column used to order the table\n  orderSort: 'desc',        // Order direction\n  logging: false,           // Should ajaxTable use the developper console?\n  contentType: null,        // Use this to manually set the content type of the requests\n  searchPlaceholders: null, // Default search placeholders (Example: ['search1', 'search2'])\n  onStructureReady: function (table, data) { }, // Runs when the ajaxTable structure is ready\n  onReady: function (table, data) { },          // Runs when the ajaxTable is ready\n  beforeAjax: function (table, data) { },       // Runs before every AJAX call\n  onUpdate: function (table, data) { }          // Runs after every table update\n}\n```\n\n* **Server configuration**\n\nIf you use the ajax functionality, you'll need to setup your server to correctly answer to the AJAX calls.  \nThe data sent from your server should be a valid JSON like this :\n```\n{\n  \"data\":[\n    \"\u003ctr\u003e\u003ctd\u003efirst\u003c/td\u003e\u003ctd\u003esecond\u003c/td\u003e\u003ctd\u003ethird\u003c/td\u003e\u003c/tr\u003e\",\n    \"\u003ctr\u003e\u003ctd\u003efirst 2\u003c/td\u003e\u003ctd\u003esecond 2\u003c/td\u003e\u003ctd\u003ethird 2\u003c/td\u003e\u003c/tr\u003e\",\n    \"\u003ctr\u003e\u003ctd\u003efirst 3\u003c/td\u003e\u003ctd\u003esecond 3\u003c/td\u003e\u003ctd\u003ethird 3\u003c/td\u003e\u003c/tr\u003e\"\n  ],\n  \"total\":2\n}\n```\n\nThe `data` property contains an Array of Strings representing each `\u003ctr\u003e`.  \nThe `total` property contains the total amount of lines in your table.\n\nThe data passed through the AJAX request looks like this\n```\n{\n  page: 2,                    // The page to be displayed. Here, since we want page 2, we need the items in the range [11 - 20]\n  orderBy: 1,                 // The index of the column the table is being ordered by. (Zero-based)\n  order: \"asc\",               // Order sort. 'asc' or 'desc'\n  search: ['','','test',''],  // The array containing the values of the search inputs\n  columns: 4,                 // The number of columns in the table\n  total: true,                // OPTIONAL: if set to TRUE, you should send the property `total` back\n  context: {                  // The object from the `sourceContext` parameter\n    test: 'test1',\n    ...\n  }\n}\n```\n\n* **Example**\n\nSee this [JSFiddle](https://jsfiddle.net/Zenoo0/g4goby5m/) for a working example\n\n\n* **PHP server code sample**\n\nHere is a sample of what the server-side PHP code could look like\n```\nif(isset($_POST['total']) || isset($_POST['page'])){\n    $return = array();\n\n    $page = isset($_POST['page']) ? (int)$_POST['page'] : 1;\n    $search = isset($_POST['search']) ? $_POST['search'] : array_fill(0, (int)$_POST['columns'], \"\");\n    $orderIndex = isset($_POST['orderBy']) ? $_POST['orderBy'] : 0;\n    $order = isset($_POST['order']) ? $_POST['order'] : 'desc';\n    $context = $_POST['context']\n\n    $currentData = getItems($page, $search, $orderIndex, $order, $context);  // Get your items here\n    $currentTotal = getTotalItems($search, $context);                        // Get the total number of items here\n\n    $return['data'] = $currentData;\n\n    if(isset($_POST['total']) \u0026\u0026 $_POST['total'] == 'true'){\n        $return['total'] = $currentTotal;\n    }\n\n    echo json_encode($return);\n}\n``` \n\n## Authors\n\n* **Zenoo** - *Initial work* - [Zenoo.fr](http://zenoo.fr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Fajaxtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenoo%2Fajaxtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Fajaxtable/lists"}