Portal confused by window.open javascript command.

To all,
I am having difficulty trying to implement a javascript popup
calendar. I am calliong a simple html page i have stored in
avirtual direcytory on the web server. I have also moved it to
the apache default html directory. When i issue the window.open
command it open a new window but thinks the calendar.html is a
procedure as i get the procedure not found error page. Can
someone give me a hint here? Can i not call a html file from a
form button. I am adapting an example from metalink for webdb.
Any help would be appreciated.
Thanks DaveT.

hi,
In portal, if you only include the filename in the hyperlink,
such as xxxx, then it will be
considered by portal as http://ip/pls/portal/filename.html. so
if you want to show your file stored in a virtual folder
like 'http://ip/virtual_folder' then you should give the href
value in either of the following ways:
1. 2. wish this would help.
JC

Similar Messages

  • Window.open javascript on button causes parent window to display blank page

    In Captivate 3, I've created a Text button that executes the
    following Javascript:
    window.open('stakeholder_part2.htm','', 'fullscreen=yes,
    scrollbars=auto');
    The Javascript works perfectly, but when it executes, the
    page in the parent window goes blank except for the word "object"
    in square brackets. Hitting the back button in my browser navigates
    back to the Captivate movie.
    I've tried every combination of settings I can think of in
    the button dialog. Currently I have "top" selected in the window
    dropdown, and "Continue playing project" disabled. The only setting
    that didn't work at all is "New" ("Current" and "Parent" both
    generated the results described above).
    Could this have something to do with the fact that the
    javascript launches the new window in fullscreen mode?
    quote:
    Text

    You could try wrapping your function in a call to void(),
    which basically says "don't return a value when evaluating this".
    It would look like this:
    void(window.open('stakeholder_part2.htm','', 'fullscreen=yes,
    scrollbars=auto'));
    Unless you really want to open a different new window each
    time the function is called, you should also specify a name for the
    new window, as in:
    void(window.open('stakeholder_part2.htm','newWin',
    'fullscreen=yes, scrollbars=auto'));
    The browser will check for an open window with this name and
    show the page in that window if it's still open.

  • Close Window.Open after InfoPath 2013 submit form

    Hi,
    I've made an InfoPath 2013 'new' form in SharePoint 2013, but when the form is committed, it should close. So I've made a button on the form to submit it. In the rules in InfoPath, I said that it should close after submitting.
    I open this form from another internal application as a window.open() javascript. In IE, it opens the form, when I submit, it stays open and the SharePoint list where the data is added to is opened too. However, in Chrome, it opens
    the list in the same window after submitting, which is already slightly better.
    My InfoPath rule when I submit:
    So the idea is that the internal application opens the form thru a link, user fills in the form, the form submits to the list and every window closes, so the user can continue in the application, without seeing anything the SharePoint is doing in the background.
    Hope any1 can help me solve this issue.
    Kind regards,
    Nils

    Hi,
    Thanks for the reaction. I've just checked these links:
    The first one: I don't have any rules set to change the view of the list, so this isn't the case.
    The second: As you already see in the screenshot, I've set the submit to the right action.
    So, I guess neither of them are a solution to my problem, but thanks already for answering!
    Hope anyone else or you have/has other idea's.
    Thanks in advance,
    Nils

  • Window.Open Suggestions

    My datagrid contains LinkButtons to open new windows. When the user clicks a linkbutton the following attribute is added to the body.onload:
    body.Attributes.Add("onload","window.open('http://fww/scripts/codebook/clientinfo.exe?" + strClnum + "','ClientInfo','width=725,height=400,menubar=yes,scrollbars=yes')");
    Obviously, this does not work in PT. I'd prefer not to add the event to every linkbutton in the datagrid while it's being rendered because I could have 1-1000 records and it's way too slow to load.
    Any suggestions?
    Thanks,
    Darcy Williams

    Its a clear workaround.I am adding new column in DataTable dynamically and populating it with "window.open javascript" for each button. I am passing a querystring thru javascript that corresponds to each button. See the aspx code in red. JavaScriptForText is the new column in DataTable.
    ASPX code - (Datagrid's TemplateColumn)
    <asp:TemplateColumn HeaderText="Report Status"> <ItemTemplate> <SPAN id=spanID OnClick='<%#DataBinder.Eval(Container.DataItem , "JavaScriptForSpan")%>' ptrender="true"> <asp:Button ID=buttonCheckOut Text='<%#DataBinder.Eval(Container.DataItem , "ReportFileStatusText")%>' runat=server CommandName='<%#DataBinder.Eval(Container.DataItem , "ReportFileStatusText")%>' ptrender="true"> </asp:Button> </SPAN>
    </ItemTemplate>
    </asp:TemplateColumn>
    Code behind (value that goes to 'new' DataTable column)
    javaScriptText = "javascript:window.open('/reportapproval/nextPage.aspx?"javaScriptText &= "querystringParametet=" & queryStringValue & "');"
    So now whenever button gets clicked span's onclick function is also fired. (span is basically enveloping the button with its onclick function). AND at the same time, Datagrid's ItemCommand event for the button's commandNamewould run the server side function. I had to deliver the portlet ASAP so came up with this workaround. Would love to know the right way of performing the same functionality (with an easy example or easy to understand code)Hope this helps

  • Window.open() & window.close () does not work in Portal application

    Hello All,
    I am trying to open & close a popup window from a weblogic portal. But the following don't seem to work in this environment. As a web application, it works fine.
    <netui:anchor action="DetailedWorkObject" target="<script @lang ='java'> window.open('IndividualWorkObjectDetails.jsp','null','resizable=no, HEIGHT=500,WIDTH=500'); </script>" >
    <netui:parameter name="CLAIM_NBR" value="{container.item.claim_Nbr}" />
    <netui:label value="{container.item.claim_Nbr}"/>
    </netui:anchor></td>
    I am using Weblogic Workshop 8.1 SP3.The above code opens up a new window but it cannot be closed with
    window.close()
    self.close nor this.close().
    I have even tried calling the script function where I write this code but without success.
    Does any one know why is this happenning ? Please tell me what is the work around for this situation.
    Please answer it as soon as possible.
    Thanks & have a wonderful Holiday!
    Message was edited by aatishbh at Nov 26, 2004 12:02 PM

    Not sure if anybiody answered this for you, or if you figured it out, but here you go. In the skins directory, the default skin contains a menu.js file which has the following function at line 232:
    function close(menuItem)
    if (menuItem && !currentMenuItem)
    closeAll(menuItem);
    This function is overriding the inherent javascript close() function. Simply rename this to something else (I renamed it to closeItem) and rename the call to it at line 228 (setTimeout("close(tmpMenuItem)", tryClosePause);), and you're golden.
    The two functions should look like this:
    function tryClose(menuItem)
    if (!currentMenuItem)
    tmpMenuItem = menuItem;
    setTimeout("closeItem(tmpMenuItem)", tryClosePause);
    function closeItem(menuItem)
    if (menuItem && !currentMenuItem)
    closeAll(menuItem);
    Hello All,
    I am trying to open & close a popup window
    opup window from a weblogic portal. But the following
    don't seem to work in this environment. As a web
    application, it works fine.
    <netui:anchor action="DetailedWorkObject"
    target="<script @lang ='java'>
    window.open('IndividualWorkObjectDetails.jsp','null','
    resizable=no, HEIGHT=500,WIDTH=500'); </script>" >
    <netui:parameter name="CLAIM_NBR"
    value="{container.item.claim_Nbr}" />
    <netui:label value="{container.item.claim_Nbr}"/>
    </netui:anchor></td>
    I am using Weblogic Workshop 8.1 SP3.The above code
    opens up a new window but it cannot be closed with
    window.close()
    self.close nor this.close().
    I have even tried calling the script function where I
    write this code but without success.
    Does any one know why is this happenning ? Please
    tell me what is the work around for this situation.
    Please answer it as soon as possible.
    Thanks & have a wonderful Holiday!
    Message was edited by aatishbh at Nov 26, 2004 12:02
    PM

  • HTMLbeforeForm= SCRIPT LANGUAGE="JavaScript" window.opener = top; /SCRIPT

    I've found this line of code in my formsweb.cfg file, but to be honest I have no clue what it's doing.
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    Anyone know what this code might be responsible for?

    I have seen this sometimes used to prevent the user being asked if they want to close the window when a javascript command to close the window is issued. Not sure it always works with different browsers or versions.

  • Opening windows with JavaScript

    I am reasonably happy with my feedback screen, but after a
    visitor sends a
    message I would like to close it, and then pop up a smaller
    "Thank you" window
    for a few seconds.
    After a lot of messing around, I have more or less got this
    working (and have a
    slightly better understanding of JavaScript), but have a
    number of questions.
    1. What is the difference between MM_openBrWindow() and
    open.window()? They
    appear to do the same thing, and to take the same parameters.
    2. If I open the new feedback window, using either of the
    above, and then use
    open.window to open the Thank you window from the feedback
    window, it appears to
    use the same parameters as the previous window, regardless of
    what I specify.
    Is there a way around this?
    3 The alternative to this would be to put code in the
    originating window which
    popped up the feedback window, and then popped up the Thank
    you window when the
    feedback window closed. Can I have the first window return a
    result, and then
    pass it on to the second window, and how would I access it in
    the second window?
    Clancy

    > This works with the local copy, but not with the remote
    copy. I replaced
    > the
    > relative URL with the absolute URL, so that it opened
    the remote copy,
    > even if
    > it had been loaded from my computer, and the local copy
    still worked.
    > However,
    > when I modified index.php to open the remote copy of
    Xcl_qry.php, the
    > Thank you
    > window did not open.
    Make a simple test. You will find that either of these
    methods works.
    Something else is coloring your interpretation here.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "Murray *ACE*" <[email protected]>
    wrote:
    >
    >>Show us the respective markup in either case, please.
    >>
    >>If you look at the OBW function, you'll see that it's
    just calling the
    >>window.open() function -
    >>
    >>function MM_openBrWindow(theURL,winName,features) {
    //v2.0
    >> window.open(theURL,winName,features);
    >>}
    >>
    >>so you should get the same behavior with either.
    >
    > SHOULD being the operative word. As I have noted
    elsewhere, I found the
    > version
    > which I thought I had working operates correctly if I
    run the local copy,
    > but
    > not if I run the remote copy.
    >
    > The sequence of events is as follows.
    >
    > Index.php has a 'Comments' link, with the following
    code:
    >
    > <img src="Images/Xclqry.jpg" alt="Comments and
    queries" width="60"
    > height="24"
    >
    border="0"onclick="MM_openBrWindow('Xcl_qry.php','Xclqrywindow','width=800,
    > height=600,menubar=yes')" >
    >
    > This loads the feedback form Xcl_qry.php. This is based
    on David's
    > feedback
    > form. When this is loaded it checks if data has been
    entered. If so, it
    > processes it and, if valid, tries to e-mail it. If this
    is successful it
    > should
    > open the 'Thank you' window, and then close. The code
    used for this is:
    >
    > <script
    >
    type="text/javascript">window.open('Thanks.php','Thankswindow','width=400,height=200');</ script>
    >
    > This works with the local copy, but not with the remote
    copy. I replaced
    > the
    > relative URL with the absolute URL, so that it opened
    the remote copy,
    > even if
    > it had been loaded from my computer, and the local copy
    still worked.
    > However,
    > when I modified index.php to open the remote copy of
    Xcl_qry.php, the
    > Thank you
    > window did not open.
    >
    > I then modified the open commands to ask for a menu bar,
    so that I could
    > examine
    > the code actually loaded to my PC (on the last pass),
    and altered
    > Xcl_qry.php so
    > that it remained open. I then ran each version, and
    saved the code. When
    > I
    > compare the two versions they were identical, except
    that the remote
    > version had
    > an additional line on the end:
    >
    > <script
    language='javascript'>postamble();</script>
    >
    > I put this on to the local copy, so the two files as
    loaded were
    > identical, but
    > this made no difference.
    >
    > So the current state of play is that the local copy of
    Xcl_qry.php will
    > open
    > either the local or remote copy of Thanks.php, but the
    remote copy of
    > Xcl_qry.php will not open the remote copy of Thanks.php,
    even though the
    > code
    > actually loaded onto my PC is identical. I have not
    checked if it will
    > open the
    > local copy as this does not seem very relevant.
    >
    >
    http://www.corybas.com/
    > Clancy

  • Command Windows.open only works once

    Hi all,
    Iu2019m using javascript command window.open to open a new browser window from a html link webui and is working fine.
    The issue I have is this only works once. If you close the window that you had opened, and click again in the link it doesnu2019t work. It only works if you call another link before. It seems there is a kind of cache in somewhere.
    Do you have any idea?
    Thanks in advance.
    Fernando.-

    Fernando,
      Change ur mywindow name every time.Kindly go through following code. 
    CALL FUNCTION 'GENERAL_GET_RANDOM_STRING'
      EXPORTING
      number_chars        = 3
      IMPORTING
      RANDOM_STRING       = mywindow
    var lr_window;
    lr_window = window.open("<%= lv_id%>","<%= mywindow%>","resizable=1,width=1100,height=674,fullscreen=yes");
    if (window.focus)
    {lr_window.focus()}
    lr_window.moveTo(0, 0);
    <%
      clear lv_id.
    %>
    <%-- delete lv_window; --%>
    <%-- mywindow.close(); --%>
    <%
      endif.

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

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

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

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

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Javascript window.open needs to always open in a new window

    I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
    I have added this javascript to my page html header
    function launchAbout() {
    about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
    return false;
    I then have a html region with the source as:
    A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
    When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
    It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
    Edited by: user531645 on Sep 24, 2009 7:33 AM
    Edited by: user531645 on Sep 24, 2009 7:38 AM

    I was able to fix my problem. I had to change the java script to this:
    function launchAbout() {
    about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
    return false;
    }

  • Open PDF in browser - but cant control/close window from javascript

    Hi
    I hope I picked the correct forum
    Basically I have a site in asp classic. From a button I opens 2
    windows via javascript.
    One contains info, one shows a related file ( could be tiff or pdf ).
    When user closes info-window, I also close the file window via javascript, so that user only hav to click once.
    That works with tiff, but not with pdf, '!file.closed' returns that window are already closed.
    Somehow I simply loose contact to that window when I open pdf.
    My Adobe is set  with "open pdf in browser", version 10.1.2
    Any Ideas ?
    Overview what I do:
    function openTwoWindows(jnr,vikar,hvorfra){
              var left, top,vikar;
              width = (window.screen.availWidth/2)+80;
              width2 = (window.screen.availWidth/2)-80;
              height  = (window.screen.availHeight);
              info = window.open('info.asp'','top=0,left=0,height='+height+',width='+width+',resizable=yes,scr ollbars=yes,status=yes');
              var settings= 'toolbar=no,location=no,directories=no,'+
              'status=no,menubar=no,scrollbars=no,resizable=yes, top=0, left='+width+', height='+height+',width='+width2;
              file = window.open('showfile.asp?strJnr='+jnr+'&print=false','file',settings);
              info.focus();
    function closeFileWindow(){
                if(file && !file.closed){
                             file.close();
    if the file is a pdf -> showfile code in asp classic:
    Response.AddHeader "Content-Disposition","inline;filename=filename.pdf"
    Response.ContentType = "Application/pdf"
    'Response.Clear
    Response.Buffer = true
    // fetch file from database
    Response.BinaryWrite rsTmp("Fil")
    Response.Flush
    Response.End

    Read this:
    http://forums.adobe.com/thread/535609?tstart=0

  • How do I keep the command window open?

    I want to write a batch file that will leave the window open after running so I can see what the output is.
    I kind of remember having to use %k
    But I'm not sure exactly how to do it.
    UPDATE: I found what I was looking for, it's /k when you execute the command file.
    If anyone has any additional comments about scripting and keeping the command window open, please comment.

    Add "pause" to the end of the batch.
    ¯\_(ツ)_/¯

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

Maybe you are looking for

  • Flash Professional CC no longer available for 32 Bit?

    Hi to all... I purchased a membership for the creative cloud and downloaded some of the applications of the suite (Photoshop CC, Illustrator CC, InDesign CC, Dreamweaver CC and Muse CC) but the only Flash Professional available for download is the CS

  • Ways to extract text/data from a pdf

    I have just been given five large boxes of documents which are old work orders which include (in the same position on every page) a customer's name, address, tel etc.  I'm pretty adept at scanning stuff to pdf using Adobe Acrobat 9.0 Pro (version 9 5

  • Internal Order Settlement to GL account

    Hi, I am trying to settle a Internal order to a GL account. A cost centre is also mapped in automatic account assignment for this GL account. Everything is fine but the settled cost is not appearing in cost centre report. But there is an statistical

  • Side Chains and ducking

    I am working on a dubbing project and need to copy the original soundtrack so that the new vox 'ducks' the music/fx slightly. Although STP uses some of Logic's plugins (e.g. the compressor) it doesn't seem to have their ability to side chain, i.e. th

  • Crossdomain.xml and Reporting Services

    Hi, I'm trying to get my Flex application to call a webservice on a remote Reporting Services instance, but am running up against insummountable problems with the Flash Player's cross-site scripting security. Due to the way that Reporting Services wo