Server side Javascript parsing of HTML?

M

Monty

I'm writing a program on Zimki, which I think uses SpiderMonkey as a
server side Javascript engine.

My idea is to have an html file that someone else created, and look
inside for cells in a table that have special known names, like name,
description, etc. Then I want to figure out the <tr> <tr/> pair that
encloses all of those special tags, and use that as a template to
generate a bigger table from another datasource.

So, I'm wondering how I actually open a file and then parse it as html
so I can poke around the DOM, all from the server side without
involving a browser client.

Anybody have any ideas?

Thanks,

Monty
 
M

Martin Honnen

Monty said:
I'm writing a program on Zimki, which I think uses SpiderMonkey as a
server side Javascript engine.
So, I'm wondering how I actually open a file and then parse it as html
so I can poke around the DOM, all from the server side without
involving a browser client.

The DOM is not implemented by the JavaScript engine (e.g. Spidermonkey)
but by the host application which in your case is Zimki. I have never
heard about Zimki so I don't know what it offers but asking on a Zimki
specific newsgroup or mailing list is more likely to turn up expertise
on the host objects that environment offers.
 
M

Monty

Martin said:
The DOM is not implemented by the JavaScript engine (e.g. Spidermonkey)
but by the host application which in your case is Zimki. I have never
heard about Zimki so I don't know what it offers but asking on a Zimki
specific newsgroup or mailing list is more likely to turn up expertise
on the host objects that environment offers.

Good idea. I haven't found a Zimki developer's forum yet, though, so I
was hoping someone else using Spidermonkey might have already solved
this problem for me. It's a new site and documentation is kinda
sparse. They actually have a contest going to get people interested in
the site, but I think they need to build up a developer community to
really get people playing with it.

Thanks,

Monty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top