Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Ajax Search Display
#11

[eluser]CroNiX[/eluser]
It doesn't appear you are passing "search" in your ajax post data - only the value.

Try
Code:
data:  { search: $("#searchInput").val() },
#12

[eluser]Katsune[/eluser]
[quote author="CroNiX" date="1399660104"]It doesn't appear you are passing "search" in your ajax post data - only the value.

Try
Code:
data:  { search: $("#searchInput").val() },
[/quote]

T_T Awesome, you made may 2 and half days of problem fixed. You're the man,.
#13

[eluser]Tpojka[/eluser]
Just check the first answer, thanks. Big Grin
#14

[eluser]InsiteFX[/eluser]
try adding:
Code:
dataType: json

Then use php json_decode to place it in an associated array.
#15

[eluser]Katsune[/eluser]
Yes I also did that. the display result end up looking like javascript syntax, I'm now looking for a way to display the data inside a table. Thanks, you always help me ever since I got here in the forum.




Theme © iAndrew 2016 - Forum software by © MyBB