这是indexloc提供的服务,不要输入任何密码
Skip to content

No Search output [solved] #16

@GoogleCodeExporter

Description

@GoogleCodeExporter
The search doesn't output anything.

Using: anywhereindb_0_33 on Windows 7 with any Chrome and Mozilla.

Please provide any additional information below.

Firebug shows:
TypeError: text is null
text = text.replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(search_text_d, 
"<s...


Solution:
surround line 590 (in the text_processing function) a check for a valid text, 
i.e.:
if ( text && 0 < text.length ) {
   text = text.replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(search_text_d, "<span class=hg>\$1</span>");
}


There's also another typo at line 463, with consequences:
   <form id=search action="<?php echo $_SERVER['PHP_SELF'];?>" method=POST>
should read:
   <form id=search action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">

Cheers,
Marcello


I've attached the full working code. Thanks a lot for your work.

Original issue reported on code.google.com by marcello...@gmail.com on 4 Nov 2014 at 2:13

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions