Hi,
I'm pretty new at writing extensions so I'm quite certain my
problem is a mistake on my part.
I've written a piece of code that takes a data file and
formats it into a table and writes the table to a new file (the
client doesn't want to use templates, that's why it's done this
way).
The data file is formatted with the first line as the page
title, the second line has the column names and the rest is the
data. The data if formatted with ";"
The function doStuff calls the fixTag function.
Whenever I run this, the contents of the data file (opened
with fh = dreamweaver.openDocument(theFile); in the fixTag
function) receives the data I try to write to the new file (created
with var newTableDoc = dreamweaver.createXHTMLDocument(); in the
doStuff function).
What am I doing wrong here. I've tried using
dreamweaver.releaseDocument to release the data file, but it
doesn't help. I've tried creating the new file with
dreamweaver.getNewDocumentDOM but can't figure out how to then save
that without running into the same overwrite problem.
Any help, tips, and the like is greatly appreciated.