PDA

View Full Version : Filtering problem


EJB
09-19-2007, 02:27 PM
Hi, can anyone help me with the following problem:
I just installed EPC on a web page and also added a filter to it, when I filter on a catagory on the current month, it works ok. When I go to the next month, the filter is not applied (I see all catagories). When I then push the filter button again (still viewing a next month), EPC jumps back to the current month and applies the filter.
I suppose I did something wrong in the coding because I have seen pages where it worked correctly.
The page on which I am trying EPC is http://twins-sc.com/HTML/Intro2.php (http://twins-sc.com/HTML/Intro2)
Anyone know what I did wrong?

Brian
09-19-2007, 02:33 PM
Can you attach the intro2.php file so I can see the code?

EJB
09-19-2007, 02:55 PM
Hi Brian, thanks for the fast answer. The file was too big to attach. I zipped it and you can get it here: http://twins-sc.com/DL/Intro2.zip

Regards, Eric

ve9gra
09-19-2007, 10:13 PM
You're using AJAX. This is currently in beta only and does not quite integrate well with other plugins.

Use the standard mode and it should work properly.

EJB
09-20-2007, 02:51 AM
Gervais, Brian, that did the trick. Problem fixed.
I was using the ajax version so it only would (re)load the calendar and not go to the top of the page (for those who have to scroll down to see the whole calendar). Hope the 'ajax filter problem' will once be fixed.

Thanks for your help, Eric

B.t.w.: I'm very happy with the EPC, it's great

Brian
09-20-2007, 12:09 PM
You can use the EPCANCHOR feature to set and use an HTML tag at the calendar.

$EPCANCHOR="X";
Used when adding an anchor tag (<a name="TagName"></a>) to the location of the calendar on your page(s). X = the anchor tag name on your page.
Add this just before require("calendar/calendar.php");.