NS Binding Issue with s.tl() function

Avatar

Avatar
Validate 1
Level 1
manoj_de_silva1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
manoj_de_silva1
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
manoj_de_silva1
Level 1

15-10-2015

Hi,

This issue is regarding to  s.tl() function of sitecatalyst. When I use s.tl() function and direct to different page, NS_BINDING_ABORTED error will occur on Omniture request.

Please see the below code.

                                <script type="text/javascript">                                                                                                                                                        

                                                                                                function trackLink(obj) {

                                                                                                                s.forcedLinkTrackingTimeout = 3000;                                                                     

                                                                                                                s.linkTrackVars='eVar14,events';

                                                                                                                s.linkTrackEvents='event15';      

                                                                                                                s.eVar14="SSR_OK";

                                                                                                                s.events="event15";

                                                                                                                s.tl(obj,'o','SSR_OK',null,'navigate');

                                                                                                }

                                                                                               

                                                                                                function trackLinkError(obj) {

                                                                                                                s.linkTrackVars='eVar14,events';

                                                                                                                s.linkTrackEvents='event15';      

                                                                                                                s.eVar14="SSR_ERROR";

                                                                                                                s.events="event15";

                                                                                                                s.tl(obj,'o','SSR_ERROR');

                                                                                                }

                                                                                                                                                                               

                                </script>             

 

                                <a id="link1" href="2.html" onclick="trackLink(this); return false;">Continue</a><br/>

                                <a id="link2" href="2.html" onclick="trackLinkError(this);">Continue with error</a>

 

I used two links (link1, link2) to directed to 2.html. When using link2, NS_BINDING_ABORTED error will occur on Omniture request. But according to link2, I used a delay using s.forcedLinkTrackingTimeout property and the Omniture request has been sent as expected without an error. But the problem is, if we define this delay how to define it and also it is not a good practice to use a defined delay on a commercial application.

Can anyone consult on this to resolve this issue.

--

Thanks

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
anbazhagan_c
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
anbazhagan_c
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
anbazhagan_c
Level 1

15-10-2015

Hi Manoj,

 

I hope this will help you, otherwise please ignore.

You need to check the Forced link tracking is enabled. otherwise please use below:

 

useForcedLinkTracking:

This flag is used to disable forced link tracking for some browsers. Forced link tracking is enabled by default for FireFox 20+ and WebKit browsers.

Default Value

true

Example

  1. s.useForcedLinkTracking = false

Related to this issue some explanation below:

forcedLinkTrackingTimeout :

The maximum number of milliseconds to wait for tracking to finish before performing the doneAction that was passed into s.tl . This value specifies the maximum wait time. If the track link call completes before this timeout, the doneAction is executed immediately. If you notice that track link calls are not completing, you might need to increase this timeout.

Default Value

250

Example

  1. s.forcedLinkTrackingTimeout = 500

 

Thanks,

Anbu