Liity Bot Libren kumppani- ja kumppanuusohjelmaan ja tue ilmaista avointa alustaamme
Bot Libre Dev

Live chat sometimes goes to menu page after first input

tekijä barry.denson Lähetetty Feb 1 2017, 6:25

When I open a chat window and type something it just closes the window and opens the Search Live Chat Channels page. It seems it is losing the channel id?

Any suggestions?


by admin posted Feb 1 2017, 7:47
What URL/channel are you using? Are you embedding on your own website, or using an app, or using botlibre.com?

What web browser are you using?

I don't see how this is possible, as sending a chat message is done in JavaScript, and does not refresh the page. My guess is you have JavaScript disabled in your browser, or some error is occurring so none of the scripts are running, and you get the input's default submit.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1403, today: 1, week: 3, month: 4

by barry.denson posted Feb 1 2017, 8:18

this is my embed code:

 

<script>
function popupwindow(url, title, w, h) {
var left = (screen.width/2)-(w/2);
var top = 100;
window.open(url, title, 'scrollbars=yes, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
return false;
}
</script>
<form onsubmit="popupwindow('http://www.botlibre.com/livechat?embedded=true&id=15334181&chat=true&application=5157353878745195105&background=%23fff&prompt=You+say&send=Send', 'child', 500, 700); return false;">
<input class="chat" style="
color:#fff;
background-color:#004990;
cursor: pointer;
font: 13px/30px Arial, Helvetica, sans-serif;
height: 40px;
border: 0;
padding: 0 10px;
margin: 10px 10px 0 0;
font-weight:bold;
float: left;"
type="submit" name="chat" value="Live Technical Support">
</form>

Having looked again, the popup chat window doesn't display info such as the number of operators free etc. It also has sign in links at the top which I don't want.

 

 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1365, today: 1, week: 3, month: 5

by barry.denson posted Feb 1 2017, 8:20

I am using Google Chrome (V 55.0.2883.87 m 64 bit) with javascript enabled


Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 1412, today: 1, week: 3, month: 6

by barry.denson posted Feb 1 2017, 8:22

After typing a message, the windows url becomes http://www.botlibre.com/livechat?input=hello&submit=Send


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1431, today: 2, week: 3, month: 6

by admin posted Feb 1 2017, 10:57
I tested the URL you are opening,

http://www.botlibre.com/livechat?embedded=true&id=15334181&chat=true&application=5157353878745195105&background=%23fff&prompt=You+say&send=Send

and it works fine in Chrome, and Firefox.

Perhaps send a screen shot or video of what you are seeing to [email protected]
Also, in your browser show the dev console and check for any errors in the log.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1512, today: 1, week: 2, month: 6

Id: 15342831
Lähetetty: Feb 1 2017, 6:25
Päivitetty: Feb 1 2017, 7:42
Vastaukset: 5
Näkymät: 1539, Tänään: 3, Viikolla: 5, Kuukausi: 8
0 0 0.0/5