CREATING S.TL() 500ms DELAY WHEN NOT PASSING LINK OBJECT | Community
Skip to main content
MJ_1963
Level 2
October 16, 2015
Solved

CREATING S.TL() 500ms DELAY WHEN NOT PASSING LINK OBJECT

  • October 16, 2015
  • 1 reply
  • 1113 views

I was wondering what is the best method to still have the 500ms delay for an s.tl() call when no link object is passed? If I still pass 'this' and it doesn't reference anything, will it still have the 500 ms delay?Just want to know how I still initiate the 500 ms delay when link object is not present? Example:

function trackNoLinkObj(partnerID){
    s.events=s.linkTrackVars=s.linkTrackEvents = "";
    s.linkTrackVars = "prop1,prop2";
    s.linkTrackEvents = "None";
    s.tl(this,'o',partnerID);
};

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alexis_Cazes_

If it is not a link you should not use this for the first param in the s.tl function but true.

And to wait 500ms use preventDefault in Jquery then send the s.tl call then set a timeout of 500ms to wait to move to the location. 

If you do not reload the page then you do not need to wait 500ms

1 reply

Alexis_Cazes_
Alexis_Cazes_Accepted solution
Level 10
October 16, 2015

If it is not a link you should not use this for the first param in the s.tl function but true.

And to wait 500ms use preventDefault in Jquery then send the s.tl call then set a timeout of 500ms to wait to move to the location. 

If you do not reload the page then you do not need to wait 500ms