I put the following JavaScript into an HTML file, copy it the server, and everything works just fine:
<script language="JavaScript" type="text/javascript">
addPTViewerParameter("file","IMG_0085_0360.jpg");
addPTViewerParameter("fov","92");
addPTViewerParameter("wait","controlimages/wait.gif");
addPTViewerParameter("auto",".25");
InsertPTVApplet("viewer",640,500);
</script>
In Wordpress, I attempt to enter the same text into the HTML editor as a post (TinyMCE is turned off) and this is what ends up in the file that is eventually displayed (this is what shows up in the page source after fetching the page from Wordpress):
<script language="JavaScript" type="text/javascript"><br />
addPTViewerParameter(”file”,”IMG_0085_0360.jpg”);<br /> addPTViewerParameter(”fov”,”92″);<br />
addPTViewerParameter(”wait”,”controlimages/wait.gif”);<br />
addPTViewerParameter(”auto”,”.25″);<br />
InsertPTVApplet(”viewer”,640,500);<br />
</script>
Note the conversion of quotes into ” and the insertion of <br/> throughout the JavaScript.
Is there any way to turn off this conversion and insertion of <br>? Remember, this is all being done in the html editor with TinyMCE disabled for this user (me).
Thanks,
Ed
(I'm not sure what a 'backticks' is here so its possible my code example will be turned to mush in the above.)