[TYPO3-english] browsebox in indexed_search still not working

Patrick Schriner patrick.schriner at diemedialen.de
Thu Mar 8 14:59:00 CET 2012


> interestingly the href="#" doesn't get transformed into a valid URL...

It never is.

In my experience, the most frequent cause is: Two search boxes (e.g. on  
the right, and above the content) - and the submit fails miserably (or  
behaves strangely), due to a clash of IDs.

Patrick

On Thu, 08 Mar 2012 14:43:59 +0100, Stephan Bernhard <grac at gmx.ch> wrote:

> @ philipp
>
> thanks for your reply.
>
> here is the full code for a browserbox with 10 pages on the search page:
>
> <div class="tx-indexedsearch-browsebox"><p>Anzeige der Ergebnisse  
> <strong>1 bis 10</strong> von insgesamt <strong>68</strong></p>
> 	<ul class="browsebox">
> 		<li class="tx-indexedsearch-browselist-currentPage"><strong><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='0';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 1</a></strong></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 2</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='2';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 3</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='3';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 4</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='4';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 5</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='5';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 6</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='6';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Seite 7</a></li>
> 		<li><a  
> onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return  
> false;" href="#">Nächste &gt;</a></li>
> 	</ul>
> </div>
>
>
> interestingly the href="#" doesn't get transformed into a valid URL...
>
> stephan
>
>
>
>
> On 08.03.2012 13:54, Philipp Gampe wrote:
>> Hi Stephan Bernhard,
>>
>> Stephan Bernhard wrote:
>>
>>> @ philipp
>>>
>>> JS is enabled and running (t3jquery 2.1.1) on all pages.
>>> can't see any JS error in firebug.
>>>
>>> is there an incompatibility between t3jquery and JS from  
>>> indexed_search?
>>
>> Maybe you accidentally removed the core JS?
>>
>> I am not a JS expert and I last used indexed_search long time ago. I  
>> can not
>> help you any further than that. It was just a wild guess which looked  
>> like a
>> very likely problem.
>>
>> Please check if you have the following JS snippet for onclick on the A
>> element:
>> document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch_freeIndexUid').value='-1';document.getElementById('tx_indexedsearch').submit();return
>> false;
>>
>> You can test this by executing it directly with the JS console of your
>> browser.
>>
>> At least that works for me, but it works for me anyway (TYPO3_4-5-dev).
>>
>> Best regards


More information about the TYPO3-english mailing list