Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2013-03-15 09:50:14

Frank Frank
Member
Registered: 2013-03-15
Posts: 9

Javascript became error

Hello,I am inserting HTML code into web page but after its open in browser its error in javascript console:
<script type="text/javascript">(function() )();</script>

information:in page there is google analytics and also processed by smarty template for the web page
Thank you


https://groups.google.com/forum/#!topic … w-BfEJnBw4

Offline

#2 2013-03-15 09:55:24

Frank Frank
Member
Registered: 2013-03-15
Posts: 9

Re: Javascript became error

Now its fixed temporary by just using <script type="text/javascript" src="the_url_of_po.src"></script>

Offline

#3 2013-03-15 10:34:11

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Javascript became error

Hi,
I think problem is becaue of { brackets }. I think there should be something like

{literal}
generated code there
{/literal}




2013/3/15 Frank Frank <fen...***.com>

Offline

#4 2013-03-15 10:36:51

Frank Frank
Member
Registered: 2013-03-15
Posts: 9

Re: Javascript became error

<script type="text/javascript">(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;po.src = 'http://websitename.com/livesupport/index.php/chat/getstatus/(position)/bottom_right';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script>
????

Offline

#5 2013-03-15 10:41:13

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Javascript became error

It's ok. It is as it should be.

2013/3/15 Frank Frank <fen...***.com>

Offline

#6 2013-03-15 10:56:50

Frank Frank
Member
Registered: 2013-03-15
Posts: 9

Re: Javascript became error

But it does not work as should be...instead give me an error like in my first message.Best Regards,

Offline

#7 2013-03-15 11:24:09

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Javascript became error

Sorry but's it's something with your environment. Keep digging.

2013/3/15 Frank Frank <fen...***.com>

But it does not work as should be...instead give me an error like in my first message.



Best Regards,


Offline

Board footer