Page 1 of 1

Web Form Button Activation

PostPosted: Fri Mar 18, 2011 3:43 pm
by RobertAZ
We would like the Web Form button be active all the time for an agent (this is for a custom page that we use). I have found the following code in vicidial.php that I think we could modify to allow this to happen...


if (taskrefresh == 'OUT')
{
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH('IN');\"><IMG SRC=\"./images/vdc_LB_webform.gif\" border=0 alt=\"Web Form\"></a>\n";
}
else
{
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormRefresH('OUT');\"><IMG SRC=\"./images/vdc_LB_webform.gif\" border=0 alt=\"Web Form\"></a>\n";
}


Will commenting out the check on "taskrefresh" and the else clause bring some issue we need to avoid? We don't want all the database query normally associated in the script with this form.




----------------------------------------------------------
GoAutoDial CE 2.2.1.1-260 BUILD: 100527-2211
ViciDial Version:2.2.1-237 BUILD: 100510-2015
Asterisk 1.4.27.1-vici
Kernel:Linux 2.6.18-194.8.1.el5.goPAE
OS: CentOS release 5.5 (Final)
E-Phone (IAX2) on local client
SIP Carrier: NexVortex
No Sangoma or Digium cards

PostPosted: Fri Mar 18, 2011 4:22 pm
by williamconley
you may find that the variables will not be populated, so you may have to hard code them or some such. Otherwise it's worth a test.