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?
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?
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?
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?
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.
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?
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:
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
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:
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:
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?
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.
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?
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??
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.
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> </BODY> </HTML>
-----useCookie.asp------ <%Response.CacheControl = "no-cache"%> The cookie set by the previous page is: "<%=Request.Cookies("PaulSessionID")%>" ---------------------------
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>
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?
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.
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.
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.