When viewing the block on a node, the default term shows results properly. Changing the term in the dropdown removes the results, collapses the block, and disables the dropdown with the new value set. But the new term selection never re-populates the block with new results. It stays collapsed. Tried in Firefox and IE. Is this a bug or am I doing something wrong?
| Comment | File | Size | Author |
|---|---|---|---|
| tqf-after-select.png | 2.96 KB | jgumpert | |
| tqf-initial-display.png | 13.7 KB | jgumpert |
Comments
Comment #1
jgumpert commentedI did a bit of old-school javascript debugging in combination with research on the $.ajax function and I think I found the root cause - the "url" option in the $.ajax function was failing because it is a relative url like "/taxonomy_quick_find/0/125". When I hardcoded the base url of my test system into the "url" it started working properly.
The other thing that helped me discover it was by adding an "error" option to the $.ajax function with some alerts to see that the JSON callback was indeed failing until I changed the url. Not sure what this means - is this a bug?
Comment #2
jgumpert commentedOne more finding - the standard "url" value works ok on another system where the base_url of drupal is the hostname without any extra directories after it. But I had to hardcode the full server name on any systems that use something like http://example.com/cms rather than just http://example.com/.
Comment #3
doc2@drupalfr.org commentedEN: Taxonomy_Quick_Find.module PAID bugfixes and development.
FR: REMUNERATION développement et bugfix de Taxonomy_Quick_Find.module.
Comment #4
kansaj commentedHi
Can you provide some more from the example that you have done ?
thank you
Comment #5
jgumpert commentedIn taxonomy_quick_find.js, I changed this:
to the following with a hardcoded URL:
Like I said, this change is not needed if your drupal system uses a url without any additional directory elements like "cms-app". Hope this helps...
Comment #6
nicholasthompsonThis raises a good point about the JS having to know what the default
base_path()is....