Page 1 of 2

autocomplete problem

Posted: Tue Feb 04, 2014 6:15 am
by pritu patel

I follow this url.
https://getsatisfaction.com/apperyio/...

Image

Image

Image

Image

I done some mistake but i can't understand it what is the mistake??
how to do auto complete ?I do it as per my knowledge please help me


autocomplete problem

Posted: Tue Feb 04, 2014 7:07 am
by Kateryna Grynko

Hi Pritu,

How do you save a variable 'mySuggestions'? You would need to save a service response array in localStorage. If you need a search by 'SchemeName' value, run this code on Search service Success event:prearr = new Array();
$(data).each(function(){ arr.push($(this)[0].SchemeName); })
localStorage.setItem("mySuggestions", JSON.stringify(arr));/pre


autocomplete problem

Posted: Tue Feb 04, 2014 7:22 am
by pritu patel

thnks it working but how to show a list when i write in input box


autocomplete problem

Posted: Tue Feb 04, 2014 10:45 am
by Kateryna Grynko

Pritu,

Follow the URL you followed :)
https://getsatisfaction.com/apperyio/... See my first comment please.


autocomplete problem

Posted: Tue Feb 04, 2014 11:18 am
by pritu patel

I follow that step but not working it


autocomplete problem

Posted: Tue Feb 04, 2014 6:16 pm
by Maryna Brodina

Hello! Please check errors in console. Verify you've done everything as shown here https://getsatisfaction.com/apperyio/...


autocomplete problem

Posted: Fri Feb 07, 2014 6:56 am
by pritu patel

i follow all your step that in your first comment in url
https://getsatisfaction.com/apperyio/...

it's not working so what is remaining now??
Image

Image

Image

Image


autocomplete problem

Posted: Fri Feb 07, 2014 12:51 pm
by Kateryna Grynko

Hi Pritu,

On Input event you pass to autocomplete a string, not an object. String are store in localStorage. You should add parsing string to an object on Input event, so use this code:prevar suggestions = JSON.stringify(localStorage.getItem("mySuggestions"));
Appery("inputcity").autocomplete({source: suggestions});/pre


autocomplete problem

Posted: Fri Feb 07, 2014 1:14 pm
by pritu patel

I tried this but not working now
you can get more idea what is the problem
http://appery.io/app/mobile-frame?src...


autocomplete problem

Posted: Fri Feb 07, 2014 6:23 pm
by Maryna Brodina

Hello! In inputcity-Input-Run JavaScript instead prevar suggestions = JSON.stringify(localStorage.getItem("mySuggestions"));/pre should be prevar suggestions = JSON.parse(localStorage.getItem("mySuggestions"));/pre