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
  #1 (permalink)  
Old May 1st, 2008, 12:41 PM
Registered User
 
Join Date: May 2008
Location: Coventry, CT, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with <SELECT <OPTION

I have a form with three tables written for classic ASP. That is what the client has. I build the tables dynamically based on task groups within a specific event. My rows have the different components while my columns are 1 to many and defined by the task groups(TASK1, TASK2, ETC). Within each column is a dropdown.

Example:

SERVER TASK1 TASK 2 TASK3

SERVER1
SERVER2
SERVER3


I have three different tables for three specific functions. This all seems to work fine except when I have an event that has many components. The case that does not work very well has 4930 dropdowns. Each dropdown has 6 options. All dropdowns have the same options. This is the way the user designed it so that is how I coded it. In my problem case, Internet Explorer 6 gives me some funky results.

Namely, the dropdowns are in places that they should not be. I am also unable to view the source for this specific event.


Each functional grouping has HTML like the following:

<table>
  <tr>
      <th> </th>
   loop here based on number of tasks
      <th> </th>
   next
  </tr>

  <tr>
      <td> </td>
   loop here based on number of tasks
      <td> </td>
        <select>
           <option>
           </option>
           <option>
           </option>
           <option>
           </option>
           <option>
           </option>
           <option>
           </option>
           <option>
           </option?
        </select>
     </td>
    next

  </tr>



I tried to add a new table for every row but I still have strange problems with the dropdowns. As I mentioned earlier, the form looks fine with less data. With this problem, sometimes the columns don't even look like dropdowns. Some of the dropdowns are of different heights. Scrolling always seems to make the form even worse.


Thanks for any help someone can give me.








  #2 (permalink)  
Old May 1st, 2008, 06:24 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Very confusing question(s) you kind of lost me.....

Wind is your friend
Matt
www.elitemarquees.com.au
  #3 (permalink)  
Old May 2nd, 2008, 07:18 AM
Registered User
 
Join Date: May 2008
Location: Coventry, CT, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Since I cannot paste the image into here, it is hard for me to clarify.


My page looks something like this.


THIS IS THE FIRST TABLE. I create DROPDOWN using the <SELECT <OPTION

--------------------------
INFRASTRUCTURE |SUPPORT |
-------------------------|
INFRA1 |DROPDOWN|
-------------------------|
INFRA2 |DROPDOWN|
-------------------------|
INFRA3 |DROPDOWN|
-------------------------|
INFRA4 |DROPDOWN|
----------------|--------|


Second table looks something like this.

----------------------------------------------------|
HARDWARE |TASK 1 |TASK 2 |TASK 3 |TASK 4 |
----------|----------|----------|----------|--------|
HARDWARE1 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE2 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE3 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE4 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE5 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE6 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|


The third table is similar but has fewer columns than table 2.



Most of the time the page looks fine unless there is a great deal of data. When there is a lot of data, sometimes the dropdowns looks like textboxes and other times the dropdowns appear on the page where they should not be.

Example:




                ---------|
                |DROPDOWN|
                ---------|
                |DROPDOWN|
                ---------|
                |DROPDOWN|
                ---------|
                |DROPDOWN|
                |--------|
----------------------------------------------------|
HARDWARE |TASK 1 |TASK 2 |TASK 3 |TASK 4 |
----------|----------|----------|----------|--------|
HARDWARE1 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE2 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE3 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE4 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE5 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|
HARDWARE6 |DROPDOWN |DROPDOWN |DROPDOWN |DROPDOWN|
----------|----------|----------|----------|--------|



I am using IE6. Since I am at a client site, I am unable to install firefox to see the results of that. I am also unable to view source when this happens so that I could save the source and try running this on my home machine.




  #4 (permalink)  
Old May 2nd, 2008, 07:27 AM
Registered User
 
Join Date: May 2008
Location: Coventry, CT, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

By closing down some other apps I was able to view my source. This may be some type of memory contraint issue. Here is one of my dropdowns that appears as a textbox on my page. From this point on none of my dropdowns show correctly. This HTML looks like any of the preceding HTML since it is built dynamically.



<tr>
            <td>ILWEBPR01</td>


                <td><SELECT name="HardwareStatus" id="$CDBID$501$TASK_GROUP_ID$6$STATUS$$" class="UpdateStatus">
                <option value = "0000"> </option>

                    <option value = "D">Not Applicable</option>

                    <option value = "N">Not Started</option>

                    <option value = "I">In Progress</option>

                    <option value = "P">Problem Encountered</option>

                    <option value = "C">Completed</option>

                <option value = "R">Remove Override</option>
                </SELECT></td>



                 <script type= "text/javascript">


                setElementSelectedIndex('$CDBID$501$TASK_GROUP_ID$ 6$STATUS$$','')

                </script>

                <td><SELECT name="OSStatus" id="$CDBID$501$TASK_GROUP_ID$7$STATUS$$" class="UpdateStatus">
                <option value = "0000"> </option>

                    <option value = "D">Not Applicable</option>

                    <option value = "N">Not Started</option>

                    <option value = "I">In Progress</option>

                    <option value = "P">Problem Encountered</option>

                    <option value = "C">Completed</option>

                <option value = "R">Remove Override</option>
                </SELECT></td>


  #5 (permalink)  
Old May 2nd, 2008, 07:30 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, why can you not view the source? Obviously you won't be able to see the ASP code that generated the HTML but you should still be able to see said HTML.

Second it is not clear if A)A textbox is being generated INSTEAD of a Dropdown or B) A textbox is simply appearing where a Dropdown should because of an error in the HTML.

In the case of the former it would most certainly be some sort of logic error where your code emits a Textbox instead of a dropdown. In the case of the latter, this could also be a logic error depending on how you are writing the HTML to the browser or just a slight mistake in the resident HTML of the page.

-Doug

================================================== =========
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
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #6 (permalink)  
Old May 2nd, 2008, 07:33 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

...I am not sure how a SELECT tag is rendering as a textbox??? One could say that it is simply not possible. I just copied the code you provided into an HTML document and a dropdown is rendered in my browser just fine?

================================================== =========
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
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #7 (permalink)  
Old May 2nd, 2008, 08:18 AM
Registered User
 
Join Date: May 2008
Location: Coventry, CT, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

DPARSONS, I agree that this seems impossible. One caveat, I only posted a small subset of my HTML (this HTML is at the 25% mark).

In one case the dropdown for ILWEBPR01 which I previously posted, showed as a textbox instead of a dropdown. When I closed down all apps except IE, the textbox became a dropdown, after refreshing the page. It would appear that memory constraints or something related to my machine is preventing my page from being rendered completely. I do not see any errors anywhere indicating that there is a problem except the page itself.

  #8 (permalink)  
Old May 2nd, 2008, 09:14 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

I hate to say this but I can't really help you any further based upon what you have supplied here. AFAIK, even on a system that is consuming 100% of available resources, INPUT tags render textboxes of some degree and SELECT tags render dropdown's.

Again, I would say that there is a logic error or, if your asp code is generating INPUTs as well as SELECT's that there is an error in the HTML causing an INPUT to appear where a SELECT should be.

-Doug

================================================== =========
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
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #9 (permalink)  
Old May 14th, 2008, 09:49 AM
Registered User
 
Join Date: May 2008
Location: Coventry, CT, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Doug, I can assure you that not all my selects were rendered. But I believe that it is IE running on my machine and not a logic flaw with my HTML. I ran my HTML through this website http://htmlhelp.com/tools/validator/direct.html.en.

The website highlighted some flaws. For instance I began my SELECT IDs with the dollar sign and I had some duplicate IDs. I cleaned up these problems and added a DOCTYPE and the problems lessened but still occur on occasion. Since I do not have access to flickr from this work location, I can not easily show you what happened.

When the problem occurs, it is for a large form (over 3M). I have reduced the size of this by combining HTML and reducing white space. And the other consistent issue with the rendering problem is that when there is a problem rendering, I am always unable to select View--Source. Nothing happens when I try to select View.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mutiple <select..> with XML problem ousys .NET Framework 2.0 0 November 11th, 2007 03:37 AM
Show hint in <option ? NilovSerge Javascript 0 May 16th, 2007 02:40 AM
Remove <select a value> option roy_mm Reporting Services 0 February 25th, 2007 02:26 AM
<html:option> question Edward King Struts 2 May 4th, 2006 09:14 AM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM





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