Page 1 of 1

Scripts not showing

PostPosted: Wed Feb 11, 2009 12:40 am
by benson856
Hi,

I am using VICIDIAL version: 2.0.4-152 and my agent web client is unable to bring up scripts that attached to the campaign for neither inbound nor outbound calls. The only phrase showing is "VICIDIAL SCRIPT" and nothing else.

The source codes I have on vicidial.php are:
<span style="position:absolute;left:154px;top:65px;z-index:17;" id="ScriptPanel'>
<table border=0 bgcolor="#FFE7D0" width=<?=$SSwidth ?> height=<?=$SSheight ?>><TR><TD align=left valign=top><font class="sub_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TABLE></span>

I see there is no variable defined in this section, is it normal?

Thanks and Best Regards,

PostPosted: Wed Feb 11, 2009 3:10 am
by mflorell
The code should be fine if it is the standard vicidial.php code.

Did you test your SCRIPTs in teh script admin screen using the preview link?

Do you see any errors in the Firefox Error Console when you do this?

PostPosted: Wed Feb 11, 2009 12:42 pm
by Alek
Check your script on any single or dual quotes. I found it being a problem. In script try to use only alpha-numeric.
Alek.

Scripts not showing

PostPosted: Thu Feb 12, 2009 11:26 am
by benson856
Hi Matt and Alek,

Thanks for your replies. Yes, I did test the script in admin section and there is no problem using the preview link; the preview window pop up without any error and the phrases are exactly as edited.

I didn't use any quotation mark in my script. Any hints that it may goes wrong?

Best Regards,

PostPosted: Thu Feb 12, 2009 1:26 pm
by mcargile
The span in vicidial.php for the script gets updated through JavaScript code.

Are there any errors in the Firefox Error Console when you try and bring up the script?

PostPosted: Sat Feb 14, 2009 4:43 am
by benson856
Thanks for all your help. I can bring up the script now by disabling the "insert" function in the "Script Text" edit window.

My original script is like this in the very beginning --

Hello --A--first_name--B--,
this is xxx from company yyyy.......

There is no problem in preview window, it will bring up first_name of the lead. But when I test it with web client, the whole script won't come out. If I remove the insert first name function, then everything works fine.