Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 3rd, 2004, 05:03 PM
Authorized User
 
Join Date: Aug 2003
Location: , , .
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.


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.