• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Opening html file has javascript error: docelement has no properties

Explorer ,
Sep 14, 2020 Sep 14, 2020

Copy link to clipboard

Copied

This error message pops up when opening some of my html files in a Dreamweaver site: 

While executing onLoad, the following JavaScript error(s) occurred:

At line 75 of file "C:\Program Files\Adobe\Adobe Freamweaver 2020\Configuration\Commands\Date_beforeSave.htm":

docElement has no properties

 

Using Dreamweaver cc 2020 I navigated and opened the htm file.  The code at line 75 is:

    allText = docElement.outerHTML; // re-fetch

 I barely keep up with ccs code, but really don't know what's wrong with the java code here or is it something in the site html file that I am opening that is having a problem with this java code?  This file with line 75 seems to be doing something with checking save dates.

Attached a screen shot of several code lines before and after line 75.

TOPICS
Code , Error

Views

148

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2020 Sep 14, 2020

Copy link to clipboard

Copied

Go to: https://helpx.adobe.com/au/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs6-cc.html#:~:....

 

and down to: Delete FileCache.dat files from the Dreamweaver user configuration folder

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 15, 2020 Sep 15, 2020

Copy link to clipboard

Copied

Ben,

 

Thank you.  I have deleted the file.  Hopefully this will take care of it.

 

Jamie

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 15, 2020 Sep 15, 2020

Copy link to clipboard

Copied

LATEST

#1 JavaScript and Java are two completely different programming languages.

#2 If the JS error occurs with only certain files in certain sites, please validate code and fix reported errors.   Go to Window > Results > Validation.  Click the triangle and check document

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines