js lib

Dan Kantor's Avatar

Dan Kantor

18 Apr, 2011 04:50 PM

I noticed in the javascript library that it is creating a new 1x1 iframe for every exception. This can build up in an ajax app that doesn't reload often. It also adds a history entry.

If you use iframe.contentWindow.location.replace(api_url); that can reuse the same iframe and won't add a history entry.

Is there a specific reason you are doing it the former way?

  1. 1 Posted by Ciaran Lee on 19 Apr, 2011 10:26 AM

    Ciaran Lee's Avatar

    That's a great suggestion Dan, Thanks! I'll implement it when I'm next working on the js lib.

    So does the iframe technique always leave a(t least one) history entry?

    Kind regards,
    Ciaran Lee

  2. 2 Posted by Dan Kantor on 19 Apr, 2011 01:46 PM

    Dan Kantor's Avatar

    Great! I don't believe it leave's even one entry but I haven't tested that too much. I create an iframe with no src attribute and then call replace as needed.

  3. 3 Posted by Robert on 15 Feb, 2013 08:38 PM

    Robert's Avatar

    Hi, this is Robert with support, I am clearing out old tickets. If you are still having issues with this, send an email to [email blocked].


  4. Robert closed this discussion on 15 Feb, 2013 08:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac