Image In A New Window

I would like to place a hyper link in an asp file which opens a new window with an image in it when clicked on. Is the code to do this difficult ?

View Replies


ADVERTISEMENT

ASP Image Display In Pop Up Window

I have a image of an item and below it have a text which says "View larger Image".

so when someone clicks on the text i need to show them a bigger image from database

so what i am trying to do is open a new pop up window and show a larger size image

<%
rsimage=rsproducts("Large_Picture")
%>

<a href onclick="showpic('rsimage')">View Large Image</a>

and the javascript function is like this

<script language="JavaScript">
function showpic(pic)
{
popupWin = window.open("pic", "open_window", "location=1, width=640, height=480, left=0, top=0")
}
</script>

right now whats happening is i see a new pop window but message says

"Page cannot be Found"

View Replies View Related

How To Pass Values From Parent Window To Popup Window In Server Side?

1. I have a form, with a textbox and a button. I have to enter a value in the text box and then i have to click the button, which opens a popup window. Here i want to pass the value of the text box which is entered in the parent window to popup window.

I have to use that value in the popup window's form_load event in the Code behind, and i have to take the values from the database using the value which i have entered in the parent window. Code:

View Replies View Related

How To Return Selected Value In One Window To A Main Window

I want to provide a lookup facility for users to select a code from a list. I want this to be done in a small popup window, which, when a code is selected, will close down and return the selected value to the main form. Can this be done ??

View Replies View Related

Keep Value's Of Opener Window When Return From A Popup Window

I'am not familiar wit ASP but I have to maintain an application. In a window there are some text selection fields and a search button. If you press on the search button record list is build according to what is filled in the selection fields. You can select a record and then a detailed window is shown or in another occasion a popup window is shown.

The request is now if the opened window or popup window is closed, then the opener window has to be opened with the same content (content selection fields + record list) as it was before the window or popup is opened.

Now I thought that I have read that every window which is opened gets an ID and that it is possible to call up that window by the ID from the cache again. Is that right? And if so? Or has somebody a better idea. Code:

View Replies View Related

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

Pop Up Window With JS

i am opening a file by window.open by clicking on a button.
how i can validate that button is clicked or not.
means file is opened or not through javascript.
all time button.clicked returns false although file is already opened the code is:
if(document.frmBuyers.bankbtn.Clicked!=true)
{ alert("Enter The Bank Details") document.frmBuyers.bankbtn.focus();
return false;}

View Replies View Related

New Window

how to Positioning new Window near the button i've made, in this case i have a Calendar Button, but the position window that open the calendar can't be fixed, so when I scrolled the page behind calendar window, the calendar window moving too....
I've read from the MSDN, but there's no way too fixed the coordinate point to the calendar button

View Replies View Related

Pop Up Window?

I have a simple asp page that draws 3 fields and a hidden "Row_Id" from the Database.
I want to be able to click a "more info" link and take the Row_Id over to a new page
which displays all the info for that particlular user.
Would I use a response write method?
I can get it to work using a form button but It wont open in a pop up.

View Replies View Related

Pop Up Window

Is it possible to have a pop up window come up once someone logs in. Inside this window, it have a video of another person with a greeting, and other information? Has anyone ever done something like or similar? Other than ASP, what other technology is needed, FLASH?
Come someone show me an example of something like this? All help is greatly appreciated. The thought is to distribute these pop up windows (or better solution if someone knows of something better) to all our dealers across the nation. Each dealer will have its own personal inside sales rep and direct line for personal assistance.

View Replies View Related

Pop-up Window

i have to pop-up some reminders in a new window to the users . it is just like when we open a website ads related to that site come in new window.

what i have to do that , when a specific user logs in , a new window will open to remind him about some thing. i think , you will be getting my requirement.

View Replies View Related

Window Sizing

Is there a way to set the window size on a

<form action="add.ASP" method="POST">
<input type="hidden" name="AComputer" value="<% =AC %>">

This open in a full window

I have this other way without using the form

<input type="submit" value="ARecord" name="Add"
onClick="window.open('add.asp','add','width=500,height=300' )">

This sizes it for me nice, but I can't pass the values I need.

I want to pass AC and have the window size 500 X 300

Is this possible?

View Replies View Related

Composer Window In Asp.net

I am developing an web application in asp.net using visual studio 2003, where a user have to fill some description. Along with simple text, the user may need to paste some hyperlinks and images. (like a yahoo composer window).

View Replies View Related

Close Window

Can I use ASP code to close the current window?

View Replies View Related

Window Cannot Close.

i have quotation_start.asp which was set to be a small window (height=250, width=500). there is a YES button and some data on this page. when user clicks YES, data will be saved into database, quotation_start.asp will be closed automatically and a new page, quotation_admin.asp will appear in the main window at rightFrame. everything is ok except the quotation_start.asp never close. it remains there. here is the code:

View Replies View Related

Open A Window.

I would like to open a new window (Function is called NewWindow and is writtent in VBscript) when a user submits a form. All the samples I found on the web indicate something like the following: Code:

View Replies View Related

Delete In The Same Window

I have this code where I can check mark the items I want to delete and hit the submit key and it will delete the records, but the problem is that when I hit submit it opens another window for the same page and I can see that the records are the deleted, but the page where I checked marked the boxes to delete the records is still there and its still showing the records.

I dont want to open another window, I want all this process to happen in the same page and when I click on the delete button it should delete the records and the same page should refresh. Code:

View Replies View Related

Pop Up Window Problem

i'm developing a site using asp and created a pop up window that gives the user the possibility to click on the image (in this case i associated the pop up to a image field) and see a detailed information relative to that exact picture...
the problem is when i click on the image the page that i use as pop up doesn´t give me the image, reporting a error which i belivie that related to the image's ID.!

View Replies View Related

Open New Window

how can i open a new window with a if statment but still getting variables values?

tit=Request("title")
if x=1 then
something
else
Response.Redirect("<A href="http://www.test.com/lookup?q="&tit">http://www.test.com/lookup?q="&tit")
end if
I donīt mind using java, but i donīt know how

View Replies View Related

Open Window

I am working on a website and have a couple links that open up a new window. My webpage is .ASP as well as the windows I am opening. Currently the link open into a new window. However, I would like to be able to set the the size of the window that is opened.
This is the code I am currently using:

<p><a href="Search/search_owner1_form.asp" target="reportWindow" class="style2">OWNER 1</a></p>

View Replies View Related

Opening A New Window From Asp

I'd like to redirect from a certain page, to an external page(an external site), with certain parameters. of that window.

There is nothing to do if using response.redirct,
but is there another option?

For example, I would like to open a new window, that will have a cerain dimensions, and that the url of that window is... In javascript it is not a problem of course. What shall I do in asp???

View Replies View Related

Open In Another Window With Asp

I have an the following asp. How to have this asp to open in another
window when it is called?

<% something %>

View Replies View Related

Maximise Window

Is there a way in ASP that I can ensure that the browser window is always a certain size ?

View Replies View Related

Open New Window

I have a submit button that a form uses to submit the contents of that form to another page.

<input type="submit" class="input" onclick="this.form.action='checkname.asp';">

Is there any way to open a new window and perform the action in the onclick event?

View Replies View Related

ASP And PHP Instaled In Same Window

if you can install PHP on a Windows 2000 server with ASP and have the two coexist peacefully. Are there any down sides to having both installed, etc.

View Replies View Related

Window.open

Is there any way to keep a window on top using window.open? I can't use a modal or window.focus onload b/c I have to get inputs

View Replies View Related







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