<?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: Accepted Hosted Cancel Button Not Working in IE - ASP.NET in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/59689#M34266</link>
    <description>&lt;P&gt;Just want to follow-up for any one else who has this issue. &amp;nbsp;I had the cancelUrl setting pointing at a standard html page. &amp;nbsp;I switched it to point to an aspx page and the event now works in IE. &amp;nbsp;I'm not sure why that makes the difference so for IE so I appreciate any thoughts on that.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 15:48:39 GMT</pubDate>
    <dc:creator>lfgsmDev</dc:creator>
    <dc:date>2017-09-06T15:48:39Z</dc:date>
    <item>
      <title>Accepted Hosted Cancel Button Not Working in IE - ASP.NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/59688#M34265</link>
      <description>&lt;P&gt;I have a ASP.NET Winform project in which the accepted hosted cancel event is not firing while using IE. &amp;nbsp;It works fine in Chrome. &amp;nbsp;I have confirmed in IE the the communication handler is working as I'm receiveing both the resize and transaction response events. I'm using an iframe with a jquery-ui dialog box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is odd as well is I copied most of the code from another project where the cancel button is working fine in IE. &amp;nbsp;I will be happy to post any code that might be helpful in troubleshooting the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the aspx code:&lt;/P&gt;&lt;P&gt;&amp;lt;%@ Page Title="Account Summary" Language="C#" MasterPageFile="~/_MasterPages/JICS8.Master" AutoEventWireup="true" CodeBehind="AccountSummary.aspx.cs" Inherits="OnlinePaymentForms.Invoices.AccountSummary" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="../Content/themes/base/jquery-ui.css"/&amp;gt;&lt;BR /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;BR /&gt;.ui-dialog-titlebar-close {&lt;BR /&gt;visibility: hidden;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/asp:Content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;asp:Content ID="Content2" ContentPlaceHolderID="HeaderPlaceHolder" runat="server"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Account Summary - Outstanding Invoices&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/asp:Content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder" runat="server"&amp;gt;&lt;BR /&gt;&amp;lt;form id="MainForm" runat="server"&amp;gt;&lt;BR /&gt;&amp;lt;asp:ScriptManager ID="MainScriptManager" runat="server"&amp;gt;&lt;BR /&gt;&amp;lt;Scripts&amp;gt;&lt;BR /&gt;&amp;lt;asp:ScriptReference Name="jquery" /&amp;gt;&lt;BR /&gt;&amp;lt;asp:ScriptReference Name="jquery-ui" /&amp;gt;&lt;BR /&gt;&amp;lt;/Scripts&amp;gt;&lt;BR /&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(setupDialog);&lt;BR /&gt;window.CommunicationHandler = {};&lt;/P&gt;&lt;P&gt;function parseQueryString(str) {&lt;BR /&gt;var vars = [];&lt;BR /&gt;var arr = str.split('&amp;amp;');&lt;BR /&gt;var pair;&lt;BR /&gt;for (var i = 0; i &amp;lt; arr.length; i++) {&lt;BR /&gt;pair = arr[i].split('=');&lt;BR /&gt;vars[pair[0]] = unescape(pair[1]);&lt;BR /&gt;}&lt;BR /&gt;return vars;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;CommunicationHandler.onReceiveCommunication = function (argument) {&lt;BR /&gt;alert('Commincation handler fired')&lt;BR /&gt;params = parseQueryString(argument.qstr)&lt;BR /&gt;parentFrame = argument.parent.split('/')[4];&lt;BR /&gt;console.log(params);&lt;BR /&gt;console.log(parentFrame);&lt;BR /&gt;$frame = null;&lt;BR /&gt;if (params['action'] == 'cancel') {&lt;BR /&gt;document.getElementById('&amp;lt;%= responseActionField.ClientID %&amp;gt;').value = params['action'];&lt;BR /&gt;document.getElementById('&amp;lt;%= responseField.ClientID %&amp;gt;').value = params['response'];&lt;BR /&gt;document.getElementById('&amp;lt;%= responseButton.ClientID %&amp;gt;').click();&lt;BR /&gt;closeDialog();&lt;BR /&gt;window.scrollTo(0, 0);&lt;BR /&gt;}&lt;BR /&gt;else if (params['action'] == 'transactResponse') {&lt;BR /&gt;document.getElementById('&amp;lt;%= responseActionField.ClientID %&amp;gt;').value = params['action'];&lt;BR /&gt;document.getElementById('&amp;lt;%= responseField.ClientID %&amp;gt;').value = params['response'];&lt;BR /&gt;document.getElementById('&amp;lt;%= responseButton.ClientID %&amp;gt;').click();&lt;BR /&gt;closeDialog();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function setupDialog() {&lt;BR /&gt;var wWidth = $(window).width();&lt;BR /&gt;var wHeight = $(window).height();&lt;BR /&gt;var dWidth = wWidth * 0.9;&lt;BR /&gt;var dHeight = wHeight * 0.9;&lt;/P&gt;&lt;P&gt;$("#dialog").dialog({&lt;BR /&gt;autoOpen: false,&lt;BR /&gt;modal: true,&lt;BR /&gt;width: dWidth,&lt;BR /&gt;height: dHeight,&lt;BR /&gt;closeOnEscape: false&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function openDialog() {&lt;BR /&gt;$("#dialog").css('visibility', 'visible');&lt;BR /&gt;$("#dialog").dialog("open");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function closeDialog() {&lt;BR /&gt;$("#dialog").dialog("close");&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;div class="SectionHeader"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Test Payment Popup&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="SectionBody"&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;Test&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td&amp;gt;&lt;BR /&gt;&amp;lt;asp:TextBox ID="FirstNameTextBox" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;BR /&gt;&amp;lt;asp:RequiredFieldValidator&lt;BR /&gt;ID="FirstNameRequiredFieldValidator"&lt;BR /&gt;runat="server"&lt;BR /&gt;ControlToValidate="FirstNameTextBox"&lt;BR /&gt;ErrorMessage="*Required"&lt;BR /&gt;ForeColor="Red"&lt;BR /&gt;Display="Dynamic"&lt;BR /&gt;EnableClientScript="false"&amp;gt;&lt;BR /&gt;&amp;lt;/asp:RequiredFieldValidator&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;asp:Button ID="SubmitButton" runat="server" Text="Submit" OnClick="SubmitButton_Click"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div hidden="hidden"&amp;gt;&lt;BR /&gt;&amp;lt;asp:HiddenField ID="responseActionField" runat="server"/&amp;gt;&lt;BR /&gt;&amp;lt;asp:HiddenField ID="responseField" runat="server" /&amp;gt;&lt;BR /&gt;&amp;lt;asp:Button ID="responseButton" runat="server" OnClick="responseButton_Click"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div id="dialog" title="Make a Payment" style="visibility:hidden; overflow:hidden"&amp;gt;&lt;BR /&gt;&amp;lt;iframe id="paymentIframe" name="paymentIframe" style="position:absolute; height:inherit; width:98%; border:none; overflow:hidden;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/asp:Content&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 15:27:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/59688#M34265</guid>
      <dc:creator>lfgsmDev</dc:creator>
      <dc:date>2017-09-06T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accepted Hosted Cancel Button Not Working in IE - ASP.NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/59689#M34266</link>
      <description>&lt;P&gt;Just want to follow-up for any one else who has this issue. &amp;nbsp;I had the cancelUrl setting pointing at a standard html page. &amp;nbsp;I switched it to point to an aspx page and the event now works in IE. &amp;nbsp;I'm not sure why that makes the difference so for IE so I appreciate any thoughts on that.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 15:48:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/59689#M34266</guid>
      <dc:creator>lfgsmDev</dc:creator>
      <dc:date>2017-09-06T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Accepted Hosted Cancel Button Not Working in IE - ASP.NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/63033#M37238</link>
      <description>&lt;P&gt;This is apparently still an issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Had the same thing happen with the Cancel button not working, but I was already using an .aspx page.&lt;/P&gt;&lt;P&gt;(A blank one that did nothing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that the .aspx page has to do SOMETHING (I'm populating a hidden field in a form in the code behind and that seems to do the trick.) for this to work. IE must be looking for something in the aspx though I'm not sure what.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 14:43:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accepted-Hosted-Cancel-Button-Not-Working-in-IE-ASP-NET/m-p/63033#M37238</guid>
      <dc:creator>acstoffel</dc:creator>
      <dc:date>2018-05-11T14:43:44Z</dc:date>
    </item>
  </channel>
</rss>

