I found and fixed the problem.There are two items sharing the same name on the page and Safari doesn't seem to like it.
On the ticket page, the function is called "preview", then later down, the form id is also called "preview".
I simply gave the form a new id name, replaced it in the Javascript function, and the popup works fine in Safari 2.0.4.
NOTES:1. I did not edit any actual installation of TTX, I just tested and repaired the preview() Javascript function on my own blank page.
(edit- installed and tested OK in TTX 2.21)2. I do not know if anything else depends on the id name of the embedded form previously called "preview". If so, then it would also need to be edited with the new form id name.
(edit- nothing else found)My changes in
red.
In the Javascript section ...
<script language="JavaScript"><!--
function preview(){
hwstring="scrollbars=yes,width=600,height=500,resizable=yes,toolbar=no,menubar=no";
var newwin = window.open('', 'winpreview', hwstring);
newwin.document.close();
newwin.focus();
document.forms['preview2'].msg.value = document.forms['newticket'].problem.value;
document.forms['preview2'].submit();
return false;
}
//--></script>
Lower in the body section ...
<form method="post" action="(%ENV_SCRIPT_NAME%)" id="preview2" target="winpreview" >
<input type=hidden name=cmd value=preview>
<input type=hidden name=style value="(%INPUT_style%)">
<input type=hidden name=sid value=(%INPUT_sid%)>
<input type=hidden name=key value=(%INPUT_key%)>
<input type=hidden name=msg>
</form>
UPDATE:
I added this corrected preview function along with all required support files to my TTX version 2.21.
-> Confirmed working fine on 10.4.10 in Safari 2.0.4.