General > General Discussion

Sending Unique Values From User Button To Chat Operator

<< < (2/2)

psychotron:
Used your example in the patch with "info" string, and went full tilt adding the 5 different values I wanted as separate parameters in my query stream.  Worked a treat!  This software package is _A W E S O M E_!!!  Keep up the fantastic work!

Thanks again!

daryy:
How about php ?

psychotron:
I'm not quite sure, but I would imagine you'd do similarly as I did with ASP in the button code...

/webim/client.php?locale=en&info=<%=(info)%>

Perhaps something like this...

/webim/client.php?locale=en&info=<?=$info?>

Cheers

Inspirer:
Since 1.5.2 client.php takes the following arguments:
info - any information string
name - overrides the default user name
email - visitor's email

Empty values are ignored.

For example, if you have visitor name, available in javascript like:

var username = "Bill"; // or document.getElementById("name") ? document.getElementById("name").value : "";

Add the following:

<!-- webim button --><a href="/webim/client.php?locale=en" target="_blank" ..[skipped]... window.open('/webim/client.php?locale=en&url='+escape(document.location.href)+'&referrer='+escape(document.referrer)+'&name='+escape(username), 'webim', ..[skipped]

Navigation

[0] Message Index

[*] Previous page

Go to full version