Highlight Text And Right Click
I have a project on making a UI of a Web page that allows users to:
1. select any text by highlighting it, and
2. do some action on it by right-clicking on the highlighted text and choose an action among those options presented by the context menu items that appears.
3. send the chosen action along with the text and its attributes to the server as the user clicks on the desired menu item.
Interestingly, the next stage is to make the menu items customised by the type of the selected text, e.g. a link or an ordinary body text. Does anyone know if all these can be done fully using ASP.Net at the server side?
View Replies
ADVERTISEMENT
how to highlight the search text on the asp page when its displayed after being fetched from database[using LIKE]
any vbscript technique?
View Replies
View Related
How do I highlight a split function text?
code ....
View Replies
View Related
I want to write a asp script, basically, that has drop down box in the form, if user select Yes, on the same page, a hidden textarea will show up, if user select No,
then nothing happen.
so far, my code is unsuccessful, in addition, I also got syntax error on the response.write line anyone has idea. Code:
View Replies
View Related
let's say that I want to highlight some words or even a square of a table in yellow...how would i go about doing that? What code would work to do what I need?
View Replies
View Related
currently doing a wep application that contain of search engine. i did browse through some web applciation's search engine, notice that they can highlighted the keywork for searching when they display the search result.
example,
when i enter keyword 'test' in my search engine and preform search, let say i found a file called testing.asp, i want the word test to be highlighted. may i know how can it be done?
View Replies
View Related
I can't figure this out. I need to make an array and highlight strFind: Code:
View Replies
View Related
There is something wrong in this. I couldn't figure it out.
I have three: Keyword, Keywordb, Keywordc
I had inserted: strSearchFor, two, three (same function)
Code:
View Replies
View Related
Is there a way using VbScript or Javascript to have an imagemap highlight on a mouse over event? Doesn't matter if it highlights the entire imagemap area or just outlines it, but I need a way to indicate that the user is over a spot other than just a cursor change.
View Replies
View Related
wondering if its possible to have some kind of searched word highlight! IE. every thing it throws up in return of search it will highlight why it has brought it up! so if search "a" all "a" in return results would be highlighted.
View Replies
View Related
All the HTML contained within the <BODY> tags is contained within a DB I have for a CMS. I have 2 pages... CURRENT_LIVE and LAST_UPDATED... I want to compare the content of both and highlight the changes... is this possible? if so, how?
View Replies
View Related
I currently have a working search w/highlighted results page. My problem is that there is HTML stored in the text that is being searched and whenever the searched keyword is within HTML, it throws off the rest of the page.
I would happily throw away my code and use another if I could get it to check for things like <> and avoid breaking them. Ideally what I tried to do was display approximatly 10 words on either side of the highlighted keyword, just to give it some context, but I have thus far failed to get this to work properly.
View Replies
View Related
This code highlights words entirely. I look for the word nation it highlights words like abomination. So I only want the function to highlight whatever I'm looking for. Code:
View Replies
View Related
Im doing a text search, and i need to highlight the word which is being searched for in the results page. How do i do that?
View Replies
View Related
I'd like to add to my search function of my asp site the possibility to highlight in the result pages all the words searched.
View Replies
View Related
I have a database with multiple records which are often updated. I am trying to display the latest entry in a certain way (with css div styles) and then list the rest of the entries another, less elaborate way.
Is there a good / preferred way to do this? Right now I have it so that it SELECTS TOP 1, displays that in a certain DIV, and then SELECTS * - however what is wrong with this is that it displays the first record twice.
View Replies
View Related
I understand that this forum uses some sort of cookie system to detect which threads have been read by users. I am trying to accomplish the same thing. My thought is to have a cookie with two keys: one with the last activity of the user, and the other with the posts that have been read.
Now, the only problem, is that I more than likely will need to update these reads threads based on a date/timeframe criteria, correct? Has anyone wrote one of these? In my threads table, I have a column named 'forumLastPostID' for each thread.
View Replies
View Related
I am new in asp. I have two html files. I like to write
code to compare those two files. I like to show the
difference as highlighted area.
Example: File 1 contains:
<html><body> Compare Test</body></html>
File 2 contains:
<html><body> Compare Test modyfied</body></html>
I like to make either the word "modyfied" highlighted or
the whole line highlighted on File2.
View Replies
View Related
I have a little function to highlight text if it exists.
Function Highlight(vFind, vSearch)
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = vFind
RegEx.IgnoreCase = True
Highlight = RegEx.Replace(vSearch, "<span class=""Highlight"">" & vFind &
"</span>")
Set RegEx = Nothing
End Function
The only problem is, that if I search for "something", "something" appears
highlighted when the string being searched actually contained "Something".
This is not about case sensitive searching, this is about showing the actual
match rather than what was being searched for. Code:
View Replies
View Related
I have an ASP search function which, after typing the search term, searches HTML pages and creates a list of links.
The problem is that I do not know how to code so the search term is highlighted in red after the user clicks on the link to view the HTML page.
View Replies
View Related
I have created an ASP.NET page that allows the user to page through a result
set. I need to expand on this. On that same page I a filed where the user can
type in a search string. When they click a button ALL the results will be
returned and the closest match to the search string will be highlighted. The
approach I am taking to page the data is to put the keys/indexes into an
array then create another data reader based on those results to display the
actual data. There may be a better way, if there are any suggestions.
Bottom line I need to find what page the search string is on so I can
highlight it. I guess I would have to calculate what page that record is on,
but I can’t wrap my head around it. Here is some code that I use for the
paging: Code:
View Replies
View Related
I am trying to push the user to a particular page based on a click of a button.I cant seem to get the syntax correct. This is what I am using right now.
<INPUT TYPE="button" VALUE="Return to Entry Form" onClick=href="/LongDistance_Tracking/Longdistance.asp">
View Replies
View Related
<FORM Action="<%=Request.ServerVariables("SCRIPT_NAME") %>" Method=POST>
<Input Type=Hidden name="CurrentPage" Value="<%=CPage%>" >
<% If CPage 1 Then %>
<Input type=Submit Name="Submit" Value="Previous">
<% End IF%>
<% If CPage <TotPage Then %>
<Input type=Submit Name="Submit" Value="Next">
<% End If %>
</FORM>
this function i want to call when i click an image. i mean i have previous and next image in the page. when i click previous image i want to call this function.
View Replies
View Related
I'd like to know if it is possible to have a click facility in an email which once pressed forwards the contents of the email to a website
The user who uses this facility is then asked to enter the email address to forward the email. I want to implement such a facility so that I can capture the email address of the one to who the user fowards to
View Replies
View Related
Pls look at this code, i want to call this function from an image
click event.
CPage=Cint(Request.Form("CurrentPage"))'get CPage value from form's
CurrentPage field
Select Case Request.Form("Submit")
Case "Previous"'if prev button pressed
CPage = Cint(CPage) - 1'decrease current page
Case "Next"'if next button pressed
CPage = Cint(CPage) + 1'increase page count
End Select
View Replies
View Related
I have a web form with a button and a number of text fields with validators. When users on dial up connections use the form and click the button the progress bar in Internet Explorer will slowly works it way over and the page status will say done but nothing ever happens. If the user clicks the button a second time all is well. The page works fine on a high speed connection.
View Replies
View Related
Can I have this function?When a user click on a link, my ASP page generates a text file call test.txt containing a string of "This ia s test msg.", and then a download dialogue
appears.
View Replies
View Related
I want to display an image but i want it to change when i click on a button i've tryed used something like this:
onclick="this.page.image.c.src="<%=x2%>">
(the x2 variable cames from a db) ...
View Replies
View Related
This page is going to be a menu system and is dynamic so that the user can add items to their own menu.
I have it working but would like it not to show sub menu until the main item has been clicked by the user?? Code:
View Replies
View Related
what the code would be to stop someone from being able to get the right click menu so they can't view source, print or, save picture, etc etc.
View Replies
View Related
I've been using PHP for some time now and have noticed the big difference between asp and php. In php i have been using this code
<?PHP
if (!isset($_GET['p'])) { // no page specified -> load content from default.txt
include("includes/center.php");
} else { // page specified -> load content from relevant text file
include("./" . $_GET['p'] . ".php");
}
?>
so for example if i clicked on the hyperlink that had this value "index.php?p=member" it will open (preferrably include) the member.php page onto the index.php page. How would this script be written in ASP?
View Replies
View Related
I have a active server page where records are displayed from a query. The
display right now is read only. However, with text box this display can also
be edited. The first column shows category while the second category shows
category total sales.
I would like to double click on category field to get
to another asp page that would show the details of sales for that category
value double clicked.
My question is: If there is any double click event that would allow me to
pass values to open another asp page.
View Replies
View Related
I'm looking to have an image (say, icons for a particular document) and when it is clicked on, I would like the "Open/Save/Cancel" dialogue to open up.
I was told using an ADO data stream was the way to go, making the app an unknown so the dialogue opens:
Dim FileName
Dim FullFileName
FileName = "MyWordDocument.doc"
FullFileName = "C:WebfilesMyWordDocument.doc"
Response.ContentType = "application/x-unknown"
Response.Addheader "Content-Disposition", "attachment; filename=" & chr(34) & FileName & chr(34)
Response.Binarywrite GetBinaryFile(FullFileName)
Function GetBinaryFile(ByVal FileSpec)
Const adTypeBinary = 1
Dim objStream
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open()
objStream.Type = adTypeBinary
objStream.LoadFromFile (FileSpec)
GetBinaryFile = objStream.Read()
Set objStream = Nothing
End Function
Is there a better way to do this? Also, I grab the file name from a SQL query which is then populated to a datagrid - the image name/etc is populated dynamically - how is this done in ASP? Is that with an anchor tag?
<asp:TemplateColumn ItemStyle-HorizontalAlign="Center"><ItemTemplate><asp:Image ID="thumb" runat="server" /></ItemTemplate></asp:TemplateColumn>
View Replies
View Related