Open page in popup window using javascript:popupURL

Hi, call a page in a popup window works fine using javascript:popupURL, but my question is
Is it possible to specify height, width, pos x and y for the popup window?
Thx in advance,

Derlis,
sure, but I guess you will have to write your own javascript function to do so:
<script type="text/javascript">
function myPopupURL(url)
  w = open(url,"winLov","Scrollbars=1,left=0,top=0,resizable=1,left=0,top=0,width=500,height=200");
  if (w.opener == null) w.opener = self;
  w.focus();
</script>
&lt;A href=&quot;javascript:myPopupURL('http://otn.oracle.com')&quot;&gt;OTN&lt;/A&gt;Best you put the javascript into the page header or page template header.
You could even pass the parameters with each call to the javascript function as parameters.
~Dietmar.

Similar Messages

  • ?? about popup window using javascript

    I am launching a popup window using the following script.
    locate.onRelease = function(){
    getURL("javascript:n_name=window.open('
    http://www.wesitename.com/webpage.cfm','name_name1','width=720,height=330,scrollbars=yes') ;void(0);");
    Right now all of my links load in the same popup window...
    but if that window isn't closed for (instance if it was minimized)
    by the user... and the user clicks another link for this popup...
    it stays behind the main page rather than coming to the front
    again..
    My question is... Is there anyway to assure that this browser
    window comes to the front when updated with a new click???
    Thank you in advance
    - Me

    chess4thestupid wrote:
    > I am launching a popup window using the following
    script.
    >
    > locate.onRelease = function(){
    >
    > getURL("javascript:n_name=window.open('
    http://www.wesitename.com/webpage.cfm','n
    >
    ame_name1','width=720,height=330,scrollbars=yes');void(0);");
    > }
    >
    > Right now all of my links load in the same popup
    window... but if that window
    > isn't closed for (instance if it was minimized) by the
    user... and the user
    > clicks another link for this popup... it stays behind
    the main page rather than
    > coming to the front again..
    >
    > My question is... Is there anyway to assure that this
    browser window comes to
    > the front when updated with a new click???
    >
    > Thank you in advance
    YOu could change the name_name1 for each link to name_2 name3
    and so on.
    By using same window name you load content into the same
    window, using new
    name makes automatically totally new request and new pop up.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Open Page in new window using action link

    How do I open a page in a new window, using action link ?
    If I put javascript window.open in OnClick event, the action event ins�t called.

    Hi,
    The window.open method can be used with the hyperlink component. So please try it with a hyperlink component.
    Cheers
    Giri :-)
    Creator Team

  • Open Page in new window using hyper link

    I put the window.open method on OnClick event of outputlink to open a page in new window, but the page is started in a old window.
    How do I start the page in a new window.
    My sintaxe of outputlink:
    <h:outputLink binding="#{P0110.hyperlink1}" id="hyperlink1"
    onclick="WindowObjectReference = window.open('about:blank', '','menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes');" value="http://www.sun.com/jscreator">
    </h:outputLink>

    Hi,
    Following are the steps to open a new window using the window.open method for the hyperlink component:
    1. Drag and drop a hyperlink component onto the page
    2. In the properties sheet go to the Value property and delete the value present there
    3. Click on the ... button next to the onclick property
    4. Enter the line of code given below:
    window.open("http://www.yahoo.com","New window");
    5. Save and run the project
    On clicking on the hyperlink a new window will open with the www.yahoo.com page.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • Trying to open a page in IE-tab using javascript, script type="text/javascript" window.location.href="chrome://coralietab/content/container.html?url=0,myurl" /script Error:Component returned failure code:0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]

    I am trying to open a page in IE-tab using javascript like this, <script type="text/javascript"> window.location.href = "chrome://coralietab/content/container.html?url=0,myurl" ;</script>.Error occured : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::myurl :: load :: line 234" data: no] I have IE-Tab plug-in installed..when I open the same link manually in mozilla,it works fine and page gets opened in Ie-tab.

    The only way this might be possible is by using the HostContainer object
    to access the HTML page and do it from there.

  • I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • Goto Detail Page to PopUp Window

    I have a page with a repeat region in ASP VBScript. I want to use a Goto Detail Page but to open a PopUp Window with Javascript. This doesn't work for me, as it always goes to the first record:
    <script>
    function opencalinterval(){
    var popurl="/en/calcenter/equipment/edit_calinterval.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & rsAssets.Fields.Item("id").Value %>"
    winpops=window.open(popurl,"","width=600,height=500,scrollbars,")
    </script>
    It works if I use it on a regular hyperlink like this:
    <a href="/en/calcenter/equipment/edit_calinterval.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & rsAssets.Fields.Item("id").Value %>">change</a>

    I'm not sure to understand...can you give me an example or give me a link?
    Thank you!

  • Load page in popup window with different (from parent page) browser

    Hi,
    Environment: Windows XP or Windows 7, Visual Studio 2010, Internet Explorer 8 (IE)
    I have an application which opens page containing HTML editor.  Here you can edit a document (pooled from db). Next, btnPreview opens a new popup window and shows changes you made via Internet Explorer (IE - default browser).
    Here is original code - works OK when you run from both - VS 2010 (http://localhost:50827/NCSite/MenuEditor.aspx) or via browser IE (http://localhost/NCSite/MenuEditor.aspx).
    Please pay attention - with VS2010 was used a dynamic address (localhost:50827) created by VS2010
    Here is a code I used for that:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    ClientScriptManager cs = Page.ClientScript;
    cs.RegisterStartupScript(this.GetType(),
    "NewWindow",
    "<script>window.open('" + URL +
    "', 'New')</script>");
    Now I have a request to add two more buttons to preview in Google Chrome (GC) and Mozilla Firefox (FF).
    I used next code:
    using System.Diagnostics;
    //for btnIE:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    Process.Start("iexplore",
    URL);
    //for btnGC:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("chrome",
    URL);
    //for btnFF:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("firefox",
    URL);
    It works OK when you run from VS2010 (http://localhost:50827/NCSite/MenuEditor.aspx)
    but when you open application via default browser (IE) and after editing document press btnIE, btnGC, or btnFF it is not creating a new popup window and simply replacing existing window
    and shows updated document via IE.  Processes for GC and FF not even started (looked through Task Manager).
    Is it any way to solve that issue?
    Thanks,
    Dm
    dmirkin

    Hi dmirkin,
    If Andy's suggestion still cann't resovle your issue.
    You are more likely to get more efficient responses to
    ASP.NET issues at http://forums.asp.net where you can contact ASP.NET
    JavaScript experts. This forum is for web application.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Opening page in new window on click of link in Global button bar section

    Hi,
    I have created a custom global link to appear alongside Home, Logout links. The requirement is to open a page in a new window when i click on the custom global link. Please let me know how to achieve this functionality.
    Thanks,
    VG

    VG,
    I think you should be able to open in a new window using the javascript in the function defn,
    please check the blog http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html and try it out.
    Let me know if you are not able to achieve the same.
    With regards,
    Kali.
    OSSi.

  • Passing data from calling page to popup window

    Hi All,
    We are developing a BSP application for business card.I need to provide a preview button .
    when the user clicks this button a
    poopup window should open with the preview of business card.
    My problem is how to pass the values like name , designation etc from the main page to popup window.
    The code for previre image:
    <h t m l b : i m a g e   s r c = " s _ b _ d e  tl . g i f  " a l t = " P r e v i e w   C a r d "  o n C l i c k="addr" on C l i e n t C l i c k = " c a l l W i n d o w ( ) ; "/>
    <s c r i p  t t y p e = " t e x t / j a v a s c r i p t ">
    f u n c t i o n  c a l l W i n d o w ()
    w i n d o w .o p e n ( " p r e v i e w . h t m " ) ;
    </s c r i p t >
    preview.htm is a simple HTML page . i need to pass values from main page to this page.
    OR
    Is it possibel to restrict the size of a VIEW to use it as a popup window?
    OR
    is there any other way to achieve this like.. the <bsp:call comp_id=" " />
    tag , but i have no idea how to use it.
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Sep 12, 2008 3:38 PM

    Hi Raja,
    I did as suggested by you...but it is behaving strangely.
    It works fine in debuging mode but when executed directly ....it is not working.
    the scenario is:
    Thers an image for preview as follows:
    <htmlb:gridLayoutCell columnIndex="3" rowIndex="13">
    <htmlb:i m a g e   s r c = " s _ b _ d e t l . g i f "   a l t = " P r e v i e w   C a r d "   o n C l i c k = " a d d r "   o n C l i e n t C l i c k = " c a l l W i n d o w ( ) ; " /  >
    </htmlb:gridLayoutCell>
    The JS code is:
    f u n c t i o n   c a l l W i n d o w ( )
    <%
    data: title(5),
             fname(20),
             lname(20),
             comp(20),
             addr(20),
             city(20),
             state(20),
             pcode(20),
             country(20),
             phone(20),
             fax(20),
             email(241).
             alt_addr-title = request->get_form_field( 'title' ) .
             alt_addr-firstname = request->get_form_field( 'fname' ) .
             alt_addr-lastname = request->get_form_field( 'lname' ) .
             company = request->get_form_field( 'comp' ) .
             alt_addr-street = request->get_form_field( 'addr' ) .
             alt_addr-city = request->get_form_field( 'city' ) .
             alt_addr-region = request->get_form_field( 'state' ) .
             alt_addr-inhouse_ml = request->get_form_field( 'pcode' ) .
             alt_addr-country = request->get_form_field( 'country' ) .
             alt_addr-tel1_numbr = request->get_form_field( 'phone' ) .
             alt_addr-fax_number = request->get_form_field( 'fax' ) .
             alt_addr-e_mail = request->get_form_field( 'email' ) .
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
              EXPORTING
                name                  = 'FORMFIELDS'
                application_name      = runtime->application_name
                application_namespace = runtime->application_namespace
                username              = sy-uname
                session_id            = runtime->session_id
                data_value            = alt_addr
                data_name             = 'alt_addr'
                expiry_date_rel       = 1.
    %>
    w i n d o w . o p e n ( " . . / z _ b i z c a r d / p r e v i e w . h t m " ,   " W i n E " ,   " w i d t h = 2 4 0 , h e i g h t = 3 0 0 , t o o l b a r = n o , r e s i z a b l e = no ")
    I was doing something similar...created a controller and a view , was calling the controller from window.open method with all other parameters for sizing etc.
    How to pass a structure conatining data,from controller to the view...
    Now in the onCreate event of the page PREVIEW.HTM in using;
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'FORMFIELDS'
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
        username              = sy-uname
        session_id            = runtime->session_id
        data_name             = 'alt_addr'
      CHANGING
        data_value            = alt_addr.
    and in the layout of PREVIEW.HTM in am using this alt-addr:
    But if put a break point at the onCreate event of preview.htm and the execute i get the values in alt_addr but if i execute directly...it is empty in the layout?
    What is the problem?
    Thanks,
    Anubhav.

  • Open Page in new window

    ..................... I use JDeveloper 11g TP4 ......................
    How Can I Open Page In New Window when I press In Command button or link??
    Thank You.

    Hi,
    You have to set the "useWindow" property on the button to "true", and the action must start with "dialog:", like "dialog:action". And, in adfc-config.xml you have to have navigation defined also with "dialog:action".
    <af:commandButton text="Button"
             action="dialog:action"
             useWindow="true">
    {code}
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • To load a pdf file in popup window using flex

    Hi All,
    Can anyone send me the code for loading pdf file in a popup
    window using flex.
    Regards,
    Dharma

    try this action script
    var pdfUrl:URLRequest = new URLRequest("assets/file.pdf");
    navigateToURL(pdfUrl,"_blank");

  • How to change the print page setup in IE using javascript

    dear all,
    I want to take print out envelope paper size, so i want to chnage the page setup in IE
    i want to change the print page setup in IE using javascript

    I think, you can do this using CSS.
    http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html

  • How to open pages documents with windows vista

    Does anyone know how to open pages document with windows vista? i saved it onto a usb stick but when i tried to open it on the computers in my university which support windows vista, it didnt reconise the file and opened with a page of question marks!!!! Im panicking now!!!!!
    Id appreciate any help!!! thanks!!!!!

    beckstarr wrote:
    Does anyone know how to open pages document with windows vista? i saved it onto a usb stick but when i tried to open it on the computers in my university which support windows vista, it didnt reconise the file and opened with a page of question marks!!!! Im panicking now!!!!!
    You cannot open it on Windows Vista. The only application in the world that opens a Pages document is Pages, and it is Mac OS X only.
    Your options:
    1. Find a Mac with Pages installed, and save the document as doc or pdf, which you can open on Vista.
    or, if that is impossible,
    2. Open the files in a texteditor like Notepad.exe on Windows and try to piece text fragments together to get at least part of your original text back. The images should also be available somewhere, even though all formatting is gone.

Maybe you are looking for