Problem in calling window.open using onclick

Would anybody please help to explain why it doesn't work for method 2?Now I am very headache as I cannot explain why this work to my boss.
I want to popup a new window when clicking the logon image. Method 1 works fine, but no response for Method 2.
Method 1:
<A onclick="window.open(' https://www.dummy.com','test','width='+screen.width+',height='+screen.height*0.88+',location=no,directories=no,menubar=no,toolbar=no,scrollbars=yes,status=yes,resizable=yes,left=0,top=0'); " href="javascript:void(0)">
<IMG alt=Logon src="logon.gif"></A>
Method 2:
<IMG alt=Logon src="logon.gif">
function pws_logon_en() {
pws_popupNewBrowser ('https://dummy.com', 'yes', 'no', 'yes', 'no', 'no', 'yes', screen.width, screen.height*0.9);
function pws_popupNewBrowser(url, status, location, scroll, mbar, toolbar, resize, width, height, winname)
     !winname? winname='nb':winname=winname;
     nb=window.open(url, winname, 'status=' + status + ',location=' + location + ',scrollbars=' + scroll + ',menubar=' + mbar + ',toolbar=' + toolbar + ',resizable=' + resize + ',height=' + height + ',width=' + width + ',left=0,top=0');
     nb.focus();
}

> <IMG alt=Logon src="logon.gif">
Where is popup() function in your method 2?

Similar Messages

  • Want to hide address,Tool,link bars of a new window opened using target="a"

    Hi,
    I have to hide the address bar, tools bar, lilnks bar of a new window opened using the target = "detailWindow".
    I am opening the window on click of a link and button but I cannot use window.open();. On click of the link for the first time a popup window should be opened showing respective data and then on click of the hyperlink the same window (pop up) should get refreshed with the new data.
    I have searched a lot regarding it but I haven't found any proper solution for the same. I have tried using the javascript but only solution I found is to make the window fullscreen.
    Can anybody help me by providing the solution for the above problem?
    Thank you.

    Not possible.
    Use window.open(). There it is for.

  • I purchased an in-app component but it has not downloaded and I cannot seem to contact the seller. I've tried to report a problem but no window opens in which to report the problem. Any ideas?

    I purchased in in-app component for an email program but it has not shown up in the app on my ipad. I tried to report a problem, but no window opens in which to explain my situation. How do I get a message to the seller or to itunes? I am reluctant to re-purchase the component.

    Can you download large files from other places apart from the App store, wondering if it is the App store or your internet connection.
    If it just the app store check this url http://www.apple.com/support/mac/app-store/contact/

  • Firefox 5.0.1 on OsX Lion: big problems on popup (window.open)

    I just updated OSX to the recent Lion. Firefox 5.0.1 have a big problem with EVERY POPUP invoked by
    onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" in the a tag, with href correctly specified.
    Ignores the widths and the heights (goes almost full screen, without bars) and the problem is that it doesn't load any page.... it remains blank!
    It occurs on every joomla site having print and email icon on articles, or any other site that uses this kind of opening a popup.
    UPDATE: discovered the problem. Firebug, latest beta build.

    Not only on youtube, but everywhere: other video sites, browser games, etc.

  • A lot of problems after installing Windows XP using Boot Camp on a Mac Book

    I have been having a lot of problems after installing Windows XP Home Edition (2002).
    For one, after installing Windows using Boot Camp with Mac OS X 10.5.1, I opened Windows on my Mac Book, inserted the Mac OS X Disk 1 as in the instructions and got the message: +"This package requires a newer version of the Windows installer. Do you want to update the version of the Windows Installer on your system?"+ When I clicked Yes (I had NO idea what it meant at the time), I got the message: "The required resource 'UPDATE' is missing" and the Installer quit.
    How do I fix this problem?
    Another problem I have is that there is no sound on the Windows XP, yet it works perfectly on Mac OS X. Is there any way to fix this problem?
    A third problem I have is that I can't wirelessly connect to the internet using Window XP, yet I can on Mac OS X. I have no idea on how to fix this, and it's really messing with me. D:<
    D: There are way too many problems, and I have a feeling there will be a lot more later on. Help....
    ~Twilight

    ---I'm moving this topic to the Boot Camp forums.
    -Twilight

  • How to remove address area in the New window opened using  getURL()?

    Hello everyone,
    I am trying to open a NEW window from Flash and I am using
    the following code to do so.
    getURL("javascript:window.open('
    http://www.MyDomain.com/demo/','Demo',
    'width='+((screen.width*3)/4)+', height=' + ((screen.height*3)/4) +
    ', top=' + ((screen.height*1)/16) + ',
    left='+((screen.width*1)/16)+' , fullscreen, toolbar=no,
    scrollbars=yes, resizable=yes, menubar=no, status=no,
    directories=no, location=no'), void(0)");
    This line of code opens a NEW window but I still have web
    address area available in the new window. Can someone be kind
    enough to tell me how I can remove the web address area on the top
    of the window?
    Thank you very much and have a great day.

    Thanks for answering Frank, goLink may be linked to a method of backbean?
    That what we need is to generate jobId through a method and immediately after deployment of the report on another page.
    Already tried to goLink component but unfortunately does not have the property to execute a method Action.

  • Problem with new window opening with basic test JTree program

    I'm still getting to grips with Swing, and have now moved on to basic JTrees.
    I'm currently trying to use an add and delete button to add new nodes to the root etc. The addition and deletion is working ok, except that each time the addButton is pressed, a completely new window is created on top of the current window with the new node added to the root etc.
    I know this is probably a simple mistake, but I can't quite see it at the moment.
    My current code is as follows,
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class TreeAdditionDeletionTester_1 extends JFrame implements ActionListener
        private JTree tree;
        private DefaultTreeModel treeModel;
        private DefaultMutableTreeNode rootNode;
        private JButton addButton;
        private JButton deleteButton;
        private JPanel panel;
        private int newNodeSuffix = 1;
        private static String Add_Command = "Add Node";
        private static String Delete_Command = "Remove Node";
        //DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root");
        //TreeAdditionDeletionTester_1 treeChange;
        public TreeAdditionDeletionTester_1() 
            setTitle("Tree with Add and Remove Buttons");
            //DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root");
            rootNode = new DefaultMutableTreeNode("Root");
            treeModel = new DefaultTreeModel(rootNode);
            tree = new JTree(treeModel);
            tree.setEditable(false);
            tree.setSelectionRow(0);
            JScrollPane scrollPane = new JScrollPane(tree);
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            JPanel panel = new JPanel();
            addButton = new JButton("Add Node");
            addButton.setActionCommand(Add_Command);
            addButton.addActionListener(this);
            panel.add(addButton);
            getContentPane().add(panel, BorderLayout.SOUTH);
            deleteButton = new JButton("Delete Node");
            deleteButton.setActionCommand(Delete_Command);
            deleteButton.addActionListener(this);
            panel.add(deleteButton);
            getContentPane().add(panel, BorderLayout.SOUTH);    
            setSize(300, 400);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setVisible(true);
        public void actionPerformed(ActionEvent event) 
           TreeAdditionDeletionTester_1 treeChange = new TreeAdditionDeletionTester_1();
            String command = event.getActionCommand();
            if (Add_Command.equals(command)) {
                //Add button clicked
                treeChange.addObject("New Node " + newNodeSuffix++);
            } if (Delete_Command.equals(command)) {
                //Remove button clicked
                treeChange.removeCurrentNode();
        public void removeSelectedNode()
            //get the selected node
            DefaultMutableTreeNode selNode = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
            //method from Class JTree
            if (selNode != null)
                //get the parent of the selected node
                MutableTreeNode parent = (MutableTreeNode)(selNode.getParent());
                //getParent() from Interface TreeNode
                // if the parent is not null
                if (parent != null)
                    //remove the node from the parent
                    treeModel.removeNodeFromParent(selNode);//method from Class DefaultTreeModel
                    return;
        public DefaultMutableTreeNode addObject(Object child) {
            DefaultMutableTreeNode parentNode = null;
            TreePath parentPath = tree.getSelectionPath();
            if (parentPath == null) {
                parentNode = rootNode;
            } else {
                parentNode = (DefaultMutableTreeNode)
                             (parentPath.getLastPathComponent());
            return addObject(parentNode, child, true);
        public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
                                                Object child,
                                                boolean shouldBeVisible) {
            DefaultMutableTreeNode childNode =
                    new DefaultMutableTreeNode(child);
            if (parent == null) {
                parent = rootNode;
            treeModel.insertNodeInto(childNode, parent,
                                     parent.getChildCount());
            //Make sure the user can see the new node.
            if (shouldBeVisible) {
                tree.scrollPathToVisible(new TreePath(childNode.getPath()));
            return childNode;
        public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
                                                Object child) {
            return addObject(parent, child, false);
        public void removeCurrentNode() {
            TreePath currentSelection = tree.getSelectionPath();
            if (currentSelection != null) {
                DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode)
                             (currentSelection.getLastPathComponent());
                MutableTreeNode parent = (MutableTreeNode)(currentNode.getParent());
                if (parent != null) {
                    treeModel.removeNodeFromParent(currentNode);
                    return;
         * Main method to run as an Application
        public static void main(String[] arg) 
            TreeAdditionDeletionTester_1 addDeleteTree = new TreeAdditionDeletionTester_1();
    }      Thanks.

    I'm currently trying to use an add and delete button
    to add new nodes to the root etc. The addition and
    deletion is working ok, except that each time the
    addButton is pressed, a completely new window is
    created on top of the current window with the new
    node added to the root etc.
    I know this is probably a simple mistake, but I can't
    quite see it at the moment.
    Look at the actionPerformed code for your buttons. The first thing you do there is to create a new TreeAdditionDeletionTester_1, so I don't know why you are surprised you get a new window. There is no need to create a new instance in there, just call addObject/removeCurrentNode on the "this" instance.

  • Problem connecting to Windows Server using RDC with RDP SSL on PowerPC Mac

    At work we use Windows Terminal Server 2003. We have multiple Macs connecting remotely using Microsoft Remote Desktop Connection 2.0. We recently changed settings to require SSL security on all remote connections. Everything works fine with Intel based Macs, but no PowerPC based Mac has been able to connect since enabling SSL. The error message states "you have been disconnected from the Windows-based computer because there were problems during the licensing protocol."
    In the Administrative tools of the Terminal Services Configuration on the server, the Security Layer is set to SSL. If we change the security layer back to RDP Security Layer, the PowerPC based Macs can connect without a problem. The Encryption Level settings seems to have no effect on the connection.
    Does anyone have experience with this problem or know of a solution?
    Thanks in advance!
    David

    You may want to post over in the Microsoft forums for their Mac version of RDC: http://www.officeformac.com/productforums

  • How to back to Caller windows from used component windows ?

    Hi All,
    Please advise on my problem.
    I have 2 webdypro component named as A and B. A will be using B for Used Component.
    The problem is how to back to A after calling component B, because both in the 2 different Webdynpro component and i can put A on the B used component ?
    A -
    > B  
    B -
    > A (?)
    Best Regards
    Fernand

    Hi Fernand,
    If you want to navigate back to Component A from component B then
    1) create an Outbound Plug of type Standard in the Interface View of DC-B.
    2) In the View Properties add the Interface View as the required controllers.
    3) In the action of button fire the outbound plug created above. i.e.,
    wdThis.wdGet<InterfaceViewController>().wdFirePlugTo<PlugName>();
    4) In the View of DC-A create an Inbound plug and link it to the outbound created above.
    Hope this helps.
    Thanks & Regards,
    Jhansi Miryala

  • Problem with calling a function through onclick event in a tag

    Hi All,
    I have a text which should act as a link.
    On click of this text i need to display the table in the same page.
    this is how i want to do
    !<_ a     !st y l e='cursor pointer' h_ r  ef ='  #' !o n cl ick = " l o a dtc () "  _> display table _<  /  _a  _ >
    !<   % if i_ref = ' X' % _>
    !<   !h t m lb : t a bleVi ew id =" tv_vbak " tabl e= <  %  = it_vbak  % _ >
    !< s_c rip  t t y p e  =   "te  xt/ja  v a s c r ipt" >
    !f unct io n lo a dt c ()
    i_ref='X'.
    !<  _/ s c r i pt _>
    here am setting a flag and if that flag is set i will display the table.
    Please ignore the unewanted characters in my code. i was not able to paste the code directly.
    Thanks,
    Sandeep
    Edited by: SandeepReddy on May 25, 2010 9:22 AM

    Hi Sandeep,
    are you using javascript to get the link in the text view?
    i will tell u onething clearly.
    if you are using javascript in ur code, debugging will not wrk properly , what you need to do is add the alert in between so that you can know whether that particular code is wrking or not ok. 
    2) to call the javascript from the textview or the inputfield you have a attribute called onClientClick you need to call the function there and implement that function in javascript.
    <htmlb:textView text   = "<%= i_str %>"
                            design = "EMPHASIZED"
                            onClientClick = loadtc() />
    add ur javascript code ok
    cheers
    Bhavana
    Edited by: Bhavana Amar on May 25, 2010 10:25 AM

  • Problem in calling Client proxy using ABAP Report

    All Your inputs and various threads were really helpful . i have followed this blog as well /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Now after all while trying to pass values to proxy i have an issue : in the above blog there is a small pinch of code for referencing the proxy through an abap report.
    i.e. &----
    *& Report  ZBLOG_ABAP_PROXY
    REPORT  zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE  zblogemp_profile_msg.
    TRY.
        it-emp_profile_msg-emp_name = 'Sravya'.
        it-emp_profile_msg-empno = '80101'.
        it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    now instead of the DT being in this way : i.e. :
    EMPProfile_MSG       OCCURENCE
      EmpNo                 1
      EmpName               1
      DeptName              1
    Instead if the DT / MT for which the proxy is generated is in this format for table data input then whats the way ?
    EMPProfile_MSG       OCCURENCE
    .....Item            0..Unbounded
    ...........A              1
    ...........B              1
    ...........C              1
    ...........D              1
    Please advice,
    Krishna

    Hi,
    Did you create a Data type,message type and Message interface and generated the proxy in trnx SPROXY?
    If so, then a class gets created like ZCO...........
    under which, structure gets created as you did in IR of XI.
    Need to implement a BADI and Ztable on the Abap stack.So you get the values dynamically to your proxy.
    For each change in your emp details,there will be a record in Ztable.
    Hope you understand this.
    Regards,
    Joslyn

  • Window.open problem

    Good Morning,
    I am having problems with the window.open() syntax. My application has 14 pages and is in 3.2. I need the whole application open in a new browser window. I have tested the code with a blank screen on page 101 and it opens correctly. When I put in the actual URL, the window will open multiple windows, where I have to go into task manager and end all processes. Will I have have this code on each page?
    Code below:
    header
    function fullscreen_fun()
    window.opener=self;
    window.open=("f?p=&APP_ID.:101:&SESSION.","","height=350,width=350");
    window.close;
    </script>
    onload="javascript:fullscreen_fun()"I need the entire application open in a new browser window.
    Thanks,
    Mary

    I'm assuming you're talking about Solution 1 in that blog post. The reason that he opens the application's window from a temporary HTML page is to avoid the exact problem that you described initially. By having that code within your application, you're opening a new window to your application which then opens a new window to your application which then opens a new window to your application, etc. etc. Using Solution 1, you'd define a HTML page which opens a new full-screen window to your application, then the HTML page closes itself. You give only the URL to the HTML page to your users.
    If you don't want to use an intermediary temporary page, then Solution 3 is probably the next best - at least it doesn't rely on IE-only. It's simply telling the browser window to resize itself.
    I haven't tested these so I can't speak to any of their applicability. I strictly avoid tinkering with browser behavior via code anyway - it always, always, always leads to trouble. My only recommendation on that besides "don't do it" is to comment liberally, because I guarantee you'll be back in that code someday.
    But please, take a look at the database design too. Nothing you're attempting to do here is going to stop incomplete transactions from being created - only a good database design with solid referential integrity and constraints is going to do that.
    Hope this helps,
    John
    If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.*

  • AS 3.0 - using ExternalInterface.call to open a .pdf

    Hi - using Flash - AS 3.0:
    I am trying to use ExternalInterface.call to open a .pdf file - but it is not working - nothing is happening...
       ExternalInterface.call ("window.open","diagrams/v1/crh.pdf", "WindowName", params);
    but this line DOES work - call an .html file to open.
       ExternalInterface.call ("window.open","m5_quiz/v1/quiz.html", "WindowName", params);
    I can't find any information that says this should or shouldn't work - it seems to me it should open it.
    To get around this - I have been using 'navigateToURL' to open the pdf file - but that triggers the pop-up blocker - using the External Interface call does not.
    Any help/ideas?
    Thanks,
    Lisa

    I agree - that code - if it opens an html should open a pdf - but it doesn't.  And I don't know why..
    Why is the code screwy?  Could I do it better another way?
    Thanks

  • Problem in Calling a report from form 6i using parameters

    Hello Oracle experts,
    I am facing a problem while calling a report using form 6i and passing parameters,
    Actually the problem is I want to use the parameters passed to reports in a
    query group in my report. I am not able to use the parameters passed by form to report in one of my query groups in report. Could anybody guide my how to use it.
    Thanks

    Hello Oracle experts,
    The parameters are getting passed successfully in my report.
    But I want to know hous to use it in my query group.
    I just want the syntax.
    Thanks

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

Maybe you are looking for