Window.open + Asp Interfering With Browser Navigation?

I've stripped it down to the 'barest-of bones' so that anyone willing to help can duplicate the problem on their own systems. Code:

View Replies


ADVERTISEMENT

Window.open Interfering With Browser Navigation?

It looks like that when the window.open call is made, and a new window is
created - my users lose all the information they entered - if they navigate
backwards then forwards. If the second window was already created...
navigating backwards and immediately forwards, seem to behave 'normally'
(i.e. all their previous inputs are there on the screen.).

Is this normal? Is there some way to kick-off a new window without losing
the inputs previously entered at an earlier screen? There was an earlier
post about losing session info when opening a window - is this a similar
situation?

I suppose I don't really have to have two windows opened at the same time -
using a simple anchor link seems to work without the side-effect. It's just
not as snazzy and the work-flow is slightly more stilted.

While I've been toying around with some other work-arounds - I was wondering
if anyone else has ever run into this situation? Or am I missing some
critical piece of info?

View Replies View Related

Restricting An Open Browser Window

Is there a way to keep an other application from opening a link in a
browser where I am running an ASP application?

For example, I have an ASP application open in a browser. If I click on
a link in an email message, Outlook "hijacks" the open browser and
opens opens the link in it. Is there a way to prevent this? To somehow
identifiy that browser window as "off limits" to another app?

View Replies View Related

How To Force Pdf Download - Not Open In Browser Window

How do I force a pdf to be downloaded rather than opened in a browser window?

I've got the code below, which seems to work in Firefox, but in IE7 it spits out a huge page of wierd characters:

<%
Response.ContentType = "application/pdf"
FPath = server.mappath("pdf/portfolio.pdf")
Response.AddHeader "Content-Disposition","attachment; filename=" & FPath
Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
%>

View Replies View Related

Close Browser Window.

What's the best way to close current window silently after finished a
process.

I'm using the the javascritpt window.close() or top.window.close(), but it
fires a confirmation window.

Just want to close it without any confirmation, seems I done it before, but
can't find where.

View Replies View Related

Close Browser Window

I wrote an ASP page to export data from the database to an excel spreadsheet file. The problem is, after the user saved the file to his/her hard drive, the export browser window still remains. How do I close the export window after users saved the file?

View Replies View Related

Browser Window To Add Files In A DB

Is there a command in ASP to get a browser window so you can select a file to add to a DB?
For example: you press a button and you get a browser window?

View Replies View Related

Code In Browser Window

When I hit an asp page the code for the page is displayed, not the actual page. I am running IIS locally for development. Any ideas of why this would be? If the pages are loaded on the server, they load properly.

View Replies View Related

Browser Window Sizing

I have a web page application written in VS2005 that's completely contained in a specifically sized panel control, and I'd like to prevent the IE browser window from being resized. I'd also love to hide the browser's toolbars if I can, but I guess that's another story.

since I'm on the subject, my wish list also includes the ability to:

(1) Run my app in an IE window of its own, and
(2) Disable tabs in the instance of IE that my app is using

It's okay if my user has another instance of IE open with tabs and other web pages in it, but I'd klike to force this instance of IE to be exclusive to my web page. How can I achieve any/all of the above?

View Replies View Related

Open New Browser

when i open new browser using this code, cant find session.

<a href="newwindow.asp" target="_blank">open</a>

session is null when i try display in new browser.cant pass session to new browser link?

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

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

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

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

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

Open In New Window

I have an .Net project that has an ASP page, that has links. When a user clicks on one of the hyperlinks, it opens an Excel page, in IE. One of the cells in the Excel Workbook contains a link to a PDF document.

If the user clicks on the PDF link, it's opened in the current page. I'd like to know if it's possible to open the PDF in a new page. So it would basically be opening a PDF from the Excel document - that is opened in IE. Code:

View Replies View Related

Window.open

I have searched the web and books but so far I am drawing a big fat nada on this one.

I want to open a new window from an ASP page and everything I have found suggests to use JavaScript and not the server side VBScript. The problem is that the server side is what will decide were to send the user. Is there a way to exit or open a new window using JavaScript passing in variables fromVBScript server side then close the ASP page?

View Replies View Related

Open A New Window

the new window will be in the SAME session as the opening window.I don't want to abandon the session of the opening window, just have a new one for the new window.

View Replies View Related

Window.Open

I wish to open a window with this command
Window.OPen(meat/ServerLookup/ServerWindows.asp?ServerName=VarServerName)

It does not seem that the Window.Open can handle the ?ServerName=VarServerName part of the command? DO I need to add stuff to make this work like I want?

I had thought of using a session variable to pass the variable VarServerName to the next page ... but in this case using the ? function would be FAR more convenient... Any Ideas on how to make this work?

View Replies View Related

Window.open

i am facing a problem with opening a window from a webpage,

first i tried using window.showModalDialog() window.showModelessDialog() but in that case i can not detect window.opener so i reverted to window.open() but can i detect from the parent if i have any windows open ??

in other words, if i push the button to open a window, then the user pushed it again, i do not want to have two windows open at the same time... can i do that??

View Replies View Related

Window.open

using ASP 3.0 and IIS 5, can anybody tell me why the following code isn't working?

sub admin_onclick
window.open "http://sean/lonestar/lsf.asp"

end sub

It's about as straight-forward as you can get. Incidentally,the ASP that is referenced works.

View Replies View Related

Open A Link In A New Browser.

This link will take him to another page where I enter the email address of my friend. As soon as I submit this form Iam passing some parameters that will go along with my url which is however an IP address. When my friend receives the email in his hotmail account he is provided with my url address. When he clicks the url address my site opens as a frame in msn hotmail . When he gives the information a page is presented with the error message "404 -File cannot be found".

So when the URL address is clicked I need the form to be opened in a separate browser.

View Replies View Related

Problems In Open New Browser

I am using ASP + HTML + MS SQL 2000 to generate a report which in excel
format.
Of course, I just make the contenttype = "application/vnd.ms-excel"

One of my client using window XP professional with SP2

when he tried to export that report, the report just open a while (within
1-2s) and then close itself automatically.

I have tried to export other report, which also in excel format, from other
webbased system, but it sees have not any problem, it can open correct...

And I have checked both file are using the same technologies (set
contenttype, using asp, html and mssql 2000)

Can you tell me what problems it have?

View Replies View Related

Cookie Not Sent With Window.open

I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page (same folder).

The cookie is not received. Can someone explain why?

I worked around this by adding a cache-control header with a value of no-cache. This fixes the problem. Unfortunately that causes another problem with Internet Explorer that no-one can figure out (basically with friendly error messages turned on IE shows an error page for no reason - i posted a lengthy message about this to m.p.i.asp.general but no-one has a clue).

I have tried every combination of every cache busting header i can think of but no other one fixes this problem about the cookie not being received.

So basically i'm in a catch-22. If i put the cache-buster in then users will get a nasty error message from IE unless they have 'friendly' error messages off. If i leave out cache-buster code then the session cookie doesn't get returned which means the users cant access my site.

Example asp's are below. To recreate the problem simply create a hyperlink to getCookie.asp in excel then open it (after each attempt you need to shut down Excel). By the way everything works fine if you type the URL into IE directly... the problem is when opening from Excel.

----getCookie.asp------
<%
'cache code which makes next page work
'Response.CacheControl = "no-cache"
'send cookie back to client
Response.Cookies("PaulSessionID") = "PaulsCookie"
%>
<HTML>
<HEAD>
<SCRIPT>
window.open('useCookie.asp','newWin','resizable,sc rollbars,menubar,toolbar')
;
</SCRIPT>
</HEAD>
<BODY>&nbsp;</BODY>
</HTML>

-----useCookie.asp------
<%Response.CacheControl = "no-cache"%>
The cookie set by the previous page is:
"<%=Request.Cookies("PaulSessionID")%>"
---------------------------

View Replies View Related

Window.open Destroys

When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.

View Replies View Related

Open Link In New Window

I want to disable the 'Open link in new window' option for hyperlink.

View Replies View Related

Open Popup Window

I want when an website opens then a popup window made in flash should be open automatically in a new window. How it is possible?

View Replies View Related

Open Window Function

how to modify a function like this to specify the new window size? I'm able to specify window dimensions easily using window.open in javascript, but am at a loss for how to do it using this vbscript method.The 'strtext' are ASP recordset values. The page the opens in a new window is a map service.

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function mapLink(strtext)
on error resume next
mapLink = "<a href=""http://planning/ims/tpViewer/?Query=SDE_ADMIN.TP_AREA.TIMEPOIN_1%20%3D%20%27" & strtext & "%27&MapUnits=FEET&ActiveLayer=0&QueryZoom=Yes&Tools=Yes"" target=""_blank"">Map</a>"
End function
</SCRIPT>

View Replies View Related

Java Open Window?

I'm using this Java code to open a window, trouble is when you hover your mouse over the link it does change to the hand? Code:

View Replies View Related

Open A PDF File Inside Browser

I have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem:

On some of the computers, for PDF file only, it opens outside of the IE browser. Like the Acrobat program is not in the browser. With the same code, some computer works good. But I want to force it open inside the browser. why and how to fix it?

View Replies View Related

Force Word Doc To Open In Browser

has anyone got a way to force a word doc to open in a browser (it's for an intranet site before anyone asks), I can force the download, but I don't know a way to force the browser to open it.

View Replies View Related

Amateur Window.open Problem!

Im trying to do something that I thought would be fairly simple here - im pretty sure I know what Im doing wrong but I wonder if someone could put me on the right track.

I have a table with link in it displayed as text....ie.

<TD WIDTH=this ALIGN=that>http://localhost/porky.asp</TD>
<TD WIDTH=me ALIGN=you>http://forums.devshed.com</TD>

and so on.

The links are actually stored in a database so they are actually called using a recordset. Still - I wanted to turn them into links - which I can do - its just that I want them to open in a new browser window.

I used the line:

Response.write("<TD....blah>" & window.open(oRs("url")) & "</TD>")

I got the error: Object Required ".

Im pretty sure this means that I have to create the window object somehow, before I can open it.

Is there a command something like:

Server.CreateObject("window") or something that I could use?

View Replies View Related







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