Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




ASP Hyperlink With Javascript Problem...


I have text link on each record displayed. This needs to open a new small window for entering some data, I cannot seem to fix it ? Hyperlink Code as is: Code:




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Hyperlink
i have this

Response.Write Replace(Rs("Event_Details") & " ", vbCrLf, "<BR>") & vbCrLf

coming from access db.
how can i get that to make a hyperlink clickable as well??


Hyperlink
the way a field is currently displayed:

Currently the ASP code inside my page is simply:

<%=rs.Fields("Notes")%>

This is fine for displaying the text, but the text contains links which are
currently just being displayed as text. I'd like them to display as
hyperlinks that will open in new windows when clicked upon. so basically I
need some ASP code to detect text starting with http:// or www.etc and
automatically make them into hyperlinks.

Hyperlink
I've never understood how this works so hopefully someone can shed some light on this. If I wanted to create a hyperlink that would initiate a pop up "Save As" box, would I use JS? And secondly, doesnt anyone have any idea how this would be done. I didnt have any luck finding the answer to this when I googled it. I found one example of how someone was trying a similar technique but wasn't quite the same. The reason for this is Im making a simple webpage so some elderly people that arent computer savy can download some WMA and WAV files from my server. I dont want to explain they have to right click on the link.

Hyperlink
I have a field in my access DB, that is a hyperlink to an IP address.When I display that field on my site using ASP, the link doesn't come across.

This is displayed
162.136.133.36#http://162.136.133.36#

The code to display the field is below
response.write "<TD WIDTH=200>" & vbcrlf
response.write(rs("IP_Address"))
response.write "</TD>" & vbcrlf

Is there a workaround? I have also tried to make the field a text field
with HTTP:// in front of the rs("IP_Address") and that doesn't work either.

Hyperlink
I'm developing a basic management tool which allows an administrator to create links to files which an intranet user can then follow. I store the address of the file in my MySQL table. I retrieve this address and use a Response.Write to add it as a hyperlink to the page.

When I try to follow this link it goes nowhere. The page refuses to load.
I have taken several of the addresses and when I hard core them into the page without the response.write it works fine. When retrieved from the table however.

Hyperlink
I have created a field in the table which is called as link which is a hyperlink field in Access.Now i want all the records to have the same link and i dont want to keep on copying this link from one record to other record.How can i just tell the program to copy this link to all the records presend in the DB? for example the DB looks like this right now:

Name Person Link
asd asd www.aa.com
sfsdf asda ?

I want to copy the above link to the othre record too so that when i pull all the records the link should be present for the user to take the next step.

Access Hyperlink
I have an Access 2003 database with 1 table that has 2 fields - Date and Description. Both are plain text. This is the basis for a basic calendar displayed as a table using ASP. So far as plain text it works perfectly.

Now I want to generate bolding and hyperlinks on the text in the Description field. Not all fields contain text in the same format, and not all need bold or hyperlinks.

Example: One record will be "Meeting at the Boarding Barn at 1:00" where I want "Boarding Barn" to be a hyperlink. Next record will be "Competition in Milwaukee" where "Competiton" should be bolded, and "Milwaukee" will be the hyperlink. Third record will be "Annual Picnic" and will not have any bold or hyperlink.

I put the HTML tags in the text in the database, but they are ignored. What is the right way to do this?

Value From Listbox In Hyperlink
Rather than doing this:

<A HREF="editpatient.asp?ID=1>View</A>

Can i do something like this instead? - and make it work

<A href="EDITPATIENT.asp?ID=" & LISTBOXPATIENT & ">View</A>

where LISTBOXPATIENT refers to a database populated listbox

The idea being that when the user is completing a form they can look up additional data on a patient by clicking the hyperlink next to the listbox.

Hyperlink To Files
How do I write a hyperlink on an asp page to a word doc
not in the web root?If I have a page in my test directory of the web root and
my files are sitting on my e drive?

Building An ASP Hyperlink
I built an ASP Form and I'm using CDONTS to e-mail the results to me.
After the user clicks on the "Submit Form" I use ASP to send a ConfirmMsg
back to the user.

At the same time I would like to send back a Hyperlink .

The Hyperlink will take the user back to some other part of the site, For
Exampe I want to send a hyperlin to
http://www.mydomain.com/index.html

I want the link to appear after the Server processes the ASP Form.

Can anyone help me with the ASP code fot a hyperlink.

Hyperlink With Recordset
I make a recordset as hyperlink with the new page, it work fine but my question is. is any way to make that hyperlink inactive when is no data or NULL in the field? Code:

Hyperlink Sub Folders
I am writing an intranet and want to be able to hyperlink to all files
within a specific folder AND it's subfolders. Whilst I can hyperlink to the
files in the specified folder AND I can also iterate through the subfolders
and list them, for some reason I cannot hyperlink to the sub folders. I am
writing this software at home using a computer that has IIS and Windows 98
and am accessing this as my server from another computer on my network.

My Home Page on the Server is http://maxitek (the name of my Windows98
Computer) and when I look at the value of the variable "PathSpec" - it
becomes C:Inetpubwwwroot which when I try to create links to the sub
folder it is probably here where the problem is. The files themselves link,
but not with their full subfolder names, i.e., for a file called
"C:Inetpubwwwrootmytestmytest2mytest.txt" I am getting a link that just
looks like this Code:

Hyperlink Problem
I have some code that is placing a hyperlink on an ASP page. When I run the asp I get:
<A HREF=" instead of the hyperlink name i want. In addition it does not finish the code below. Can amyone see an issue with my syntax or the code itself.

When I click the hyperlink the corrosponding URL is not right? Code:

Hyperlink In New Window
I am displaying records from an Access database. One of which is a hyperlink.I was wondering how i get it to open in a new window when the user clicks on it.

code:

Dim strLink

strLink = rs.Fields("Website")
'Website is the field name in database

Response.Write("<a href=" & strLink & ">" )



Hyperlink Fields
I have an asp calendar. Nothing complicated really. People enter the data through a form... it writes to a database... and when you click a day it retrieves from the database. The problem is one of the fields is a hyperlink to more information about the event on another website. The text of the link shows but it doesn't actually link.

I have the field in the database set up as hyperlink and not text and I'm pretty sure that the asp code I should be using starts out Response.Write.... I just don't know what to do next... I've tried everything imaginable... below is what I thought it should be but this didn't work.

Response.Write "<a href="Rs("Web_Link")">"

I'm sure I'm missing something painfully obvious.

Word To Hyperlink
I have a postscript that prints any given text to a text file.how to make; for example a word like "Test" to a hyperlink.so that it prints a hyperlink in the textfile to be precise.I know i need to make a script that fetches the word and prints the html for the link.but i dont really know where to start.

Create Hyperlink
i got this error:

Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/update.asp, line 46, column 28
Response.write("<P><A HREF="default.asp">Return to Main Menu</A>")

Quotes In A Hyperlink
I just want to write a hyperlink in ASP. getting many errors . can anyone please help me with this.

Response.Write("<font size=2 face=arial><A Class=TableLink href = "
link://cs-dev.verizon.com/cs/aa.asp?K=123&srcserver=Cs" & "onMouseOver=" & """" & "window.status='Case';return true" & """" & "onMouseOut=" & """" & "window.status='';return true" & """" & ">Case:</A></font></td>")

Recordset Containing Hyperlink
I am trying to create a page that contains a recordset and one of the fields to be a hyperlink to a download.I am using an Access database and don't seem to be able to make the hyperlinks 'active'.

Hyperlink Code
What is wrong with this code i want to make a hyperlink from the value that comes from Newsletter_Subject: Code:

<%Do While Not ObjRS.EOF %>
datumophaal=<%=FormatDateTime(objRS.Fields("Newsletter_date"),2)%>
<tr valign="top">
<td width="100"><%=datumophaal%></TD>
<td width="100"><%="<A HREF='admin.asp'>ObjRS.Fields("Newsletter_Subject")</A>"%></td>
</tr>
<% ObjRS.MoveNext
Loop

Hyperlink Tickers
Iv'e been trying to build a ticker that scrolls dynamic text containing hyperlinks. The ticker and the dynamic text are no problem but i'm having trouble trying to hide the hyperlink code from being displayed. Any ideas?

Hyperlink Problem
i have a link as seen below in test1.asp page:

<% Response.Write("<a href=http://IP_Address/page1.php?action=send&name=Jimmy&message=hello">Send</a>") %>

When i open the page at local server it's work. however when i open it from client site, it show this error.. Incorrect IP

for your info, the remote server that located page1.php page is only recognised the local server that containing test1.asp page. Is there any solutions for me to solve this problem?

Problem With Hyperlink
i'm attempting to create a hyperlink of each entry of a certain field which i have in my database (very much similar to the ones created with HTML, where u can click on some highlighted-text that links to another page), but i want the links to appear on the page when it's loaded and each entry has it's own link. Code:

Hyperlink=query?
I've been using both Frontpage and Access for a couple of years. Now I'm trying to integrate the two of them.

So, I have a webpage with a map of several locations. I want to be able to click on a location and have it run a query in my Access database to spit out
information about that one site.

My Access database is loaded on the server. I've created an .asp already and I can use the Frontpage interface to select various sites, but I want the query to be driven by what site I click on.

and of course I've already created the hotspots. What SQL coding would I use to tell the Frontpage Database Results wizard to look up information based on which hotspot I clicked on?

HTTP GET Command Via A Hyperlink?
I've got a domain, someDomain.com that I work with in house. There is another domain otherDomain.com that we've contracted to do some work for us.

So, our users log into our web site and a select group of our users get a link to this other site (otherDomain.com) do to some stuff.

I've been requested to have this link on our site do an
"HTTP Get command as a client side redirect (HTTP status-code 3xx, usually 307)", to their site. I'm supposed to pass them a userid and a session 'key'.

How can i do that type of HTTP request with a hyperlink? Doesn't that need to be in a <form></form> with action=GET?

Or...is a simple link like <a href="www.otherDomain.com/somePage.html?User=theUser&Session=theSession">The Link</a> already doing an HTTP Get command? Or yet again...does this do that type of request??: Response.Redirect "www.otherDomain.com/somePage.html?User=theUser&Session=theSession"

Create Hyperlink In Access
How to create hyperlink in order to download files in microsoft access? I have change the field into hyperlink but it only can be downloaded once.

Wrapping Text In Hyperlink.
I have script pulling text from a databse which is just the name of a file, e.g: test and I have code which puts a hyperlink around it, for example: http://www.myserver/files/test.doc , so that when the user clicks on it the file opens up for them. How do I check that if the name of the file is a particular filename the address is different.

Basically 1: if filename = test1
address = http://www.myserver/files/test1.doc
2: if filename = EXTERNAL
address = http://www.myserver/EXTERNAL.doc

Here's my code so far:

<TD WIDTH=83 class="body"><P><A HREF="http://www.myserver/files/<% Response.Write RSEmps("fileName")%>.doc"><% Response.Write RSEmps("fileName") %></TD>

Add Id Hyperlink To Image In Table
I have a page that uses my primary key (id) as a hyperlink for the 'type' field (text) coming from my database..

<%
Dim adoCon
Dim rsProperty
Dim strSQL

Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("_db_importproperties.mdb")

Set rsProperty = Server.CreateObject("ADODB.Recordset") ......

Hyperlink With A Response.write
i cant seem to remember how to add a hyperlink in a response.write object.

Basicaly i am doing an if then statement to customize my shopping cart. and would like to add a hyperlink this does not seem to work, am wondering what is happening or if i could add it to the response.write object:

<span style="font-weight: 400">
<font size="2">
<a href="../../index.asp">
<%elseif aParameters(0) = 2 then response.Write("order here")
else%>
</a></font>
</span>

or do i add it as

response.Write<a href="../../index.asp">
("order here")
<a/>

I know this second code is wrong, but am wondering how to get this done.

Activating Sub Routine From Hyperlink
I am still playing with ASP and was wondering how to do this (it seemed
simple). What I want is to have a hyperlink that when it's clicked on, will
run a sub routine, instead of opening a web page... Right now I have;

Sub CreateLinks()
Response.Write "<br><br>"
Response.Write "<a href='OpenAllOrders()'>1. All Orders</a><br>"
Response.Write "<a href='OpenCustOrders()'>2. Customer Orders</a><br>"
Response.Write "<a href='OpenInvoices.asp'>3. Open Invoices</a><br>"
End Sub

Sub OpenAllOrders()
Response.Redirect "OpenOrders.asp?Customer=0"
End Sub

Sub OpenCustOrders()
Response.Redirect "OpenOrders.asp?Customer=1"
End Sub

The issue, is that clicking on the link, tries to open a web page file of
'openallorders()', instead of running the sub routine. Obviously I am
missing something simple... Can anyone point me in the correct direction
(think it has something to do with href... maybe it should be hsub or
something).

Variable In Writing Hyperlink Url
how to use varaibles when writing the hyperlinks.

What we have is the server name and the port number of our application
defined in the include file.

instead of hardcoding the name of the server in the application when sending
emails out like

<a href="http://myservername:2500">Click here to login</a>

I would like to use something like this

<a href=strserver>strMessage</a>

but don't know how to do it. the varaibles strServer and strMessage are defined in the include file.

Including A Variable Within A Hyperlink
I am having trouble trying to get a line of my script to work. I want to include the variable "name" in a hyperlink. The line of code I am working with is below:

Response.Write ("<a href=""band_news.asp?ID=" & rsCTD("ID") & """> Read more about & rsCTD("name") & </a>")

This code is throwing up errors every since I tried to add the variable for the output of the hyperlink.

Dynamically Hyperlink Using Recordset Value
How can I dynamically hyperlink using recordset value.

I have an ASP detail page containg values that relates to categories, Geographical location etc. I want my users to be able to click a recordset and be linked to the appropriate pre-defined subset of the records in my SQL Database.

Dynamically Alter Hyperlink...
I would like to store a table of alternate URL's it would work like this - in my forums, a user may add a URL (for example www.hyperlink.com). When another user would click on this URL, I would like to call the alternate URL table to see if an entry exists for the domain "hyperlink.com" If so, I would like to alter the hyperlink (on click) to "www.hyperlink.com/123/test.asp" If the URL is not listed in the alternate URL table then I would like it to go to it's original target address.

Hidden Data In Hyperlink
I have a set of asp hyperlinklinks on my asp pages which direct the user to specific products.i.e. the link jumps to ....../product.asp?product=productA&ID=1
is there anyway to still carry over the ID, but hide it from the link,so that visitors will only see

/product.asp?product=productA

Store Hyperlink Into A String
this gives an error;

strLink = "<a href="member.asp">Member Area</a>"

how do i fix it??

Email Hyperlink On ASP Page
I am generating an asp page with information on our organizations annual calendar. One of the items presented is the contacts email address. It does appear as a hyperlink but when you click on it, it generates an error page that says "This Action is not allowed"

How do I get it to generate the Mailto: link and open email editor. I am using FrontPage2003 to do all this.

Long Hyperlink Into Database
I'm trying to put a long hyperlink into my database table which works fine. I used longtext as the field type. My records insert just fine. But when I try to retrieve the records on the asp page all the other data shows up but the hyperlink data. Here's an example of my link.

INSERT INTO products
(manufaturer, prod_category, prod_link)
VALUES ('Xtra','Irons','<a href="http://www.kqzyfj.com/click-1692223-10304326?url=http%3A%2F%2Fwww.golfsmith.com%2Fppage.php%3Fstynum%3DCL1480%26tcode%3Dcj" target="_top" >CG1 Irons w/ Steel - 3-PW Iron Set<br>$799.99</a><img src="http://www.afcyhf.com/image-1692223-10304326" height="1" width="1" border="0">');

What am I doing wrong.

Hyperlink From Database Record
I have a database which I need to display a hyperlink to another web page when the results are displayed in an existing web page. The current line of code is as follows:

Response.Write " | " & objRS.Fields.Item("contact")

This displays the information I need but it also displays the hyperlink as text after the field information ie development team#http://www.awebaddress.com# .what the line of code should be in order for the contact field to appear as a working link to another web page.

'Response Write' A Hyperlink
if it is possible to response write a hyperlink? and if so how you go about doing it.

Pointing Hyperlink To A Shortcut
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer. A hyperlink to a shortcut to a file returnes an empty screen, and the source code behind this empty screen is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Is this supposed to be like this? How does a shortcut work? Is it possible to use shortcuts in this way? The reason fo me wanting this is I have a code which builds a link to a product's Technical Data Sheet basing on product's code. However sometimes several products share a sigle TDS file, so the ides was to use shortcut, rather then having same info stored under different filenames .

Retieve A Field Containing A Hyperlink
I have an access database where one field of each record contains a hyperlink. when I try to retrieve this field with rs.field.item(xyz).value I get a blank result. When I retrive a single record I get the display value attached to the URL value of the record.

in Access, the field containing the URL has a "display value" (say link) and the "Hyperlink" (say www.aspfree.com). When I call this field to the webpage, I get the result "link#www.aspfree.com#" as if it is an anchor on the same page. How can I retreive the hyperlink without the display value and make it into a hyperlink in the page?

Changing Session.LCID In A Hyperlink
Is it possible to change the Session.LCID in a hyperlink? My problem is I'm calling a Date from a database to use as a querystring in the hyperlink but I also need to display the date as output from the hyperlink.

I need to have to querystring in Session.LCID = 1033 and the display date in
Session.LCID = 2057. Code:

Word Security When Opened From Asp Hyperlink
I have a document saved to a public network server. The public directory
grants change access to all users on the network. To keep my Word doc
protected I am using the Security feature "File Sharing Options" in Word to
attach a password to the document. This works as expected when users open the
file with Windows Explorer.

I also have an ASP web page that has a link to my file on the public drive.
When I click this link, the Word document loads without asking me for a
password and is not read-only. (Note the link in formatted with an href
attribute like this: file://servername/share/filename.doc)

Am I mssing something? Shouldn't the Word security work even if the file is
accessed through a hyperlink?


Query Database, Display As Hyperlink
I am using ASP with VBScript. I want to query an access database username
field, and display the output as a hyperlink on an a webpage.The webpage
will display all records. I then need to be able to select a given
record(hyperlink), and display all of the fields for that record on another
webpage so I can execute some code against it.

Can anyone point me to some sample code so I can get an idea of how to
accomplis this?

How To Send Hyperlink In CDONTS Email
I am trying to send and hyperlink thru my CDONTS email, does anybody know how to send hyperlink in CDONTS email,

Display Multiple Data On Hyperlink In ASP
how can I display multiple access data on hyperlink in ASP?? For example like I click on Monday link it will only display all the informaton about Monday and click tuesday will only display tuesday information on same page.

Displaying Hyperlink Using Response.Write
I'm somewhat of a beginner and hope to get a little help. Let me explain: I have 2 variables:

1) LinkText is a the text for the link

2) LinkUrl is the full path of the link

All I want to do is get the link to appear on the page. I have been crashing and burning on response.write statements. I'm a little confused about all the quotes. Or if there is a better method besides response.write, I'm all ears.

Opening Word File From Hyperlink
I have a document saved to a public network server. The public directory grants change access to all users on the network. To keep my Word doc protected I am using the Security feature "File Sharing Options" in Word to attach a password to the document. This works as expected when users open the file with Windows Explorer.

I also have an ASP web page that has a link to my file on the public drive. When I click this link, the Word document loads without asking me for a password and is not read-only. (Note the link in formatted with an href attribute like this: file://servername/share/filename.doc)

Am I mssing something? Shouldn't the Word security work even if the file is accessed through a hyperlink?


Copyright © 2005-08 www.BigResource.com, All rights reserved