i'm using List of hyperlinks widget.
what's happening?
after click on any link, the value if this one is submitted and validaded. after that, the page is refreshed.
global_filter.js
post_to('', data);
function post_to(url, data) {
jQuery.post(
url,
data,
function(response){
// Upon confirmation that the post was received, initiate a page refresh.
// At this time the main module has already set the filter on the session.
location.href = '';
}
//, 'json'
);
}
in my case, the delay betwen user click and page refresh is above 4 seconds.
so, maybe remove this validation?
Comments
Comment #0.0
dgastudio commented1
Comment #1
dgastudio commentedalso, i want to take this module as base, http://drupal.org/project/views_flag_refresh, and develop a new one specifically for Global filter.
that are u think about it?
Comment #2
rdeboerHi Kervi,
As for the main issue, maybe your page loads very slowly even without Global Filter?
Global Filter does the page refresh so that your Views can respond to the global filter change.
Alternatively, don't use the js option, but configure Global Filter to just use plain old-fashioned links.
Regarding Views Flag Refresh.... what is the use-case scenario you had in mind exactly? What do you want the combination of the Views Flag Refresh and Views Global Filter modules to do for the user?
Rik
Comment #3
dgastudio commentedHi Rick!
damn, i have updated to latest dev version and everything is broken now...
so, i'll provide you info about js delay a little bit later.
about Views flag refresh.
use case:
same page. global filter block and views display.
after select any option from global filter, views display is refreshed via ajax.
something like exposed filters with ajax enabled in views.
Comment #4
dgastudio commentedok, i have rolled back to stable version, and everthing seems works again.
please, take a look
http://u5444.krypton.vps-private.net/consultation/all
on the left, is global filter.
switch between any option.
Comment #5
rdeboerkervi,
which stable version did you roll back to?
Rik
Comment #6
dgastudio commentedComment #7
rdeboerUnfortunately I was already too far down the path of a major refactoring, which I've just checked in.
The new code base puts me in a much better position to timely fix things and add features.
Can you please check whether the latest 7.x-1.x-dev (dated 20 March 2012) works for you?
If not please create an issue and I'll see what I can do.
Rik
Comment #8
rdeboerThe code for 7.x-1.x-dev and 7.x-1.2 regarding the refresh of the page is identical.
However, maybe the page refresh can be initiated on the server....
Comment #9
rdeboerNo reaction for 2 months. Assume fixed.
Comment #9.0
rdeboer3