Javascript popups that open in same window causing focus problem

I have been using javascript popups in actionscript buttons
for some time with no issues. However, on a specific movie I have 2
button links, each of which opens a pdf file. I need each pdf to
open using the same new window to avoid multiple new windows
opening.
This works fine on the first link I open - the new window
appears on top of the main window. The second link, however, opens
underneath the main window despite the focus() code. This only
happens in IE - works fine in Firefox.
Code used:
link3_btn.onRelease = function() {
getURL
("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,height=500,left =1
0,top=10,toolbar=No,location=No,scrollbars=Yes,sta
tus=Yes,resizable=Yes');NewWindow.focus();void(0); ");
link4_btn.onRelease = function() {
getURL
("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
10,top=10,toolbar=No,location=No,scrollbars=Yes,st
atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;");
Any help would be appreciated. Thanks.

This is how the code should look:
link3_btn.onRelease = function() {
getURL
("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,
height=500,left=10,top=10,toolbar=No,location=No,scrollbars=Yes,status=Yes
,resizable=Yes');NewWindow.focus();void(0); ","_self");
link4_btn.onRelease = function() {
getURL
("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
10,top=10,toolbar=No,location=No,scrollbars=Yes,st
atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;","_self");
}

Similar Messages

  • How to replace LOV popup with a search screen that opens within same window

    Hi,
    We have a requirement to get rid of LOV popups from our custom OA pages. They need to be replaced by search pages that open within the same window.
    For example, we are creating an employee assignment to a department. We first find the employee (currently using the LOV), then the department (currently using another LOV) and then save the new assignmnet record.
    The two options we have are:
    1. search page fully replaces the current page, and when the user has selected a record, it returns them back to the first page, setting some fields, eg. employee id, employee name, employee address fields.
    2. search page opens in a region of the same page (PPR?) and then disappears once the user has seleted a record.
    I am not sure how to do this, and really could do with some pointers, i.e. the best way to achieve this.
    Thanks in advance
    Mark

    Both of your options are valid with some pros and cons.
    option 1: It gives you a nice interface but then you will have a pass a large number of data back to 1st page.
    options 2: You can use the Rendered property of a serach region at runtime and achieve your goal. Since it will be a single page, result set to base items mapping will be easier. Though this kind of UI will look bad if your search region is big.
    So it all depends on which option is easier to implement for you.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • XML Edit Form should open in Same window (Not a popup).

    Hi all,
    I have requirement to open the Edit form in Same window (Not a popup).
    Assign the NewsExplorer Layout the user has edit and delete button. If the user edit the news it should not open in new window.while edit also should open in same window.
    And while creating the news by using Xml form the EDIT form open in new window but i my requirement to open in same window.
    Its possible? How to achieve this? Helpful replies will be appreciated.
    Thanks and Regards
    Thillai J

    Not solved

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Menubuilder- Open in Same Window?

    I have the advanced link setting for my links as "Open in
    same window." The links continue to open in new windows. Is this
    feature not desinged to launch the files in the same window as the
    menu. Please help. Thanks.

    Hi MissDona
    I'm going to say "it depends". Normally, this is the default
    behavior. But it likely will depend on the output type you are
    creating. For example (and I'm somewhat assuming you fall into this
    category) if you create .EXE output from MenuBuilder, a new
    instance or window always opens, as MenuBuilder packages up the
    Flash Player inside the .EXE. Thus, this version of the player runs
    from a temporary location and has no clue about other movies and
    whatnot.
    Cheers... Rick

  • How do I turn off the feature that opens the last window in an application

    Hello;
    I want to turn off the feature that opens the last window when I return to an application.
    Matt

    System Prefs > General > Last checkbox at the bottom.

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Links that open a new window with javascript:void(null); do not work in 3.1

    I've been noticing that any site I go to that opens content in a new window with "javascript:void(null);" will be ignored by Safari 3.1. The links work in Firefox and used to work in Safari as well. Any suggestions?

    General rule of thumb in the Mac universe...
    When Safari is updated most if not all third party add-ons break. That's because most don't play by the rules. The developer thinks they know how to do it better than Apple so they just do it their way. So the first rule of survival is to KNOW what you have installed on your machine at all times. Use something like textedit to create a document listing all of the third party stuff you have installed and religiously update the list. Second rule is to wait a few days before applying an update. Third rule is to visit your third party developers' sites and make sure their little gadget is compatible with the new Safari update.
    Being aware of things will make life much easier for you in the long run.

  • Force Flash weblink to open in SAME window as movie

    I'm using Adobe Encore CS4 to create a project that I want to export to Flash. However, I want one of my menus to be replaced by a web site.
    The goal is to have a flow such that:
    Menu 1.
    <User Clicks Item #1>
    Timeline plays
    user is forwarded to a website
    I have implemented this as follows:
    Menu 1.
    Button 1 --> Timeline --> Menu 2
    on menu 2, I set the description to:
    <weblink href="webpage.html">
    as suggested in the manual.
    This works, apart from the fact that after the timeline ends, the flash movie goes black, and a new window is opened with webpage.html (which is blocked by popup blockers unless specifically allowed).
    What I would like is for webpage.html to be opened in the same window, so that the flash movie is no longer visible.
    I have tried modifying the description field to
    <weblink href="webpage.html" target="_self">
    but it doesn't help. In the generated AuthoredContent.xml, I've tried changing the <action> item:
    <Action type='Link' url='webpage.html'>
    to:
    <Action type='Link' url='webpage.html' target='_self'>
    to no avail. I can't seem to find any documentation on these fields.
    Is anyone able to help?
    Thanks in advance!

    Hi,
    I'm not aware to force this behaviour, but if it is a regular link you can drag the link onto the same tab heading you are currently looking at. Obviously this won't work for form submissions where there is no link to drag as such

  • Have search results link open in same window

    Hello,
    I'm looking at the FlexUI stuff and wondering before I delve too deeply... that and my Portal is currently not cooperating.  How can I make it so that when the user clicks on a search results link, it shows in the same window (as opposed to opening a new window)?
    Thanks,
    Mike

    Hi there,
    we had the same issue - I opened an OSS and got following reply :
    <i>
    <b>08.03.2007 - 12:45:49 CET    SAP    Reply</b>
    I have checked from my development colleague and confirmed that
    this parameter is not supported currently and development has recently
    no plans to support this feature.
    I apologize for the inconvenience caused here.
    Thank you for your cooperation.
    Best Regards
    </i>
    Can you believe this ? I don't, as this parameter has been around since SP12 or so and still there is no official note regarding this issue.
    > Please reward points :o) <

  • Search results link which open in same window

    Hello,
    i want to open the search result documents in the same window as the search result. Therefore i edit the field 'Target Window Type' in the SearchResourceRenderer to 'SELF'  which is used in the SearchResultLayoutSet.
    But the document also is opened in a new window.
    What i have to do?
    Best regards,
    TomSd

    Hi there,
    we had the same issue - I opened an OSS and got following reply :
    <i>
    <b>08.03.2007 - 12:45:49 CET    SAP    Reply</b>
    I have checked from my development colleague and confirmed that
    this parameter is not supported currently and development has recently
    no plans to support this feature.
    I apologize for the inconvenience caused here.
    Thank you for your cooperation.
    Best Regards
    </i>
    Can you believe this ? I don't, as this parameter has been around since SP12 or so and still there is no official note regarding this issue.
    > Please reward points :o) <

  • Report Report Interface open in same Window

    Hi experts,
    I have an WebApplication which can jump to another Query.
    I want that query open in the same window without replacing the WebApplication. I tried all the open modes in WAD but they allways replacing the whole WebApplication or open in a seperate window.
    Has anyone an idea i can do this?
    thanks in advance
    Quan

    Hello Quan,  
    Check the HTML source of the web template and include
    TARGET = _SELF in the <A> tag
    Example
    <A href=your url *TARGET = _SELF*> Report Name </A>
    This will open the new report in the same window.
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

  • Need help with making the webpage open in same window

    Hi. I want to make the menu page load in the same window.
    Right now, if you click on the index page, it will open the menu
    page in a new window. I know I need to use _self, or _parent. But I
    couldn't figure out where to insert it. Please help. Thanks.

    in case of your mentioned function it'd be just like:
    inv_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    function buttonClickHandler (event:MouseEvent):void {
    navigateToURL(new URLRequest("
    http://www.detailshardware.com/menu.html"),"_blank");
    That's all.

  • How to have Safari links always open in same window

    I've been researching how to have Safari always open links in the same window, but it appears this can't be done?  I've seen this third party app, but am afraid of installing something that doesn't come from the app store because it might harm my macbook.  Does anyone have any thoughts about how to have links always open in the same window? Or how to find out if I can trust this app:
    http://canisbos.com/linkthing

    You can reset the folio by triple tapping the title in the nav bar.
    Bob

Maybe you are looking for

  • How to install fonts ?

    i  bought the  font  colection on the app store  and i  cant  figure out how  to get  it to show up in illustrator  it tells  me to save  but i  did that  to were it wanted to witch was  documents  and im  unable to see them in my list of choises .

  • Credit Card Transaction Loader Interface Errors Out

    Hi to All, Ran into a problem when trying to load credit card transactions from a file on file server. Rand the following request: Credit Card Transaction Loader Interface Received the following error message: This request finished with an error and

  • Multiple forms through process and forms

    Hello ALL, We are using process and forms for maternity, paternity and adoption leave and not able to control creating multiple forms by employee. We have not activated parallel run option, still system is allowing user to create multiple document fo

  • Oracle DB connectivity issue

    Hi All, I have the following environment : • Server01 CPU: 2x Intel(R) Xeon(R) CPU E5540 @ 2.53GHz (quadcore) Mem: 42 Gb NICs: 2x HP NC326m PCIe, 2x HP NC532i Dual Port 10GbE SO: Windows Server 2003 R2 SP2 EPM Tools installed (11.1.1.3 version): Hype

  • Need help on submitting ALTER SYSTEM command.

    I have a report of a list of active xml threads from our EM repository, which is pulled from 4 RAC instances. I have a region with this statement: select a.inst_id, a.sid,a.serial#,b.instance_name, b.host_name, a.machine, a.status from gv$session@emr