Click to See Complete Forum and Search --> : Generating static html from Javascript
rlmjinx
11-19-2003, 09:34 AM
Hello,
I would like to know if anyone knows of a way to automatically render/generate static HTML pages/filetrees from Javascript-based pages.
This would most probably be done with a standalone program, or built into an HTML-editor.
96turnerri
11-19-2003, 09:46 AM
you mean like an automatically updated sitmap everytime you upload a new page then the sitemap changes automatically?
rlmjinx
11-19-2003, 10:36 AM
No, I'm talking about some sort of application that you run locally which generates static HTML-pages for your entire website, which you can then upload. All internal links renamed to fit the generated file-tree.
Or, alternately, a serverside-app (any language) which generates the tree online via some sort of admin-account.
It's a pretty simple concept, but I imagine it would take a lot of work to put together. And I'm not sure if anyone has seen enough value in it to actually make it.
The reason I'm interested is that Javascript-branching websites can't be indexed/reached via search-engines. This is just a work-around so I can keep coding in Javascript, and then pre-render the website for online connectivity.
And no, I'm not in any hurry to switch to ColdFusion or similar environments, I love Javascript which is why I'm looking for this type of solution. If it's not available, I'll just have to cope ;)
96turnerri
11-19-2003, 10:43 AM
:confused: :confused: :confused: i am really :confused: :confused: :confused: lol
so u want a program where you make a filetree and a template, then press create and it makes up all the pages in the file tree with corresponding links etc using the template?
if its not i give up lol sry
rlmjinx
11-19-2003, 11:03 AM
Once you understand what I mean you will go "Ahaaa!!" :)
I'll gladly explain it more, if it means someone has seen something like it..
Here is one of the websites I've made:
http://www.bicpennor.com/
It's in Swedish so I'll explain the basic navigation: Click the "BIC" logo in the upper left, and you'll be able to browse the catalogue of articles. Click on a name or a picture, and you'll be taken to that article (obviously).
The catalogue itself is just Javascript code, which is generated to 5-6 different templates. All in all (except for graphics) it's 19 files, but with the Javascript suburls you get hundreds of "virtual" pages.
I would like to make all those virtual pages static HTML, and upload them. With no (or little) Javascript dependencies.
96turnerri
11-19-2003, 01:10 PM
ahaaa (lol) got ya do you condone the use of frames?
rlmjinx
11-20-2003, 01:41 PM
That depends..
In the case of simple catalogue-type sites, frames are OK I think.
If you have lots of sublevels it might be better to work with a one-page-layout to make the site more intuitive (yahoo/cnet/etc)..