We have an application that runs in a popup window with custom menus,
toolbars etc. The application uses session cookies. We would prefer for
the session cookies to be valid only in the popup window. In other
words, if the user cuts and pastes the URL into the opener address bar,
the session should not be valid (the application should not run) in the
opener window. Is there any way to enforce this behavior with the
window.open method or otherwise?
I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got blocked, so I have tried it by creating a form with a button in it and instead of calling the popup function direct I call document.form.button.click and in the form my button has onclick"popup('<? echo url; ?>')" but this also is detected as a unwarranted popup and is blocked.
now I understand that the popup blocker works when a popup is called without user interaction, but allows popups on say button clicks. how can I get the popup to work
In my application i use window.showmodaldialog() to pop up a window. When i run it in IE pop up blocker wont blocks the window... But when run it in FireFox pop up blocker will blocks the pop up window.. is there any way to open a window with out blocking(avoiding ) by the pop up blocker?
Not sure if these are possible but can someone do sessions with javascript or is that only a php/asp thing? If it is possible can someone point me in the right direction?
I have two files which has two types of profiles (user and Admin), Now the problem is how do i create a session which if im a user takes me to the user page and when im admin takes me to admin page
I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.
Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.
Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.
I have a couple of utility windows - a calculator and a calendar that popup from my main window. I would like them to always stay in front of the parent window until they are shut down with there own close buttons. As it is, when you click back to the parent window, of course it comes in front of the child windows. Can I do this?
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.
i wanna make a confirmation alert box (jquery i suppose) then when triggers when someone click log out. on cancel it stays there but on ok it destory the session and cookies and logout.
I have the code below in my popup window which currently brings up a blank page in the background as the main window. Instead I want the popup to come up but the original page I left is in the background as the main window. Does anyone know how I can do that with the code I currently have.
<html> <head> <title>JavaScript Popup Example 3</title>
I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.
<form action="something.php" method="post" target="????"> I'd like to use window.opener in the target but that's JavaScript...
I know somebody has done this before and has the code.
I am trying to insert the value of a variable gathered from a popup window as an option in a <select> menu on the main window. This is the code I have so far:
Code: var newOption = document.createElement("option"); newOption.value = '<?=$userfile_name?>' newOption.appendChild(document.createTextNode('<?=$userfile_name?>')); select.insert(newOption);
How do I do the rest? I just want to add this new value to the end of the list.
I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.
how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...
I'm currently relying on logged-in users hitting "logout" (logoff) before they leave, in order to terminate the session.
With PHP the session filename is in a cookie that lasts for the current session. The problem is that the server does not know when the current session expires. (I have quite long timeouts.)
Did anybody attempt a script to automatically call "logout" when the session expires? It seems quite complicate, as there are multiple urls that share the same session and the user is not actually logging out until one of them is open in some client window.
I have a popup window that comes up when a user doesn't have access to a certain page within my site. The problem is when a user clicks on something the popup window comes up but the bigger sized window of that popup comes up in the background as well. I am trying to have my popup window come up while the original page I clicked from is still focused/seen in the background. This is the code I currently am using, can anyone help me with what I am missing. I have a back button but I won't need that if I want to maintain the original page in the background. Instead I will use a close button.
I am building a CMS and will have an Image browser built with it. When articles are added the will be able to open up the image browser when they find the image they want to insert I would like to send it(and ID from my database) into that textarea where the article is in(in the main window). So basically sending a value from popup to the main window(textarea). Is there a way i can do it.
how to pass a value from radio button in a window to a popup window using asp javascript?n in the popup window,there is a textfield to enter data to search from database.. the value from the textfield then is used to generate report.
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list.
What I want to do is have a control in the parent browser window which can store the class_id and the description that the user has selected in the popup window.
Any suggestions as to what control I should use in the parent window and more importantly how I get the value from the popup window (this must be client side code as the user will have entered other values into the form in the parent browser window)?
In parent window, while submitting form, popup window is called. In child popup window, parent window is forced to go invisible through code. But sometimes it is not working.Aim is to inactive all elements in parent form or invisible parent form while child window (popup) is opened. After closing popup, parent form should be in visible state.
In parent Window: (userinfo.php) <script type="text/javascript"> <!--
I guess this case applies to both popup windows opened by window.open() and by showModalWindow().
I have two buttons in popup window, "Cancel" and "Save". If the user clicks either button, there is a "process" at parent window before close() at popup being called. The problem now is, if the user click the "X" sign at top right corner of that popup window, how to trigger the "process"?
I think I can do nothing in popup window since the closure is unexpected programmatically. Can I put some kind of listener in parent window to detect if popup is closed?
Now that I have been using it, I see I would prefer to have the window be resizable by the viewer (in ie 6, 7 and firefox), Anyone have any idea of how to change this so the popup window can be resized?