« first day (1370 days earlier)      last day (1058 days later) » 

9:36 PM
var labels
, mapped;
$("#search").typeahead({
source: function(query, process) {
$.get(url+'pg=sale&process=search_product', {q: query}, function(data) {
labels = []
mapped = {}
var data=[
{"stateCode": "CA", "stateName": "California"},
{"stateCode": "AZ", "stateName": "Arizona"},
{"stateCode": "NY", "stateName": "New York"},
{"stateCode": "NV", "stateName": "Nevada"},
{"stateCode": "OH", "stateName": "Ohio"}
];
$.each(data, function(i, item) {
mapped[item.label] = item.value
labels.push(item.label)
It works fine
 
E_JAVASCRIPT
 
@Ephra Nothing to do with php. Wrong room
 
but when I take the same data from PHP file, it won't work
 
If you take that exact same data from a book it will also not work
 
@PeeHaa , some guys can help, it relate
@PeeHaa , ha haa haa, u'r not serious ha haa
 
9:38 PM
@Ephra please stop. It hurts
 
So how can I fix it @DaveRandom
I can't sleep @tereško
 
11 messages moved from PHP
 
user1804599
10:13 PM
 
1 message moved from Lounge<C++>
 

« first day (1370 days earlier)      last day (1058 days later) »