Highlighting

I don't know if I accidentally play around with the script. But now it's showing error:

Quote:
Microsoft VBScript runtime error '800a139a'
Unexpected quantifier
/wheelofgod/showverse.asp, line 210

Line 210 shows:

Code:
strText = mobjRegExp.Replace(strText,strReplace)

View Replies


ADVERTISEMENT

Highlighting Keywords

I've created a little search engine that works fine, but I want to highlight the keywords in an article.
Using the replace function is OK, but its not very good when covering different cases. Its fine on single word searches but no good with multiple words.
eg. if I search for "dog", I can do a replacement on "dog", "DOG" and "Dog" using the replace function.
If I was to search for "black dog", I need to cover all possible variants. ("Black Dog", "BLACK DOG", "black dog", "Black dog", "black Dog")
Is there any way of getting this to work?

View Replies View Related

Color Highlighting

Ive created a web page that queries a db and i have that all working fine. What i dont have though and would like to be able to do is get the page to highlight rows according to one colums value, ie

Colum1 Colum2
Row 1 50 Test <-- would like to the be highlihted lite blue for instance
Row 2 90 Test2 <-- would like this to be highlighted red for instance

View Replies View Related

Highlighting The Column

I have a SQL query that produces a table which displays account numbers and the amount owed on those accounts.

the page that displays that table is written with ASP. Does anyone know how can I highlight the rows in the table where account numbers have more than 7500 dollars in amount owed? Code:

View Replies View Related

Highlighting A Word

i am working on an application...where i have to search for a string in the database field or text files.when the search finds the string i want it to be highlighted when it showas the result on the asp page.

eg:
iam searching for a skill in the resumes...take JAVA...i want the resulting resume on the asp page with the JAVA string highlighted

View Replies View Related

Script Context Highlighting

point me in the direction of a function that will parse
a "code" output and colorise the context of the script?

eg - vbulletin style [code] output

View Replies View Related

Text Highlighting Issue

I am doing search application in ASP. I want to highlight the matched text in the search result, for that operation I am using the following function Code:

View Replies View Related

Highlighting New Entries In My Asp Table

I have setup a simple site in which users input data to an access database, and then the database results are shown on another page in a table. One of the fields in the databse is Date Added, using the date/time data type.

I would like the table to show new results with a different background colour for a period of time, say one week? Code:

View Replies View Related

Highlighting Search Text

Does anyone use a funtion to highlight search terms (if they have a search facility on their site). Basically, I would be sending the search terms from a form field into a results page.

If there are results I would like the search terms to be highlighted. One problem that I could think while using "replace" is that capitalisation would not be maintained.

View Replies View Related

Highlighting Search Terms

I have a simple script which boiled down to highlighting search terms... Code:

if Trim(Request.QueryString("search"))<>"" then
cont = Replace(cont,Request.QueryString("search"),"<span style=""background-color:#ff0"">"&Request.QueryString("search")&"</span>",1,-1,1)
end if

this worked fine, however if the string I was searching was within an <a> tag, the inevitable would happen and an error would come up. I was wondering if anyone knows a way or if there is a script readily available to tackle this issue?

View Replies View Related

Highlighting + IFrame Question

The very same page has 2 iFrames opening another page called tripledemoduo.asp. So there are 2 tripledemoduo.asp's opening within the 2 iFrames. Within a tripledemoduo.asp page there are the textboxes for inserting the keywords.
See the picture.

is it possible to move out the 6 textboxes from the iFrames and make 1 set of 6 instead of 2 sets of 6? That would make my life easier because I use this to compare two texts side by side by searching keywords. For example I put one keyword in red in both iFrames.

View Replies View Related

Search Result Text Highlighting Issue

i am developing a search engine(ASP with SQL SERVER) for my project . My objective is to search for a data and it should display the result and highlighting the search text in different color. But when i use the search text with more than one word, the result is highlighting only the last word of the search text.

Example - If i search for "Opal" , the search result highlighting all the words with "opal", But when is search "Opal Service", the search result is highlighting only the "service".

Here the "Opal" and "service" are different identities, i will search these two words with AND condition . Code:

View Replies View Related

Site Search Script With Paging And Highlighting

I am looking for Site Search Script, which should include paging of results and highlighting the search text.

Just like search using in this forum. Its sould have paging and highlighting the results under each hyperlink....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved