Opened 13 years ago

Closed 12 years ago

#1339 closed defect (fixed)

combobox - last entry loaded by URL is not displayed in drop down with blank input

Reported by: jpowers@… Owned by: Douglas Hays
Priority: high Milestone: 0.9
Component: Widgets Version: 0.3
Keywords: Combobox Cc:
Blocked By: Blocking:

Description

On the following file; the last entry loaded into the list by URL is not being displayed in the dropdown list (IE 6.0 & FF 1.5.06) when you leave the entry blank. If you type the first letter of the last entry, it will then appear in the filtered list.

The CGI program is outputing (I had to add the "Content-type" entry to make Apache happy): --- Start of output --- Content-type: text/html

[ ["BEAU RIVAGE RESORTS, INC","180"], ["BELLAGIO, LLC.","190"], ["CIRCUS CIRCUS - RENO","CCR"], ["CIRCUS CIRCUS CASINOS INC","CCC"], ["CIRCUS CIRCUS MICHIGAN INC","DET"], ["CIRCUS CIRCUS MISSISSIPPI","CCT"], ["COLORADO BELLE CORPORATION","CBL"], ["DESTRON, INC.","004"], ["EDGEWATER HOTEL CORPORATION","EWL"], ["LUXOR HOTEL & CASINO","LUX"], ["MANDALAY BAY RESORT & CASINO","MBH"], ["MANDALAY DEVELOPMENT","CDC"], ["MANDALAY PLACE","MPL"], ["MANDALAY RESORT GROUP","CCH"], ["MGM GRAND DETROIT II, LLC","031"], ["MGM GRAND DETROIT, LLC","016"], ["MGM GRAND HOTEL, LLC","001"], ["MGM MIRAGE","205"], ["MGM MIRAGE DESIGN GROUP","400"], ["MGM MIRAGE INTERNATIONAL","265"], ["MIRAGE CASINO HOTEL","160"], ["MONTE CARLO RESORT & CASINO","MCH"], ["NEW CASTLE CORP","EXC"], ["NEW YORK NEW YORK","010"], ["PRIMADONNA COMPANY, LLC","110"], ["PRMA LAND DEVELOPMENT CO.","105"], ["RAMPARTS INTERNATIONAL INC","RII"], ["SHADOW CREEK CLUB","155"], ["SLOTS A FUN INC","SAF"], ["THE SIGNATURE CONDOMINIUMS LLC","005"], ["TREASURE ISLAND AT THE MIRAGE","170"] ] --- End of Output ---

--- Start of HTML --- <!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <HTML> <HEAD> <TITLE>iSeries Self Help</TITLE> <script type="text/javascript" src="dojo-0.3.1-ajax/dojo.js"></script> <script language="JavaScript?" type="text/javascript">

dojo.require("dojo.widget.LayoutContainer?"); dojo.require("dojo.widget.ContentPane?"); dojo.require("dojo.widget.TabContainer?"); dojo.require("dojo.widget.validate"); dojo.require("dojo.widget.ComboBox?"); dojo.require("dojo.widget.Button"); dojo.widget.validate.ValidationTextbox?.prototype.validColor="white"; dojo.hostenv.writeIncludes();

</script> <style type="text/css">

html, body{

width: 100%; /* make the body expand to fill the visible window */ height: 100%; overflow: hidden; /* erase window level scrollbars */ padding: 0 0 0 0; margin: 0 0 0 0;

} .formQuestion {

padding:0.3em; font-weight:900; font-family:Verdana, Arial, sans-serif; font-size:0.8em; color:#5a5a5a;

} .formAnswer {

padding:0.3em; margin-bottom:1em; width: 100%;

} .pageSubContentTitle {

color:#8e8e8e; font-size:1em; font-family:Verdana, Arial, sans-serif; margin-bottom:0.75em;

} .small {

width: 2.5em;

} .medium {

width: 10em;

} .long {

width: 20em;

}

span.invalid, span.missing {

display: inline; margin-left: 1em; font-weight: bold; font-style: italic; font-family: Arial, Verdana, sans-serif; color: #f66; font-size: 0.9em;

}

.noticeMessage {

display: block; float: right; font-weight: normal; font-family:Arial, Verdana, sans-serif; color:#663; font-size:0.9em;

} /* group multiple buttons in a row */ .box {

display: block; text-align: center;

} .box .dojoButton {

float: left; margin-right: 10px;

} .dojoButton .dojoButtonContents {

font-size: medium;

}

</style> </HEAD> <body>

<form method="get" id="form1">

<div class="formQuestion">

<span class="noticeMessage">You can only reset the profile assigned to you...</span> <span class="emphasise">Profile and Your Information</span>

</div> <table class="formAnswer" style="width: 100%;">

<tr>

<td class="emphasise">Profile</td> <td width="100%">

<input type="text" name="Profile" class="medium" id="Profile"

dojoType="ValidationTextBox?" maxlength="10" required="true" trim="true" missingMessage="Enter your iSeries user name; this may be

different then your Windows sign-on."

/>

</td>

</tr> <tr>

<td class="emphasise">Employer</td> <td>

<select name="Employer" dojotype="combobox" id="Employer"

dataurl="secbin/CUGER.PGM" style="width: 350px;" autocomplete="true" maxListLength="7"

/>

</td>

</tr> <tr>

<td class="emphasise">Employee#</td> <td>

<input type="text" name="Employee" class="medium"

dojoType="ValidationTextBox?" required="true" trim="true" missingMessage="Enter your employee #; this should be on your

Employee ID card."

/>

</td>

</tr> <tr>

<td class="emphasise">Pin#</td> <td>

<input type="text" name="SSN" class="medium"

dojoType="IntegerTextBox?" trim="true" required="true" min="0" max="9999" missingMessage="Enter the last 4 digits of your SSN."

/>

</td>

</tr> <tr>

<td class="emphasise">Birthday</td> <td>

<input type="text" name="Birthday" class="medium"

dojoType="DateTextBox?" trim="true" required="true" invalidMessage="Invalid date. Use MM/DD/YYYY format." missingMessage="Please enter your birthday. Use MM/DD/YYYY format."

/>

</td>

</tr>

</table> <br /> <br /> <table align="center">

<tr>

<td>

<button dojoType="Button" onclick="ChangeProfile?('Enable')">Enable and Keep Password</button>

</td> <td>

<button dojoType="Button" onclick="ChangeProfile?('Reset')">Enable and Reset Password</button>

</td>

</tr>

</table>

</form>

</div> </body> </HTML> --- End of HTML ---

Change History (4)

comment:1 Changed 13 years ago by dylan

Milestone: 0.5
Owner: changed from bill to alex

comment:2 Changed 13 years ago by Douglas Hays

Owner: changed from alex to Douglas Hays

comment:3 Changed 12 years ago by haysmark@…

Old Combobox (AutoCompleter?) capped the search limit at 30. This ticket had exactly 31 results, so the last one didn't appear. Now you can set the search limit through the attribute, searchLimit, on the widget yourself. It defaults to Infinity.

comment:4 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [8352]) Port of ComboBox?(=AutoCompleter?) and Select widgets to 0.9 dojo by haysmark@…. Fixes #2189, #1504, #1451, #2244, #2384, #2070, #899, #912, #1267, #1339, #1456, #1484, #1485, #2558, #1186

Note: See TracTickets for help on using tickets.