Page 2 of 4

Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Fri Aug 08, 2014 11:59 pm
by Matt6607699

Hmm, I have had browsers act glitchy with that. (safari worked but firefox didn't). I have reset the home page to the "Sign In" page so that should solve it. Let me know if there is anything else that I can do.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Mon Aug 11, 2014 1:26 am
by Matt6607699

Any update on this?


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Mon Aug 11, 2014 2:44 am
by Yurii Orishchuk

Hi Man,

Thanks, currently i've been able to test it.

This code requires value of the item(not a title).

So you need to use following code instead of yours:

pre

var current = localStorage.getItem("_accountUserName");
var currentUserId = localStorage.getItem("userId");
//alert(current);
//Appery("selectUserDropdown").val(current).trigger("change");

var yourSelect = Appery("selectUserDropdown");
//yourSelect.val(current);
yourSelect.val(currentUserId);
yourSelect.selectmenu('refresh', true);

localStorage.setItem("profileSwapUserID",currentUserId);
localStorage.setItem("profileSwapUsername",current);

/pre

Regards.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Mon Aug 11, 2014 8:28 pm
by Matt6607699

Oh ok, thank you for pointing that out! I tried it with the value instead of Label and it work perfectly now!
Thank you again for the help


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sat Nov 29, 2014 6:10 pm
by Sam Safo

I have tried this but it doesn't work, the select does not change.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sat Nov 29, 2014 9:53 pm
by Jason Cheek

It has stopped working for me as well.

Neither .selectmenu('refresh', true); nor .trigger("change"); cause the value to update.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sat Nov 29, 2014 11:03 pm
by Jason Cheek

Ok, it seems to work now if I break up my chained calls and only call one function per line like this:

var $startHour = Appery("selectStartHour");
$startHour.val(moment().format("H"));
$startHour.selectmenu('refresh', true); //.trigger("change");

Both trigger("change") and selectmenu('refresh', true) seem to work like this.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Sun Nov 30, 2014 10:45 pm
by Yurii Orishchuk

HI Jason,

Glad it works.

Hi Sam,

Please Jasons code and if it will not help you please show us your implementation.

Regards.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Wed Dec 10, 2014 9:47 pm
by Sam Safo

neither of Jason's code has worked.


Appery().val() has stopped updating selected item in dropdown selector lists

Posted: Wed Dec 10, 2014 9:54 pm
by Illya Stepanov

Hi Sam,

Can you show us what have you tried and how it's not working now for you.

And what you want to get as a desirable result.