Page 12 of 13

More Detail on using the select menu

Posted: Mon Sep 15, 2014 12:54 pm
by eascards

So I decided to save what is in the input box in local storage so that I could possibly make more sense of what I need to do to make this happen.

This is how I have it saved. Image

And this is how I tried to implement it into the JS.
Image

I did notice, however, that I don't have the new LSV mapped to the 'where' parameter like I have the other one, therefore that might explain why it isn't working.


More Detail on using the select menu

Posted: Mon Sep 15, 2014 1:39 pm
by Kateryna Grynko

Hello,

Thank you for the update.
Please let us know if you need any help.


More Detail on using the select menu

Posted: Mon Sep 15, 2014 2:48 pm
by eascards

I do need some help. Would you mind taking a look in my app? I is shared and called MyApp.


More Detail on using the select menu

Posted: Tue Sep 16, 2014 4:21 am
by Yurii Orishchuk

Hi Eascards,

This time your attempts looks better.

But currently you set to two different parameter the same value(with book name) you need to use in second parameter value from LSV you have stored before.

Take a look on screen shot : http://prntscr.com/4na4vj/direct

Regards.


More Detail on using the select menu

Posted: Tue Sep 16, 2014 12:17 pm
by eascards

Thank you for that code! I added it and and now it brings up any calf in that book. I checked the headers and it says "null". Screen shot below.

Image

Any advise?


More Detail on using the select menu

Posted: Wed Sep 17, 2014 1:04 am
by Yurii Orishchuk

Hi,

It means you have "null" in "seachinput" LSV.

How to check it:
1 open app on that page.

2 Open browser console.

3 Use in console following code:

pre

localStorage.getItem("seachinput");

/pre

See details: http://prntscr.com/4njwo7/direct

You should have as result - correct value that you stored in this field: https://d2r1vs3d9006ap.cloudfront.net...

Regards.


More Detail on using the select menu

Posted: Wed Sep 17, 2014 3:45 am
by eascards

I entered "calf" in the input box and searched. It brought up a result, but it will bring up every calf no matter what I type in.

I went through the steps above and got this:
Image

Advise?


More Detail on using the select menu

Posted: Wed Sep 17, 2014 9:44 pm
by Yurii Orishchuk

Hello,

https://d2r1vs3d9006ap.cloudfront.net...

your screen shot above means you don't save "searchinput" LSV.

So you should deal with this: https://d2r1vs3d9006ap.cloudfront.net...

You should get in console correct search value(from your input).

Regards.


More Detail on using the select menu

Posted: Wed Sep 17, 2014 11:36 pm
by eascards

The way I saved the LSV looks like the screen shot so I did some other digging and found this: Image

It is weird that I shows that I saved it here but not in the other place.


More Detail on using the select menu

Posted: Thu Sep 18, 2014 1:56 am
by Yurii Orishchuk

It looks good.

http://prntscr.com/4nv418/direct

Try to see what is sends in "where" request parameter in net tab of browser debugger.