Dreamweaver Fix – onLoad in _beforeSave.htm, the following JavaScript…

I was having a few problems with dreamweaver today. I could paste into the code view, and the following error was coming up when I tried to save using dreamweaver.

onLoad in _beforeSave.htm, the following JavaScript error(s) occurred: In file “_beforeSave”; beforesave is not defined

I found the following solution fixed the problem:

#4. Delete FileCache.dat files from the Dreamweaver user configuration folder.

Delete the WinFileCache-7A9586CB.dat, MacFileCache-BFE7CE2E.dat, or FileCache.dat file from the Dreamweaver user configuration folder. It is recommended to delete the FileCache.dat file if you are experiencing a JavaScript error related to “dwscripts” or if you are receiving a “translators were not loaded” error message. The string of characters after “FileCache-” may differ on your machine. The location of the FileCache.dat file depends your operating system and your version of Dreamweaver. Note that on Windows, the Application Data and AppData folders are hidden by default, so verify that your Windows Explorer folder options are set to View Hidden Folders.

Note: The language folder below is an abbreviation of the language you are currently using. Typically there will only be one folder in this location.

Windows XP
\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver CS4 [or CS5]\[language]\Configuration
Windows Vista/7
\Users\[username]\AppData\Roaming\Adobe\Dreamweaver CS4 [or CS5]\[language]\Configuration
Macintosh OS X
/Users/[username]/Library/Application Support/Adobe/Dreamweaver CS4 [or CS5]/[language]/Configuration

Leave a Reply

Your email address will not be published. Required fields are marked *