Note that there are some explanatory texts on larger screens.

plurals
  1. POFABridge on shopping cart checkout
    primarykey
    data
    text
    <p>I’m working with a team to put together a repeatable checkout process.</p> <p>We are using a Flex shopping cart and then opening up an IFrame using flexiframe to capitalize on our ASP.net secure checkout server. This works like a charm until we click on a simple button in ASP.net that does one thing - and one thing only. It’s supposed to trigger a process, using FABridge, to get us back to the first ‘page’ in the Flex application so as to run another transaction.A few things I have done, and please let me know if you need more data, code, or whatever.</p> <p>I put FABridge.js in the Flex project’s html-template folder. I put FABridge.as in the a ‘bridge’ package in the Flex project.</p> <p>I put FABridge.js in the ASP.net project. I declare this file on the aspx page like so:</p> <pre><code>&lt;script type="text/javascript" src="../Scripts/FABridge.js"&gt;&lt;/script&gt; </code></pre> <p>Then, I declared the ASP.net button like so:</p> <pre><code>&lt;asp:Button runat="server" ID="btnNewOrder" Text="Place New Order" OnClientClick="newOrder();"/&gt; </code></pre> <p>The newOrder function is written like so:</p> function newOrder() { var flexApp = FABridge('AdminTrak', 'flex'); flexApp.setPage(0); } <p>The setPage function in Flex looks like so:</p> <pre><code>public function setPage(pageNum:int):void { model.pageSetter(pageNum, 2) } </code></pre> <p>Now, I added a namespace on the view where this function resides like so:</p> <pre><code>xmlns:bridge="bridge.*" as well as the following declaration: &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;bridge:FABridge bridgeName="flex" /&gt; &lt;/fx:Declarations&gt; </code></pre> <p>Also, I added the following line in my index.template.html file:</p> <pre><code>flashvars.bridgeName = "flex"; </code></pre> <p>So, I run a transaction and then click on the button to place a new order. All I get is an error that tells me that FABridge.flex is not defined.</p> <p>Please help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload