Bug Tracker

Modify

Ticket #6063 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

[autocomplete] sub uri path issues

Reported by: plukevdh Owned by:
Priority: Milestone:
Component: ajax Version:
Keywords: autocomplete, plugin, rails Cc:
Blocking: Blocked by:

Description

I'm running jQuery 1.4 with Rails. I have a function like so:

$("#name").autocomplete('autocomplete_name', {

matchContains: true

}).result(function(event, data, formatted) {

$.post('fill_state', {city: formatted}, null, 'script');

});

Which autocompletes a city name field and then runs a post to a method within Rails to get the autocompleting values back. Once one is selected, it runs a post again to the rails app to fill the state field automatically.

However, I'm running this app in a sub-uri such that app.website.com/rails is the path to my application. When I run the autocomplete method above, it chops the /rails off of the url and the calls cannot be completed because I get a 404 as the url is now incorrect.

Looking over the code now, but figured someone might have more knowledge and save me some time.

Change History

comment:1 Changed 4 years ago by john

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

Please post plugin issues with the appropriate plugin bug tracker.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.