Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 February 9th, 2007, 11:34 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos99
Default Retrieving information from disabled drop down

I can't seem to retrieve my information with the Request.form("name") when I disable my text boxes.. readonly works IF i'm using just a text box.. but is there a way to disable my drop down menu AND still retrieve the information?? (I do not want the admin to be able to change the information they have already inserted.. but I do need the information passed again to store in a database.... Any ideas?

Ok, the whole thing I'm working on is a calendar. Calendar is for users/admin.. when the ADMIN log on.. they can add, edit, or delete new events from the calendar... I am adding a "Set As Recurring" function to the edit screen... When the admin goes in to edit an event, I am trying to set it so he can set the event (that he is currently editing) to reoccur, daily, weekly, or monthly.....

When he selects the link to Set an Event as Recurring.. I want all of the information about that event to pull up (so the admin is aware he/she is on the right event) but I DO NOT want the admin to be able to edit it from this screen. All they can do is select how they want the event to reoccur and what date the reoccurrence should stop.

The form looks something like:

Event title: blah blah (readonly)
Event Description: blah blah (readonly)
Event Start Date: Blah blah (readonly)
Event End Date: Blah blah (readonly -- but there is a js popup calendar so the end date can be added automatically when the user selects the date)
Event All Day: drop down menu (disabled)
Event Required: drop down menu (disabled)
Event Start Time: drop down menu (disabled)
Event End Time: drop down menu (disabled)
Event Calendar: drop down menu (disabled)
Event Image: radio buttons (disabled)

I need to add this information again into the database (for the reoccurrence).. ANy Ideas??


Thanks in advance for your time and assistance! Have a blessed one!
 
Old February 9th, 2007, 11:59 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

First, readonly only applies to text fields/text areas. Second, the reason you can't access your values is because when you mark an element in Classic with the disabled attribute, it get's removed from the Forms Collection when the page posts.

The way I see it, you have 2 options.

The first, obviously, would be to use HIDDEN fields that contain all of the data related to the elements you are disabling. This is messy IMHO and I don't know that this is the way I would go about this, but it is an option.

The second option would be to create a table in your database that is somewhat of a "work table" so to speak. When the admin posts the page prior to the one you are referencing above, write a row into the database then when the user posts the second form, grab the data off of the form that you need and pull all of the other values from the work table into your production table. (Don't forget to delete the row in your work table).

So, ya, those are my ideas.

;]

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
 
Old February 9th, 2007, 12:09 PM
Authorized User
 
Join Date: Sep 2006
Location: Jax, NC, USA.
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default

Darn D, I knew u were going to tell me that!

T.B.
misskaos99@yahoo.com
 
Old February 9th, 2007, 12:12 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hey don't kill the messenger, I at least gave you options on how to fix the problem!

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
 
Old February 9th, 2007, 12:15 PM
Authorized User
 
Join Date: Sep 2006
Location: Jax, NC, USA.
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default

Ok fine.. *pipes down*... yes you did.. *cutting the car off* I'm ok now, but I was on my way... lol

Quote:
quote:Originally posted by dparsons
 Hey don't kill the messenger, I at least gave you options on how to fix the problem!

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
T.B.
misskaos99@yahoo.com
 
Old February 9th, 2007, 12:20 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ya ya =P

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
 
Old February 9th, 2007, 12:29 PM
Authorized User
 
Join Date: Sep 2006
Location: Jax, NC, USA.
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to misskaos
Default

how can i hide a drop down menu???

T.B.
misskaos99@yahoo.com
 
Old February 9th, 2007, 12:41 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

....Through ASP I don't believe you can do it (not without conditionally writing it to the page anyway) but in javascript you can do something like

eval("document.all.element.style.visibility='hidde n';");

Although doing this might also run you into the same problem of the data not posting to the Forms Collection.

================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========




Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving information from a parent node Tomi XSLT 2 September 6th, 2006 06:54 AM
enablement parameter when using disabled crmpicco Javascript How-To 3 April 13th, 2006 04:01 AM
Disabled icons EricJ VB How-To 0 July 12th, 2005 09:51 AM
Disabled textbox r_ganesh76 ASP.NET 1.0 and 1.1 Professional 4 October 4th, 2004 11:14 PM
disabled popup renee_santoscoi Javascript How-To 5 November 11th, 2003 02:20 PM





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