473,793 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening and Filling New Windows

EA

The code below successfully open a blank new Window, the OpenWin function is
held in a separate file and I use it successfully to open windows elsewhere
on my site. However the window is completely blank and "about:blan k -
Microsoft Internet explorer" appears in it's title bar. The new window
corresponds to the sizes I enter in the OpenWin function, so this must be
working.

What I want is for a PDF file, based on the user's selection to be displayed
in this new window. Can anyone see from the code below why this is not
happening?

<table>
<tr>
<form name=Downloads method=POST action=Choice.a sp target=TestWin>
<td>
<Select size="3" Name=Download onchange=OpenWi n("TestWin",720 ,600)>
<option value="1">Downl oad1
<option value="2">Downl oad2
<option value="3">Downl oad3
<option value="4">Downl oad4
</Select>
</td>
</form>
</tr>
</table>

This is the body of Choice.asp, which is in the same directory as the
calling page above:

<body>
<%
Select Case Request("Downlo ad")
Case 1
Response.Redire ct ("Download1.pdf ")
Case 2
Response.Redire ct ("Download2.pdf ")
Case 3
Response.Redire ct ("Download3.pdf ")
Case 4
Response.Redire ct ("Download4.pdf ")
End select
%>
</body>

All the PDF are in the same directory.

When I manually enter a URL ....{path}/Choice.asp?Down load=1, then
Download1.pdf appears in the window.

Can anyone assist... this has been driving me crazy!!!!!
Jun 12 '06 #1
4 1445

EA wrote:
The code below successfully open a blank new Window, the OpenWin function is
held in a separate file and I use it successfully to open windows elsewhere
on my site. However the window is completely blank and "about:blan k -
Microsoft Internet explorer" appears in it's title bar. The new window
corresponds to the sizes I enter in the OpenWin function, so this must be
working.

What I want is for a PDF file, based on the user's selection to be displayed
in this new window. Can anyone see from the code below why this is not
happening?

<table>
<tr>
<form name=Downloads method=POST action=Choice.a sp target=TestWin>
<td>
<Select size="3" Name=Download onchange=OpenWi n("TestWin",720 ,600)>
<option value="1">Downl oad1
<option value="2">Downl oad2
<option value="3">Downl oad3
<option value="4">Downl oad4
</Select>
</td>
</form>
</tr>
</table>

This is the body of Choice.asp, which is in the same directory as the
calling page above:

<body>
<%
Select Case Request("Downlo ad")
Case 1
Response.Redire ct ("Download1.pdf ")
Case 2
Response.Redire ct ("Download2.pdf ")
Case 3
Response.Redire ct ("Download3.pdf ")
Case 4
Response.Redire ct ("Download4.pdf ")
End select
%>
</body>

All the PDF are in the same directory.

When I manually enter a URL ....{path}/Choice.asp?Down load=1, then
Download1.pdf appears in the window.

Can anyone assist... this has been driving me crazy!!!!!


This is a client-side question, which would best be addressed in a
group dealing with client-side scripting. Try
microsoft.publi c.scripting.jsc ript.

--
Mike Brind

Jun 13 '06 #2
EA wrote:
The code below successfully open a blank new Window, the OpenWin
function is held in a separate file and I use it successfully to open
windows elsewhere on my site. However the window is completely blank
and "about:blan k - Microsoft Internet explorer" appears in it's title
bar. The new window corresponds to the sizes I enter in the OpenWin
function, so this must be working.

What I want is for a PDF file, based on the user's selection to be
displayed in this new window. Can anyone see from the code below why
this is not happening?

<table>
<tr>
<form name=Downloads method=POST action=Choice.a sp
target=TestWin> <td>
<Select size="3" Name=Download
onchange=OpenWi n("TestWin",720 ,600)> <option
value="1">Downl oad1 <option value="2">Downl oad2
<option value="3">Downl oad3
<option value="4">Downl oad4
</Select>
</td>
</form>
</tr>
</table>

This is the body of Choice.asp, which is in the same directory as the
calling page above:

<body>
<%
Select Case Request("Downlo ad")
Case 1
Response.Redire ct ("Download1.pdf ")
Case 2
Response.Redire ct ("Download2.pdf ")
Case 3
Response.Redire ct ("Download3.pdf ")
Case 4
Response.Redire ct ("Download4.pdf ")
End select
%>
</body>

All the PDF are in the same directory.

When I manually enter a URL ....{path}/Choice.asp?Down load=1, then
Download1.pdf appears in the window.

Can anyone assist... this has been driving me crazy!!!!!


What happens if you close the option tags?

Have you tried to response.write the contents of the form in Choice.asp?
--
Lee Carnell
"Oh my God... they float... they float through space... they will carry
me across the void... I feel them coming!" -- overheard in Ward 13 and
registered by the resident psychiatrist.
Jun 13 '06 #3
Why is the FORM tag inside of the TR tag instead of the TD tag?
Does the OpenWin function submit the form? Nothing in the code below does
that.

"EA" <NO****@twelve. me.uk> wrote in message
news:44******** *************@p tn-nntp-reader01.plus.n et...

The code below successfully open a blank new Window, the OpenWin function
is held in a separate file and I use it successfully to open windows
elsewhere on my site. However the window is completely blank and
"about:blan k - Microsoft Internet explorer" appears in it's title bar.
The new window corresponds to the sizes I enter in the OpenWin function,
so this must be working.

What I want is for a PDF file, based on the user's selection to be
displayed in this new window. Can anyone see from the code below why this
is not happening?

<table>
<tr>
<form name=Downloads method=POST action=Choice.a sp target=TestWin>
<td>
<Select size="3" Name=Download onchange=OpenWi n("TestWin",720 ,600)>
<option value="1">Downl oad1
<option value="2">Downl oad2
<option value="3">Downl oad3
<option value="4">Downl oad4
</Select>
</td>
</form>
</tr>
</table>

This is the body of Choice.asp, which is in the same directory as the
calling page above:

<body>
<%
Select Case Request("Downlo ad")
Case 1
Response.Redire ct ("Download1.pdf ")
Case 2
Response.Redire ct ("Download2.pdf ")
Case 3
Response.Redire ct ("Download3.pdf ")
Case 4
Response.Redire ct ("Download4.pdf ")
End select
%>
</body>

All the PDF are in the same directory.

When I manually enter a URL ....{path}/Choice.asp?Down load=1, then
Download1.pdf appears in the window.

Can anyone assist... this has been driving me crazy!!!!!

Jun 13 '06 #4

Mike Brind wrote:
EA wrote:
The code below successfully open a blank new Window, the OpenWin function is
held in a separate file and I use it successfully to open windows elsewhere
on my site. However the window is completely blank and "about:blan k -
Microsoft Internet explorer" appears in it's title bar. The new window
corresponds to the sizes I enter in the OpenWin function, so this must be
working.

What I want is for a PDF file, based on the user's selection to be displayed
in this new window. Can anyone see from the code below why this is not
happening?

<table>
<tr>
<form name=Downloads method=POST action=Choice.a sp target=TestWin>
<td>
<Select size="3" Name=Download onchange=OpenWi n("TestWin",720 ,600)>
<option value="1">Downl oad1
<option value="2">Downl oad2
<option value="3">Downl oad3
<option value="4">Downl oad4
</Select>
</td>
</form>
</tr>
</table>

This is the body of Choice.asp, which is in the same directory as the
calling page above:

<body>
<%
Select Case Request("Downlo ad")
Case 1
Response.Redire ct ("Download1.pdf ")
Case 2
Response.Redire ct ("Download2.pdf ")
Case 3
Response.Redire ct ("Download3.pdf ")
Case 4
Response.Redire ct ("Download4.pdf ")
End select
%>
</body>

All the PDF are in the same directory.

When I manually enter a URL ....{path}/Choice.asp?Down load=1, then
Download1.pdf appears in the window.

Can anyone assist... this has been driving me crazy!!!!!


This is a client-side question, which would best be addressed in a
group dealing with client-side scripting. Try
microsoft.publi c.scripting.jsc ript.


Oh hold on... try this:

Select Case cint(Request("D ownload"))

--
Mike Brind

Jun 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2237
by: zelnaga | last post by:
i'm connecting to the internet via a proxy, and am having problems filling out forms... below is the code i have, and below that is the http request i am trying to make it look like. they look the same to me, but it isn't working, so i guess they aren't... $proxy = fsockopen("tcp://someaddresshere", 80, $errno, $errstr); $temp = "somethingelse=blablabla"; fputs($proxy,"GET somesite HTTP/1.0\r\n"); fputs($proxy,"Accept: */*\r\n");
14
11099
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
2
2379
by: ramesh | last post by:
hi, I am using Com+ in my application. It will have InsertRecords,selectRecords,updateRecords function. In the Web Form i have Drop-down list. I want to select records from SQL and add it to this list. I know how to fill the data in the drop-down list. But i don't know how to pass this control to Com+. Do we need to pass like private FillList(Object e) {
1
2208
by: Krzysztof Karnicki | last post by:
I have such a problem… I have create my custom DataGridColumn inheriting from System.Windows.Forms.DataGridColumnStyle on using it on DataGrid, to show rows painted by me self. Because dates taken from database are very large, and filling DataSet bounded to this DataGrid takes some time, a decided to put fill logic into new thread. And so method running in this thread clears only this DataSet bounded to DataGrid and fills it once more...
0
1959
by: Nigel | last post by:
I have installed several web services (1.1) on to a Windows 2003 (Standard) machine. Just recently the C:\ drive ran out of disk space, even though the web services are on the D:\ drive. Looking deeper I noticed that the C:\Windows\Temp folder is filling up with many DLLs. They tend to follow the following format: 0yyjk_ag.dll (428Kb) 0yyjk_ag.pdb (528Kb)
7
2473
by: Sam | last post by:
Hello All, We want our Call Service Representatives to be able to go back and view all the records in a table on a form. When closing and re-opening the form the form starts out as record 1 of 1 even though there are records already entered into the table via the form. Is there anyway to have the form start out after the last record in the table and allow the CSR to go back and view what has already been entered into the table? For...
8
2096
by: hazmaz | last post by:
I am writing a program will have a function where it opens a text file, and fills a list box line by line from the text file. It works fine, except for when I tried to load a dictionary which is ~ 50mb, it appears to freeze. When I press Ctrl Alt Del I can see that it is still loading the file - the mem usage if shooting up. Its been going for a while and the memory usage is currently at verging on 600,000K. If i click on the program it...
1
3061
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to allow movie (wmv) playback on mouse click. (All animations have been verified to work when viewing slides in ppt.) Further, I have ensured that the converted HTM file(s) contain only relative file paths. SITUATION #1 When I open the converted...
3
1631
by: Bradley Plett | last post by:
We have a web service that gets quite a few hits. We are noticing that C:\Windows\Temp is filling up with temporary DLLs that never get cleaned up. They certainly appear to be related to the web service. I need to know either 1) how to prevent all the DLLs from being created, or 2) how to get .Net to clean up after itself (i.e. delete the DLLs after using them). I think I understand why the DLLs are being created...
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.