Window.open Destroys My Parent Session Values

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


ADVERTISEMENT

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

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

Session Ends With Window.Open() Call

I have a very basic ASP application in which a user is authenticated,
a flag is set in a session variable, and a new window is opened. The
file opened exists in the same application directory as the file which
sets the session flag. After calling the window.open() method in
javascript to open my new file, the session id changes. This is very
very bad.

After a week of scouring the groups, I have noticed a ton
of other people having similar problems, seemingly a remnant of the
"Browse in process" errors, however; microsoft says the problem is
resolved by upgrading to IE 5.5. Well, I have IE 6.0.28, and the
problem persists.

Has there been any resolution for this bug in internet explorer? If
there isn't a resolution yet, what types of SECURE workarounds are
available? How am I expected to use the session feature of ASP if it
doesn't work across browser windows?

View Replies View Related

Open New Window BUT With Session Variables From Previous Form

My page shows details of a work request. It has a number of buttons: one to go to a search page, another to make a copy of that page, and so on.

What I want the user to be able to do is, click the 'Copy' button and have the details from that page passed to ANOTHER page, ready to submit a new request. Basically, it's just a quick way for users to submit new requests, using a previous one as a sort of template.

This all works using a client-side function in the details page, which simply calls the submitting page using document.submit. However, this uses the same browser window, overwriting the "old" page.

I want a new window to open and have it read the session variables created by the details page. I've tried 'meta http-equiv='refresh' content=1...' and, while that opens a new window, it doesn't read the session variables. Similarly, the gazillion JS scripts I found on the web do pretty much the same thing.

View Replies View Related

Refresh Parent Window

I have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View Replies View Related

Title Of Parent Window

is there anyway to get the title of the window that opened a new window? in javascript it would be window.opener.document.title but is it even possible to get that with asp?

View Replies View Related

Refreshing The Parent Window

i have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View Replies View Related

Pass Value From Child To Parent Window!

I have a page which had a text box.

When a user clicks in the text box, by using the onclick event, i am opening a popupwindow with a list box. Now when the user selects a value in this list box, i want to pass that value to the parent window and populate the parent textbox.

View Replies View Related

Form When Refreshing Parent Window (only FF)

i have a simple form with about 20 dropdowns. if the user preferes they can go through each dropdown with the question in a pop up window.

In this popup window they enter each question one at a time, once they enter an answer and submit the page reloads and stores the answer in the database and goes to the next question. At the same time the popup window forces a refresh on the main form so that the value selected in the popup is now seen on the main form as they go through each question.

My problem is that when the main for refreshes with new values to be selected FF does not change the value on the drop down. but when i go to the source the correct value is selected. I do not have this problem in IE everything works as it should be.

View Replies View Related

Parent Window Refresh When Child Is Closed

I have an asp page (parent) which opens a new window (child) with "window.open()". What i want is, when the child window is closed with "self.close()" then the parent window has to be refreshed. Any of you guys know how to do this?

View Replies View Related

How Do I Reload The Parent Page When I Close The Pop Up Window?

I have a datagrid displaying data. There's an "edit" button, which I use Javascript to create a popup window where I can change the information. There's a "save" button on the pop up window.

Currently, I have to click the save button, and the the close button to close the pop-up window, go back to the calling page and refresh it before the information is updated in the calling page.

I would like to be able to use the "save" button on the pop-up window to close the pop-up AND reload the parent page. Is that possible?

View Replies View Related

Javascript Parent Window Reload Without Retry Popup

I have a child window that has a button to close it. I would like the parent window to be refreshed (since action taken in the child would change the values in the parent). The code I have works, but I get that "Retry" popup... I would like to bypass that. Any suggestions? Code:

View Replies View Related

How To Pass Values Into The Parent Form

i have a drop-down menu with a list of products.when i select any one
product i open a popup displaying hte product categories in it.i then
enter the no. of items i want.and finally when i click to the submit
button i want to display a summary of selected item in the parent
form.to make it more elaborate:

i have 3 items in a drop-down menu and each item has further 10
different types of products.

something like u have an item soap. and then 10 different brands of
soap.so all my products are in the drop down menu in the parent form.
item 1
item 2
item 3
item 4

when i select item 1 i get a popup menu which has say 20 types of item1
from the database.i generate textboxes beside each label so that user
can enter his quantity. 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

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

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

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

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

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