window.open

What's going wrong with window.open here?

I'm encoding the parameters in a url and setting the href of an a tag as follows: href="javascript:var win=window.open('LayerPreview.aspx?tLNUMCswKSXpnGpQy1rWev26c5euEUa97eqiZYdDpMvDcKNbi6Z05Q3WC5DhG%2b8HJFGHAo%2fHiSFrtEEsHiConkpaT2aJ2WV0Hxxqo2l1bmkNdAotVVvI%2fT4JtE%2fc3dJ8MEAhM3NJZ15qk3fkW87q9A%3d%3d','','width=800,height=600,resizable...

Saving a child window saves the parent window instead (Javascript)

Hello All, I have a bit of Javascript code that creates a "save friendly" version of a webpage. child = window.open("","child"); child.document.write(htmlPage); "htmlPage" is the basic html of the page with all the javascript references taken out, a different set of header images references, etc. Everything displays perfect...

Open new browser window on click of a form button

I want to open a new browser and load a page from the file system (which will be created on clicking that button). My app is a java servlet. Basically I am allowing users to change some HTML on their website. On clicking the button the user get's to see a preview page, that shows what the page looks like with the changes made. What woul...

Menu bar not displayed on window.open for Mozilla Firefox

When I run the JavaScript code below in Mozilla Firefox, the menu bar does not show: window.open(location.pathname + "?print=print", "print-window", "toolbar=yes,location=no,scrollbars=yes,menubar=yes"); What is going wrong here? Note that I'm opening the same file (in another w...

Javascript opening maximized window when unintended

Hey. The following line was opening a 490x610 window, but after modifying some other code, it started to open up the full page new window. Any ideas as to why? <a href="cart_display.php" onclick="window.open('uploader/upload_files.php?order_id=32063700', '','width=490,height=610')">Upload Here</a> ...

Opening a folder through FireFox with HTML

Hello: I recently built a HTML and Javascript web application that opens specific folders throughout a network of accessible drives. This app works well when it is rendered in IE; however, the folder paths do not work in FireFox. The following is an example of the path format that I am using to open the folders in IE: { window.op...

window.open() not playing well with anchors in Firefox 3.

The following javascript, intended to open a new window and jump to a specified anchor, works great in IE. Unfortunately, in Firefox, it opens the window, but it doesn't jump to the anchor. I've been struggling with this problem for a couple of days now (searches and modifications) to no avail. If anybody has any insight as to how I ca...

"Diagnostics Results" is an invalid value for the window title in window.open function

Did you know? "Diagnostics Results" is an invalid value for the window title in window.open function wtf? ...

Internet Explorer calling window.onbeforeunload on window.open and AJAX calls

Ok, I have spent a while on this problem and this is what I have gathered: If you make an AJAX call in IE7 and you have a window.onbeforeunload function specified, it calls the onbeforeunload function. If you try to open a new window with window.open WITHOUT disturbing the current window, the onbeforeunload gets called. Does anyone k...

window.open broken on FireFox with Google Toolbar installed

Just now I started having problems with a site I'm working on. The problem occurs when opening a window with a simple window.open. var popup = window.open("picture.php?id="+id, "gallerypicture", "width=737, height=543, top="+top+", left="+left); popup.focus(); For some reason Google Toolbar starts breaking stuff as soon as the wi...

Javascript: Open 1+ links (that dont have content)

HI, This makes no sense, but for example if i downloaded a file to your /Downloads folder and i wanted to run file:///.../Downloads/myfile1.txt i could just go: window.location = "file:///.../Downloads/myfile1.txt; But if i had say 10, or it was generated by a script.. how could i do effectively this.. open ...myfile1.txt => ...myfile...

Javascript Window.open Issue IE7 / IE8

Hi, I have created a simple JQuery script that loops through an array of urls and opens multiple windows. This is working fine on the majority of platforms. However, in IE7 and IE8 on a client's machine the browser is only opening a single window. No javascript errors are present. I have the same versions on my laptop and it works fi...

Javascript,calling child window function from opener doesn't work

Hello! I'm developing a web application that opens a popup using windows.open(..). I need to call a function on the opened window using the handle returned by "window.open", but I'm always getting the error message "addWindow.getMaskElements is not a function", as if it couldn't access the function declared on child window. This is the b...

Javascript "window.open" code won't work in Internet Explorer 7 or 8

I am using this chunk of jQuery/Javascript code on my site to open a popup window: $('#change_photo_link').click(function(){ $id = $('#id').attr('value'); window.open("photo.upload.php?id=" + $id,"Upload Photo", "menubar=no,width=430,height=100,toolbar=no"); }); This code works on Firefox and Chrome. It does not work on ...

Browser window centering problem

Hi, I am trying to launching a centered browser window via a form-button using the following code... Test button The new browser appears the correct height and width, but the left and top attributes are ignored, so the window appears top-left. Am I being too ambitious trying to make this code in-line? Is there any other syntax I sh...

javascript to launch only ONE window for a Java applet with a given URL

I need a javascript solution to launch only one window, with a Java Applet in it, for a given URL. I found a solution posted here on Stack Overflow - here: http://stackoverflow.com/questions/528671/javascript-window-open-only-if-the-window-does-not-already-exist But it doesn't seem to work .. I get Error: launchApplication.winrefs is ...

How can you pass JSON Object of option parameters to open a new window?

the window.open() object has some funky parameter list... is there a way to do something like window.open({options..}); Thoughts? ...

Open window from iframe

Hey there, This is the situation. I'm trying to provide a service where someone embedds an iframe on their website with a form in it. At the end when an ajax request comes in again I want to pop a new window with a thank you note in it. window.open does not work and my guess is because the window object belongs to the page that embedds ...

Find window previously opened by window.open

We've got the following situation, running from a single domain: Page A uses window.open() to open a named window (a popup player). window.open() gives page A a reference to the window. User now reloads page A. The reference to the named window is lost. Using window.open() to "find" the window has the unfortunate side effect of reloadi...

problem with select boxes - second options based on first selection

Hello All, I just posted a question about opening in a new window but if I use window.location it doesn't work?? is there a problem with my javascript? <script type="text/javascript"> function setOptions(chosen){ var selbox = document.formName.table; selbox.options.length = 0; if (chosen == " ") { selbox.options[selbox.options....