Welcome Guest, Not a member yet? Register   Sign In
Autocompletion frustrations
#9

[eluser]Aken[/eluser]
Um, it clearly passes an object. Here is their exact line, compared with your original:

Code:
// Theirs:
data: { term: $("#autocomplete").val()},

// Yours
data: term,

// Which translates to:
data: $('#tags').val(),

Clearly a difference.

And regarding the problem, you said yourself that your request was returning a 500 server error. Well that means something is wrong with the request, most likely the URL you are trying to retrieve from (or the code inside that URL). Verify in your JS output that the URL is correct (try copying and pasting it into your browser). Try creating a test form that sends post data to that URL and see what happens.


Messages In This Thread
Autocompletion frustrations - by El Forum - 08-15-2012, 08:33 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 08:46 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 08:58 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 09:11 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 09:17 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 09:59 PM
Autocompletion frustrations - by El Forum - 08-15-2012, 10:10 PM
Autocompletion frustrations - by El Forum - 08-16-2012, 08:34 AM
Autocompletion frustrations - by El Forum - 08-16-2012, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB