{"id":17038063,"url":"https://github.com/modesty/sohabase","last_synced_at":"2026-04-27T12:36:05.748Z","repository":{"id":149844215,"uuid":"11519833","full_name":"modesty/sohabase","owner":"modesty","description":"jQuery Plug-in for SOHA - Service Oriented HTML Application, also for client side Web App Common Tasks","archived":false,"fork":false,"pushed_at":"2013-11-21T19:33:52.000Z","size":400,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T23:26:57.895Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modesty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-19T04:07:53.000Z","updated_at":"2013-11-21T19:33:55.000Z","dependencies_parsed_at":"2023-04-01T15:06:40.188Z","dependency_job_id":null,"html_url":"https://github.com/modesty/sohabase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/modesty/sohabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fsohabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fsohabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fsohabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fsohabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modesty","download_url":"https://codeload.github.com/modesty/sohabase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modesty%2Fsohabase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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-14T08:55:53.447Z","updated_at":"2026-04-27T12:36:05.730Z","avatar_url":"https://github.com/modesty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"sohabase\n======\n\nA jQuery Plugin for [Service Oriented HTML Application](http://www.codeproject.com/Articles/118683/SOHA-Service-Oriented-HTML-Application-Concepts-an), and [Web App Common Tasks](http://www.codeproject.com/Articles/110076/Web-App-Common-Tasks-by-jQuery).\n\n##Installation\n\n          git clone https://github.com/modesty/sohabase\n\n##Dependencies\n\n          \"jquery\" : \"\u003e=1.9.0\",\n          \"underscore\": \"\u003e=1.4.2\"\n\n##Main Features\n\n###Extended Ajax for page content and service integration\n* Ajax Content: dynamic loading/assembling page content\n\n          $.soha.loadContentHTML : function (containerID, htmlURL, onResult)\n\n* Ajax Content and templating: dynamically loading data driven (json) content, depends on underscore's template to generate final output\n\n          $.soha.loadTemplateNData : function (jsonURL, templateURL, onResult)\n\n* Ajax with httpMethodOverride and response/error parsering\n\n          $.soha.postJson : function (postURL, jsDataObj, onSuccess, onError, httpMethodOverride)\n\n* Dynamically loading page script\n\n          $.soha.loadPageScript : function(jsUrl, onSuccess, onError)\n\n* Dynamically loading page CSS\n\n          $.soha.loadPageCSS : function (cssUrl, noVerInfo)\n\n\n###HTML5 Session Storage\n* Create string value to session storage with key\n\n          $.soha.setSessionStorageItem : function(key, strVal)\n\n* Read string value from session storage by key\n\n          $.soha.getSessionStorageItem : function(key)\n\n* Delete string value from session storage by key\n\n          $.soha.clearSessionStorageItem : function(key)\n\n###URL Parser\n* Return an object hash for query string name-value pairs or null if no query string in current url\n\n          $.soha.getQueryString : function ()\n\n* Return hash string, handling query string in url as well\n\n          $.soha.getHashString : function()\n\n* Return current url's path (without host), handles default path for home path\n\n          $.soha.getPathName: function()\n\n* Return current page name base on url path, handles default page for index.html\n\n          $.soha.getPageName: function()\n\n###Detectors\n* Detect user's browser's cookie without depending on other plugins\n\n          $.soha.isCookieEnabled : function ()\n\n          //In lib/css/jquery.sohabase.css:\n\n          html.no-cookies #contentContainer:before {\n             content: \"You don't have browser cookie enabled. In order to view our website, enable Cookie in your browser settings and then refresh this page.\";\n          }\n\n\n* CSS based JavaScript detector, see lib/css/jquery.sohabase.css for details\n\n          html.no-js #contentContainer:before, html.no-cookies #contentContainer:before, .errorMsgBox {\n             content: \"You don't have JavaScript enabled. In order to view our website, enable JavaScript in your browser settings and then refresh this page.\";\n             display: block;\n             border: solid 2px red;\n             padding: 10px;\n             margin: 10px;\n             color: maroon;\n             font-size: 1.2em;\n             background-color: #ffffe0;\n             -moz-border-radius: 10px;\n             -webkit-border-radius: 10px;\n             border-radius: 10px;\n          }\n\n\n###Warn the User Before Navigate\n* Call with docFirty to be true to warn user when navigate away from current page or shutting down browser\n\n          $.soha.setDirtyFlag : function (docDirty)\n\n* Default event handler when user navigate away\n\n          $.soha.confirmExit : function ()\n\n* Refresh current page regardless docDirty flag\n\n          $.soha.refreshContent : function ()\n\n* Navigate to new url with full control of url and docDirty flag\n\n          $.soha.navigate : function(newURL)\n\n##More Info\n\n[Sample App](http://www.hanray.com/sites/WebAppCommonTasksByjQuery/)\n\n[Web App Common Tasks by jQuery](http://www.codeproject.com/Articles/110076/Web-App-Common-Tasks-by-jQuery)\n\n[SOHA - Service Oriented HTML Application (Concepts and Principles)](http://www.codeproject.com/Articles/118683/SOHA-Service-Oriented-HTML-Application-Concepts-an)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodesty%2Fsohabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodesty%2Fsohabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodesty%2Fsohabase/lists"}