Image Link

I would like to put a picture on may page and I would like to use this picture as a button to execute an sql query, so when you clik on the picture you will hace displayed in the next page the product in the data base and other info like price for example.
I have this code to access the data base but I do not know how to use a picture s a buton to use it. Code:

View Replies


ADVERTISEMENT

Display An Image From Access, Stored As Location Name Not Actual Image.

I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.

Following is the code to list vehicles: ....

View Replies View Related

Open Image In 'Kodak Image Edit Control' With Web Browser

1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page.

2.This '.tif' type image can be shown better with 'Kodak Image Control'.

3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page.

4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).

5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control.

6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem?

For better understanding of problem I'm pasting a following code which I've tried up till now......
..................................................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}

//-->
</script>

</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>

<input type="hidden" name="path"
value="..MFTDRCMF919685173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>

</form>
</BODY>
</HTML>

..................................................

View Replies View Related

Displaying Alternate Image When Image Source Not Found

I am creating a dynamic ASP VBScript page, which gets data from an Access database.

In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.

I think what I am trying to get to is the following:

If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif

I have had a go and come up with the attached but I get an error with my if statement...

View Replies View Related

Image From Image Folder Into Byte Array?

I can convert an image that is retrieved from a FileUpload object into a byte array and insert it into the database..

When the user signs-up i wish tosimply insert into the Picture (DB Type = Image) field to an image i already have saved in my images folder?

Anyone know of a way to do this? Tutorials, articles or advise??!

View Replies View Related

Show Image From SQL Image Field?

Here is my code. I'm using 2 pages.

(Page 1) blob.asp

<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_blob_STRING
Recordset1.Source = "SELECT AboutPic FROM Elizabeth.GF_AboutUs"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Response.contentType = "image/jpg" 'Recordset1.Fields("AboutPic") <---Tried
both methods
size = Recordset1.Fields("AboutPic").ActualSize
blob = Recordset1.Fields("AboutPic").GetChunk(size)
Response.binarywrite(blob)
%>

(Page 2 Show the Image)

<%
Dim urlString
urlString = "?" & Request.QueryString
%>

<% Another rs to show other information as text from the same table %>

<body>
<img src="blob.asp<%=urlString%>" width="194" height="256">
</body>

View Replies View Related

Upload New Image Get Path Of Old Image

I'm working on a project where I'm suppose to upload a image to a server. The uploading works fine but when I want to change the image I uploaded to another image I can't get the filepath of the old image to show in my "filefiled"....is it possible to set a "value" where I can retrieve a filepath in a form if the input type is "file"?

View Replies View Related

<%=request.querystring("image")%> Image Won't Display

This worked fine for enlarging my images until i put it onto a secure server, anyone know how i can fix it ??? just comes up with the standard box with a red cross in it .. and the url when i click image properties says: http://url/images/<%=request.querystring( which is only part of the code)

View Replies View Related

Merge An Image Into Another Image

I'm looking for a simple way to merge an image into another image.What i have is a screenshot uploader, and i want to make it so that when they upload the SS, the script will automatically merge a small copyright type image onto the bottom right of the picture.

View Replies View Related

Link In Asp

Does anyone know how to hide and show a link depending on the level of the user. Like I want the link to show if the person loging in is an admin, but if the person is a user than I dont want the link to show?

View Replies View Related

Link / Url In A Var

How to get a link / url in a var ? This is what I need to do :

newmsg = " <a href="http://www.my-url"?pa=<%=userid%>> Click here </a> "

View Replies View Related

Link To Exe

Clicking url that points to an exe pops up Open/Save dialog box. But I want
only the Open option to be enabled

View Replies View Related

Css Link

How display a link like a plain text (not underlined) with css code.

View Replies View Related

.asp Url Link

Having a problem getting my asp url to work. Im trying to pass a var and some of them have the & in them. This is breaking my url since it looks for another var with the &. If i put the %26 instead of the & manually it works fine. How do I get that to encode that on the link ?

I know the problem is the data that is in the heading field has & in them. I can not fix that part. Is there a way to force the & in the url to go to %26 ? Code:

View Replies View Related

Dynamic Link

I would like to build a dynamic link based upon a value returned from a db

There is data in the db because objRS("Description") returns a value.

something like

Code:

if objRS.EOF then
%>
<a href="/somepage.asp?id="<% objRS("Id") %> "><%response.write(objRS("Description"))%></a>
<%
else
end if

I get

http://localhost/somepage.asp?id=

Nothing else at the end.

What am i doing wrong?

View Replies View Related

Link Alias

To secure files on a site with authentication we have put the
attachments in a folder outside the IIS web site like this:

D:Documents<ItemID>filename.doc

where ItemID is a number which we use to check permissions inside our
application.

In order to download the file from the site we have made a binary
reader component (we could probably use SAFileUp or something instead,
but this works) to send the file through an ASP-file:

http://mysite/Docs/ShowDoc.asp?ID=<ItemID>

This works well.

So to my problem:
If I right click the link to save the file on my local computer (Save
target as), it will save the file properly, but the filename in the
Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
Is it possible?

I've heard that on a Apache web server you can write the link like
this:

http://mysite/something/filename.doc?ID=<ItemID>

but then the server knows that it's
http://mysite/Docs/ShowDoc.asp?ID=<ItemID> it should load. If this is
possible in IIS, the Save As-problem will be solved.

View Replies View Related

Email To Link

I am using this code

<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("username").Value %></td>
<td><%= rstSimple.Fields("password").Value %></td>
<td><%= rstSimple.Fields("email").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>

How can I make the email field a hyper link?

View Replies View Related

ASP Link Query...

I have the following link:

<A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>


I want the link to reference a function in the <Script> tag as
follows:

<script>

function popup() {
window.open( "Schedule.asp" , ""
,"top=40,left=40,width=200,height=100" ) ;
}

</script>

I am not sure where to place the ONCLICK code in the hyperlink as this
link is written out via response.write......Its all the " " & ' ' that
get me ...

View Replies View Related

Search For Link

I have a database of literature and I've created a search page that pulls up the records matching the search criteria. However, I'd like to create a link to the article in pdf format, if it exists. I have a field in the database that contains the file name (and path), but not all records have a corresponding pdf file.
Code:

<td><a href="<%=(rs.Fields.Item("Article").Value)%>"><%=(rs.Fields.Item("Title").Value)%></a></td>

How do I check whether there is a corresponding pdf file before displaying the title with a link?

View Replies View Related

Href (link)

I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will
click on a link and will not be taken to another page, but precessing will occur.
This is mainly for a 'Rating' Application.
Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)
http://www.amazon.com/exec/obidos/t...5480771-6490552.

View Replies View Related

Pdf Link Prob

(1)I posted this in general but didnt get anywhere. Then I recalled seeing something recently on the web on an ASP site but cannot recall where.

(2)I have a list of pdf files avaiable for the user to view. When they click the pdf link, the pdf file opens. How can I make the link be a 'save' link? ie, when they click the link, windows treats it as a file to 'save as' etc...

What I vaguely recall on the ASP site was: 'How to hide the path of a download file by using an ASP redirect page'. I was wondering if anyone knows this method, and if they do, would it solve my problem in (2)

View Replies View Related

Link Transfer

anyone in here got an idea on how i could transfer a value of a form text to another asp page just by using <a href="">

View Replies View Related

Link Read

My hidden field is
Code:

<input type=hidden name="action" value="login">
<input type=hidden name="ret_page" value="<% =request("ret_page") %>">

and my link is
<A href='register.asp?ret_page=<% =request("ret_page") %>

But the ret_page appears as /vfolder/Content.asp?ContentID=700.
How would I get rid of the /vfolder/ and just have the content.asp?contentID=700 alone.

View Replies View Related

Link To File

I am trying to create a link that takes a record ID and opens up a PDF file that is associated with the record ID in the database. The following code works

Response.Write "<a href=""file.asp?ID=" & rs("ID") & """>"
Response.Write rs("File Name") & "</a></td><td>"

I'm trying to rework this code to work a little more easier with Dreamweaver. I would like it to look a little more like this:

"<a href=""file.asp?ID=" & <%=(rsNews.Fields.Item("ID").Value)%> & """>" <%=(rsNews.Fields.Item("File Name").Value) & %>" </a>

I'm receiving a syntax error when I try and run it.

View Replies View Related

How Do I Do A Redirect From An .exe Link?

one of my downloadable programs is redundant but there are still a bunch of
links out there that point to the .exe directly ...

how do I redirect the browser to another url when someone requests the .exe
file?

View Replies View Related

Link Out Of A Frame?

If you have a webpage with frames, say a footer frame that contains links,
how can you get out of the frame if you click on a link in the footer. The
it works now, is if I click on a link, the page loads inside the small
footer frame. I'd like it to just get rid of the frames completely when I
clickon the link. Any clue?

View Replies View Related

Variable In Link

i wrote this:

Code:

response.write "<a href=" & "picture.htm?movie=" & movie & """>"

my variable is
movie="few words like this"
but when i start the page it links only to

Code:

picture.htm?movie=few

and i just dont know why ...

View Replies View Related

Link Problem

I got a problem on how to link my page.

Example,
Firstly go to http://www.koolgift.com/index.asp,
Select Products button...
Choose "Apparels & Towels, Caps & Hats"...
then choose "5 & 7panel caps & winter caps"...
when you scroll down, you will see the Back link button..
when u click on it..it actually link you back to the previous page...
however i will like to link it back to the page where the
list of products under "Apparels & Towels, Caps & Hats" is...

this is my current coding for the Back link
<td width="766" valign="middle" align="right">
<a href="#" onClick=javascript:history.back(1)>
<p align="right"><font color="#FFFFFF">Back</font></a>

View Replies View Related

Create A Link

How would you go about creating a link on a desktop through an asp page.
You know the old trick click here to bookmark this page?. I need to take that a step further, i need a link that when clicked it creates a link on the desktop to that page.

View Replies View Related

Inserting Link

I want to make a button just like here (when posting new thread) to insert hyperlink into text.
For example when user is typing text into textarea I would like to have also a button that can enable users to post different links to other intenet pages.
And I would also like to have button that makes the text bold
(Actually those are buttons that appear on most forums when posting a new thread)

View Replies View Related

Make Link

when you click on it to go to the off site the user name and password will be automaticly inserted to where the offsite is asking for the name and password.
My company deals with insurance companies and we would like to make it to where when our employees go to our intranet and click on a link to one of our carriers it will have the name and password in place for them. i heard its possible and old company did it but I am having so much trouble trying to figure this out.

View Replies View Related

Link With Page

why does this 'file download' box pop up when I click a button on my html page? Saying
do I want to open or save the asp file? if I click open it opens it in development.

View Replies View Related

Link Management

Could anyone tell me what big corporations do for link management? For my site, whenever I want to change a URL, I don't want to because I know there are 10 pages with that link...

But, right now I'm doing a redesign and will be editing every page, so I thought I'd better find out if there's an efficient way to manage my links...

My first thought was to create a page which I include in every page, and this page has all the links for diff pages, like so:

[vbs]
' For Default.asp

lnkTitle = "view.asp?articleid=" & rsArt("articleid") & ""

' Then using like:

<a href="<%= lnkTitle %>">
[/vbs]

But, I'd like to know maybe of an easier or more efficient way... If anything is database related, I use mySQL on a Win 2000 machine.

View Replies View Related







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