I have a project for a beauty salon/spa in which a number of pages have pop-up windows with nothing but price lists.
I'm using a simple script for the new windows:
The pop-up windows work, but the browser (both Firefox and Safari) is resizing the image down to fit the window size of 600 x 800. All the images are 600 px in width, but some are as tall as 1400 px. Right now the pop-ups are just images (gifs). Do they need to be HTML, or is there a way to "turn off" the rescaling so it will display the images at 100%?
I have a parent window that potentially open a lot of pop windows(let call them children windows) from different page on the parent. Over time, those children windows can add up on the screen if the users don't close them manually. What I'm looking to do is I want to have all the children windows closed itself when the parent windows is closed by either X it out or close by the window.close method in the parent window. I know every children windows has it own window name. What I could do here is look for those children window names then close it using a script in the parent window. But the challenge is, I don't know which windows are opened when the user about to close the parent window. I would get a object not found error if i reference a none existent children window name. I want to avoid that error. I want to know all the available pop up windows at the time when the parent window is about to close then close them out. Does anyone have some ideas?
I've spent hours adapting various scripts from this forum, but haven't been able to make anything work yet. Any help would be appreciated.
What I want seems simple - which is why I can't believe I can't find it in the archives.
I want to create a simple dropdown - so that selecting any item will force a popup window to appear. I need to control the size and atributes of the popup window (ie the popup window will show sample colors / patterns of a product).
I've a problem I hava a page with different popup windows, when I hit a link the first one pops up and with the first open i would like to hit the second link in the parent page so the second links pops up a window in the first popup. The way I have it now is working but with each link the size of the popup window should be different but that doesnt happen how can I solve that problem?
In the past I write the jave script to popup windows in the browser for tell our visitor about news & event but now most of browser will block popup by default. Someone can show me an example about the professional popup with out the block.
I'm not terribly familiar with JavaScript, and was hoping someone more experienced could tell me if this is correct, and if so, were do i put this code? Also, I'm trying ot mix it in with a PHP echo(' <script> '); php code block.
I'm trying to do what they are saying at this link: [URL]. First, they tell me to do what is listed under the "Scripting Disabled" section: <a href="file.htm" onclick="window.open('file.htm'); <br> return false;" target="newWin">
Then, down in the page in the "The Perfect Pop-Up Script" section it has a large script for me to use. I'm wanting to use it at my page [URL]. I want to make each of my images pop up windows like at this site: [URL] So, are they telling me to use the html in both sections? Where would I put the html in the top section vs. the script in the lower section?
Do I have to make another webpage and just paste the script in there and then call it, like they say below: "To call the function you would use the following code:" <a href="my-pop-up-window.htm" <br> onclick="popUp(this.href,'console',400,200);return false;" <br> target="_blank">This is my link</a>
I'm a bit confused where I am supposed to inserting the page name for the popup that I want to pop up vs inserting the pagename for the script page that I guess I have to make. So what are the steps that I would take to do all of this?
I have one page with <select> list in it, which opens a popup with another <select> list. Those two list are linked... When I select something in the list that is in popup window and confirm the selection (by pressing button), I call a function that fills the "parent" window and forces popup to close. All this is accomplished by directly accessing another list:
for(var i = 0; i <= selLength; i++){ name = parent.window.opener.listValues.options[i].text; value = parent.window.opener.listValues.options[i].value;
self.document.form1.itemList.options[i] = new Option(name, value); }
And this doesn't seem to work with IE. With Firefox is OK.
I have a client which would like to use Adobe Contribute to maintain their website, and the website requires popup windows (for larger images) or a lightbox feature. The problem is how do I make images popup into new windows, without toolbars, etc. I would prefer lightbox than popup windows, if possible. How I can do this, so the client can add more images, as they maintain their website? For anyone that hasn't used Contribute, you can only edit <a href="page.htm"> and nothing else for the links, so it means onclick can't be added to <a href="page.htm">. The only way to add a link is to click on a button in the tools.
for opening a PopUp Window I use the Popup.js from Adrian "yEnS" Mato Gondelle. Adrian has written a function to center the popup by calculating the window height/with and popup width/height as well ans putting the coord in the middle of these coordinates. Like this:
function centerPopup(){ //request data for centering var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight;
[Code].....
My Problem with this is, that it only centers the Popup correctly if you haven't scrolled down the page. What I need is a jQuery way to get the height of the actually scolled position to calculate the correct value for the top css parameter as well, to get my PopUp every time in the correct top/left position without having this scrolling bug. Is there a way in jQuery how I can get the scrolled down coordinates? I need the height of the scrolled position and by adding the half height of the screen resolution I have the css top value which I need here.
This is my first post to this forum. When a button in parent window is clicked multiple times, more than one popup window is opened. This problem is occurring in linux firefox and mozilla browsers. In windows the code is working fine. Is there any option in window.open() method to open a popup window once. s there any known issue regarding this case?. Need a workaround to fix this issue.
I read about window object and specifically about creating popup windows. The code below produces a popup window when a link is clicked:
Code JavaScript: var Survey = { init: function() { var surveyLink = document.getElementById("survey"); Core.addEventListener(surveyLink, "click", Survey.clickListener); }, [Code]....
I would like to add a "Close Window" button on survey.html page and when that button is clicked, the window would close. How do I do that? I know that I should use (reference to popup window).close(), but how and where do I attach even listener to that button?
For some reason pop up windows are no longer working on my pc. And no, I dont have any popup killer installed. The problem is across all websites I look at on my browser.
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript"> function PopShow3() { CookieTest=navigator.cookieEnabled; if(CookieTest)
This pops up a new window with every call. In the child window I call a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){ window.opener.CloseChild(getQueryString("application")); }}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have one child window open, but as soon as I create another child window both of the open child windows don't ever call it. They do both go into the onbeforeunload appClose() function, but do not call the window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't access the window.opener functions?
I have tried taking each new window out of the array and used the following code in CloseChild() :
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?
From a parent window, I open two child windows.In the second child, you complete some data, and then it closes the window. I'm trying to figure out how to find and close the first popup window at the same time (as that is used for reference but no action necessary on it).As near as I can tell window.open should let me set a handle that I can then reference later on to close that window (or am I misunderstanding that), but i cannot figure out how to reference that window.
As per the rather long subject, I would like to (well, my boss would like me to...) on a popup have one button to close and another to close but then redirect to another page.
I would like to pop up a new window when the mouse over an icon, but I don't like to link to another new page, as I will get the details in the database and then I will add those details as the text in the pop up window.
Does anyone know how to do this in svg? is it use the javascript?
The following code is used by myself to create a new window what i would like to do is to on the submission of the form to close this newly created window and to submit the form back to the parent window.... Is this correct? Code: