views:

305

answers:

7

Is there a way to have a blog directly integrated into my HTML/javascript-only website, without having to have something like a SQL-database and a dynamic engine like PHP or MySQL?

Maybe there is some service in the web that offers this (hopefully without ads :) ). Or maybe I can have a blog engine entirely written in javasript?

+4  A: 

Entirely written in JavaScript? Surely that defeats the entire point of having a "blog-engine" in the first place? The point being that the data is stored somewhere and dynamically retrieved. To avoid using anything server-side (which seems to be your intent), and only use HTML/JavaScript, you'd have to store all the data for the blog in files that are served up to each visitor, and then retrieve the data from the particular, local, locations using JavaScript.

Sorry if I'm misunderstanding the point here... but this seems to be an utterly useless way of trying to go about things. Blogs are, in general, either written statically (in HTML [even though this is rare]), or are dynamically generated from a database by a server-side scripting language (most common).

Edit: As an additional point, I suppose you could include some third-party blog feed, or service, in your page, via use of JavaScript... but I'm unsure as to which (if any) blogging services would directly support this method of working. Additionally, this is quite an unreliable way of including third-party data in a page...

James Burgess
There is a service called FeedBurner which allows you, among other things, to embed javascript on a page and have that script pull in the feed data.
Jason Miesionczek
True enough, but as I said in my edit, this isn't a very reliable way of retrieving third-party data, especially with FeedBurner (as a specific example) experiencing a lot of downtime, lately.
James Burgess
A: 

IF you really need to you can use a public api for a service that lets you post small bits of info and retrieve it using javascript.

for example if you only need small posts you can make a blog in html.javascript that utilizes twitter as the engine. of course you will be limited to 140 chars. I am sure there are other services that will allow a similar idea but with less restrictions.

And of course the best option - Get a blog software or host your blog with a service provider and link to it from you site.

Good luck

Sruly
+1  A: 

So, what you want is to have a blog where you're website provider doesn't provide a way to serve dynamic content?

The only way I see that you can do it in that case is writing html-files (or text-files if you prefer) and adding them to the site. After that you can have some JavaScript to add them to your "blog-page".

You of course need to upload them to the website in the same way as you do for the other files, and then have a way for the JavaScript to know which pages it should fetch.

I am not aware of any JavaScript blog-engines, but you can have a look at the templating functions in for instance Prototype

Of course, that means that you will have to fetch both the template and the content through Ajax and let the client do all the processing (could be slow and possibly insecure), and you still need to have a place to upload the content and update it.

Jimmy Stenke
+2  A: 

Other option is to use a Desktop blog tool and then update your site.

You can user iWeb if you have a Mac or CityDesk on Windows or you may try this open source tool

Edit Today I came across this tool: Zeta producer that may help.

Eduardo Molteni
+2  A: 

Here's a thought. It's not really a blog engine - but a wiki.

Entirely javascript/html/css. All lives in a single html file:

http://www.tiddlywiki.com/

not sure how it would work on a real live site, but their site is using it:

* A personal notebook
* A GTD ("Getting Things Done") productivity tool
* A collaboration tool
* For building websites (this site is a TiddlyWiki file!)
* For rapid prototyping
* ...and much more!
danseagrave
A: 

You could use github pages. You will get a generated blog with version control.

bjartek
A: 

Your best bet is going to be using a generator to create the HTML/CSS/JS to upload to your server, take a look at Webby: http://webby.rubyforge.org/

James Avery