Search and Top Navigation
#7938 closed bug (notabug)
Opened December 07, 2011 10:44AM UTC
Closed December 07, 2011 12:43PM UTC
Incorrect parameters sent for remote requests
| Reported by: | kostask | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 | 
| Component: | ui.autocomplete | Version: | 1.8.16 | 
| Keywords: | Cc: | ||
| Blocked by: | Blocking: | 
Description
If you change the Javascript inside development-bundle\\demos\\autocomplete\\remote.html to the following:
$(function() {
	function log( message ) {
		$( "<div/>" ).text( message ).prependTo( "#log" );
		$( "#log" ).scrollTop( 0 );
	}
	$( "#birds" ).autocomplete({
		source: "search.php",
                max: 50,
		minLength: 2,
		select: function( event, ui ) {
			log( ui.item ?
				"Selected: " + ui.item.value + " aka " + ui.item.id :
				"Nothing selected, input was " + this.value );
		}
	});
});
Two things do not work as documented:
- The content of he text field is sent with the "term" parameter instead of "q"
- The "max" option is not sent as the "limit" parameter
Attachments (0)
Change History (1)
Changed December 07, 2011 12:43PM UTC by comment:1
| resolution: | → invalid | 
|---|---|
| status: | new → closed | 
I don't know why you would expect it to behave any other way. Please use the forums if you need help.