<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AUTHORIZE NET ADMINISTRATOR -----  THIS IS A BUG REPORT --- IFRAME COMMUNICATOR JAVASCRIPT IS BR in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/87381#M54969</link>
    <description>&lt;P&gt;The problem with the above IFrame Communicator is that it was taken form the GitHub application, and it wrongly references .&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CommunicationHandler&lt;/LI-CODE&gt;&lt;P&gt;...and it should instead be referencing .AuthorizeNetIFrame&lt;BR /&gt;&lt;BR /&gt;Secondly, the container javascript references an object wrongly. The function call below receives an object. str should reference the property qstr, str.qstr.split('&amp;amp;');&amp;nbsp; and not .split on the str object.&lt;BR /&gt;&lt;BR /&gt;Thirdly, the javascript library loaded should be functional for all users and should have the source reference:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&lt;BR /&gt;src="&lt;A href="https://code.jquery.com/jquery-3.7.0.min.js" target="_blank"&gt;https://code.jquery.com/jquery-3.7.0.min.js&lt;/A&gt;"&lt;BR /&gt;integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g="&lt;BR /&gt;crossorigin="anonymous"&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function parseQueryString(str) {
					var vars = [];
					var arr = str.qstr.split('&amp;amp;');
					var pair;
					for (var i = 0; i &amp;lt; arr.length; i++) {
						pair = arr[i].split('=');
						vars.push(pair[0]);
						vars[pair[0]] = unescape(pair[1]);
						}
					return vars;
					}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 02:33:32 GMT</pubDate>
    <dc:creator>marine2026</dc:creator>
    <dc:date>2023-08-23T02:33:32Z</dc:date>
    <item>
      <title>AUTHORIZE NET ADMINISTRATOR -----  THIS IS A BUG REPORT --- IFRAME COMMUNICATOR JAVASCRIPT IS BROKEN</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/87379#M54967</link>
      <description>&lt;P&gt;In the IFrame Communicator javascript code posted by Authorize Net, at the time when receiveMessage(event) function is called with the result of the submitting the payment information the window.parent.parent.CommunicationHandler is not defined.&lt;BR /&gt;&lt;BR /&gt;On the previous call to the receiveMessage(event) function, when tabbing through the payment form and scrolling the embedded iframe, the&amp;nbsp;window.parent.parent.CommunicationHandler is defined.&lt;BR /&gt;&lt;BR /&gt;So the context of the last call to receiveMessage has lost the reference to&amp;nbsp;window.parent.parent.CommunicationHandler&lt;BR /&gt;&lt;BR /&gt;Please let me know when this has been fixed. My project is waiting on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
 &amp;lt;head&amp;gt;
 &amp;lt;title&amp;gt;IFrame Communicator&amp;lt;/title&amp;gt;

 &amp;lt;!--
  To securely communicate between our Accept Hosted form and your web page,
  we need a communicator page which will be hosted on your site alongside
  your checkout/payment page. You can provide the URL of the communicator
  page in your token request, which will allow Authorize.Net to embed the
  communicator page in the payment form, and send JavaScript messaging through
  your communicator page to a listener script on your main page.

  This page contains a JavaScript that listens for events from the payment
  form and passes them to an event listener in the main page.
--&amp;gt;


 &amp;lt;script type="text/javascript"&amp;gt;

 function callParentFunction(str) {
   if (str &amp;amp;&amp;amp; str.length &amp;gt; 0 &amp;amp;&amp;amp; window.parent &amp;amp;&amp;amp; window.parent.parent 
     &amp;amp;&amp;amp; window.parent.parent.CommunicationHandler &amp;amp;&amp;amp; window.parent.parent.CommunicationHandler.onReceiveCommunication)
   {
      var referrer = document.referrer;
      window.parent.parent.CommunicationHandler.onReceiveCommunication({qstr : str , parent : referrer});
   }
 }
 
 function receiveMessage(event) {
   if (event &amp;amp;&amp;amp; event.data) {
     callParentFunction(event.data);
   }
 }
 
 if (window.addEventListener) {
   window.addEventListener("message", receiveMessage, false);
 } else if (window.attachEvent) {
   window.attachEvent("onmessage", receiveMessage);
 }
 
 if (window.location.hash &amp;amp;&amp;amp; window.location.hash.length &amp;gt; 1) {
   callParentFunction(window.location.hash.substring(1));
 }

 &amp;lt;/script&amp;gt;
 &amp;lt;/head&amp;gt;
 &amp;lt;body&amp;gt;
 &amp;lt;/body&amp;gt;
 &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 00:58:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/87379#M54967</guid>
      <dc:creator>marine2026</dc:creator>
      <dc:date>2023-08-23T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZE NET ADMINISTRATOR -----  THIS IS A BUG REPORT --- IFRAME COMMUNICATOR JAVASCRIPT IS BR</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/87381#M54969</link>
      <description>&lt;P&gt;The problem with the above IFrame Communicator is that it was taken form the GitHub application, and it wrongly references .&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CommunicationHandler&lt;/LI-CODE&gt;&lt;P&gt;...and it should instead be referencing .AuthorizeNetIFrame&lt;BR /&gt;&lt;BR /&gt;Secondly, the container javascript references an object wrongly. The function call below receives an object. str should reference the property qstr, str.qstr.split('&amp;amp;');&amp;nbsp; and not .split on the str object.&lt;BR /&gt;&lt;BR /&gt;Thirdly, the javascript library loaded should be functional for all users and should have the source reference:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&lt;BR /&gt;src="&lt;A href="https://code.jquery.com/jquery-3.7.0.min.js" target="_blank"&gt;https://code.jquery.com/jquery-3.7.0.min.js&lt;/A&gt;"&lt;BR /&gt;integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g="&lt;BR /&gt;crossorigin="anonymous"&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function parseQueryString(str) {
					var vars = [];
					var arr = str.qstr.split('&amp;amp;');
					var pair;
					for (var i = 0; i &amp;lt; arr.length; i++) {
						pair = arr[i].split('=');
						vars.push(pair[0]);
						vars[pair[0]] = unescape(pair[1]);
						}
					return vars;
					}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 02:33:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/87381#M54969</guid>
      <dc:creator>marine2026</dc:creator>
      <dc:date>2023-08-23T02:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZE NET ADMINISTRATOR -----  THIS IS A BUG REPORT --- IFRAME COMMUNICATOR JAVASCRIPT IS BR</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/94504#M58452</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Big Limos&lt;/STRONG&gt; is a top manufacturer of luxury stretch limousines and custom vehicles. With expert engineering, elegant interiors, and modern innovation, &amp;nbsp;&lt;A href="https://www.big-limos.com/" target="_self"&gt;Big limos&lt;/A&gt;&amp;nbsp;delivers premium quality, comfort, and style that redefine the luxury automotive experience.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2025 10:21:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AUTHORIZE-NET-ADMINISTRATOR-THIS-IS-A-BUG-REPORT-IFRAME/m-p/94504#M58452</guid>
      <dc:creator>biglimos</dc:creator>
      <dc:date>2025-11-09T10:21:09Z</dc:date>
    </item>
  </channel>
</rss>

