silvercover Posted December 9, 2014 Share Posted December 9, 2014 I have wizard that asks several predefined questions to find-out user needs. at the end it must offer some items based on user answers. all of available items have some properties in common and one or two specific properties. what is the best way or algorithm to do this in JavaScript?e.g:Item 1 Properties: Name Weight Color Size Item 2 Properties: Name Size Weight Item 3 Properties: Name Color Size Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/292986-filter-items-that-have-common-properties-in-js/ Share on other sites More sharing options...
Psycho Posted December 9, 2014 Share Posted December 9, 2014 How are you saving/associating the properties to the objects? If this is data that is stored in the Database, then AJAX may be a better solution rather than putting logic on the client side. But, you haven't provided any details (i.e. code) to what you have now, so I can't provide any possible solutions. Quote Link to comment https://forums.phpfreaks.com/topic/292986-filter-items-that-have-common-properties-in-js/#findComment-1499088 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.