Support Team
posted this
10 May 2024
Hello,
- Have you tried Nicepage categories already and it has a problem, with the page being refreshed? Or did you try to use blog categories and it happened?
- Please provide an example, of how you create and where the problem is, where you have a long page and many inputs, many texts, that must not be refreshing.
- Please provide your wish example, I mean the website where we can see your wish in action, and what you want to filter.
- Please provide your block, where you added a code, and how you added it, we will check the exported block.
The one thing I cannot set is the On-Click function to work as a call
to the JS function: i.e. onclick="filterSelection('all')"
<button id="myButton">Click me</button>
<script>
document.addEventListener("DOMContentLoaded", function() {
let myButton = document.getElementById("myButton");
myButton.setAttribute("onclick", "filterSelection('all')");
});
</script>
This is a code of how you can do it, Please see the text doc in the attachments. You can delete commented parts in the code.txt
...................................................
Sincerely,
George.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
Hello,
- Have you tried Nicepage categories already and it has a problem, with the page being refreshed? Or did you try to use blog categories and it happened?
- Please provide an example, of how you create and where the problem is, where you have a long page and many inputs, many texts, that must not be refreshing.
- Please provide your wish example, I mean the website where we can see your wish in action, and what you want to filter.
- Please provide your block, where you added a code, and how you added it, we will check the exported block.
> The one thing I cannot set is the On-Click function to work as a call
> to the JS function: i.e. onclick="filterSelection('all')"
<button id="myButton">Click me</button>
<script>
document.addEventListener("DOMContentLoaded", function() {
let myButton = document.getElementById("myButton");
myButton.setAttribute("onclick", "filterSelection('all')");
});
</script>
This is a code of how you can do it, Please see the text doc in the attachments. You can delete commented parts in the code.txt
...................................................
Sincerely,
George.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp
Last edited 12 May 2024 by Support Team