Welcome to Act1 Interactive Ecommerce Marketing Solutions - The best in implementing your ecommerce goals for the future! We offer: shopping cart, shopping cart application, coldfusion ecommerce shopping cart, E-Commerce,The JavaScript.Pro ecommerce shopping cart, shopping cart ,The ColdFusion.Pro Commerce Cart E-Commerce Shopping Cart E-Commerceecommerce shopping cart,E-Commerce Shopping Cart E-Commerce,JSP, coldfusion application development, ecommerce marketing online marketing services international markets worldwide increase sales traffic search engines submission optimization, PR targeted linking online promotion banner advertising, ecommerce marketing online marketing services international markets worldwide increase sales traffic search engines submission optimization, PR targeted linking online promotion banner advertising, wholesale how to create ecommerce website design free shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control Visa Mastercard Discover UPS USPS Parcel authorize.net authorize ecommerce cart shopping solution online authorize net act1 interactive coldfusion application server web design cart hosting java script javascript asp CGI order fulfillment script meta-http content revisit after shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control ecommerce retail javascript database, jsdb, sales online Coldfusionpro.com javascriptpro.com act1.net www fedex transaction perl SQL 2000 database operations CRM sales email online shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control solution 816 http://demo.javascriptpro.com http://javascriptpro.com http://demo.act1.net Home 1 Administration Current Orders Order Details Shipping Prices Product Import Export Related Items Cross Selling Related Items Assignment Product Edit Grid Control Product Specials Orphan Images Search Results Email Specials Product Details Checkout Process Receipt Content Management
Phone: 614.989.9764

  Act1 Interactive
  About
  Cart Features
  Admin Controls
  Product Search
  Checkout Process
  Shipping
  Transactions
  Customization
  Licensing

TOUR LINKS
  Start Tour
  Administration
  Current Orders
  Order Details
  Shipping Prices
  Import/Export
  The Product Editor
  Related Items (A)
  Related Items (B)
  Editting Grid
  Product Specials
  Image Control
  Search Results
  Email Specials
  Product Detail
  Checkout Process
  Receipts
  Cart Statistics
Welcome to Act1 Interactive Ecommerce Marketing Solutions - The best in implementing your ecommerce goals for the future! We offer: shopping cart, shopping cart application, coldfusion ecommerce shopping cart, E-Commerce,The JavaScript.Pro ecommerce shopping cart, shopping cart ,The ColdFusion.Pro Commerce Cart E-Commerce Shopping Cart E-Commerceecommerce shopping cart,E-Commerce Shopping Cart E-Commerce,JSP, coldfusion application development, ecommerce marketing online marketing services international markets worldwide increase sales traffic search engines submission optimization, PR targeted linking online promotion banner advertising, ecommerce marketing online marketing services international markets worldwide increase sales traffic search engines submission optimization, PR targeted linking online promotion banner advertising, wholesale how to create ecommerce website design free shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control Visa Mastercard Discover UPS USPS Parcel authorize.net authorize ecommerce cart shopping solution online authorize net act1 interactive coldfusion application server web design cart hosting java script javascript asp CGI order fulfillment script meta-http content revisit after shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control ecommerce retail javascript database, jsdb, sales online Coldfusionpro.com javascriptpro.com act1.net www fedex transaction perl SQL 2000 database operations CRM sales email online shopping cart application, shopping cart software, website online marketing, shopping cart utilities, strict inventory control solution 583 http://demo.javascriptpro.com http://javascriptpro.com http://demo.act1.net Home 1 Administration Current Orders Order Details Shipping Prices Product Import Export Related Items Cross Selling Related Items Assignment Product Edit Grid Control Product Specials Orphan Images Search Results Email Specials Product Details Checkout Process Receipt Content Management
The Act1 Interactive Shopping Cart has both JavaScript and ColdFusion error handling capabilities to help track potential problems within its clients sites. In this help article, we'll show you the simple way to set up error controls which work to help you save time and money by catching the errors right away. By using ANY of these scripts, credit must be provided within your site as to the original copyright of the error handling scripts you are using.

ColdFusion Error Handling

  • Error Trapping Issues
  • How CF Trips Errors
  • How to Trap Errors
  • How to Save Errors in the log

    "Error Trapping Issues"
    The main Error Trapping issue in ColdFusion is the fact that when an error happens, the error page can not run any ColdFusion queries or run any CFINCLUDE routines, to say the least. It is also only able to display its Error variables once within the page, so it actually runs like a static page. It mainly acts as an error display page for the user to know an error has occurred.

    When you want to actually record an error to a log of some sort, your BEST option is to use JavaScript to save the #Error.Diagnostics# variable to another page that WILL run ColdFusion with a query or file save routine. We do this in our program by saving the error to a page within an IFRAME which is a 1x1 pixel hidden frame on the error page. This is the only recommended way to really do it, and we have done it effectively.

    "How CF Trips Errors"
    When any CF Error occurs, you want this to be caught right away, so you set the error control in the APPLICATION.CFM page in your site. You assign the error page by utilizing the CFERROR tag as below:

    <CFERROR template="Error.cfm" type="REQUEST">

    Note: This should catch all errors, but some versions of MSIE interact with the server in a way that only shows a 500 Error instead of the Error page. This may be due to certain types of errors, such as a CFQUERY when a table or column is not found. All others have been documented to work correctly so far.

    "How to Trap Errors"
    The error trapping routine below is the best way we have figured out how to actually save ALL of the information from the Error.Diagnostics and send it to to the ErrorSave.cfm file. One of the issues we encountered in trying to save Error.Diagnostics to a hidden text field was the spaces, the quotation marks, and single quotes. We output the Error.Diagnostics to a textarea field, which then can be accessed by JavaScript to parse out the unneeded quotation marks. Single quotes are converted to URL Encoded Format on the server side.

    <CFOUTPUT>
    <DIV ID=Diag style=display:none>#Error.Diagnostics#</DIV>
    </CFOUTPUT>
    
    <iframe frameborder="0" name="error" id="error" height="1" width="1" src="/blank.htm"></iframe>
    <CFOUTPUT>
    <form name=myForm action="/ErrorSave.cfm" target=error method=post>
    <input type=hidden name=Browser value="#Error.Browser#">
    <input type=hidden name=ErrorDiagnostics value="">
    </form></CFOUTPUT>
    <script lanugage=javascript>
    function replaceIT(entry) {
    out = '"'; // replace this
    add = ""; // with this
    temp = "" + entry; // temporary holder
    
    while (temp.indexOf(out)>-1) {
    pos= temp.indexOf(out);
    temp = "" + (temp.substring(0, pos) + add + 
    temp.substring((pos + out.length), temp.length));
    }
    document.myForm.ErrorDiagnostics.value = temp;
    }
    replaceIT(document.getElementById('Diag').innerHTML)
    document.myForm.submit()
    </script>
    

    *The javascript replace function is a free script from javascriptsource.com.

    "How to Save Errors in the log"
    This error save routine can be done using CFFILE or CFQUERY to save the error to a file or a database table. In our shopping cart, we save the error & browser information to the database along with their unique user, remote host address, and date & time. We link this to the users' stats and can see if they had additional problems and/or left the site soon after the error occurred. This error control routine helps in preventing big issues from going unnoticed for days before a customer calls in about it.


    This wraps up this section for ColdFusion Error Handling. If you need any assistance in working on your own custom script, we are open for business.

  • Act1 Interactive Shopping Cart © 1999-7 Act1 Interactive
    Columbus, Ohio - 614.989.9764