Hide Hyperlinks
Can anyone provide the code to hide hyperlinks (change to background colour?) if the files they link to do not exist?
View RepliesCan anyone provide the code to hide hyperlinks (change to background colour?) if the files they link to do not exist?
View RepliesI have an ASP Session where I add values on Page1 and then use them on Page2 e.g Session("newsid").
What I want to do is when I click on a specific link, clicking on the link adds a value to the Session and then redirects the user to a new page, but nothing I do seems to allow me to do this. The code where I want it to be done is as follows: Code:
I posted awhile back about displaying line breaks in ASP pages from MS Access Database records which was solved very well with the use of a replace function. is there a replace function to display hyperlinks mixed in with regular text in a memo field? If so, could someone tell me what the code is?
I use this for line breaks:
Code:
MemoField = Recordset1.Fields.Item("ArtText").Value ' Field from database
MemoField = Replace(MemoField,chr(13) & chr(10), "<br>") ' build in html line returns
and then:
Code:
<p align="left"><%=MemoField%> </p>
Can anybody help me understand why these two examples do not work? The database has www.domain.com in it.
<a href="http://<% rs('URL') %>"><% rs('URL') %> </a>
<a href="mailto: <% rs('e-mail') %>"><% rs('e-mail') %> </a>
My other question is how should I store hyperlinks in my database? I'm assuming text but should I add the http:// there as well?
Is there any way to how to put hyperlinks in a (flex/hflexgrid)?
View Replies View RelatedSay for instance that I have 2 frames and I have code in one. That code is returning information from a database. In that database there are hyperlinks to images. Upon clicking that hyperlink how do I force the image into the other frame?
At present It opens appears to go to a new page, but everything is coded in one ASP page. So I have to click back to select another image? I want to be able see both the database and image so I dont have to go back and forth
I need to format each row being returned in a recordset as
a hyperlink. One of the fields being returned is the
subject of a message that my hyperlink will show. When
the hyperlink is clicked then the ASP page loads further
message details of that link. Does anyone know how to do
this?
I added a column to my Access database and defined it as hyperlink.
I added some URL in the fields and i was able to see the underline under each address.
In my code i added the following line :
Response.Write("<td align=right>" & oRS("info").Value & "</td></tr>")
(The hyperlinks defined in my database as info).
I'm able to see the hyperlink when i retrieve all other data but it appears as
#http://www...asp# and with no underline what is the reason and how can i change this ?
<%
' Loop through the array holding the result set and display the data
For iCounter= varC1Begin to varC1End
Response.Write("<a href=prices.asp?manuf=" & arrResultSet(0,iCounter) & ">"
& arrResultSet(0,iCounter) & "</a><br>")
Next
%>
In the above Response.Write statement arrResultSet(0,iCounter) displays the
manufacturer just like it should.
However, within the hyperlink, if a manufacturer has 2,3, or more words, it
will only show the first word. Anything after the first space is ignored.
Why?
I'm writing a company intranet site,and on the home page,I'd like there to be links to some of the software that the employees frequently use on their own computer.This will be the inducement to get them to use the intranet home page as their default home page, and visit it frequently.
For example a program which is under:
"C:Program FilesNow SoftwareNow Up-to-DateNUD.exe"
if I write that link into the hyperlink,it will not work,because the hyperlink also adds the url as a prefix to the link, so it will say
"http://www.url.com/C:Program FilesNow SoftwareNow
Up-to-DateNUD.exe"
im currently trying to generate a list of links to files held within my database.The file itself is a pdf
Im currently using this code :
Code:
response.write "<A HREF='" & RS("file") & "'>" & RS("linkname") & "</A>"
and its giving me the error:
Microsoft VBScript runtime error '800a000d'
Type mismatch
/irtwebsite/welcome.asp, line 27
I'm using Visual Web Developer Express 2005 to get me started - probably a bad idea I'm told. Anyhow, I've connected a drop-down list ('Components') to a column in a SQL DB, and, upon selection, the resulting gridview is being generated as I hoped (with the corresponding 'Applications').
However, I would like each of these resulting rows in my gridview to be "clickable" as a hyperlink so that I can display each of the applications details on another page. If someone could enlighten me as to whether/not this is even possible, and if so, how?
anyone know some good ASP code to go through a page and test the hyperlinks to make sure that they are valid. Couldn't find anything good yet, but if someone knows of anthing.
View Replies View RelatedI'm trying to excecute all the hyperlinks on a webpage one by one with a specific order automatically, any suggestions/helps on that?
when a link is executed (clicked), a popup comes up asking you to open or save the document, is there a way to by pass that? And save the file automatically into a specified location?
I have a page which takes data in an HTML table, and exports it to an Excel file. It works fine, but I want several things about the spreadsheet to look different from the HTML version. Things like fonts and colors. I think I can use a style sheet for the latter, but I haven't figured out how to remove hyperlinks from some of the items. On the HTML page, the hyperlinks are useful, but I don't want the spreadsheet to have them.
So on my ASP page which builds the Excel file, I have this: ...
I pull file paths from a database that point to files on our internal server and create links to them. For Explorer this works...
File://servername/file/path/filename.snp
But not for FireFox.
I have a Submit button on a web page that runs the following hyperlink code below.
<p>
<a href="ProducsTotalBasket.asp?Remote_computer_name=<%=FP_FieldURL(fp_rs,"Remote_computer_name")%>&Committed=<%=FP_FieldURL(fp_rs,"Committed")%>">
<input type="submit" value="Click to Continue" name="ClicktoContinue"></a></p>
The hyperlink uses parameters that pass the value of the "Remote_computer_name" and the value of "committed" to a SQL statement that uses the values returned to update the underlying database.
The hyperlink code runs perfectly when I click on the submit button on the web page and updates the database however at that point I want the user to be redirected to a new page i.e. a second URL address.
I have a Submit button on a web page that runs the following hyperlink code below.
<p>
<a href="ProducsTotalBasket.asp?Remote_computer_name=<%=FP_FieldURL(fp_rs,"Remote_computer_name")%>&Committed=<%=FP_FieldURL(fp_rs,"Committed")%>">
<input type="submit" value="Click to Continue" name="ClicktoContinue"></a></p>
The hyperlink uses parameters that pass the value of the "Remote_computer_name" and the value of "committed" to a SQL statement that uses the values returned to update the underlying database.
The hyperlink code runs perfectly when I click on the submit button on the web page and updates the database however at that point I want the user to be redirected to a new page i.e. a second URL address.
I need a menu in one of my asp pages. A click on one hyperlink should display its pull down menu of the other related hyperlinks ... as that appears in search option this forums. As an example... main link will be Alphabets. A click on it or on focus.. it should display a drop down list of other related hyperlinks.
View Replies View RelatedIs it possible to allow a person whom navigates to a particular page to type in a URL to a website they visit often, and have it be treated like code on the page itself for them to use it as a hyperlink?
View Replies View RelatedLets say I have a list of all of Jimi Hendrix's live shows. I can view the entire list at shows.asp. Now, what do I do if I just want to see shows for, lets say 1971?
I want hyperlinks on my page for each year and when I click the year, it generates the list of shows from that year. I dont want to make an ASP file for every year. How do I do this? Do I use a METHOD=GET and then do something like "shows.asp?year=1971"?
Basically, I'm trying to make a web-enabled database for band. So this is gonna get complicated. Like once I get a certain year, I may also want to view by states and so on.
I have an access database that holds among other info, web addresses and email addresses. They are in a hyperlink format in Access. When I run the ASP code, they disappear. I want to pull the data out, with the web addresses as hyperlinks.
View Replies View RelatedI currently us JavaScript to populate a hidden field with my scroll
location in order to retain the page location when I post the page back
to itself. However, I don't know how to pass that hidden field value
in a hyperlink as the value is always changing. Anyone have any
suggestions?
I'm trying to get my head round includes:
A page that works fine when called by name from the includes folder loses its images etc when called as an include in a page closer to the web root.
Thus:includes/page1.asp contains the following
img scr="../images/pic.gif"
This displays the picture when the page is viewed on its own. The picture url is http://localhost/school/images/pic.gif
But when includes/page1.asp is used as an include in page2.asp (in the web root) the image is not found because the url is http://localhost/images/pic.gif
Is it something to do with virtual versus absolute file paths?
I downloaded this simple function from 4Guys that uses RegEx to convert all URLs into hyperlinks. I need to alter it slightly so that the end of the link will be determined by a space (it does this now), or a "?", which ever comes first.
The problem is, I don't have a good grasp on RegEx patterns and I can't find how to do this. My pattern is below. Can someone tell me how to alter it to do this?
objRegExp.Pattern = "(www|http|S+@)S+"
I have certain Keywords stored in a table of the Database.All i need is when ever i find the Keyword in the webpage i need to have a link which opens up as a seperate page and give me the detail information from the database for the seleted keyword.
View Replies View RelatedI want to hide a submit button until all parts of the form are completed, the form contains 7 rows of radio boxes which are in groups(5 in each grp) when all are selected i want the button to appear but the page not needing to be refreshed, any ideas?
View Replies View RelatedI migrated a mysql DB into a MSSQL DB. In this DB all chars like "blank"
or @ are encoded in...whats it called in english? :)
you know, when a blank is "+" or @ is "%40"... :)
How do I resolve those "%20"s back into a readable character or a blank
with asp?
Plus: How do I convert blanks into + again to write them back into the DB.
i m passing value through href link.
like this
Code:
<% while not rs.eof
%>
<tr><td style="font-weight:bold">::</td><td ><a href="<%=rs("newsurl")%>&id=<%=rs("newsurl")%>" style="font-family:sans-serif;font-size:12px"><%=rs("headline")%></a></td></tr>
<%
rs.movenext()
wend
%>
and this value appers in address bar.any way to hide this whole value in address bar
I have an Invoice.asp page which displays the number of products ordered by size. I would like to make the 0 values invisisble on the page. Can any1 help?
Below is some code that applys what i would like to do this using text fields.
<%
If O("S4") = 0 Then
txtValue4 = ""
Else
txtValue4 = O("S4")
End If
%>
<input name="textfield4" type="text" value="<%=txtValue4%>" size="1" maxlength="3">
"O("S4")" is the recordset name and "txtValue4" is the initial value of the textfield.
Does anyone know how to alter this piece of code so that it applys to only the recordset "O("S4")" and not the textfield, alowing me to get rid of the textfields?
What's the best method to hide, or not show a certain record when doing a pull from a database, as in I am pulling a list with a dozen category's and I don't what to show one of them.
View Replies View RelatedIs possible to build a old ASP application in order to give to final user an application that hide its code?
View Replies View RelatedI need to hide a drop down box. For a car search page, if the user selects "NEW" the mileage drop-down dissappears, but if the user selects "USED" than the mileage drop down appears. I need this on the server side, so I would be needing to use VBScript.
View Replies View Related