cleanest and quickest way to redirect? RRS feed

  • Question

  • Hello, I'm looking for the cleanest and quickest way to redirect.  I have a view based on a custom entity.  When the user double-clicks a row in the view, a form for the custom entity opens.  However, when the form for the custom entity opens, I redirect to the CRM email form for a related email ID.  

    The redirect is coded in the onload event of the form.  However, the form layout and controls are visible to the user for about 1 second before redirecting to the email form.  This looks kind of clunky.  I'd like the redirect to look more seamless, so it looks like there is no intermediate form.  Do you know if there's a way to do this? The onload event of my form uses the following script:

    window.top.location.href = redirectUrl;

    This successfully performs the redirect, but I was wondering if you knew of a way to execute the redirect more smoothly/quickly?
    Friday, December 27, 2013 1:45 AM