Opened 9 years ago

Closed 9 years ago

#7938 closed bug (notabug)

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

Change History (1)

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

I don't know why you would expect it to behave any other way. Please use the forums if you need help.

Note: See TracTickets for help on using tickets.