Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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=&#8217; + 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=&#8221; + 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.
    #280015

    Actually when I paste the code here it doesn’t show it exactly. Can I send a screen shot? or can you log in?

    #280017

    Hey!

    Please try adding your code to Code Block element in Advanced Layout Builder. You can upload your screenshots on imgur.com or Dropbox public folder and post the links here

    Best regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.