{"id":16356773,"url":"https://github.com/zaporylie/drupal-ajax_markup","last_synced_at":"2025-10-05T08:26:27.221Z","repository":{"id":27596054,"uuid":"31079371","full_name":"zaporylie/drupal-ajax_markup","owner":"zaporylie","description":"This is not official project repository. For details please visit https://www.drupal.org/project/ajax_markup","archived":false,"fork":false,"pushed_at":"2015-02-21T09:20:27.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"7.x-2.x","last_synced_at":"2025-09-01T20:57:59.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaporylie.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-20T18:52:45.000Z","updated_at":"2015-02-21T09:20:28.000Z","dependencies_parsed_at":"2022-09-01T19:30:24.105Z","dependency_job_id":null,"html_url":"https://github.com/zaporylie/drupal-ajax_markup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zaporylie/drupal-ajax_markup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fdrupal-ajax_markup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fdrupal-ajax_markup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fdrupal-ajax_markup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fdrupal-ajax_markup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaporylie","download_url":"https://codeload.github.com/zaporylie/drupal-ajax_markup/tar.gz/refs/heads/7.x-2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaporylie%2Fdrupal-ajax_markup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274195572,"owners_count":25239147,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2024-10-11T01:44:16.923Z","updated_at":"2025-10-05T08:26:22.182Z","avatar_url":"https://github.com/zaporylie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n- Ajax markup:\nProvides an API for generating filtered markup using ajax.\n\n- INSTALL:\nJust enable it at module administration page.\n\n- USE:\n1) Load the API by calling ajax_markup_on() at server side.\n\nif (module_invoke('ajax_markup', 'on')) {\n  drupal_add_js(YOUR_SCRIPT.js);\n}\n\n2) Inside YOUR_SCRIPT.js call $.ajaxMarkup\n\n$.ajaxMarkup(INPUT, INPUT_FORMAT, CALLBACK);\n\nfunction CALLBACK(OUTPUT, SUCCESS, REQUEST) {\n  if (SUCCESS) $('div#preview').html(OUTPUT);\n  else alert(OUTPUT);\n}\n\nINPUT: String of which you want to get a filtered version.\nINPUT_FORMAT: Integer representing one of the drupal input formats. Provide 0 for the default.\nCALLBACK: Function to send the output after the request.\nOUTPUT: String that is the filtered INPUT. Content depends on the INPUT_FORMAT and SUCCESS state.\nSUCCESS: Boolean representing the status of the request.\nREQUEST: XmlHttpRequest. Not available when the OUTPUT is retrieved from the cache.\n\n- ALSO:\nAPI provides a function that tries to get the INPUT_FORMAT of a textarea.\n\n$.ajaxMarkup.getFormat('#edit-body'); //returns 0 (the default format) when there is no input format for the element.\n\n- ACCESS:\nUsers must have \"access ajax markup\" permission.\nUsers must have access to the supplied INPUT_FORMAT, otherwise the default format is used.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaporylie%2Fdrupal-ajax_markup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaporylie%2Fdrupal-ajax_markup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaporylie%2Fdrupal-ajax_markup/lists"}