This topic is locked
[SOLVED]

 AJAX search popup is limited to 50 characters?

4/13/2011 3:37:01 AM
PHPRunner General questions
D
david.fms author

The search using the AJAX popup is limited to 50 characters?

If so, I can increase that value, for example, to 100 characters or more?

Greetings

Sergey Kornilov admin 4/13/2011
D
david.fms author 4/14/2011

Good inspiration. Thanks!!!

D
david.fms author 4/14/2011

I read and I applied the suggestions but what it does is change the size of the field. My intention is that the user can type more characters in the search popup with AJAX (50 or more). Is it possible? Greetings and thanks again.



Uploaded with ImageShack.us

J
Jane 4/14/2011

Hi,
you can increase width of search suggest in the generated include/style.css file.

Find and edit search_suggest class.

D
david.fms author 4/15/2011

OK ... And I extended the popup ... Now, how I can write more characters?. The example is "Consellería de Presidencia e Administración Públic" and I want to see "Consellería de Presidencia e Administración Pública e Xustiza"

Sergey Kornilov admin 4/15/2011

Here is how you can do this.
Open C:\Program Files\PHPRunner5.3\source\searchsuggest.php file in any text editor. Find the following two lines

$str = substr($value,0,50);


and

echo "<b>".(substr($value,0,strlen($searchFor)))."</b>".(substr($value,strlen($searchFor),50-strlen($searchFor)))."\n";


Replace 50 with some other value i.e. with 100. Rebuild your project after that (make sure you do a full rebuild).

D
david.fms author 4/18/2011

Works! Thanks!