Ticket #7938 (closed bug: notabug)

Opened 19 months ago

Last modified 19 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 19 months ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to invalid

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.