Integration and Testing

Authorize.Net API questions and help with your payment integration.

Posts: 1
Registered: ‎08-11-2011

Authorize seal crashing Internet Explorer



I have a PHP-based site, on which I was displaying the Authorize site seal.  The code for that is as follows:


<!-- (c) 2005, 2011. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="###";</script> <script type="text/javascript" language="javascript" src="//" ></script> <a href="###" id="AuthorizeNetText" target="_blank">Online Credit Card Processing</a> </div>


In testing, I noticed that the seal can be displayed, but upon navigating to any second page that also displays the seal, IE7 and IE8 crash (IE9 is unknown).   The seal was being displayed on a secure https page, if that matters.  Firefox and Opera display the seal without any problems.  My issues seem to echo those posted at this old forum:  http://tinyurl dot com/3r5pk3q


Any advice? Thanks.

Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: Authorize seal crashing Internet Explorer

[ Edited ]

No idea what's causing the problem, but tne obvious solution would be to not used the canned code, but to rather download the image to your site and then implement using more in the way of regular HTML: For instance, I put this on a client's site:


<center><a href=";rurl=http%3A//www..." target="_blank"><img src="/images/design/authorize.png" width="90" height="72" border="0" alt="Authorize.Net"></a><br>
<span style="font-size: 11px;">Web Ecommerce</span></center>

 EDIT: I see the code box is unable to properly handle URLs, and the link doesn't work here because it's not coming from my client's site, but you should set the URL to the same place you end up if you click the regular seal.

Posts: 591
Registered: ‎08-21-2009

Re: Authorize seal crashing Internet Explorer

The Verified Merchant Seal has been tested in Internet Explorer 7 and 8 without any problems.  This is personally something that I have never heard of despite the fact that we have hundreds (likely thousands) of merchants using the seal on their sites.  I would have to assume that this is something particular either to your browser or some javascript on your site that may be conflicting with the javascript in the seal.  A tool like the firebug extension for firefox may help you identify a possible javascript conflict.

Posts: 1
Registered: ‎01-20-2012

Re: Authorize seal crashing Internet Explorer

I, too, am having problems with the seal.js code in IE8. I get a javascript error on line 31 and my page will stop loading:


Invalid argument.


I believe it is referring to one of these lines from seal.js:



document.writeln( '</style>' );

if( window.ANS_customer_id )


If I remove the seal and code, my page loads fine, so it seems there is a conflict with the js and my page.


Here is the code I'm using, which I just took off off the page, but changed the src location from "//" to "https://":


<div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="my_id";</script>
<script type="text/javascript" language="javascript" src=""></script> <a href="" id="AuthorizeNetText" target="_blank">Transaction Processing</a> </div>

Somebody solved a similar problem on stackoverflow, but I don't understand what she did:


Stack Overflow: Invalid Argument Error


Any help would be greatly appreciated.