Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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 March 3rd, 2004, 05:03 PM
Authorized User
 
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing data

Hello,

I'm relatively new to web programming, and I would appreciate your help. Pardon me for a rather long description, but I'm trying to be specific.

Here is what I'm trying to do:

I have some vbscript code embedded in CSP(crystal server pages, similar to ASP) that displays a custom input form built on the fly for crystal reports. It accepts user input, and then transfers the control to crystal engine to render the report.

I want to be able to do dependent drop down boxes in the input form for each parameter of crystal report, and here is what I am planning to do so far:

In my vbscript, I can output some javascript that will execute on the client side. The javascript will store key-value pair for each drop down in an array, and then populate/depopulate drop downs as user makes selections. For that, I must pass data for each parameter to the client, which Javascript should be able to identify, store and retrieve.

To be able to relate various parameters with each other, I need to pass a bunch of data. For example, a data table for each parameter with key value, value to display in the drop down, return value, what other drop downs depend on it, and their foreign key mappings and such.

Here comes the question:

I would like to be able to pass this information from the server, most of which I'm reading from an XML document or SQL server 2000 through ADO, to the client in a meaningful way (ideally an object that VBscript can populate on the server side and javascript can process on the client side).
How can I accomplish this?

I can put hidden controls in html and populate them with data, which javascript can parse, but how will javascript know the unique names of the controls if each report has different parameters, whose names dictate the html control names?

Thanks a bunch.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing data between forms pactite Access 5 June 4th, 2005 03:02 PM
Passing data between forms rwalker VS.NET 2002/2003 6 February 17th, 2005 08:17 AM
Passing URL data Brian_S Dreamweaver (all versions) 2 December 1st, 2003 08:22 AM
passing data between pages johnhardy BOOK: Beginning ASP 3.0 1 October 18th, 2003 04:29 AM





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