Download & Extend

paging breaks livesearch in internet explorer

Project:Live Search
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The module is working in all browsers I have tested on (incl safari on windows and mac, firefox 3 in windows and mac and opera on mac) except for IE7 on windows XP. When I click on paging at the bottom of the search results in IE7 it takes me to a new page with a url of /livesearch/node/search?page=1

The content displayed on the page is { "found": true, "results": "\x3cdl class=\"search-results\"\x3e \x3cdt class=\"title\"\x3e\x3ca href=\"http://192.168.0.123:8888/openvpms-developers-version-11-vpms-web-application-now-available\"\x3e[OpenVPMS Developers] Version 1.1 of the VPMS Web Application is now available\x3c/a\x3e\x3c/dt\x3e \x3cdd\x3e\x3cp\x3e... searching products can trigger an \nexclusive Identity \x3cstrong\x3esearch\x3c/strong\x3e \n [ OVPMS-714 ] \n- Scheduling - date resets to current day when ...\x3c/p\x3e\x3cp class=\"search-info\"\x3eForum topic - tanderson - 03/20/2008 - 16:01 - 0 comments - 0 attachments\x3c/p\x3e\x3c/dd\x3e \x3cdt class=\"title\"\x3e\x3ca href=\"http://192.168.0.123:8888/page-not-found\"\x3ePage not found\x3c/a\x3e\x3c/dt\x3e \x3cdd\x3e\x3cp\x3e... bar at the top of the page \n searching using the \x3cstrong\x3esearch\x3c/strong\x3e box in the upper right hand side of the page \n alternatively you may ...\x3c/p\x3e\x3cp class=\"search-info\"\x3ePage - rmyoung - 12/02/2007 - 22:19 - comments - 0 attachments\x3c/p\x3e\x3c/dd\x3e\x3c/dl\x3e\x3cdiv class=\"pager\"\x3e\x3ca href=\"/livesearch/node/search\" class=\"pager-first active\" title=\"Go to first page\"\x3e« first\x3c/a\x3e\x3ca href=\"/livesearch/node/search\" class=\"pager-first active\" title=\"Go to previous page\"\x3e‹ previous\x3c/a\x3e\x3cspan class=\"pager-list\"\x3e\x3ca href=\"/livesearch/node/search\" class=\"pager-first active\" title=\"Go to page 1\"\x3e1\x3c/a\x3e\x3cstrong class=\"pager-current\"\x3e2\x3c/strong\x3e\x3c/span\x3e\x3c/div\x3e" }

The other links in the search results work fine.

Comments

#1

Title:paging breaks livesearch in IE7» paging breaks livesearch in internet explorer

This also occurs in IE8, haven't been able to check IE6 yet.

#2

This may be from IE's behavior of extraneously "normalizing" a relative path contained in an href to an absolute path.
Try the following: on line 53 in modules/livesearch/livesearch.js, look for 'a[@href^=' and change it to 'a[@href$=' and see if it works in IE and other browsers.

The last time I checked, Live Search works with IE6.

#3

That change created the same problem in the other browsers. In IE it was staying on the right page but injecting the original search query instead of the new page into the search results.

#4

Can you try and see if 'a[@href*=' works?

#5

That works in other browsers but in IE still just jumps to the top of the initial injected page.

#6

So this problem is both on IE7 and IE8 (Beta 2)? If so I'll try to debug this on IE.

#7

I've had a chance to check IE6 as well, also occurs in that browser.

That's right, behaviour seems the same in IE8 beta2.

nobody click here