Forums

search and pagination problem

Sharu 28 Sep, 2014
Hello!
In (list display-->table) when my code was:

<div style="float:right">_PAGINATOR_LIST_</div>
<div style="float:right">_PAGINATOR_NAV_</div>

It works well
But when I add search, pagination stopped working

<div style="float:left"><input type="text" style="width:250px" name="srch" placeholder="Search...."  /><input type="submit" class="button" style="margin:0px;padding: 5px 15px;" name="submit" value="Search" /></div>
<div style="float:right">_PAGINATOR_LIST_</div>
<div style="float:right">_PAGINATOR_NAV_</div>
Sharu 28 Sep, 2014
search only works on a single page in the pagination. Or it can search through all the pages of pagination? Please write example if possible
Sharu 29 Sep, 2014

search only works on a single page in the pagination. Or it can search through all the pages of pagination? Please write example if possible


I was wrong, the search works well, only pagination does not work when there is a search
zerofusion512 30 Sep, 2014
Hello Sharu,

I would like to do search of the list that chronoconnectivity loads.

I have copied your code:

<div style="float:left"><input type="text" style="width:250px" name="srch" placeholder="Search...."  /><input type="submit" class="button" style="margin:0px;padding: 5px 15px;" name="submit" value="Search" /></div>


But when I click on search, no action applies.

Is this automatically? Or I should modify anything else?

Thanks in advance.
Sharu 30 Sep, 2014

Hello Sharu,

I would like to do search of the list that chronoconnectivity loads.

I have copied your code:

<div style="float:left"><input type="text" style="width:250px" name="srch" placeholder="Search...."  /><input type="submit" class="button" style="margin:0px;padding: 5px 15px;" name="submit" value="Search" /></div>


But when I click on search, no action applies.

Is this automatically? Or I should modify anything else?

Thanks in advance.



Hi zerofusion512,

Yes, first go to the "Front list" tab. Then scroll down to the "Searchable" box and enter there fields you want to search:


Article.firstname
Article.city
Article.age


where "Article" is а Model title in "Models" tab
Max_admin 01 Oct, 2014
Hi,

The pagination should still work when you have an active search, what's the problem you face exactly ? and how do you tell that the search is not working ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Sharu 01 Oct, 2014

Hi,

The pagination should still work when you have an active search, what's the problem you face exactly ? and how do you tell that the search is not working ?

Regards,
Max



Hi,
Search is working well. (no problems with it)
Pagination without search input is also working well.
But when I add them both like in code:

<div style="float:left"><input type="text" style="width:250px" name="srch" placeholder="Search...."  /><input type="submit" class="button" style="margin:0px;padding: 5px 15px;" name="submit" value="Search" /></div>
<div style="float:right">_PAGINATOR_LIST_</div>
<div style="float:right">_PAGINATOR_NAV_</div>

Pagination stops working. It can be seen, but when you choose from the list, nothing happens.
Sharu 01 Oct, 2014
I mean "pagination navigation" works, but the "pagination list" not works. When selecting limits in the "pagination list" nothing happens.

<div style="float:right">_PAGINATOR_LIST_</div>
Max_admin 02 Oct, 2014
Answer
1 Likes
Please try to change the search button name from "submit" to something else, let me know if this makes any difference ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Sharu 02 Oct, 2014

Please try to change the search button name from "submit" to something else, let me know if this makes any difference ?



thanks, it is working after changing the search button name
This topic is locked and no more replies can be posted.