| fianchetto 2005-01-07, 7:16 pm |
| I used Dreamweaver MX 2004 to create a popup in a webpage by:
1. creating a link
2. setting it to "javascript:;"
3. selecting the "onclick - Popup message" behavior
4. pasting text into Dreamweaver's message box
Before doing so, I verified that the pasted text was representing new lines
with
"\r\n" (carriage return AND line feed). However, when Dreamweaver generated
the
html code around the popup, it converted "\r\n" to "\r" (stripping off the line
feed characters). The popup presentation still works okay in Internet Explorer
6, but not Mozilla Firefox 1.0.
I don't want to have to edit the generated html code manually each time that I
create a popup. Is there a Dreamweaver preference that I can set that will
prevent the line feed characters ("\n") from being stripped off.
Alternatively,
is there a Dreamweaver Extension that would help.
As a last resort, is there a moderately simple javascript function that I can
use with the Popup? Has anyone written any javascript code to use with
Dreamweaver's
Popup to solve this problem?
|