KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4D for Dreamweaver Plug-In HTML Tip
PRODUCT: 4D | VERSION: 6.7 | PLATFORM: Mac & Win
Published On: August 31, 2001

Suppose you have an <input> field in your HTML that looks like this:

<input type="text" name="field" value="<!--#4DVAR [Table]Field-->">


If you were to modify this <input> using the Dreamweaver inspector, for instance, to change the name of the 4D field, you would find a nasty surprise in your HTML source:


<input type="text" name="myVar" value="&lt;!--#4DVAR [Table]AnotherField--&gt;">


It's easy to stop Dreamweaver from doing this. To fix this problem, go to Dreamweaver's Preferences (under the Edit menu), then click on the "HTML Rewriting" Category. You should see a section called "Special Characters," and one of the check boxes should read:


Encode <, >, &, and " in Attribute Values using &


Un-check this option. Now, Dreamweaver won't rewrite your 4D Tags when you edit the HTML object they are used in.