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!

Similar Messages

  • 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 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.

  • 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.

  • Streaming data on a page or popup window.

    I am creating a web application that will be spying on another application. I establish a socket connection between my web application and this other remote system. I send over a spy request from the web application and this other system starts sending over it's console data over the socket connection.
    Is there a blog or a tutorial that will show how to create a page that will display the streaming data in real time as it happens? Any help would be greatly appreciated. Ideally I would like this to happen in a popup window, but will take whatever help anyone will give me.
    Thanks in advance

    Hi There,
    Im not aware of one at this time, I guess AJAX is the right way to go, but
    Creator will be EOLed soon, Netbeans is the latest version of Creator. Pls post your question on NB mailing lists at http://www.netbeans.org/community/lists/top.html for better response.
    Thanks
    K

  • How can I view form details in a popup window?

    Recently, something called Babylon assist took control of Firefox and I was forced to reset Firefox to get rid of this. As a consequence, I lost the ability to right click on a page and select from a list that allowed me to view form details in a pop-up window. I used this feature frequently in developing database driven applications that have lots of forms. Can anyone please tell me how to restore this lovely feature? I found something that opens a new tab with the form information in a large format that is rather ugly - I really want to get back to the nice little pop-up that displayed the basic form information.

    THANK YOU - your clues led me to the correct add-on. It's called 'Links and Forms' and says that it adds back the links and forms tabs that were in the Page Info window of Firefox 2. I have found it to be very handy in debugging forms that I've created.

  • Save and close popup window

    I have a typical popup window launched using the builtin javascript:popupURL().
    I would like a Save and Close button on this popup window that does
    1. Submits the popup page so that changes are saved into session state
    2. Close the popup window
    3. Refresh the parent window so that updates in (1) are reflected
    What is the recommended way of doing this? I was thinking of the following URL redirect on the Save & Close button
    doSubmit('SAVE');
    window.opener.location.reload();
    window.close();Do I need a same-page branch on the popup page? If so, why? If not, why? ;-)
    Comments?
    Thanks

    This is a bit of javascript that I nicked which works well for me:
    -- 1. Add the folowing to your page header or create a new page template --
    -- (popup window template) and put it in the header section. --
    SCRIPT LANGUAGE="JavaScript">
    function loadinparent(url, closeSelf){
         self.opener.location = url;
         if(closeSelf) self.close();
    </SCRIPT>
    -- 2. Use the following to call the function. the true and false keeps the parent--
    -- window open or closed. Obviously set any values in the URL. --
    javascript:loadinparent(''<URL>'', true)
    eg. javascript:loadinparent(''f?p=&APP_ID.:40:&SESSION.::NO::P40_ID:'||ID||''', true)
    -- Inc the following comment in your header --
    -- Version 1.0
    -- Last Updated: May 18, 2000
    -- Code maintained at:
    -- http://www.moock.org/webdesign/javascript/
    -- Copy permission granted any use provided this notice is unaltered.
    -- Written by Colin Moock.
    Simon

  • PHP Goto Detail link

    I've built a PHP version of the Goto Detail Page link that goes to a mySQL/PHP DELETE records page.. but when I click on the link to go to that page (where it retrieves the record in a PHP recordset to get confirmation before deleting), instead the originating page just executes the delete (it looks like) and reloads minus the newly deleted file. I need to click on this link, go to the confirmation page so that they can decide for sure that they want to delete it, and click the submit button for the page to execute the Delete behavior.
    Why?  The code piece linking to the confirmation pages is:
    <a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>">Delete</a>
    Help?

    Hello Adrian
    Why go to a confirmation page?  You can accomplish this with less code, just use javascript. I have provided the code below:
    Place this code in the head section of your PHP page
    <script type="text/javascript">
         function ConfirmDelete(){
             var confDel = confirm("Are you sure you want to delete this record?")
             return confDel
    </script>
    Now change your link from
    This:
    <a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>">Delete</a>
    to This:
    <a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>" title="Delete" onClick='return ConfirmDelete()'"; >Delete</a>
    Notice the code in BOLD. This will call up an alert box that will display the ConfirmDelete text and allow the user to either go ahead and delete the record or cancel.
    Hope this helps
    Stan Forrest
    Digital Magic Show

  • Details page displays nothing

    Hi there,
    DW CS3, PHP mySQL DB.
    I have a:
    Search Page: Works!
    Results Page: Works!
    Details Page: Does not display any data!
    For some reason my Details page displays nothing. I have the
    "Goto
    Details Page for PHP" server behaviour" from
    http://www.dengjie.com/
    I have other details pages that work excellent but cannot get
    this to
    work.
    My details page's SQL looks like this:
    SELECT *
    FROM test
    WHERE p_ID = colname
    Name: colname
    Type: numeric
    Default Value: -1
    Run-time Value: $_GET['p_ID']
    The fields I want to display are binded with the
    corresponding fields of
    the DB.
    Please help me out.
    Regards,
    Deon

    Hi there,
    DW CS3, PHP mySQL DB.
    I have a:
    Search Page: Works!
    Results Page: Works!
    Details Page: Does not display any data!
    For some reason my Details page displays nothing. I have the
    "Goto
    Details Page for PHP" server behaviour" from
    http://www.dengjie.com/
    I have other details pages that work excellent but cannot get
    this to
    work.
    My details page's SQL looks like this:
    SELECT *
    FROM test
    WHERE p_ID = colname
    Name: colname
    Type: numeric
    Default Value: -1
    Run-time Value: $_GET['p_ID']
    The fields I want to display are binded with the
    corresponding fields of
    the DB.
    Please help me out.
    Regards,
    Deon

  • Custom pushbutton in ME21N should display a popup window with item details

    Hello,,
    The requirement is to
    1. Add a custom pushbutton in ME21N screen at header level.
    2. The user will select some PO line items and will click on this push button.
        This inturn should trigger a popup window with item details only for those selected PO line items along with schedule line qty.
    I have created the custom push button in a custom tab using the BADI ME_GUI_PO_CUST.
    Now I am not able to retrieve item details and schedule line details inside the PAI of the custom tab..
    i.e., when i click on the custom push button, I am not able to retrive the item data and schedule line data.
    Please help me to retrive PO line item data and schedule line data.
    Regards,
    Sharah

    JSF is not so relevant in this question. It's all about how the generated client side code look like. Which is usually a bunch of HTML/CSS/JS (open page in browser, rightclick and view source). If you know HTML, you should know that using target="_blank" in a <form> or <a> element would open a new window. If you know JS, you should know that using window.open() would open a new window.
    Apply this so in the JSF source code so that the generated HTML/JS output is exactly what you want.

  • I want to insert thumbnails in my page that are links to videos in popup windows

    I can do this by a hyperlink but getting a thumbnail from the video and making it a link I am struggling with. I could sort the thumbnail out as an image, but it is the link i don't know how to do. I can't seem to get hotspots involved with the js link as in:
    <script type="text/javascript">
            // Popup window code
            function newPopup2(url) {
            popupWindow = window.open(
            url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolb ar=no,menubar=no,location=no,directories=no,status=yes')
            </script> <a href=
            "JavaScript:newPopup2('pop.htm');">Link text</a>
    This works like a charm, but I can't swap the "link text" for an thumbnail and hotspot or however it is done.
    Help would be great.

    Create a Pop-Up window in DW with the Behaviors Panel.  See link for details.
    http://alt-web.blogspot.com/2012/03/create-pop-up-window-in-dreamweaver.html
    You shouldn't need an image map for this.  A single thumbnail image (or text) can be linked to a pop-up page.
    Nancy O.

  • In MVC, do i need a View or Page with flow logic for POPUP window

    Hi All,
    I have the below scenario using the MVC pattern.
    I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
    But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
    I need 6 popup to be called from the main view and once the function is done close the popup.
    Please suggest me the flow for this scenario.
    Cheers,
    Srini.

    Srini,
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout:
          function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Option2:
    Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
    Raja
    Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

  • Popup window error : You are trying to access a page that is no longer..

    Hello guys,
    read all the threads related to popup windows and everything works fine except one thing: all the time I get following error :
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed."
    Let's define setup I did :
    1. page installed and should be fine, some controller created as well;
    2. new function defined using following params : Type = SSWA jsp function, web HTML = OA.jsp?page=/xxcompany/oracle/apps/icx/por/req/webui/xxPage
    3. function added to menu used in particular responsibility
    IF I define some Promt for this menu entry, I can access this page following way : OA_HTML/RF.jsp?function_id=25860 - everything works fine but I need to get it in popup window
    Fine, popup window URl (no problems with popup window at all) : OA_HTML/OA.jsp?page=/xxcompany/oracle/apps/icx/por/req/webui/xxPage return mentioned error message.
    Fine, let's try this : OA_HTML/OA.jsp?OAFunc=XX_FUNCTION return same error again.
    What else I tried? Well, post params like resp_id and so on = nothing helps so far.
    Something missing in setup?
    Any ideas?
    Message was edited by:
    user642776

    Hi,
    is it a seeded page or a custom one?
    In the first case, have you extended the root AM?
    I had an error like that when I tried to extend the root AM in a seeded page, before to know it was not possible.
    Bye
    Raffy

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • Popup window  opens in the second page  - plz help gurus.

    Hi All,
    I'm calling a transaction through ITS. There is a hyperlink in a report brings up PDF in the popup window. Popup window comes up in the second page of the report after closing in the first page of the report. Popup comes in all the consecutive pages of the report once I click on the hyperlink. This is really frustrating. Pls let me know if i need to do any configuration to avoid this problem. 
    Thanks,
    Kumari

    Hello Kumari,
    are you using the SAP GUI for HTML (webgui)? Normally, no hyperlinks are used except on documents inside an HTMLviewer (like in TX TRIP), or when Drag & Relate is activated.
    I suppose the link is part of a document that is shown in an HTMLviewer. Though this document does not belong to the ITS or the SAP GUI for HTML it uses ITS's URLs to address a new page or document. But, with this URL the status of the ITS or the application does not change, thus showing the popup over and over.
    If you have a tool to trace the HTTP protocol you can check for the URLs that are send on a particular action. I
    Best regards,
      TJ

Maybe you are looking for

  • Qosmio F750 - Cannot get some functions to work after Win 8 uprgade

    I own a Qosmio F750-125, PQF75E. Since I upgraded to Win 8, utilizing Toshiba Upgrade Assistant I might add, I had some issues. Most importantly not being able to get my Toshiba Blu-ray player to install. Eventually I managed, still don't exactly how

  • Work item can not be read when opening the task on the portal side

    Hi Experts, when we open a UWL workitem on the PROD portal, the message Workitem xxxxxxx can not be read. If we try it in the back-end, then it works fine. How to solve this? I checked and compare the .xml files on the PROD portal with the WAS portal

  • Listening to music (Itouch) from itunes when Itouch is plugged in

    Before I upgraded to the Itouch I was able using my 5th Gen Ipod listen via itunes to the songs on the ipod itself. Unfortunately when I try to do this using the itouch plugged into itunes all the songs are greyed out. Can anyone tell me why. The com

  • Download To Excel in Web BEx.

    Hello, As per requirement, I have built one BW report on Web, which encapsulates 3 sub reports i.e. I am displaying 3 reports on the same page. As the 3 reports have sources from different cubes, I am not able to provide the "Download To Excel" capab

  • Msi gt70-20c second hard disk

    Hi, i would like to know if the msi gt70-20c 252 has the raid msata card alrady installed in, or only a sata 2 port, or nothing at all. Does anyone bought a gt70-2OC with a single hard disk and after that tried to installa a normal sata drive? Thanks