Web Form Button Activation

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Web Form Button Activation

Postby RobertAZ » Fri Mar 18, 2011 3:43 pm

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
RobertAZ
 
Posts: 5
Joined: Wed Mar 02, 2011 6:38 pm

Postby williamconley » Fri Mar 18, 2011 4:22 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 30 guests