Filter Collection- Show all selected filters - javascript

I've got a problem with my filters.
My Website is: https://webiloot.com/
Currently, when going in a collection you can pick one filter from each group.
My problem is that the filter system is showing products containing for example: Thor AND Batman. Instead, I need it to show products containing Thor OR Batman.
I understand how the filter system works, it creates a new URL joining each filter with '+' sign.
I don't need help writing code (therefore, I'm not pasting any).
My question is what should the URL look like to acheive my goal?
Thanks a lot!

You cannot currently create a URL ORing tags. See https://ecommerce.shopify.com/c/ecommerce-design/t/filtering-a-collection-using-multiple-tags-and-vs-or-324651
I've done it in the past with AJAX calls

Related

How do I filter across Tableau workbooks through the dropdowns?

Please be patient with my English, and it's my first time to be here. I am very new to Tableau and JavaScript as well. I am trying to find a way to filter the dashboards in a different place. For example, when I click a person name from a list on the first dashboard and it shows a result, once I click another dashboard from the drop-down (not on API, just come from an HTML nav bar), this dashboard should show any results with the person name I chose on the first dashboard.
Like this: I'm viewing Dashboard 1. I apply filter Anthony. Then I go to Dashboard 2 after clicking this on drop-down. IF Dashboard 2 also has a filter named exactly "Anthony" show the result automatically.
I tried to research about this, but it does not help very much. I read the API reference and I thought getFilterAsync() from FilterEvent Class would work, but it doesn't. I would appreciate if you can explain or show an example with Javascript codes constructively. This example is similar to my goal, but I don't plan to use two dashboards and textbox/button on the same page. Another example is sort of what I want, but I don't need to put specific values on method to filter. I need to filter across workbooks after clicking anything on the API. It's not just a person name. It can be a date, number, location, etc. I want to know how I make filter values/parameters active on any dashboards.
Any response will be helpful. Thank you!
use action filter, where you specify the source dashboard and then the target dashboard

How to use a search bar on site to search sub urls

I need to find out how to have a search bar that can find other pages on my site. Doing a google search, I can only find the code to create a search bar, and not utilise it. Its features would need to include auto correct and actually going to the page, basically these 2 things combined (https://www.w3schools.com/howto/howto_js_autocomplete.asp and https://www.w3schools.com/howto/howto_js_filter_lists.asp)
In the how to filter/search list example you can just add the urls to the corresponding links like <li>Adele</li>.
And in the how to js autocomplete example it will be a bit different and additional code needs to be written. If the url is the same as the items in the list there would not be an issue, but otherwise you need to make the array of countries into an array of objects so that each object will have the name of the country and the corresponding url. Then in the javascript function you will have to access the components as arr[x].country.
The array of countries should look something like this
`var countries = [{country:"Afghanistan", url:"afghanistan"}, {country:"Albania", url:"albania"},...}.
Then add an onClick event handler in the javascript function.
onClick="location.href=`www.example.com/${arr[x].url}`"
You can use Tipue search for that. It's easy and has many options. Like related links, search description, pagination.
It's very easy to customize, if you know how to use inspect element or javascript.
http://www.tipue.com/search/

How to pass MySQL data from one page to another

Could someone point me in the right direction on how I could go about allowing a user to click a link on a PHP While Loop created MySQL table and pass that records info to another page. I've looked through all the similar questions and none answer mine. I am new to this type of programming.
Ultimately what my ideal scenario would be is this: Currently I have a list of data created with a While Loop. I would like a user to be able to click a text link that says REPORT ERROR. This in turn would take them to an error reporting form and populate a column of spans using getElementbyid... innerhtml. I know how to populate data with PHP on the same page but going to a new page is a different story.
Also as a newbie to Stackoverflow too, am I able to hire someone to do certain things for me?
pass data.
you can simply give the link of that page where you want to send your data and with a question mark you can pass whatever data you want to pass .if you want to pass multiple data use & between the data values. like below. i hope this will help you.

Oracle APEX: Call stored procedure from javascript

I need some help with oracle apex. The thing which I want to do is the following:
I have table with some data about people. So each row describes exactly one human. And I want to show some more information about certain human. For example, list of shops he or she has visited. Such data provided by other tables.
I see it in this way: right click on table with people on certain row -> select option (what kind of info to show) -> execute stored procedure and show new page with data table (e.g. list of shops). But how can I implement it?
I've already found this plugin. Now I can execute some JavaScript function after right-click. But how can I execute stored procedure and show new page?
I'm new in apex, any help would be appreciated.
You're trying to reinvent the wheel. You're new to apex. Have you taken a good look at the documentation?
Start out where everyone else has to start: at the beginning. Report + form. Column links.
There is ample help available to someone new to apex.
The 2-day developer guide, running you through some of the
basics of apex and a good familiarization.
Get a workspace at apex.oracle.com
Each workspace starts with the sample database application, based on
products and customers. You can view and edit this application and
thus you can glean plenty of information from it.
Furthermore, there are the packaged applications, many of which offer
good basic solutions to common situations. Again, you can glean a lot
of information on them, and they are even editable after you unlocked
them.
After you are familiar with the basics, you can look further ahead. What you are asking is simply too much for someone new to the matter. You even want to implement a jQuery plugin straight away. You're talking ajax. It's great if you know those subjects and they'll be of plenty of value to you, but it just seems you don't even know how to present and fetch your data.
A good start would be to make a report and a form. In the form you can then add some classic (or an interactive) report(s) to represent associated data.
It's possible. First of all, assume that each row contains unique identifier ID. You have to add hidden item to the page which would contain additional info about certain row. Let's name it P1_ID. Then add the following JavaScript code to page which contains initial data (in example from question, page with table with information about people):
function TestFunction(action, el, pos) {
var id = $(el).children('td[headers="ID"]').text();
var href = 'f?p={APPLICATION ID}:{PAGE_NUMBER}:&SESSION.::::P2_ID:'+id;
window.location = href
}
Function name should match name in plugin settings. Example: link
Replace APPLICATION_ID and PAGE_NUMBER with actual values according to application. PAGE_NUMBER is the page number which contains additional info about row.
Then you can add some reports to the page with additional info and use ID parameter to select information about certain row.
The only problem is that plugin mentioned in question stop working after table refreshing. For example, if we filter data in table then no menu on right click will be shown. I don't know how to fix it for now. Any ideas?

Dynamic search filter with add and remove functionality

i was wondering if there is a frame work or some sample code to create dynamic filters for search result to allow users build results.
i want to show user the filter they have choosen and have a small x button for them to remove the filter
like the one this site
http://www.soap.com/buy/Type=Acne+Treatments%7CBar+Soaps?s=Olay
Since you tagged this question with JavaScript, HTML and AJAX, take a look at the ajax-solr project. The Reuters demo site for ajax-solr implements this type of search filter behavior and they also walk you through how to build this with Step 5 of their tutorial.
You should look into Solr facet queries. This page should help get you started: http://searchhub.org/2009/09/02/faceted-search-with-solr/

Categories