View Full Version : Make my web on top of everything/copy to clipboard

12-18-2005, 04:30 PM
I have a site just for me that gets information from the database and reveals it to me:
1. i want the window to always stay on top of everything and not minimize itself when pressing on another application on the computer.
2. there is a form that gets only one answer which i want it to automatically copy it to clip board.

Is it possible?


12-18-2005, 05:23 PM
i) suggest an iframe in a div

2) access to clipboard IE only

12-18-2005, 05:51 PM
hi, Thanks for the reply!
i don't know javascript so well... so can you broaden a little more? here is my code:

<%@ Language=VBScript %>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<%If Request.QueryString("m") = "addq" Then%>
<form method="post" action="addq.asp">
Question: <input size="100" type="text" name="q"><br>
Answer: <input type="text" size="100" name="a"><br><br>
<input type="submit" value="add question">
<form method="get" action="trivia.asp">
question: <input name="q" type="text" size="100"><br><br>
If Request.querystring("q") <> "" Then
Function strFormat(str)
If IsEmpty(str) or IsNull(str) Then Exit Function
Str = Replace(str,"<","&lt;")
Str = Replace(str,">","&gt;")
Str = Replace(str,"'","'")
Str = Replace(str,"""","&quot;")
Str = Replace(str,chr(13),"<br>")
Str = Replace(str,"'","'")
strFormat = str
End Function
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.jet.oledb.4.0;Data source=" & Server.MapPath("db/db.mdb")
Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Open "SELECT * FROM answers WHERE question LIKE '%" & strFormat(Request.querystring("q")) & "%'", Conn
If rs.EOF Then
Response.Write "No answers have been found<br><br>"
Response.Write "<b>" & rs("answer") & "</b><br><br>"
End If
Set rs = Nothing
Set conn = Nothing
End If
End If
If Request.QueryString("m") = "alrdyexst" Then
Response.Write "<font color=red>This question was already reported</font><br><br>"
End If
<a href="trivia.asp?m=addq"><b>add answer</b></a>&nbsp;&nbsp;<a href="trivia.asp?m=edq"><b>edit answer/question</b></a>

I want it to copy the answer to the clipboard and i want the window to be always shown.

12-18-2005, 10:54 PM
anyone knows?

12-19-2005, 03:21 PM
anyone? its quite ergant.