Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2013, 12:01 PM
Authorized User
 
Join Date: Sep 2004
Posts: 68
Thanks: 1
Thanked 0 Times in 0 Posts
Default Scripting Dictionary

Good morning.

The code below is from CyberSource (for EFT processing). The code builds a scripting dictionary object with hard-coded fields however, I need to make the amount field editable. I'm confused on how to do this.

I substituted the "map amount" line with an editable text field but that caused the called page (https://orderpagetest.ic3.com/hop/orderform.jsp) to crash.

I need to figure out how to assign editable values to the object. How do I do this?

I hope this makes sense.

Thank you.

Sal


Code:
 
<% @language="vbscript" %>
<!--#include file="HOP.asp"-->

<h1>Product Name</h1>
<p>Description of your product.</p>

<form action="https://orderpagetest.ic3.com/hop/orderform.jsp" method="post">

  <%

  Dim map
  Set map = CreateObject("Scripting.Dictionary")
  map("amount") = "15.00"

  map("currency") = "usd"
  map("orderPage_transactionType") = "authorization"
  map("orderNumber") = "12345"

  map("billTo_firstName") = "John"
  map("billTo_lastName") = "Doe"

  InsertMapSignatureVBScript(map) 

                %>

  <input type="submit" value="Buy Now">


</form>





Similar Threads
Thread Thread Starter Forum Replies Last Post
using dictionary object rajiv_software Classic ASP Basics 4 June 21st, 2005 02:53 PM
Scripting Dictionary sachindhillan Classic ASP Basics 0 August 17th, 2004 09:34 AM
Data Dictionary shamsad Oracle 1 February 25th, 2004 03:08 PM
store recordset in scripting.dictionary jokerdi Classic ASP Basics 0 February 17th, 2004 05:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.