Hello all,
 
I was having trouble with ComboBoxes not rendering correctly in Internet
Explorer 6 or 7. If did a select all on the web page I could see where the
box was, but there were no borders or drop down arrow.  Well after a little
bit of hunting around I was able to fix the problem by moving some code
around in html/Widgets/ComboBox.
 
Before----------------
<input name="<% $Name %>" id="<% $Name %>" class="combo-text" value="<%
$Default %>" type="text" <% $Size ? "size='$Size'" : '' |n %>
autocomplete="off" />
<br style="display: none" /><span id="<% $Name %>_Button"
class="combo-button"></span></span><select name="List-<% $Name %>" id="<%
$Name %>_List" class="combo-list" onchange="ComboBox_SimpleAttach(this,
this.form['<% $Name %>']); " rows="<% $Rows %>">
<option style="display: none" value="">-</option>
% foreach my $value (@Values) {
        <option value="<%$value%>"><% $value%></option>
% }
</select>
------snip-----
After----------------
<select name="List-<% $Name %>" id="<% $Name %>_List" class="combo-list"
onchange="ComboBox_SimpleAttach(this, this.form['<% $Name %>']); " rows="<%
$Rows %>">
<option style="display: none" value="">-</option>
% foreach my $value (@Values) {
        <option value="<%$value%>"><% $value%></option>
% }
</select>
<input name="<% $Name %>" id="<% $Name %>" class="combo-text" value="<%
$Default %>" type="text" <% $Size ? "size='$Size'" : '' |n %>
autocomplete="off" />
<br style="display: none" /><span id="<% $Name %>_Button"
class="combo-button"></span></span>
------snip----- 
As you can see I just moved the Select in front of the input and the
ComboBox magically appeared.
Hope this helps someone else, cause it drove me nuts.
 




SESINS
        
Solutions to Ensure Success     
Michael Adams   
Senior Systems/Network Administrator    

SES Insurance Brokerage Services, Inc.

CA License #0773864     

                Tel:     800.955.4737   
17782 E. 17th Street            Direct:  714.669.5386   
Suite 200               Fax:     714.730.5075   
Tustin, CA  92780               Web:      <http://www.ses-ins.com/>
http://www.ses-ins.com  



NOTICE:  The information transmitted in this e-mail is intended solely for
the individual or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of or taking action in reliance upon this
information by persons or entities other than the intended recipient is
prohibited.  If you have received this e-mail in error please contact the
sender and delete the material from any computer.
 

<<SES_Signature_Logo.gif>>

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to