filter Jquery problem: an outside button trigger the reset

More
11 years 1 month ago #41245 by gauthier
I have accordions inside my template.
I created a button to expand all/hide all.
Everything works fine when there is no filter active.
Then when I active filter by selecting some items, it works fine.
But when I am clicking the show all button, after one second the page is reloaded as I activated the reset filter.
I did a test, I removed the function on the button, the problem still there. It seems there is somewhere a trigger set on any buttons...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41248 by micker
Hello,

i think a javascript conflict, but without link .... ;)

please post an online link and give instruction on how to view / reproduce the issue

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41294 by gauthier
I am working on an intranet,
To help troubleshooting I put the category visible. Once the problem is solved, I will set the access back to register.

extranet.iuslaboris.com/index.php/client-opening-rules-menu

To reproduce:

- use the filter, select 1 or 2 countries
- then select the button on the top right of the records (with 2 small arrows)
- After 1-2 seconds, the page will be reloaded.

No code in the function reload the page. When I commented all the function, the problem still there. I think that one trigger is set on this (probably all) button(s) when the filter reload the result. I guess that a Jquery function from the filter is no well programmed... Or it is by design but I should be able to disable the option.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41296 by ggppdk
Hello

you have an old common mistake

- you button is an <a> tag and you have attached to it an onclick event

- but <a> tags are supposed to load a new url, and you have a URL in it "#" which is the current page so it (reloads)loads current page

simplest solution (there are others) is to use
href="javascript:;"

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41299 by gauthier
thanks,

To make it simple, I used a button.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41306 by ggppdk
Hello,

yes this is another solution too

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.351 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline