Skip to main content

Bug Tracker

Side navigation

#6063 closed bug (invalid)

Opened February 09, 2010 08:22PM UTC

Closed February 10, 2010 04:57AM UTC

[autocomplete] sub uri path issues

Reported by: plukevdh Owned by:
Priority: Milestone:
Component: ajax Version:
Keywords: autocomplete, plugin, rails Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (1)

Changed February 10, 2010 04:57AM UTC by john comment:1

resolution: → invalid
status: newclosed

Please post plugin issues with the appropriate plugin bug tracker.