Macromedia dreamweaver 8-extending dreamweaver User Manual
Server behavior techniques
377
If a JavaScript file has the
SHARE-IN-MEMORY
directive and an HTML file references it (by
using the
SCRIPT
tag with the
SRC
attribute), Dreamweaver loads the JavaScript into a
memory location where the code is implicitly included in all HTML files thereafter.
NO
TE
Because JavaScript files that are loaded into this central location share memory, the
files cannot duplicate any declarations. If a share-in-memory file defines a variable or
function and any other JavaScript file defines the same variable or function, a name
conflict occurs. When writing new JavaScript files, be aware of these files and their
naming conventions.
files cannot duplicate any declarations. If a share-in-memory file defines a variable or
function and any other JavaScript file defines the same variable or function, a name
conflict occurs. When writing new JavaScript files, be aware of these files and their
naming conventions.