-
AuthorPosts
-
June 17, 2014 at 2:32 pm #280011
Hi,
We are trying to add this piece of code into a text editor:
<div>
<script language=’javascript’ >
function openViewer() {
var clinicUid=’25598′;
var token=’7558b01325a030cb688fd3e53d7979f’;
var pID = document.getElementById(‘patientID’ ).value;
if ( pID.length == 0 )
{
alert( ‘Please enter a patient ID’ );
}
else {
window.open( ‘https://www.antechimagingservices.com/mainsite/viewStudy.html?&optionalAuthentication=true&token=’ + token + ‘&orgUid=’ + clinicUid + ‘&patientID=’ + pID, ”, ” );
}
}
</script>
<table width=’100%’>
<tr><td><input type=’text’ name=’patientID’ id=’patientID’ size=’16’ maxlength=’25’ />
<input type=’button’ value=’Search’ onclick=’openViewer();’ />
</td></tr>
</table>
</div>But every time we save it the editor changes it to this:
<div><script language=”javascript”>// <![CDATA[
function openViewer() { var clinicUid=’25598′; var token=’7558b01325a030cb688fd3e53d7979f’; var pID = document.getElementByld(‘patientID’).value; if ( pID.length == 0 ) { alert( ‘Please enter a patient ID’ ); } else { window.open( ‘https://www.antechimagingservices.com/mainsite/viewStudy.html?&optionalAuthentucation=true&token=” + token + ‘&orgUid=’ + clinicUid + ‘&patientID=’ + pID,”,” ); } }
// ]]></script>
<table width=”100%”>
<tbody>
<tr>
<td><input id=”patientID” maxlength=”25″ name=”patientID” size=”16″ type=”text” />
<input type=”button” value=”Search” /></td>
</tr>
</tbody>
</table>
</div>
Can you help or tell us what we are doing wrong?
Thanks- This topic was modified 10 years, 5 months ago by aasaes.
June 17, 2014 at 2:37 pm #280015Actually when I paste the code here it doesn’t show it exactly. Can I send a screen shot? or can you log in?
June 17, 2014 at 2:42 pm #280017 -
AuthorPosts
- You must be logged in to reply to this topic.