Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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?

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  4. #4
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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..

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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 \' .

  6. #6
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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?

  7. #7
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Aug 2011
    Location
    Kansas
    Posts
    35
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v150 Blank Sidebox Blank Page after adding code for livechat software
    By whatisthat456 in forum Basic Configuration
    Replies: 8
    Last Post: 3 May 2012, 10:40 AM
  2. Blank Sidebox php coder error
    By explorer1979 in forum Addon Sideboxes
    Replies: 2
    Last Post: 6 Jan 2012, 03:00 AM
  3. Blank Sidebox, no borders or header, just blank
    By chris32882 in forum General Questions
    Replies: 16
    Last Post: 3 Dec 2009, 06:22 PM
  4. Flash hack&blank sidebox = blank page
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2009, 06:19 PM
  5. Blank Sidebox Mod - remove a blank sidebox
    By PJD in forum Basic Configuration
    Replies: 4
    Last Post: 14 Mar 2008, 02:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR