<?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: Embedded Seal disappears on postback. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50323#M25787</link>
    <description>&lt;P&gt;I've also tried dynamically loading the javascript. &amp;nbsp;Using a solution &lt;A target="_self" href="http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml"&gt;found here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function loadjscssfile(filename, filetype) {
    if (filetype == "js") { //if filename is a external JavaScript file
        var fileref = document.createElement('script');
        fileref.setAttribute("type", "text/javascript");
        fileref.setAttribute("src", filename);
    }
    else if (filetype == "css") { //if filename is an external CSS file
        var fileref = document.createElement("link");
        fileref.setAttribute("rel", "stylesheet");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("href", filename);
    }
    if (typeof fileref != "undefined") {
        document.getElementsByTagName("head")[0].appendChild(fileref);
    }&lt;BR /&gt;}

loadjscssfile("//verify.authorize.net/anetseal/seal.js", "js");  //dynamically load and add this .js file&lt;BR /&gt;&lt;BR /&gt;// Handle Partial Postback&lt;BR /&gt;var prm = Sys.WebForms.PageRequestManager.getInstance();&lt;BR /&gt;prm.add_endRequest(function () {&lt;BR /&gt;    loadjscssfile("//verify.authorize.net/anetseal/seal.js", "js");&lt;BR /&gt;});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not work either.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2015 17:11:43 GMT</pubDate>
    <dc:creator>liveclass</dc:creator>
    <dc:date>2015-04-16T17:11:43Z</dc:date>
    <item>
      <title>Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/40950#M22210</link>
      <description>&lt;P&gt;Whenever I perform a postback on my page the embedded seal disappears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to keep this from happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note: If I do a refresh the seal reappears.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 23:14:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/40950#M22210</guid>
      <dc:creator>liveclass</dc:creator>
      <dc:date>2014-05-08T23:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/41042#M22253</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Authorize.Net secure seal is relatively simple javascript that should load in the same way regardless of whether the page was loaded through a post or not. &lt;BR /&gt;I would have to guess something else is happening that prevents the javascript from running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joy&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 19:31:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/41042#M22253</guid>
      <dc:creator>Joy</dc:creator>
      <dc:date>2014-05-14T19:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50322#M25786</link>
      <description>&lt;P&gt;I'm running into this issue again using ASP.NET and C#. &amp;nbsp;Some of the ASP Form elements cause a "partial postback" onclick. &amp;nbsp;This causes the javascript to not reload the Authorize.net image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried wrapping the ANS_customer_id in a page request manager like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
    var ANS_customer_id = "&amp;lt;my customer id&amp;gt;";
});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not work. &amp;nbsp;My guess is that "seal.js" needs to have the page request manager code added to handle partial postbacks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general it does not matter whether the external javascript is simple it not. &amp;nbsp;What matters is that I wrap it in prm.add_endRequest(). &amp;nbsp;Much of the javascript on my ASP.NET site breaks on partial postback unless the page request manager is used.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 16:39:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50322#M25786</guid>
      <dc:creator>liveclass</dc:creator>
      <dc:date>2015-04-16T16:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50323#M25787</link>
      <description>&lt;P&gt;I've also tried dynamically loading the javascript. &amp;nbsp;Using a solution &lt;A target="_self" href="http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml"&gt;found here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function loadjscssfile(filename, filetype) {
    if (filetype == "js") { //if filename is a external JavaScript file
        var fileref = document.createElement('script');
        fileref.setAttribute("type", "text/javascript");
        fileref.setAttribute("src", filename);
    }
    else if (filetype == "css") { //if filename is an external CSS file
        var fileref = document.createElement("link");
        fileref.setAttribute("rel", "stylesheet");
        fileref.setAttribute("type", "text/css");
        fileref.setAttribute("href", filename);
    }
    if (typeof fileref != "undefined") {
        document.getElementsByTagName("head")[0].appendChild(fileref);
    }&lt;BR /&gt;}

loadjscssfile("//verify.authorize.net/anetseal/seal.js", "js");  //dynamically load and add this .js file&lt;BR /&gt;&lt;BR /&gt;// Handle Partial Postback&lt;BR /&gt;var prm = Sys.WebForms.PageRequestManager.getInstance();&lt;BR /&gt;prm.add_endRequest(function () {&lt;BR /&gt;    loadjscssfile("//verify.authorize.net/anetseal/seal.js", "js");&lt;BR /&gt;});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not work either.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:11:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50323#M25787</guid>
      <dc:creator>liveclass</dc:creator>
      <dc:date>2015-04-16T17:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50324#M25788</link>
      <description>&lt;P&gt;Here are some posts on stackoverflow about reloading javascript on postback or partial postback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Post 1" href="http://stackoverflow.com/questions/3341623/asp-net-updatepanel-in-gridview-jquery-datepicker/3341741#3341741" target="_self"&gt;http://stackoverflow.com/questions/3341623/asp-net-updatepanel-in-gridview-jquery-datepicker/3341741#3341741&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Post 2" href="http://stackoverflow.com/questions/14038684/execute-javascript-after-a-partial-postback-of-an-updatepanel" target="_self"&gt;http://stackoverflow.com/questions/14038684/execute-javascript-after-a-partial-postback-of-an-updatepanel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:22:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50324#M25788</guid>
      <dc:creator>liveclass</dc:creator>
      <dc:date>2015-04-16T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded Seal disappears on postback.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50326#M25790</link>
      <description>&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function pageLoad(sender, args) {
    &amp;lt;copied and pasted the code I found here: https://verify.authorize.net/anetseal/seal.js&amp;gt;
}&lt;/PRE&gt;&lt;P&gt;In this case, the page loaded everything and then quickly replaced everything with the Authorize.Net seal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:39:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Embedded-Seal-disappears-on-postback/m-p/50326#M25790</guid>
      <dc:creator>liveclass</dc:creator>
      <dc:date>2015-04-16T17:39:47Z</dc:date>
    </item>
  </channel>
</rss>

