Ask a Question related to ASP, Design and Development.
-
John Smith #1
website search
Hi,
I'm trying to nicely display the results of a search but some results are
longer than others in length. Is there a way of only displaying the first 30
characters of a search result (i.e. enough to make sure they know what it is
but not enough to mess up the formatting of the page) ?
Any online tutorials etc. much appreciated.
John Smith Guest
-
website search functionality
I'm using ASP and want to implement a search functionality where a user can enter a string to search and find any matches in the website for the... -
yahoo search on my website
Hi, My website only works when the name of the main page is default(in my case) or index. When I do a Yahoo search on my own website the name that... -
Search Function on Website
Hi All, I wish to add a search function on the menu bar for users to search MY site, not a Google or other search engine link. I was going to... -
#25786 [NEW]: PHP website uses cookies to remember last search phrase in search box
From: tipsen at imada dot sdu dot dk Operating system: - PHP version: Irrelevant PHP Bug Type: Unknown/Other Function Bug... -
HELP! Simple website search
I want to add a search facility to my site. How do i go about this? Thanks in advance, JimR99 -
David C Holley #2
Re: website search
Try a function something like this...
function truncateString(strString)
if len(string) > 30 then
truncateString = mid(strString, 1, 30)
else
truncateString = strString
end if
end function
John Smith wrote:
> Hi,
>
> I'm trying to nicely display the results of a search but some results are
> longer than others in length. Is there a way of only displaying the first 30
> characters of a search result (i.e. enough to make sure they know what it is
> but not enough to mess up the formatting of the page) ?
>
> Any online tutorials etc. much appreciated.
>
>David C Holley Guest
-
Atrax #3
Re: website search
> Is there a way of only displaying the first 30
Left()> characters of a search result
see the VBScript docs at [url]http://msdn.microsoft.com/scripting/[/url]
________________________________________
Why? Why was I programmed to feel pain?
Atrax. MVP, IIS
[url]http://rtfm.atrax.co.uk/[/url]
newsflash : Atrax.Richedit 1.0 now released.
click the link above!
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Atrax Guest
-
Evertjan. #4
Re: website search
Atrax wrote on 04 jul 2003 in microsoft.public.inetserver.asp.general:
Using Left what is Left out is the stuff on the Right,>>> Is there a way of only displaying the first 30
>> characters of a search result
> Left()
so that what is Left is the stuff on the Left ?
Right ?
;-)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest



Reply With Quote

