Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

very perplexing...want a star??? 1

Status
Not open for further replies.

nierozumiem

Programmer
Sep 19, 2006
8
CA
I've been stuck on this for HOURS!!! I'm working on a pretty basic HTML page. It has some JavaScript. I'm not the one who created the page, and I can't get into that persons head....what were they thinking???

The top line is :

<!-- #BeginTemplate "/Templates/echome2.dwt" -->

The weirdest thing is that echome2.dwt is EMPTY.....absolutely NO CODE!!

And what's even worse, is when I try to change
<!-- #BeginTemplate "/Templates/echome2.dwt" --> so that it works with an ACTUAL template.....it doesnt let me. Any changes I make to this page do not register!!! Very frustrating. Any tips????
 
a) is the file read only?
b) is the file cached?

Try saving it as test1.html and opening from there.
 
Is it possible also that the file echome2.dwt is the result of another process? In other words it is generated based on other actions in the application to make it available for the page you are working on.


At my age I still learn something new every day, but I forget two others.
 
Hello,

It is an HTML Document and I have write permission. I also tried resaving it as you suggested under another name, but it didn't change anything. When I make changes to the code, SAVE, close and reopen, the changes are not there any more, it is back to the original. Is that WIERD?????
 
Miros: How do I find out if the file is cached?

Nite Owl: How do I know if it is generated?? Only through logically thinking about the application, or is there a way to know through the code??

Thanks!
 
Do a search on the root folder for the application searching for text inside the files and put in that filename. That should show you any scripts that refer to that file, possibly one of them is actually generating that file.

There may be nothing in the page you are working on that would give you a clue as to it's origin as that script relies on the file already existing.

Of course, the file being generated elsewhere is just a hypothesis. It might be the guy removed code that was included there so there is no longer a need for it or perhaps it was not completed.

As for the file being cached, follow Miros's suggestion of saving the file under a different name and running that one. If it IS cached it is only cached for the original name, not the new one.



At my age I still learn something new every day, but I forget two others.
 
That is an HTML comment put in the code by Dreamweaver (.dwt = Dream Weaver Template). It does nothing in a browser, and isn't any kind of valid HTML inclusion. It's an instruction for the editor, not for humans. The page was created by someone who most likely doesn't know HTML, and was never intended to be read by a human. Just delete it, along with all the other WYSIWYG tags in there like it.

Lee
 
Trollacious, are you sure about that? I would love to believe that except there is a folder called 'templates' and it is full of only .dwt files. Most of these files are templates that are applied to most pages in the site. I doubt that dreamweaver just randomly was capable of creating them....images and all.

there is one file called echome.dwt . It is a good template. Then echome2.dwt is empty. What doesn't make sense, is that when you compare page1.html and page2.html(assuming that both link to different templates ie: echome.dwt and echome2.dwt), they both look the same!! But one of them is linking to an empty template. Also, I ran a search, and neither page links to any other template.

DOES ANYONE UNDERSTAND????
 
I'm 100% certain. I've deleted that junk from HUNDREDS of web pages created with DreamWeaver. The example you provided is NOT valid HTML, is just a comment, so every browser in the world ignores it when the page loads. Remove the HTML comments (anything starting with <!-- that isn't a server side include) and you'll see there is no difference in how it looks in the browser. You can delete the .dwt files, too, since they're for DreamWeaver's use only and not relevant to any published website.

Lee
 
Lee, is the following line also generated by dreamweaver....can I remove it ? <!-- #EndTemplate -->
 
Could someone please explain what a chached file is in a simple way?? Thank you
 
Yes, remove ALL of those DreamWeaver commands, anything that starts with <!-- #.

"Cached files" has different meanings, depending on the context. One meaning is files that are saved on the client computer in the Temporary Internet Files folder (or something with a similar name). They can also be files that have server-compiled code that are saved on the server so the scripting engine doesn't have to compile them after every request for the page. Miros was referring to the first definition above.

Lee
 
Thank you very much Trollacious.....you have been very helpful! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top