TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Single page CMS without PHP etc

1 点作者 woodylondon将近 11 年前
Hi<p>I am looking for a single page CMS ideally only using HTML5 &#x2F; CSS &#x2F; Javascript and a local flat file.<p>The single webpage will contain a list of names and contact numbers etc in a table.<p>I want an edit button on the page that allows anyone to update the content within the page e.g if someone joins or leaves the company they can update their contact details.<p>I have found a lot of PHP &#x2F; MYSQL based single page CMS out there, but wondering if there was something was just HTML &#x2F; CSS and Javascript based?<p>Just looking for something really really simple!<p>Thanks

3 条评论

lsiunsuex将近 11 年前
Probably not possible.<p>The languages you mention - HTML &#x2F; CSS &#x2F; Javascript are client languages; the reason most CMS&#x27;s use PHP (or other) and some database is because they reside on the server which in turn modifies the page on the server, not the client. A client can&#x27;t edit the server without server side code to interpret the request.<p>You could probably use Javascript, edit the page and store a copy locally, but only you&#x27;d see the changes; no one else.
评论 #7845120 未加载
woodylondon将近 11 年前
Hi<p>Just to update. Its not possible due to Javascript security. I found this &gt; <a href="http://jquery.tiddlywiki.org/twFile.html" rel="nofollow">http:&#x2F;&#x2F;jquery.tiddlywiki.org&#x2F;twFile.html</a> but looks messy. Same idea I think as the filesaver.js that was above. Long story sort - gone back to do this with PHP :-)<p>Thanks
pacey将近 11 年前
Just my two cents:<p>Maybe one could send POST request to a WebDAV resource? This makes also use of a server component but it omits at least the typical MySQL &#x2F; Scripting language combinations the OP mentioned.