Loading...
 
Skip to main content

Features / Usability


No Parse to HTML source?

I just want to post a HTML source code in my tiki's Forum.

and I have try the ~np~ ~pp~ ^ ~np~ {CODE} ~/np, which everything TAG I can try, but all failed!

I post this code section here, wanted for help !

thanks

see following code (as you can see, not source, but its' running output)

<HTML>
<HEAD>
<TITLE>Hello,World!
</TITLE>

<!-- function setPrint() { WB.ExecWB(8,1); } function previewPrint() { WB.ExecWB(7,1) }

//-->

</HEAD>
<BODY>

<PARAM NAME="FileName" VALUE="C:\\test.mpg"> <PARAM NAME="ShowControls" VALUE="False">



<form name="myform">
<input type="button" width="15" value="GetPic" name="Get"
Onclick="GetClick()">
<input type="button" width="15" value="Start" name="Start"
Onclick="StartClick()">
<input type="button" width="15" value="Pause" name="Pause"
Onclick="PauseClick()">
<input type="button" width="15" value="Stop" name="Stop"
Onclick="StopClick()">
<input type="button" width="15" value="Forward" name="Forward"
Onclick="ForwardClick()">
<input type="button" width="15" value="Backward" name="Backward"
Onclick="BackwardClick()">
</form>

<!-- function GetClick () { position = document.WMPlay.CurrentPosition; alert(position); } function StartClick () { position = document.WMPlay.Play(); } function PauseClick () { position = document.WMPlay.Pause(); } function StopClick () { position = document.WMPlay.Stop(); } function ForwardClick () { document.WMPlay.CurrentPosition = document.WMPlay.CurrentPosition+1; } function BackwardClick () { document.WMPlay.CurrentPosition = document.WMPlay.CurrentPosition-1; }
//-->

I think HTML is turned off in the forms for security purposes. Try replacing the < with & lt; instead:

Image
Copy to clipboard
&lt;HTML> &lt;HEAD> &lt;TITLE>Hello,World! &lt;/TITLE> &lt;!-- function setPrint() { WB.ExecWB(8,1); } function previewPrint() { WB.ExecWB(7,1) } //--> &lt;/HEAD> &lt;BODY> &lt;PARAM NAME="FileName" VALUE="C:\\test.mpg"> &lt;PARAM NAME="ShowControls" VALUE="False"> &lt;form name="myform"> &lt;input type="button" width="15" value="GetPic" name="Get" Onclick="GetClick()"> &lt;input type="button" width="15" value="Start" name="Start" Onclick="StartClick()"> &lt;input type="button" width="15" value="Pause" name="Pause" Onclick="PauseClick()"> &lt;input type="button" width="15" value="Stop" name="Stop" Onclick="StopClick()"> &lt;input type="button" width="15" value="Forward" name="Forward" Onclick="ForwardClick()"> &lt;input type="button" width="15" value="Backward" name="Backward" Onclick="BackwardClick()"> &lt;/form> &lt;!-- function GetClick () { position = document.WMPlay.CurrentPosition; alert(position); } function StartClick () { position = document.WMPlay.Play(); } function PauseClick () { position = document.WMPlay.Pause(); } function StopClick () { position = document.WMPlay.Stop(); } function ForwardClick () { document.WMPlay.CurrentPosition = document.WMPlay.CurrentPosition+1; } function BackwardClick () { document.WMPlay.CurrentPosition = document.WMPlay.CurrentPosition-1; } //-->

thanks ricks99, its the simplest solution I have found.