Problem: Web Survey software supports javascript but currently opens in a popup. This does not work as users have pop-up blockers turned on. Would like to integrate similar to an iframe using highslide [login to view URL] to open the window on the same page as the web survey.
This project will require coordinated remote session using teamviewer. Free - [login to view URL]
What has been done: Downloaded files and extracted highslide to the root dir of the win2k3 server for highslide. Modified <head> code to include
<script type="text/javascript" src="[login to view URL]"></script><link rel="stylesheet" type="text/css" href="[login to view URL]" /><script type="text/javascript">[login to view URL] = '/graphics/';[login to view URL] = 'rounded-white';[login to view URL] = 'draggable-header';</script>
Current working javascript code:
{script}
OpenUrl('[login to view URL]<PID>&jISN=6592&Cell=<CELL:C>&Q3=<Q3:C>&Q5_1=<XQ5A:C>&Q5_2=<XQ5B:C>&Q5_3=<XQ5C:C>&Q5_4=<XQ5D:C>&Q5_5=<XQ5E:C>&Q5_6=<XQ5F:C>&Q5_7=<XQ5G:C>&Q17_3=<Q17_3:C>&Q19a_OE1=<Q19A1>&Q19a_OE2=<Q19A2>&Q19a_OE3=<Q19A3>&Q19a_OE4=<Q19A4>&Q20=<Q20:C>&Q22=<Q22:C>&Q23=<Q23:C>&Q1A=<Q1A:C>&D3=<D3:C>&D2=<D2:C>');
function OpenUrl(url)
\\07B
url = [login to view URL]( new RegExp( '\\03CSPAN CLASS="RECALLEDTEXT"\\03E', 'gi' ), '' );
url = [login to view URL]( new RegExp( '\\03C/SPAN\\03E', 'gi' ), '' );
var win=[login to view URL](url,'_blank','toolbar=0,status=0,directories=0,scrollbars=1, resizable=1,menubar=0,location=0,width=800,height=600');
\\07D
{/script}
** Note the javascript format in the survey software replaces typical < > with { } and { } with \\07B and \\07D for the code to execute in the survey software. Then it finds the particular \\03CSPAN etc. text and replaces with no value to concatonate the correct URL to navigate to.
The code above opens the correct links in a pop-up.
Proposed code that needs troubleshooting:
{script}
OpenUrl('[login to view URL]<PHONE>&jISN=0009&SAM=&q1=<Y18:C>&area=<CENSR:C>&q3=<Y1:C>&q4=<Y13:C>&q5=&TAG=<RID>');
function OpenUrl(url)
\\07B
url = [login to view URL]( new RegExp( '\\03CSPAN CLASS="RECALLEDTEXT"\\03E', 'gi' ), '' );
url = [login to view URL]( new RegExp( '\\03C/SPAN\\03E', 'gi' ), '' );
var win onclick="return [login to view URL](this, \\07B objectType: 'iframe' \\07D )";
\\07D
{/script}
** Note not sure about the var win onclick line - this is where I think the problem is.