WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 window dialog HTML Preview, Logan, January 26, 2004

Subject: window dialog HTML Preview From: Logan Date: January 26, 2004

Can anyone help me fix this problem?  I'm trying to get this preview function to work correctly, but I'm not so sure if this is the best way to approach it or code it.  I trying to avoid having to create another HTML file that will be called within the window dialog. Any help or suggestion would be greatly appreciated.  Thanks

My code so far:

<p><font face="Courier New" size="2">&lt;html&gt;&lt;head&gt;<br>
<font color="#FF0000">&lt;script&gt;</font><br>
<span style="background-color: #FFCCCC"><font color="#000080">function</font>
<font color="#0000FF"><b>Test</b></font>(<font color="#00FF00">wordText</font>){<br>
window.showModalDialog('javascript:document.write(&quot;'+ <font color="#00FF00">wordText</font> +'&quot;)

','WinObj','dialogHeight:400px;dialogWidth:600px;edge:Raised;center:Yes;help:No;resizable:Yes;status:No')<br>
}</span><br>
<font color="#FF0000">&lt;/script&gt;</font><br>
&lt;/head&gt;&lt;body&gt;<br>
<br>
&lt;form name=frm&gt;<br>
&lt;textarea name=txta cols=50 rows=20&gt;This is a test&lt;/textarea&gt;&lt;br&gt;<br>
&lt;button onclick=<b><font color="#0000FF">Test</font></b>(<font color="#00FF00">document.frm.txta.value</font>)

&gt;Preview&lt;/button&gt;<br>
&lt;/form&gt;<br>
<br>
&lt;/body&gt;&lt;/html&gt;</font></p>




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX