OK, thanks.
I will have to think about this a bit more ... but at least the AC works on one site for now LOL
Announcement
Collapse
No announcement yet.
A couple of general questions
Collapse
X
-
If you are using automatic FTP uploading then the JS file is uploaded each time. Even if it is the same file as what is already on the server (which it will be most of the time, unless you update the version of Zoom).
Leave a comment:
-
Thank you David,
I manually edited the zoom_autocomplete.js source file and the autocomplete now shows up correctly after indexing.
I am assuming this means the same hard coded changes will be loaded into every other site that is indexed by Zoom, correct?
Is there any way to skip uploading the zoom_autocomplete.js file at the end of the indexing?
(I don't think it changes, does it?)
That way I could go back to the original file in the source and also would not have to worry about it being overwritten every time the site gets indexed.
Thanks
ph
Leave a comment:
-
We made some changes to the auto-complete drop down screen positioning in V8 of the software.
There should be no need to edit the JS script. But some investigation would be required to figure out why the URL isn't being set correctly (but we no longer support the old V7 release you are using).
To have a custom JS script, you should be able to edit the source file. This is normally installed here.
C:\ProgramData\Wrensoft\Zoom Search Engine Indexer V8\extras\zoom_autocomplete.js
Leave a comment:
-
Hi there, just following up on the message above. I would still like to get this fixed.
Is there anything we can adjust (either in the configuration or in a source file) that would ensure that the manual changes described above to not get overwritten everz time the site gets indexed?
Thanks!
Leave a comment:
-
Hi again David,
Thank you for your guidance through this ... I am making some progress.
So the openURL variable needs to read 'zoom/search.php?zoom_ac=1' (instead of 'search.php?zoom_ac=1)
I was able to test this by manually overwriting the variable. With that the ac items do populate proprely:
However, I was not able to figure out where in the Zoom configuration I can adjust this. I think right now it will re-upload the auto-complete js script every time it indexes and it will default back to 'search.php?zoom_ac=1'.
Also, as you can see above the positioning of the dropdown is way off to the right and too far from the top.
It seems the style attributes for 'top' and 'left' also get set in the auto_complete js script (lines 130, 131). I can manually overwrite these as well (to 0 and 40) and then the drop down appears at the right place, more or less:
The same problem occurs on indexing though. I assume these manual changes will get overwritten.
Do you have any advice?
Thanks!
Leave a comment:
-
jquery and dropdown.js are not required for auto-complete. They are used on our site for the navigation menus and not the search function.
URL should be set automatically. Via this code
Code:var ZoomAutoComplete_URL = "/cgi-bin/search.cgi?zoom_ac=1"; ..... var openURL = ""; if (typeof ZoomAutoComplete_URL == "undefined") openURL = "search.php?zoom_ac=1"; else openURL = ZoomAutoComplete_URL;
Leave a comment:
-
Hi again,
I've done a bit more digging ... so when I try to trigger the auto-complete the "zoom_ac_dropdown" div shows a 404 message:
When I look at this 404, it seems to be triggered by a non-existent search.php:
On our server we have:
https://www.infomed.ch/infomed_search.php
and https://www.infomed.ch/zoom/search.php
but not https://www.infomed.ch/search.php
I saw in the zoom_autocomplete.js file, on line 223, that search.php is referenced as the openURL variable, but I assume this is correct as it accesses the search.php script in the /zoom/ directory.
Where else could www.infomed.ch/search.php be referenced from?
I couldn't find anywhere else.
Thanks
ph
Leave a comment:
-
Hi again,
Still trying to troubleshoot this, so I have more questions!
- I notice on your example page that you link to the jquery library. Is jquery needed to make the auto_complete work and if so, is the version critical?
- I also notice that there is a dropdown.js script referenced on your page. Is this script necessary?
- I see in our code that the div "zoom_ac_dropdown" does not populate (compared to yours) when I type into the "zoom_searchbox" ... it says"the requested URL was not found on the server". So it seems like the event(s) triggered in the search field run(s) into some sort of path issue.
Thanks
ph
Leave a comment:
-
Autocomplete word suggestions are stored in the "zoom_autocomplete.zdat" file. That file needs to be on the server. But it should be auto-generated and auto-uploaded to the server, if you have this feature turned on.
The Javascript file, zoom_autocomplete.js, is also required. As for all JS files, they run on the client.
As you type, the JS makes a AJAX call to the web sever to get the word suggestions, they are returned back in XML format and parsed into the drop down list.
Leave a comment:
-
Hi again,
I now see the div that should be populated by the js script, thank you for pointing that out.
A lot of events seem to be triggered on the search field (zoom_searchbox), maybe that is the issue why the div does not get populated.
Is the auto-complete data pre-loaded? Is it in some sort of referenced json file?
Just trying to understand what's going on. I don't want to just upgrade and then potentially run into the same issue again due to the customization.
Thanks
ph
Leave a comment:
-
There is a working example of auto-complete here
https://www.zoomsearchengine.com/search.php
And this is on our page but just not visible, ie. off-screen, right now?
Here is a cropped screen shot from my dual 4K monitor setup.
Leave a comment:
-
Hi again,
Thank you for looking into this.
Originally posted by David View PostWe had a look at the site. It is highly customised compared to our base template. So that makes it more complex as we aren't familiar with your code / site.
You are also using an old release of Zoom, which we no longer support.
Originally posted by David View PostThere are at least 2 issues. One is that the drop down list appears far to the right, off screen. So that is likely CSS or an issue with the old V7 code.
Originally posted by David View PostThe other issue is that results aren't being returned to the drop down. So maybe a bad URL (or again something in V7 that was already fixed in V
I see thatCode:zoom_ac_dropdown
Do you have a link to a working example w/ the dropdown, maybe I can figure it out based on that.
Or maybe I have to change versions after all. I am just trying to take the route that will be most straight forward.
Thanks!
ph
Leave a comment:
-
We had a look at the site. It is highly customised compared to our base template. So that makes it more complex as we aren't familiar with your code / site.
You are also using an old release of Zoom, which we no longer support.
There are at least 2 issues. One is that the drop down list appears far to the right, off screen. So that is likely CSS or an issue with the old V7 code.
The other issue is that results aren't being returned to the drop down. So maybe a bad URL (or again something in V7 that was already fixed in V
So sorry we don't have a solution.
If you wanted to upgrade to V8 with support, we can take another look.
Leave a comment:
-
Hi David,
The site is here: https://www.infomed.ch
In the header of every page there is a "Suche" toggle (top right corner), click on that to open a search field. After you submit your search like that you end up on the SERP with more search options.
Best
Philipp
Leave a comment:
Leave a comment: