[rt-users] ComboBox problem with IE

Michael Adams mykea at SES-Ins.COM
Mon May 21 18:16:23 EDT 2007


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.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070521/1c609ecc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SES_Signature_Logo.gif
Type: image/gif
Size: 2117 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070521/1c609ecc/attachment.gif>


More information about the rt-users mailing list