Question: Why in the session?

Asked By
Asked At
2017-08-28 15:13:50

Found 15 possible answers.

User Answered At Possible Answer
dylan.dpc 2017-08-28 15:13:54 and what decides whether the sidebar should be opened or closed
neat 2017-08-28 15:13:56 Sounds like a client side of thing
dylan.dpc 2017-08-28 15:13:58 also look at View Composers
marvanni 2017-08-28 15:14:13 I guess you want a cookie for that
sturm 2017-08-28 15:14:36 The session just seemed like the obvious choice to me. A cookie would be another good choice, I’d have thought. What decides whether it should be opened or closed is whether or not the user clicked on the icon on the page to do so. It’s your typical hamburger icon.
antonija 2017-08-28 15:37:33 I am stuck and my question keeps getting lost here. If some good dev wants to help newbie dev, please dm me.
dylan.dpc 2017-08-28 15:37:50 just post your queston agan @antonio
antonija 2017-08-28 15:44:41 I have a view with bunch of dropdowns and checkboxes. I pass my data with controller but i.e. if I want to edit something then I need to preselect stuff for a user. How do I do that with jQuery? Can I do that somehow with Blade. Idk where to start
dylan.dpc 2017-08-28 15:45:21 you need to pass possible data as well from controller
antonija 2017-08-28 15:46:40 I am passing and using data, but I have $something->location and a dropdown with 30 locations. I have to add selected to only one. How do I do that?
dylan.dpc 2017-08-28 15:48:18 you need to check if the data from your select is equal to what the user has
antonija 2017-08-28 15:50:13 But I would like to aviod that because that would mean adding this 30+ times Is it possible that I get that object with jQuery?
dylan.dpc 2017-08-28 15:51:27 gonna be tricky
antonija 2017-08-28 15:51:37 Then manual work it is :smile:
dylan.dpc 2017-08-28 15:52:28 well i would prefer doing it since you will be having it inside a loop right?

Related Questions