I created with views a block with an exposed filter (Taxonomy: TermID), use AJAX and finally enabled auto-submit for this view. Everything worked fine till I put an attachment to my block. The attachment inherits the exposed filter.
At first sight everything is still fine, but after using the exposed filter two times, auto-submit won't work any longer: the submit-button appears and has to be clicked to change the block.

Happens both with the beta and latest dev-Version of views hacks. I also created a page-display within the same view: same phenomenon. If I don't enable "Use Ajax", auto-submit works always in the page-display... so it seems to be the combination of AJAX and an attachment.

Comments

wak’s picture

Assigned: wak » Unassigned
infojunkie’s picture

Thanks, I'll try to reproduce this.

riaan burger’s picture

I just experienced the same problem. Thanks for pointing out that it was the attachment that made the difference for you. I unattached the attachment from the page and the exposed auto submit filters work again.

Since I need the attachment, I’ll put it back for now and keep an eye on this issue.

I tried a few quick possible fixes to no avail: switched of AJAX for the attachment only, gave exposed filter-identifiers prettier, shorter names (in case the URL was too long) etc.

wak’s picture

I think the problem is that the page is not loading completly: I created another view (again: auto-submit, Ajax) with an attachment containing Open Street Maps. When the button appears, the maps vanish partially, only the navigational parts are loaded, not the map itself.
Maybe that helps finding a solution?

twistedindustries’s picture

I just confirmed this as well. The problem seems to be linked to a couple issues. I am using jQuery 1.6 and had to make some changes here and there just to even get ajax to work. I finally got it working until I ran across a view with an attachment using ajax and an exposed filter. I click the apply button twice and all the content for the block goes away. I take the attachment off and it seems to work, I also tried a combination of various settings with no avail. But when I remove the attachment everything works fine. I also notice that if I revert to jquery 1.3 it also works. That just doesn't work in my case though, I need a view with attachments using ajax as well as jQuery 1.6.

Anyone know of some fixes or patches we can try? I should probably note that this seems to be a bug in Views not just Views Hacks as I don't have Views Hacks installed. This was just relevent to my problem so I thought the thread could use the input.

ressa’s picture

That was some fine forensic work, finding the problem was the attachment! I was struggling with the same issue and couldn't figure out what was going wrong, but after removing the attachment all is well. This also allows me to enable "Use Ajax", which stops clicking on the pagers from interfering with a Views Slideshow on the same page.

ressa’s picture

Title: Auto-submit: submit-button appears after two clicks (block with attachmentand AJAX) » Auto-submit: submit-button appears after two clicks (block with attachment and AJAX)
Berliner-dupe’s picture

Component: Views Filters Auto-submit » General

Same problem here. When i use attachment - after using the exposed filter two times the auto-submit-function work not longer and the submit-button will show.

Is there a fix available? Has anyone an idea?

Berliner-dupe’s picture

I found an other solution (without View-Hacks).

This works without problems.
http://drupal.org/node/115949#comment-1402912