Window open function

Hi,
I am using the following link to open a new window. but it opens two windows. I dont know why?
a href="javascript:window.open('index.html','newWin','toolbars=no')"
It opens index.html and also some other page in between saying
[object].
I cant figure it out why?
please help.
Thanks

Hi,
I have one jsp and want to pass the parameters to another jsp. But the second jsp should open without menubars.
The link is as follows :
<a href="customerbill.jsp?reserve_id=<%=a%>&days=<%=b%>&rate=<%=c%> onclick="window.open('customerbill.jsp', 'newwin','toolbars=no')">hi</a>
It opens a new window on top on the original window.The new window does not show any data. The original window shows the data. How can i solve this?
Please help.
Thanks

Similar Messages

  • Pop up window, and window.opener function using workshop?

    hi,
    pop up window, and window.opener function using workshop?
    hi,
    i am having two folders.
    one folder having
    abc.jpf file,
    test1.jsp
    second folder having
    xyz.jpf
    test2.jsp
    i am using weblogic workshop8.1
    i need to call test2.jsp as pop up window
    from test1.jsp.
    i need to pass value from test1.jsp to test2.jsp
    again i need pass value from test2.jsp to test1.jap
    normal jsp programming we can use window opener
    javascipt function to do above.
    same thing how to us in weblogic workshop?
    any can help?
    thanks,
    jp reddy

    Hi,
    assuming action.do is the action method of ....../folder1/abc.jpf you can try out this in the test1.jsp,
    function openNameHistory(url) {
    var args = "<%= request.getContextPath() %>/folder1/"+url;
         window.showModalDialog(args,'','dialogHeight:320px;dialogWidth:600px;scroll:yes;status:no');
    <netui:anchor href="javascript:openNameHistory('action.do')">Name History</netui:anchor>
    u need not specify the abc.jpf in the url because , workshop allows only one jpf per folder
    hope this helps...
    regards
    shakan

  • Window.open function in java script used to open the BI report from APEX

    Hi,
    I have some oracle reports now which I converted to BI publisher and the reports are now in BI publisher.
    My question is
    To open the BI report from APEX using a button the following code i have written
    window.open
    ('http://bipubdvserver/xmlpserver/testreport/testreport.xdo?_xpf=&_xpt=1&p_dept_no=&deptno',"mywindow");
    I want to pass the parameter deptID dynamically to call the BI report.
    But when I click on the button it is showing the file open/save dialog box without accepting the parameter and finally showing the blank pdf.
    but I want to enter the parameter value dynamically that is when click on button it should allow me to enter the deptno eg. 10 then should show the data related to dept 10 in pdf..
    how to accomplish this could you please help me.
    thanks very much in advance.

    i got this please ignore the post.

  • Request.getParameter is NULL from window.open form submit

    Hi all,
    We have one portlet application where a jsp page has a link which opens as a child window using the window.open function in javascript.
    It has a form and some textboxes with a save submit button.When the save button is clicked the portlet processAction is called but when i try to set the renderrequest all the request.getParameters are null .I have tried both the ActionRequest and HttpServletRequest and both have nul values.
    As a result me Save is failing since the request.getparametrs are null.I added the "save" as part of form action URL and its getting passsed but the other, i am unable to fetch.
    My Form action is : <form name="saveEntries" id="saveEntries" action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">
    My process action code is :
    Enumeration<String> parameters = request.getParameterNames();
              while(parameters.hasMoreElements()) {
                   String parameter = parameters.nextElement();
                   String[] values = request.getParameterValues(parameter);
                   if(values != null && values.length > 1){
                        response.setRenderParameter(parameter, values);
                   } else {
                        response.setRenderParameter(parameter, request.getParameter(parameter));
                        if(request.getParameter(parameter)!=null && "save".equalsIgnoreCase(request.getParameter(parameter))){
                             HttpServletRequest httpRequest = (HttpServletRequest) request.getAttribute("javax.servlet.request");
                             Enumeration parameterNames = httpRequest.getParameterNames();
                             Enumeration<String> httpparameters = parameterNames;
                             while(httpparameters.hasMoreElements()) {
                                  String httpparameter = httpparameters.nextElement();
                                  String[] httpvalues = httpRequest.getParameterValues(httpparameter);
                                  if(httpvalues != null && httpvalues.length > 1){
                                       response.setRenderParameter(httpparameter, httpvalues);
                                  } else {
                                       logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :parameter:"+parameter);
                                       logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :request.getParameter(parameter):"+request.getParameter(parameter));
                                       response.setRenderParameter(httpparameter, httpRequest.getParameter(httpparameter));
    Any help is highly appreciated.

    Hello,
    One potential reason why it isn't working for you is that the Java Portlet specifications (JSR168 and JSR286) don't allow URLs to be manipulated once they are created with a a portlet:xxxURL tag. The reason for this is that the portlet container needs to be able to rewrite the URLs to properly go back through the portal framework (or over WSRP if running the portlet remotely) and to encode all the parameters needed. The portal framework could even change it from a URL to a Javascript action, where simply appending extra "&paramName=someValue" onto the end of the generated URL won't work. So this:
    <form action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">isn't legal by the portlet specification-- if you want to add parameters to the actionURL, you can by doing this:
    <form action="<portlet:actionURL secure="true"><portlet:param name="action" value="save"/><portlet:param name="_pageLabel" value="ABC"/></portlet:actionURL>" method="post">which will add the parameters to the URL in a way that will always work with the portal framework.
    One other thing to note- it looks like you're just trying to copy all of the action parameters in the request into render parameters in the response; this can be done much easier like this:
    response.setRenderParameters(request.getParameterMap());Kevin

  • Unable to open a seperate java console window with javascript:window.open()

    Hi All,
    I am opening a new window using javascript:window.open() function by clicking an hyperlink in a html document. In this new windows I am trying to load an applet. Only for the first time a java console window is displayed in windows system tray . How can I open a different java console window each time I open a new window ? Basically I want to run each applet in its own JVM and it seems that each applet loaded in new window is using the same JVM and hence only one java console window is seen in my system tray.
    Please help ...
    Thanks & Regards,
    Ravi.

    Hi,
    We are currently facing this exact issue. Did you ever find a resolution?
    Any input would be appreciated.
    Thanks,

  • Adding vertical scrollbar using windows.open

    I have some simple code to open a new window in .aspx using the Windows.open function in SharePoint 2010. I need to add the scrollbars (especially the vertical one) but have been unable to figure out how to accomplish this. As you can see from
    my code below I have set the scrollbar to 1 which I understand to mean 'Yes' but I still see no scrollbar.
    Thanks.
    <%@ Page Language="C#" %>
    <html>
    <head runat="server">
    <meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body onLoad="OpenPage();">
    <script language="javascript" >
    //window.onload = function () { OpenPage(); }
    function OpenPage()
    var heightnum = screen.height;
    var widthnum = screen.width;
    var leftpos = screen.width/2 - 1500/2;
    var toppos = screen.height/2 - 800/2;
    window.open ("http://loginsp1.aspx","mywindow","menubar=0,scrollbar=1,resizable=1,width=widthnum,height=heightnum,left='+leftpos+',top='+toppos");
    window.open('', '_parent', '');
    </script>
    <br>
    <br>
    <br>
    <br>
    <form id="form1" runat="server">
    </form>
    </body>
    </html>

    I should add that the window that opens is smaller than the full screen size so I don't know if that makes a difference or not. I saw on one page where it indicated that scrollbars only appear if the document is bigger than the screen.

  • How to simulate Javasript "window.open"?

    Hi,
    I am working on a GUI based on JATO. I am trying to
    create a window that pops up when the user clicks a button, leading to further UI interaction through that
    window(i.e.it has its own text fields, buttons,etc).
    How do I accomplish that in JATO? Before, I used to call
    the window.open() function in Javascript.
    thanks
    vignesh

    Vignesh,
    You would do the same thing, except your URL must be a valid JATO URL.
    See this JATO Tip at this link and ask more questions if you still have some. It's not exactly the same thing you need to do, but the techniques should apply:
    http://groups.yahoo.com/group/iPlanet-JATO-Tips/message/3
    craig

  • IPad 2 Safari javascript window.open bug

    I am building a web app that uses the PicUp app to upload photos.
    Part of how it works requires me to open a new tab with javascript, which fires some script to open a new url in an iframe on the previous page.
    I have named the 'windows' accordingly, and it works properly on the iPad 1 (Safari).
    But in iPad 2, the window.open function does not seem to take in a target window parameter, resulting in broken UI. The new tab opens, but the script to open a new URL in the other page's iframe does not work.
    My image still uploads, but the user would be confused, as there is no confirmation screen.
    Help!
    PS: I would also like to comment that it is fairly convoluted to have to download a 3rd party app just to handle http uploads, something every other browser can do natively. What is the reasoning behind not allowing iOS Safari to upload like normal?
    Thanks
    John

    Was able to produce a small test case. 
    To demonstrate this problem, there are three pages.  You will need to load window1.html.  That page has buttons to load the other windows.  Make sure all files are in the same directory.
    window1.html
    <html>
    <head></head>
    <body>
    <script>
    window.name='win1';
    var si = setInterval('check()', 1000);
    function check()
        var d = new Date();
        var s = d.toString() + ' hash: ' + window.location.hash + "\n";
        var log = document.getElementById('log');
        log.value += s;
        log.scrollTop = log.scrollHeight
    </script>
    <form name='myform'>
    <input type=button name='cmd' value='Start second window (no close)' onclick="window.open('window2.html', 'win2')">  
    <input type=button name='cmd' value='Start third window (with close)' onclick="window.open('window3.html', 'win2')">
    <br />
    <textarea cols=80 rows=10 id='log'></textarea>
    </form>
    </body>
    </html>
    window2.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from2','win1');
    </script>
    <p>This is window2.html</p>
    </body>
    </html>
    window3.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from3','win1');
    window.close();
    </script>
    <p>This is window3.html</p>
    </body>
    </html>
    Test scenario:
    If you run window1.html, you will see it is updating the text field with the time and displaying the current hash.  If you press the button 'Start second window (no close)', you will see another tab open up and stay there and the window1 text field will display the hash 'from2'.
    You can close the window2 tab if you want now (don't think it matters).
    If you then press the button 'Start third window (with close), the window1 tab is gone and window3 is still up there.  The title bar says it is window3 but it is not even displaying 'This is window3.html'  If I do a view source (using a javascript bookmark), it does show the window3 script but the <p> and text is not there.  Probably died in the script before parsing was finished.  This is the first problem.
    Now load the window1.html again in the browser (type on URL line).  If you press the 'Start second window (no close)", the one that worked before, and click on the window1 tab to view it and display the updating text box, you will see it did not see the hash change.  This looks like that physical tab was corrupted in Safari from the window 3 test.  I just found if you open a new tab, the new tab will be ok to run the second window (no close test).  At least until you run window3 (with the close).

  • When I have multiple browser windows open - but in the "minimized" mode - and I want to open up one of them for viewing, ALL of the windows automatically open as well. How do I prevent this annoying function. I cannot find it anywhere in the options.

    This does not appear to be a system issue, but rather a functional aspect of the browser windows. E.g., if I have 7 browser windows open to different sites... and all are Minimized, and I decide to open one to study, THEY ALL POP OPEN automatically. I am using Firefox v3.6.8 on Windows 7. This is an annoying behavior of the browser, and I am sure it can be somehow "turned off" but cannot determine how to do that. I have looked through all options. I am not a techie, but have reasonable proficiency with software apps.

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • Where is the F9 expose function in Lion that shows all windows open?

    where is the F9 expose function in Lion that shows all windows open?

    Hello.
    What you’ve used and loved as Expose and Spaces is now called “Mission Control”.
    http://appleslut.com/blog/software/osx-lion-mission-control

  • Multiple FireFox browser windows opened simultaneously do not have the same settings for many of the functions.

    Secondary browser windows open at the same time do not have the same functions active. i.e. Back/Forward, Reload, Stop buttons and the url address does not show in the bar. I set the HOME page in the Options and it does not open with that Home Page. This never happened with any past FireFox versions.

    Yes, it works OK. I disabled all add-ons & clicked Make Changes & Restatr I can open additional browser windows that retain the settings of the first window opened. I Disabled All Add-ons and Make Changes & Restart. How do I retain this?

  • 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...");

  • Problem with window.close and window.open

    I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later.
    BACKGROUND:
    I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector).  These files were created a few years ago using Actionscript 1 & 2 code and everything has worked perfectly until now.
    Here is the setup:
    First, an autorun file on the root of the CD runs and writes a 'trust file' to the 'Macromed' directory.  The autorun next launches 'index.htm' which is simply an html page containing a series of links (topic1.htm; topic2.htm; and so on). Next, let's assume the student clicks the 'topic1.htm' link from the 'index.htm' page.  The 'topic1.htm' link launches a web page (also located on the CD) which contains and displays 'topic1.swf'.  So far, everything works fine.
    Here is where the two problems happen.
    Problem 1:
    I have an 'Exit' button within each swf (remember each swf is contained inside an html page).  The 'Exit' button has always worked properly, but suddenly does not work in Flash player 9.  I am using the following Actionscript 2 code on the 'Exit' button:
    on (release) {
    getURL("javascript:window.close()");
    The 'Exit' button has always worked using this code (and still works in Flash player 8 and lower).  However, it does nothing when played using Flash player 9.
    Problem 2:
    There are links to html popup windows within the 'topic1.swf' file (remember 'topic1.swf' is contained inside 'topic1.htm').  Each popup window contains a swf file that is used to present a demonstration.  When the student clicks the 'demo1.htm' link from 'topic1.swf', an html popup window SHOULD load and display 'demo1.swf' inside the 'demo1.htm' window.  The main ('topic1.htm') window stays open so that the student can return to the topic after completing the demo.  This has always worked properly until Flash player 9.  Here is the Actionscript 2 code
    which I am using on the button inside 'topic1.swf' to launch 'demo1.htm':
    on (release) {
                getURL("javascript:launchWin2('webpage2.html');");
    ADDITIONAL INFO:
    'topic1.htm' contains the following code which is used to support the Actionscript code listed under 'Problem 2' above.
    <SCRIPT LANGUAGE=JavaScript>
    <!--
    var padvar="";
    var childwind;
    function launchWin2(arg) {
    openWin2(arg);
    function openWin2(arg) {
    childwind = window.open(arg,"padwind2","menubar=no,location=no,status=no,scrollbars=no,width=750px,he ight=500px,left=0,top=0");
    //-->
    </SCRIPT>
    I would appreciate any help anyone can offer.  I am wondering if the problem has to do with a need to use ONLY Actionscript 3 code from Flash player 9 onwards.
    Thanks!
    Terry

    You may have '''Switched ON Caret Browsing'''. press '''F7 (on Mac: fn + F7)''' to toggle '''Caret Browsing ON/OFF'''
    * click '''Firefox''' button and click '''Options''' -> Advanced -> General -> remove
    Checkmark from '''Always use the cursor keys to navigate within pages'''
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox
    Check and tell if its working.

  • W/zoteroinstalledwedo a window,open() followed by a window.close() in tha window. Zotero remains and the window is still open. How do I close the window with zotero present in FF w/o disabling zotero?

    the js function to window.open() is in pageAA on a tab.
    We click the form or link to open the popup to run a video.
    We have a close button on the popup window.
    When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
    We've tried using close() window.close() name.window.close() and
    all fail the same way.
    Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?

    Thank's but still no fix.
    In safe mode everything works.
    Without Zotero - everything works.
    When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
    The Zotero icon shows to the left of the tab.
    If I right click on Zotero and close it, the close() js works properly
    Is there a way to do a window.open() with:
    A. no tabs -or-
    B. block all add on's -or-
    C. to kill an add on
    before doing the close()?

  • Session problem in a new window created by window.open()

    hello,
    I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection);
    there is a link on this jsp which will call a javascript to open a new window .
    here is the javascript to open another new window:
    function openReportWindow()
    window.open("/drug/Report.jsp","report", "toolbar,scrollbars,width=800,height=800,left=100,top=10");
    but in the Report.jsp, I won't be able to get the same session object as in the calling jsp ( drugsearch.jsp) by calling session.getAttribute("drugCollection").
    if I change the link on drugsearch.jsp to link to the Report.jsp directly instead of opening a new window, then I can get the same session object from the Report.jsp.
    what's the problem? can someone give me an advice?
    thanks

    A session is assosiated with one client(browser).
    when you open a new browser, a new session is created. In order to have common place for both the browsers, try storing the data in the 'Servlet Context'

Maybe you are looking for

  • Background image for ApplicationControlBar

    Hello, Forgive my english and its accent, this is a bit urgent. I need to set a background image for an applicationContolBar... with css and with css only(an external css file) I tried a few ways but no use... is this possible? Please help... sharat8

  • Error message during the installation of assembly, refer to help and support for more information: HRESULT :0x80070BC9

    I am trying to download iTunes for my ipod touch. Everytime I start the installation proccess I get this error message An error occurred during the installation of assembly 'Microsoft.VC80.CRT,type="win32".version="8.0.50727.4053",publicKeyToken="1fc

  • Mac Book Pro 13 inch Power up Issue

    Hi my machine wont turned up. can someone can help me? i have made same verification. 1.the power adapter is fine ,i have checked on other similar machine and when i plugged to mine i can see the green light. 2.the batery was full wen the problem ape

  • How to save a vairant ?

    Friends, I've a start vairant in a process chain. I'm able to save Process chain in a package to transport. But the variant belongs to $TMP. How to save variant in a package so that i can make it as transportable? Joe joe.

  • Maintainence view for Databse view

    Hi All, I am trying to create a maintaince view for databse view.As in SE11 the table maintaince generator is disabled for Databse view. As initially my problem is that I want to attached a T-code to database view. Can any one please suggest? Thanks