close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Getting rid of the "no results found" message

Thread began 1/17/2010 8:54 pm by djogrady376174 | Last modified 1/19/2010 12:47 am by djogrady376174 | 1671 views | 4 replies |

djogrady376174

Getting rid of the "no results found" message

Search for Boss works great. The only thing I don't like is that, when I put the search box and the results on the same web page, the "no results found" message appears under the search box when the search page is first opened. Is there a way to get rid of the "no results found" message in this situation?

PS: I use several Webassist products and think they're great. The support forum is also extremely helpful. Thanks.

Sign in to reply to this post

e394610

Answer to this question?

The search is working perfectly, but when someone comes to the page with my search box for the first time they see "No results found matching your search". Once someone searches it goes away unless there are no results.

Any help to have this No results found matching your search hidden on the initial search page load would be extremely grateful.

Thanks.

Sign in to reply to this post

Office Guy-172461

The support hours are in Pacific Standard Time, WA support will be back in about 3 more hours.

BTW it is considered bad practice to answer privately because it denies others in the forum the benefit of the answer. You can subscribe to the thread if you want an email notification.

Sign in to reply to this post

Jason ByrnesWebAssist

The code that produces the no results error message looks like:

php:
<?php

  
if ("".($Search1_BOSS_all)  ."" == "0") {  // WebAssist Show If
?>
<div>No results found matching your search.</div>
<?php
  
// ("".($Search1_BOSS_all)  ."" == "0")
?>



assuming your search from uses the POST method, you could change that to:

php:
<?php if($_SERVER["REQUEST_METHOD"] == "POST")     { ?>

<?php
  
if ("".($Search1_BOSS_all)  ."" == "0") {  // WebAssist Show If
?>
<div>No results found matching your search.</div>
<?php
  
// ("".($Search1_BOSS_all)  ."" == "0")
?>
<?php 
?>



to hide the error on initial page load.

Sign in to reply to this post

djogrady376174

getting rid of the "no results" message when the search and results page first loads

Perfect! That did the job.
Thank you Jason.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...