Highlighted

Opening html file has javascript error: docelement has no properties

Community Beginner ,
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

49

Likes

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

Opening html file has javascript error: docelement has no properties

Community Beginner ,
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

50

Likes

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
Sep 14, 2020 0
Adobe Community Professional ,
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


Ben

Likes

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
Reply
Loading...
Sep 14, 2020 1
Community Beginner ,
Sep 15, 2020

Copy link to clipboard

Copied

Ben,

 

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

 

Jamie

Likes

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
Reply
Loading...
Sep 15, 2020 0
Adobe Community Professional ,
Sep 15, 2020

Copy link to clipboard

Copied

#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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Sep 15, 2020 0