title: SiteCatalyst : Tracking Custom links on Webkit browsers
body: <p>My query is that I have a link that redirects to another page. In webkit browsers, how to force the sitecatalyst server call (script execution) to finish before the redirect happens?</p>
  
  <p>I am using sitecatalyst for a portal. I have
  configured the custom link call to include the doneAction parameter for
  successful call completion on webkit browsers (As mentioned in Adobe guide).</p>
  
  <p>The custom link code for onClick event of button is as below:</p>
  
  <pre><code>&lt;script language="javascript" &gt;
  function search(keyword)
  {
  var s=s_gi('testing');
  s.linkTrackVars="prop11,events";
  s.linkTrackEvents="event6";
  s.prop11=keyword;
  s.events="event6";
  s.tl(this,'o','Search',navigate());
  
  window.location=searchresults.html;
  }
  &lt;/script&gt;
  
  &lt;script language="javascript" &gt;
  function navigate()
  {
  return false;
  
  /*To induce a delay to ensure that image request is sent to Adobe before the
  user leaves the page.(As given in Adobe guide - code release H.25))
  Code version H.25 (released July 2012) includes an overloaded
  track link method ( s.tl ) that forces WebKit
  browsers to wait for the track link call to complete.)*/
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>However, even after this, I am getting error in custom link tracking. The redirect happens before the call can complete. </p>
  
  <p>Please help on the same. Thanks in Advance.</p>
  
  <p>Regards,
  Harshil</p>