PDA

View Full Version : Paging and querystrings



crichard
12-08-2009, 02:20 PM
Hello

I have an issue with Zoom's paging links on my website.

My site is database driven and uses querystrings. Zoom search also uses querystrings and this causes a problem in the pagine section. Two ? are then used, which causes a page error. Below is an example of the link associated to the paging of the search results.

Ex. http://www.xyz.ca/html/index.aspx?lang=en&content=-2?zoom_query=police&zoom_page=2&zoom_per_page=10&zoom_cat=-1&zoom_and=0&zoom_sort=0

Is there a way to tell zoom to use & instead of ? when building the links if query parameters are already present ?

Thanks !

wrensoft
12-08-2009, 05:37 PM
You posted this in the V4 section of the forum. We don't support V4 anymore. Further you are using a file called, index.aspx, which is not our script.

Are you wrapping our script in your own script?

Do you have the link back URL set in Zoom?

Can you try and reproduce the problem in V6 of Zoom, there is a some chance we have already fixed it during the last few years of development.

crichard
01-07-2010, 02:54 PM
Hi

My company does not want to upgrade ...

Yes, the Zoom script is being wrapped in my web.

My link back is set to http://www.forces.ca/html/index.aspx?lang=en&content=-2.

I also have problems with my search results not displaying accented characters and not saving them in the log file.

I will try to download a trial version of v6.

Thank you.

Ray
01-07-2010, 11:03 PM
My link back is set to http://www.forces.ca/html/index.aspx?lang=en&content=-2.

I went to the search page here and I could not reproduce the problem you described in your original post. The pagination links down the bottom ("Result Pages: 1 2 3 ... Next >>") seem to be correctly formed with the use of ampersand instead of question mark to add the zoom parameters to the URL.


I also have problems with my search results not displaying accented characters and not saving them in the log file.

You need to give us some examples to illustrate what you mean. I can see that you have accent insensitivity enabled on the english search page. You have a seperate French search page here however:
http://www.forces.ca/html/search_fr.aspx

And accented characters show up fine there.

It seems like you may have modified our scripts enough to make it switch indexes (as the above french search page goes to http://www.forces.ca/html/index.aspx?zoom_query=RECHERCHONS+&zoom_and=0&zoom_per_page=10). So really, you have modified the script beyond what we could possibly tell you it could be doing.

crichard
02-25-2010, 01:40 PM
Thank you for the reply. Yes, I manually parse the urls and replace the second ? by an ampersand. I've modified the code since writing the post.