-
Blank Sidebox error
Im trying to put a button code for a Livezilla live chat button.
If I use this code generated by Livezilla (designed to open in a javascript window), it just makes my whole online store completely blank - as in nothing visible at all.
<!-- http://www.LiveZilla.net Chat Button Link Code --><div style="text-align:center;width:191px;"><a href="javascript:void(window.open('http://www.fittedparkingsensors.co.uk/livezilla/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,lo cation=no,status=yes,scrollbars=yes'))"><img src="http://www.fittedparkingsensors.co.uk/livezilla/image.php?id=01" width="191" height="69" border="0" alt="LiveZilla Live Help"></a><noscript><div><a href="http://www.fittedparkingsensors.co.uk/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><div style="margin-top:2px;"><a href="http://www.livezilla.net" target="_blank" title="LiveZilla Live Chat" style="font-size:10px;color:#bfbfbf;text-decoration:none;font-family:verdana,arial,tahoma;">LiveZilla Live Chat</a></div></div><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">var script = document.createElement("script");script.type="text/javascript";var src = "http://www.fittedparkingsensors.co.uk/livezilla/server.php?request=track&output=jcrpt&nse="+Math.random();setTimeout("script.src =src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script><!-- http://www.LiveZilla.net Tracking Code -->
But If I use this code below, which opens the chat in a new whole window/tab it works fine, but obviously its not desirable to have it opening in a new window/tab.
<!-- http://www.LiveZilla.net Chat Button Link Code --><div style="text-align:center;width:191px;"><a href="http://www.fittedparkingsensors.co.uk/livezilla/livezilla.php" target="_blank"><img src="http://www.fittedparkingsensors.co.uk/livezilla/image.php?id=01" width="191" height="69" border="0" alt="LiveZilla Live Help"></a><a href="http://www.livezilla.net"></a><div style="margin-top:2px;"><a href="http://www.livezilla.net" target="_blank" title="LiveZilla Live Chat" style="font-size:10px;color:#bfbfbf;text-decoration:none;font-family:verdana,arial,tahoma;">LiveZilla Live Chat</a></div></div><!-- http://www.LiveZilla.net Chat Button Link Code -->
Does anyone know of any errors or problems in the first bit of code for the java window that I can change to get it working?
Many thanks
-
Re: Blank Sidebox error
Ok, got it to work by changing all the ' to \ in the java sections.
But the button doesnt work, it doesnt open a window. Any thoughts?
-
Re: Blank Sidebox error
Did you mean "change" the ' to \? If you did that, it would surely not function. If you added \ before the ', the problem is something else.
-
Re: Blank Sidebox error
No, I mean where is says for instance...
javascript:void(window.open('http://www.fittedparkingsensors.co.uk/livezilla/livezilla.php','','width=590
The ' before the http has to be changed to \ when using Java in PHP code..
-
Re: Blank Sidebox error
No, you can't change the ' to \, you have to add the \ in front of it to "escape" the character, like this \' .
-
Re: Blank Sidebox error
Ah yes thanks, I saw the error I did. Ive added it at the beginning of the script so it says
'<a href=\"javascript:void(window.open....
Where does the closing one go?
-
Re: Blank Sidebox error
Ah, ignore that above - Ive put the \ before every ' in the Javascript code, still doesnt open a window though. If I put his code in a HTML file it works fine. :dontgetit
-
Re: Blank Sidebox error
Does anyone have the correct answer to this as to how to add the livezilla javascript code into the blank sidebox? I am trying to do this as well and do not want it opening in a new tab.