Branch process using javascript to call popup

I am on Windows Vista, Oracle XE and Apex 3.1.0.00.32.
The branch works when using region based button.
I wanted to use a "button displayed among this region's items" for a "button" list in the sidebar. I created a button and used a branch based on :REQUEST = 'button_name'. The branch fires but I get an error "Internet Explorer cannot display the webpage."
HTML header code
<script language="JavaScript" type="text/javascript">
function popup(pURL, pwidth, pheight) {
html_PopUp(pURL,"winLov",pwidth,pheight);
</script>
Branch Code
javascript:popup('f?p=&APP_ID.:10012:&APP_SESSION.:&REQUEST.::10012:P10012_ISS_ID:&P10011_ISS_ID.',500,350);
Since the code works in the URL redirect on a Button in a region position but not in a Branches redirect to a URL I assume this functionality does not work? Can anyone shed light on this? If it doesn't work I will need to find another solution....
Thanks,
Sam
I did search and found a thread that intimates it should work.
link:calling javascript on a branch is this possible
Edited by: slavanaway on Mar 23, 2009 4:14 PM

Luis,
I see that I did not put more detail into the issue than the title.
I am trying to call a popup from a button among region items. The user makes a selection then some custom DDL fires and the popup closes and the calling page is refreshed.
A button among region items does not have a redirect to URL like a button in a region position. So I made the branch that was conditional on the button. I think I knew that a "branch" is server side. I don't understand why the jvascript URL does not work.
A button in a region position and a list that redirects to a URL both work. I wanted the list to look like button in a vertical row.
I now have the functionality working with a list.
So I am coming to the mountain to get enlightenment. The Branches on a page can not use javascript is my guess and being eternally curious I was wondering why. I hope knowing will help me save time and produce better apps in the future.
As for the actual behavior. When the Branch for the button amonth the region items fires. I would get the error message and the URL would only show apex flows. I don't have the exact URL as I dis-assembled the list and branches.
I think the branch goes to the server but either the javascript is not passed or it does not handle the javascript.
Tx,
Sam

Similar Messages

  • Using javascript to call a signed applet's read/write functions problem.

    Hi, I wan't to use javascript to call the read/write functions of my signed java applet.
    The applet can read/write fine, if its called from inside the applet, but when I make public functions to do the read/write and then call those functions from javascript, i get the old security exception.
    Has anyone done this before?
    Thanks

    From what I understand is that for example file IO can only be done if the current method
    has this privilege and the stack that called the current method had this privilege.
    Javascript doesn't have any privilege and calling methods that do file IO directly from
    javascript should not work, this bug was fixed in 1.4.2.
    The workarround AccessController.doPrivileged(new PrivilegedAction() { might allso be
    fixed in later versions since changing the privileges of currently executing code is
    someting that should not be possible when the currently executing code is called from
    "untrusted" (javascript) code.
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post

  • Use javascript to call actionscript

    Hello There,
    I have been using a really nice setup, from Phillip Hutchison
    to communticate from Captivate 3 using code swfs on a captivate
    slide that will communicate back to AS3 from AS2 (due to captivate
    3) via an as2 proxy .
    Would there be a way that I could use javascript on a
    captivate button (or object) that would call a function via the
    same process? Another way to say this, can I call an external
    callback function from javascript on a captivate button?
    Any tips will help,
    Thanks,
    eholz1

    Would there be a way that I could use javascript on a
    captivate button (or object) that would call a function via the
    same process?
    Yes.
    1. Create a function (say myJSfunction )inside the html(that
    loads the final CP swf.).
    2. Have the code to call the external interface function
    within myJSfunction.
    3. Set the action of button to execte JS and just have the
    java script as "myJSfunction();"
    4. Insert your code swfs on a captivate slide that will
    register the external callback function.
    Now when you click the button myJSfunction gets called which
    will call the external callback function inside your code swf.
    Also note that with CP4 you can publish directly to AS3 so
    you wont need to use the proxy any more.

  • Button on Interactive Report to fire a process using JavaScript

    I have a requirement to trigger a process from a button on an interactive report. One of the report columns has the triggering data allowed to make the process fire. The requirement is that the button says different things based on the value from another column in report.
    My button is an html button that when the process is allowed to run, is enabled and fires a javascript function. When the process is not allowed to run for the row where the button is placed, the button changes text, color and is disabled.
    The switching of the HTML button is working properly. The problem is that I am not able to grab the column value from the report to submit with the onclick() event.
    As best I can tell, there is not unique id tag on the report columns and the best that I am able to do is to apply one class to the button and another class to the column that contains the value that needs to be submitted on my onclick() event.
    I have considered using a link column that does a submit to a URL passing in the desired value but I would lose control of the appearance of my button.
    Does anyone have a suggestion?
    Thanks

    In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
    Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
    If that doens't work you can try leaving the screen 100 explicitly as well.
       CALL SCREEN 200. 
       LEAVE TO SCREEN 0.  "the processing will terminate screen 100 as well
    Try it out.
    Regards
    Marcin

  • Kill processes (using Javascript) on a 64-bits machine (Windows Vista, 7, 8, 8.1)

    Hi everyone. I have a simple VBScript sample that kills a process by name. It works fine on every OS, X86 and 64 bits :
    ---------------------------kill process sample----------------------------------------
    Set wsh = CreateObject("Wscript.Shell")
    wsh.Run "calc.exe",1
    Set Processes = GetObject("winmgmts:").InstancesOf("Win32_Process")
    For each Process in Processes
    Select Case LCase(Process.Name)
    Case "calc.exe" 
    Process.Terminate(1)
    I tried the "for" loop, the "forEach" loop and "switch" in javascript but none of them work like in VBScript.
    Could anyone help me converting this script sample to javascript, since VBScript became obsolete and God knows whether it will be available for HTA applications and Windows Script Host files in the near future.
    Thanks a lot in advance.

    Jvr, you said :
    "What you have done is one of the reasons why support for ActiveX is being dropped.  By allowing unsafe controls you have removed the most important security restriction.
    I highly recommend that you spend some time learning Windows but not from web sites or from people who are just hackers.
    If you are going to alter IE you might as well just use an HTA.  It doesn't reduce security and is much easier to use.
    You are trying to do what a lot of new and untrained people try.  You are trying to reinvent Windows but mostly because you do not have fundamental technical training.  Get the training and you will not be led down these pointless paths.
    NTVDM is not CMD.EXE.  NTVDM is used to emulate a 16 bit DOS environment. It is not required for NT or for CMD.EXE.  It is disabled by default on all modern versions of Windows.  16 bit applications can be a security issue and
    do make managing Windows harder."
    One of the best features of IE might be ActiveX technology. I could be wrong, but some controls are still highly used by websites, and a lot of softwares help rely on HHCTRL ActiveX. I don´t see it *currently* being dropped.
    Could be in the future, but not only IE uses Activex, a lot of programs make use of them, not to mention popular ones like Word, Excel.
    My friend, I use Windows for more than a decade, don´t tell me what I have to learn or not. You´ve got to be kidding because I know a lot but of course I am humble to admit I ´don´t know everything and can at times have doubts, other people can help
    just like I could help when someone has a doubt on something I know. Also I dont know why you are talking about hackers. As far as I know they *must* know the OS in order to exploit stuff and run their malicious code, not only know how to exploit general vulnerabilities,
    so I bet the real hackers have a lot to teach.
    I am not untrained, sorry but you must be high since you are not reading my posts correctly. I said I altered security setting for the *INTRANET ZONE*, not Internet, and also set the "Websites in less privileged zones can navigate to thiz zone" to deny.
    And if you are an expert you must know the intranet zone is disabled by default, which is my case, but if you add an IP address or website, then it will be enabled *only* for them. Furthermore an attacker would need to know what is the IP address I added and
    would need to bypass the cross site scripting filter and also the setting above that I disabled.
    Again, you´ve gotta be high. I never said CMD=NTVDM. NTVDM just emulates a 16 bits program which is Command.com, I said in the other post, didn´t you read?
    And you can´t tell if MSHTA, ActiveX and WSH will be totally removed from Windows in the future, it is only a possibility. They are useful. 16 bits apps are not but are still supported on 32-bits Windows. Check out on a 32-bits system, and tell me if
    you found some 16-bits apps including C:\windows\system32\command.com.
    Hope now you understood what I have written.
    cheers.

  • Is it possible following batch processing using javascript...?

    Hi Everyone,
    Is it possible with in javascript following batch processing?
    • Open all PDF files in folder
    • Get which font to be used
    • Get which color plate to be used (i.e.) CMYK or RGB
    • Get page trim size width and Height.
    • Close the file
    • Past in Excel or note pad
    Please help me,  i have do so many files do the same process.
    Thanks in advance.
    -yajiv

    Some time ago I was looking for a way to find out a pdf’s page-count and this was one of the solutions I was presented with (Bridge might offer a better sollution, though):
    #target photoshop
    thePageNumber = getPDFPageCount ( File.openDialog("select pdf"))
    alert (thePageNumber);
    // by jezz, based on something by xbytor i guess;
    function getPDFPageCount(f) {
    f.open ('r');
    var gotCount = false;
    while (! gotCount) {
    next_line = f.readln();
    if ( f.eof ) {alert("Aborting the script\nWe've got to the end of the file without finding a page count");
         f.close();
         exit();
         if (next_line.indexOf ("/N ") > 0 && next_line.slice(0, 9) != "<</Length" && next_line.slice(0, 9) != "[/Separat") {
         var p = next_line.match (/\/N (\d+)\/T/)[1];
         gotCount = true;
         else if (next_line.indexOf ("/Pages") > 0 ) {
    //      alert (next_line);
         var p = parseInt(next_line.substring(next_line.indexOf("/Pages") +6), 10)
         gotCount = true;
    f.close ();
    return Number(p);
    I suppose this approach could be modified to address some of the features you are looking for.
    But the issue might be a fairly complicated one, as a pdf may for example combine many different TrimBox-sizes.
    Have you asked over in the Bridge Scripting Forum, too?

  • How to use Javascript NQSWENav calls between Apache/OBIEE and MS-IIS/Siebel

    Hoping someone can help me. We're upgrading systems, moving from Analytics 7.7 to OBIEE 10.1.3. Analytics Web used to sit on same IIS web server as Siebel CRM. In Analytics 7.7 I used:
    [html]"&lt;a href=\"javascript:NQSWENav('All Activity List View','Activity List Applet With Navigation','"@"'); \"&gt;"@" &lt;/a&gt; "
    to allow report links to open the CRM Activity window (where "@" was populated with the value of ROW_ID). This worked in an environment where both CRM & Analytics resided on the same Windows machine and shared the same IIS web server.
    We have now upgraded Analytics 7.7 to OBIEE 10.1.3, and have moved OBIEE to a much more robust AIX machine which runs an Apache web server. My users do not want to loose the functional ease of running a report in embedded Analytics, clicking a link, and navigating to the relevant CRM form.
    This functionality is no longer working in the new split environment. I'm not surprised by this, but would like to get it working again if possible. Does anyone know how to get this to work across hosts and web servers?

    Hi Redneck,
    the OBI web server and Siebel web server must share the same virtual IP. Excerpt from the original doc:
    [snip]Also, the host name for the Web server (or Virtual IP) serving content from the Siebel application server must match that for the Siebel Analytics Web Server, because the JavaScript Security model prevents a script on one server from affecting another.[snip]
    http://download.oracle.com/docs/cd/E12104_01/books/AnyInstAdm/AnyInstAdmnAppIntegrate12.html#wp1011778
    http://download.oracle.com/docs/cd/E12103_01/books/AnyWebAdm/AnyWebAdm_Dashboard4.html
    We had this already a couple of times and putting the two web servers under the same virtual IP will do the trick for you.
    Cheers,
    C.

  • Urgent!! Process not invked after using javascript validation

    hi,
    I have created a javascript form validation and finally (if its passes the validation) I am setting the :REQUEST as doSubmit('GO');
    I am calling a conditional process with condition as request = expression1
    with expression 1 as GO.
    The javascript is as follows
    function message_name_not_null(){
    if(document.getElementById('P14_MESSAGE_NAME').value.length==0)
    alert("Message Name is Mandatory!!");
    return;
    else if(document.getElementById('P14_MESSAGE_TEXT').value.length==0)
    alert("Message Text is Mandatory!!");
    return;
    else
    doSubmit('GO');
    My problem is my process is not getting called in button click(I have called the javascript from this button as javascript:message_name_not_null(); in Optional URL Redirect section)
    I have specified the :REQUEST value in the branches also.
    Any sort of help please..
    Thanks in Advance
    Kaushik

    Hi Kaushik,
    this thread should help you:
    Validation with javascript
    greetings,
    Jochen

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

  • Calling url without using javascript

    Hi all,
    In my BSP application, I need to call url in a popup or in the application itself without using javascript.
    My requirement is the url should not be visible to the users. For this, if a javascript is used the url would be visible to the users whereas if the url is called in the BSP application itself then only BSP url would be visible.  Can anyone suggest some methods to call url in a BSP application?
    Thanks and Regards,
    Sneha.

    Hi Sneha,
    you can have ABAP make the HTTP request then just pass the response directly back to the web client.
    Sample of how to make a HTTP request can be found at http://help.sap.com/saphelp_nw04/helpdata/en/e5/4d3514c11411d4ad310000e83539c3/frameset.htm
    Cheers
    Graham Robbo

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • Detect the Popup blocker settings by using javascript is it possible? if yes can any one suggest how to implement?

    How can i detect the Firefox the Popup blocker settings by using javascript, so that i can show message to user, saying" popup settings are on, please turn off or allow the site". can any one help me out. Thanks in advance.

    Hi William,
    I am writting a sample code for you :
    go to code wizard, select your node VBAk (where you have the attribute VBLEN )
    and select the attribute. Now code will be automatically generated.
        DATA LO_ND_VBAk TYPE REF TO IF_WD_CONTEXT_NODE.
        DATA LO_EL_VBAk  TYPE REF TO IF_WD_CONTEXT_ELEMENT.
        DATA LS_VBAk  TYPE WD_THIS->ELEMENT_VBAk.
        DATA LV_VBLEN TYPE WD_THIS->ELEMENT_VBAk-VBLEN.
      navigate from <CONTEXT> to <VBAk> via lead selection
        LO_ND_VBAk = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX__VBAk ).
      get element via lead selection
        LO_EL_VBAk  = LO_ND_VBAk ->GET_ELEMENT( ).
      alternative access  via index
      lo_el_VBAk  = lo_nd_VBAk ->get_element( index = 1 ).
      @TODO handle not set lead selection
        IF LO_EL_VBAk  IS INITIAL.
        ENDIF.
      get single attribute
        LO_EL_VBAk ->GET_ATTRIBUTE(
          EXPORTING
            NAME =  `VBLEN`
          IMPORTING
            VALUE = LV_VBLEN ).
    Now based on the value LV_VBLEN select values from database table and fill the internal table.
    DATA LT_VBAk  TYPE WD_THIS->ELEMENTSVBAk.  " this the table to keep the values
    select VBLEN ERDAT ERNAM AUDAT from VBAK into table LT_VBAk where VBLEN = LV_VBLEN. 
    Now you can bind the table to appropriate node.
    Regards,
    Monishankar C

  • Create link using javascript or other relevant automated process

    i have multiple PDF which i have combined using Acrobat pro... the table of content for this pdf does not have link as i had generated it in Word using RD fields. Now, my main concern is it possible to create links using Javascript or any other process.. i am aware of link tool however my document is very huge and the TOC comprises of around 25 pages.. it will be very cumbersome to manually add for each topic and will be difficult to maintain as we keep updating the document content..i would really appreciate if any one could help me in this as i really stuck up in middle of project...

    thanks a ton for your prompt response..As i had mentioned earlier, i have around 13 sub documents. i have generated a table of contents for these document using RD fields in a seperate document and saved it as TOC.doc. As these are fields are referring to topic outside the current document, the links are not availabled in word.. i am not aware of any possible method in word to retrieve links for these topics just like how a standard TOC in word works. as i saw it PRO, there is an option to create link, i was wondering if there is any way i could automatically link these topics as in PDF, the topics are in the same document where as in WORD these are different documents.If you could suggest some work around, i would be glad

  • How to call a batch file in Mozilla using javascript

    With the following code snippet
    WshShell = new ActiveXObject("WScript.Shell");
    WshShell.Run ("c:\\Windows\\system32\\Notepad.exe",1,true);
    it is working fine, but not in Mozilla.
    I want to call batch file in Mozilla using javascript.
    can some body suggest on this?

    I found that already. Eventhough that is slightly differ from yours.
    .exec("cmd /c start x.bat");
    Anyhow
    Thanks yarr.
    My E-Mail ID is [email protected]

Maybe you are looking for

  • Please help me figure out if I can return

    On the 5th, I bought my MacBook Pro. I really like it except that it's a 1.83 instead of 2.0 which is now the standard for MacBook Pros, and on top of that it makes the exremely annoying whining sound. I called the apple store (in Kansas City) were I

  • Sub-details in the same report at a double click

    Hi All, Can anyone let me know how to display the below details in the report? Initially we can display the basic list with month details. Say we have 12 months (12 lines) in the output. Now if I double click on the month (say March), in the same rep

  • Selection screen validation for batch

    This is my scenario: If program is executed in background, plant (in selection screen) is not mandatory. If program is executed directly, plant (in selection screen) needs to be filled (mandatory). I tried using sy-batch and coding at the AT SELECTIO

  • Connecting to R/3 System through Java Web Dynpro forms.

    Hi, I have a requirement in which I have to send data to R/3 from Java Web Dynpro screens. I will design the Java Web Dynpro screens and write a RFC Model. I will write a RFC in se37 which will connect to the RFC Model. Before creating the RFC in se3

  • Error: Response code 302, When accessing Google search API from Webdynpro

    I am developing Webdynpro application in which i have provided Google search facility by using Google search API as web service. But when i am executing my application and search for some expression then it gives "Service Call Exception : Invalid Res