Help:Javascript on OA page

Hi,
I am using javascript to open a popup window when i click on a Button at OA page.
In the popup window i am having a cancel button whose destination function is pointing to base page.When i click on cancel, base page is opening in popwindow only.But i want the popup window to close when i click on Cancel.
Also there is one more button called 'Accpet' on popup window,whose destination function is set to some page 'B'.When i click on Accept page 'B' is opening in the popwindow only.Instead i want the popwindow to close and and 'B' should open as main browser window.
Please suggest how to do it.
Thanks,
ashok

Ashok,
Have you searched through the forum threads. Mukul has provided step by step details for this kind of scenario in a couple of threads.
--Shiv                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Displaying javascript enabled web page into JEditorPane

    Hi,
    I want to display a javascript enabled web page into JEditorPane but it is giving me the error the please enable javascript.
    Any suggestions?

    JEditorPane is the only component in the base JDK used to display web pages, but it only supports HTML 3.2 (?). No java script and stuff like that.
    I would only use it to display "Help" files you have created for your application, not for downloading web pages from the internet.
    I'm sure if you search in Google you will find a 3rd party package.

  • Javascript in .jsff page

    Hi Gurus,
    Iam facing few problems in adding javascript to my .jsff page.
    i had tried with <trh:script></trh:script> but its showing not declared and dont know which lib that i need to add.
    Please let me know how to add javascript in .jsff page so when ever iam selecting a value from <af:selectOneChoice> i need to trigger the javascript function.
    Regards
    Suresh kumar

    hi ,
    Its not working.
    My use case is on selecting the value from <af:selectOneChoice> , i need to make few fields as read-only.
    i have tried by giving
    <af:selectOneChoice value="#{bindings.AprftypeId1.inputValue}"
    label="#{bindings.AprftypeId1.label}"
    required="#{bindings.AprftypeId1.hints.mandatory}"
    shortDesc="#{bindings.AprftypeId1.hints.tooltip}"
    id="soc3" clientComponent="true" >
    <f:selectItems value="#{bindings.AprftypeId1.items}"
    id="si3"/>
    <af:clientListener method="clientListenerFunction()" type="valueChange"></af:clientListener>
    </af:selectOneChoice>
    and used <af:resource> for javascript function but nothing is working.
    Is that my case cant be done in javascript.i need to use bindmethod to do ?

  • The JavaScript for this page failed to load correctly. Always on shutterfly.

    I'm trying to view photo albums on shutterfly and always get the following error. "The JavaScript for this page failed to load correctly. "

    Howdy there JohnB,
    It sounds like you are unable to access your Shuttefly due to a JavaScript issue in Safari. I would start by checking to see if JavaScript is enabled in the Preferences.
    Enable JavaScript
    JavaScript is a software technology that allows some buttons, online forms, and other webpage content to work properly. To block JavaScript, deselect this checkbox.
    Note: Disabling JavaScript can cause many sites not to work properly.
    From: Safari 6 (OS X Mountain Lion): Security preferences
              http://support.apple.com/kb/PH11886
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • The JavaScript for this page failed to load correctly

    I keep getting this message "The JavaScript for this page failed to load correctly" when I try to access my Shutterfly accounts.
    This is a new problem since upgrading to Mavericks.  It does not happen on my Macbook Pro running Mavericks.
    John

    Howdy there JohnB,
    It sounds like you are unable to access your Shuttefly due to a JavaScript issue in Safari. I would start by checking to see if JavaScript is enabled in the Preferences.
    Enable JavaScript
    JavaScript is a software technology that allows some buttons, online forms, and other webpage content to work properly. To block JavaScript, deselect this checkbox.
    Note: Disabling JavaScript can cause many sites not to work properly.
    From: Safari 6 (OS X Mountain Lion): Security preferences
              http://support.apple.com/kb/PH11886
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Pasting javascript widgets into pages

    is there any way yet to paste javascript code into pages using iweb 09?
    i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...
    all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
    kinda clumsy to be honest....
    any way around this?
    \

    is there any way yet to paste javascript code into pages using iweb 09?
    It's depend on how/what the javascript code is implemented.
    i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...
    That's how HTML Snippet widget works, it does not add the codes to the page but to another page called widget#_markup.html thru an iframe.
    Most people do not know this (or ignore to) and make the common mistakes... have their StatCounter or Google Analytical codes track the wrong pages.
    all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
    kinda clumsy to be honest....
    You know it... post editing after every publishing... is clumsy, old, oh so yesterday...
    any way around this?
    Yes, build your own iweb3 widgets, this pretty much answer your first question.
    However... AFAIK, I am the only one (as far) builds iweb widgets (in iweb3 context), google my page (cyclosaurus.com)... you find sharethis widget is on upper left corner.
    All javascript is linked to my page... sorry, I don't do tutorial nor how-to.

  • I need help with a 1 Page Form with scrollable text field (5000 limit characters) and printing

    Hello, I have no training in using Adobe Acrobat Pro or Livecycle Designer so I need major help with a 1 page form that I am attempting to create. Basically the form will be used to nominate employees for a Job Well Done Award.
    The form contains the following:
    1.) The name(s) of the employees being nominated and the date of the accomplishment.
    2.) In the middle of the page I have a section for a write up, limited to 5000 characters, this is were I am needing the most help. A couple of things, about this section: The font is set at 11 and I don't want it to change. The text field has multiple-line, scroll long text enabled. The text field is a certain size and can only hold so much text, then it starts to scroll, which I am ok with, I like that feature. The issue I am having is during printing. I would like to keep the text field scrollable but when I print I would like to be able to print everything in that field. Executing this is the problem, I have no clue how to do it. I was hoping for some setting within Acrobat Pro or LiveCycle to be available, but the more I read and research this, it appears that it may require java, xml, basically some coding. I don't know for sure.
    3.) Below the text field I have another field for the person nominating to type their name and right next to that another field for a digital signature.
    4.) And finally below those two fields I have a Submit button that is setup to start email application so the form can be emailed to the proper inbox.
    Thank you in advance.

    With an Acrobat form the only thing you can do is export the text to
    another location (like a blank field on another page) or to another file
    format. With an LCD form you can expand the text box itself, but you'll
    need to ask about that over at the LCD Scripting forum.

  • Javascript in Portal Pages

    How include javascript code in Pages created by Portal ?

    Tanks, Christopher
    I include HTML porlet in my Home Page (created by portal), but this not work.
    The javascript that i use is a "on-unload", because some Portal users don´t use the option Logout, and the session keep open.
    Thanks,
    Orlando

  • I need help on a main page. basic for u but not for me

    Hello,
    I need help on a main page.
    I have this page called themainpage.cfm which someone here
    asked me to make it the main page of my cf pages.
    I have 2 pages right now in testing server.
    Bloicpage.cfm
    And
    Index.cfm
    When you go to
    Server.myappfolders/repfolder
    It let you go to
    Server.myappfolders/rep/folder/ Bloicpage.cfm
    Page.
    I need for the themainpage.cfm to be the default when typing
    Server.myappfolders/repfolder
    Then have a link to the Bloicpage.cfm and a back button to go
    back to the mainpage.cfm
    Many thanks

    here is the Bloicpage.cfm
    which is currently the main page when you type
    Server.myappfolders/repfolder
    i need it to go to another main page which will have a link
    to this and a back button from here and a back button from the
    report html page and the excel csv page
    ps .
    i excluded the queries and some logics.
    sorry
    thanks
    <cfparam name="form.ctcde" default="ALL">
    <cfparam name="form.SDT" default="#now()#">
    <cfparam name="form.EDT" default="#now()#">
    <cfparam name="Form.outputFormat" default="CSV">
    <cfsetting showdebugoutput="no"/>
    <cfif not isdate(form.SDT)><cfset form.SDT =
    now()></cfif>
    <cfif not isdate(form.EDT)><cfset form.EDT =
    now()></cfif>
    <!---
    01/01/2003
    --->
    <cfquery name="theQuery" datasource="cts9i">
    SELECT
    </cfswitch>
    group by
    Order by </cfquery>
    <cfset a = a + 1>
    </cfoutput>
    <cfswitch expression="#Form.outputFormat#">
    <cfc value="HTML">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <style type="text/css">
    table{
    font-family:Arial, Helvetica, sans-serif;
    font-size:85%;
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:85%;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:85%;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:120%;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:100%;
    </style>
    <body>
    <cfoutput>
    <div align="center">
    <h2>Bkc#dateformat(form.SDT,"mm/dd/yyyy")# to
    #dateformat(form.EDT,"mm/dd/yyyy")# Wudd</h2>
    </div>
    <div align="center">
    <h3>#form.ctcde# CCwoph</h3>
    </div>
    <table border="1" cellpadding="0" cellspacing="0">
    <tr>
    <th>ccc##</th>
    <th>aaa</th>
    <th>cccc</th>
    <th>iii</th>
    <th>Eee</th>
    <th>h11</th>
    <th>h112</th>
    <th>h22</th>
    <th>h222</th>
    <th>h33</th>
    <th>h333</th>
    <th>ehh</th>
    </tr>
    <cfset variables.nphc = 0>
    <cfloop index="x" from="1" to="#arraylen(anArray)#"
    step="1">
    <cfif NOT anArray[x][1]>
    <tr>
    <td>
    #anArray[x][2].c_nbr#
    </td>
    <td>
    #anArray[x][2].c_dcdt#
    </td>
    <td>
    #anArray[x][2].PAPD#
    </td>
    <td>
    #anArray[x][2].Iii#
    </td>
    <td>
    #anArray[x][2].Eee#
    </td>
    <cfset thirdArray = anArray[x][3]>
    <cfif NOT arraylen(thirdArray)>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <cfelse>
    <cfloop index="z" from="1" to="3">
    <cfif z GT arraylen(thirdArray)>
    <td> </td>
    <td> </td>
    <cfelse>
    <td>
    #thirdArray[z][2]# 
    </td>
    <td>
    #thirdArray[z][3]# 
    </td>
    </cfif>
    </cfloop>
    <cfif arrayLen(thirdArray) gt 3>
    <td nowrap="nowrap">
    <cfloop index="z" from="4"
    to="#arraylen(thirdArray)#">
    #thirdArray[z][2]# - #thirdArray[z][3]#<BR />
    </cfloop>
    </td>
    </cfif>
    </cfif>
    </tr>
    <cfset variables.nphct = variables.nphct + 1>
    </cfif>
    </cfloop>
    </table>
    Total Ccwoph: #variables.nphct#
    <BR />
    <BR />
    <HR />
    <BR />
    <div align="center">
    <h3>#form.ctcde# CWph</h3>
    </div>
    <table border="1" cellpadding="0" cellspacing="0">
    <tr>
    <th>ccc##</th>
    <th>aaa</th>
    <th>cccc</th>
    <th>iii</th>
    <th>Eee</th>
    <th>h11</th>
    <th>h112</th>
    <th>h22</th>
    <th>h222</th>
    <th>h33</th>
    <th>h333</th>
    <th>ehh</th>
    </tr>
    <cfset variables.phc = 0>
    <cfloop index="x" from="1" to="#arraylen(anArray)#"
    step="1">
    <cfif anArray[x][1]>
    <tr>
    <td>
    #anArray[x][2].c_nbr#
    </td>
    <td>
    #anArray[x][2].c_dcdt#
    </td>
    <td>
    #anArray[x][2].PAPD#
    </td>
    <td>
    #anArray[x][2].Iii#
    </td>
    <td>
    #anArray[x][2].Eee#
    </td>
    <cfset thirdArray = anArray[x][3]>
    <cfif NOT arraylen(thirdArray)>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <cfelse>
    <cfloop index="z" from="1" to="3">
    <cfif z GT arraylen(thirdArray)>
    <td> </td>
    <td> </td>
    <cfelse>
    <td>
    #thirdArray[z][2]# 
    </td>
    <td>
    #thirdArray[z][3]# 
    </td>
    </cfif>
    </cfloop>
    <cfif arrayLen(thirdArray) gt 3>
    <td nowrap="nowrap">
    <cfloop index="z" from="4"
    to="#arraylen(thirdArray)#">
    #thirdArray[z][2]# - #thirdArray[z][3]#<BR />
    </cfloop>
    </td>
    </cfif>
    </cfif>
    </tr>
    <cfset variables.phc = variables.phc + 1>
    </cfif>
    </cfloop>
    </table>
    Total Cwph: #variables.phc#
    <!---
    <cfloop index="x" from="1" to="#arraylen(anArray)#"
    step="1">
    #anArray[x][1]#
    #anArray[x][2].c_id#
    #anArray[x][2].c_nbr#
    #anArray[x][2].c_dcdt#
    #anArray[x][2].PAPD#
    #anArray[x][2].Iii#
    #anArray[x][2].Eee#
    #anArray[x][2].NumberOfHolds#
    <cfset thirdArray = anArray[x][3]>
    <cfloop index="z" from="1" to="#arraylen(anArray[x][3])#"
    step="1">
    #thirdArray[z][1]#
    #thirdArray[z][2]#
    #thirdArray[z][3]#
    </cfloop>
    <HR />
    </cfloop>
    --->
    </cfoutput>
    </body>
    </html>
    </cfc>
    <cfc value="CSV">
    <cfoutput>
    <cfset variables.theOutput =
    "Bkc#dateformat(form.SDT,"mm/dd/yyyy")# to
    #dateformat(form.EDT,"mm/dd/yyyy")# Wudd">
    <cfset variables.theOutput = variables.theOutput &
    chr(10)>
    <cfset variables.theOutput = variables.theOutput &
    "#form.ctcde# CCwoph">
    <cfset variables.theOutput = variables.theOutput &
    chr(10)>
    <cfset variables.theOutput = variables.theOutput & "C
    ##,Ad,Ccc,Iii,Eee,h11,h12,h22 ,h222,h33,H333,ehh">
    <cfset variables.theOutput = variables.theOutput &
    chr(10)>
    <cfset variables.nphct = 0>
    <cfloop index="x" from="1" to="#arraylen(anArray)#"
    step="1">
    <cfif NOT anArray[x][1]>
    <cfset variables.theOutput = variables.theOutput &
    "#anArray[x][2].c_nbr#, #anArray[x][2].c_dcdt#,
    #anArray[x][2].PAPD#,#anArray[x][2].Iii#,#anArray[x][2].Eee#">
    <cfset thirdArray = anArray[x][3]>
    <cfif NOT arraylen(thirdArray)>
    <cfset variables.theOutput = variables.theOutput &
    ",,,,,,">
    <cfelse>
    <cfloop index="z" from="1" to="3">
    <cfif z GT arraylen(thirdArray)>
    <cfset variables.theOutput = variables.theOutput &
    ",,">
    <cfelse>
    <cfset variables.theOutput = variables.theOutput &
    ",#thirdArray[z][2]#,#thirdArray[z][3]#">
    </cfif>
    </cfloop>
    <cfif arrayLen(thirdArray) gt 3>
    <cfloop index="z" from="4"
    to="#arraylen(thirdArray)#">
    <cfset variables.theOutput = variables.theOutput &
    "#thirdArray[z][2]# - #thirdArray[z][3]# | ">
    </cfloop>
    </cfif>
    </cfif>
    <cfset variables.nphct = variables.nphct + 1>
    <cfset variables.theOutput = variables.theOutput &
    chr(10)>
    </cfif>
    </cfloop>
    <cfset>
    <cfset>
    <cfset >
    <cfset >
    <cfset >
    < & chr(10)>
    </cfif>
    </cfloop>
    </cfoutput>
    <cfcontent
    type="application/msexcel"><cfoutput>#variables.theOutput#</cfoutput></cfc></cfswitch>

  • Need help to share Number/Pages file visa Mail option. Cannot do with iPad Air (iOS7)

    Need help to share Number/Pages file visa Mail option. Cannot do with iPad Air

    Oh, okay. After selecting the format I want to send, it says "creating... ". Then irrespective of the format I choose the message e.g. "creating spreadsheet" disappears, and so does the choice window (where I earlier chose Mail). I am taken back to the Numbers (or Page) where I had started from. Diavonex's note indicated that after "creating ... " stage I should be taken to an option where I can type in email address where I want to  send the  file, if I want to copy it to another address etc. I cannot arrive at that page - no matter whether I am working with Pages or Number, or which format I choose for the file to share !
    I will try to close as you have suggested and try. However, I have switched on and off several times by now, but nothing changed!
    Will look forward to any ideas to solve this !!!
    Thanks much!
    Best

  • Account search F4 Help from BP Relationship page restricts the search

    Hi ,
    Account search F4 Help from BP Relationship page restricts the search to corporate accounts.
    The business partner category maintained for the relationship type in Tcode buba is organization and person.But the search is restricted to corporate accounts only.
    Thanks & Regards,
    Sanila

    Hi Shobhi,
    Can you provide some more details about the system ?
    Are you using transaction BP or CRM Web UI ? Also, which BBPCRM SP are you on ?
    This problem does not exist in higer SPs of CRM, and a related problem existed in Web UI that the F4 search did not consider the role based customizing. This has been corrected in SAP note 1297760.
    My guess is that everything is working fine in your system. Probably, you have also maintained some role based restrictions in BUBA customizing. Now, possibly, the allowed roles are only valid for corporate accounts, that's why you only see organizations in the search.
    E.g : say u have a relationship category ZBUP03 - Employee rel
    Now, you have a role restriction that partner 2 must be only role BUP003 = employee.
    Now, according to role customizing, employee can only be person.
    Thus, when you search for BP's to assign to rel category ZBUP03, you will only see persons.
    Probably, this is the scenario in your system.
    Hope this helps.
    Cheers,
    Rishu.

  • LabVIEW Help Important Information Copyright page broken links

    None of the files or folders listed in the LabVIEW Help >> Important Information >>Copyright page are existing in my W7 64 bits LV 2013 installation:

    It's been a while since I installed 2013...
    But since you are mentioning it, I get the same page for LV 2014 Help, and sure enough, none of it matches anything I can find in the Program Files/National Instruments folder (obviously since it is shared by all versions).
    I HAD an installation error when installing 2014.

  • HELP -- javascript failing when enabled

    A few days after upgrading to 10.4.9:
    Safari hangs and then crashes on any site using javacript such as the New York Times. If I disable javascript, then such pages will load. Of course, many pages, such as Fidelity, will not work.
    Hoping to get a new load of javascript, i download and installed Safari 3 beta. It behaves the same way.
    So -- when javascript is screwing-up -- how can it be fixed?
    I downloaded the newest javascript and it claims it can't be installed.
    This exact same problem many others are reporting.
    Message was edited by: Steve Mullen

    Solved. Not java at all. Although I did learn a lot about java by replacing everything.
    Seems CS3 loads a flash plug-in that conflicts with one that was previously installed. I deleted the old one and kept the one that came with CS3.

  • Injecting javascript in Master page

    How to inject javascript in Master Page using CSOM/JSOM?
    Would want to write some console app. which will inject the javascript in master page.
    Thanks

    Depends a little on what you want to do with the JavaScript. Is it going to impact the general page, or a single web part.
    One general way is to add a Content Editor web part and set it's source to a text file in a library. Your CSOM could upload/update that text file.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages and I need to!  Please help!!  "Add page" is not working!!!

    I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages past that and I need to!  Please help!!  "Add page" is not working!!!

    Fixed it thanks to similar questions and answers to them.  Thanks all!

Maybe you are looking for

  • Dump error while creating a new page in smartforms URGENT pls!!!

    while creating a new page it is showing me a dump error , that the superior program execption was not intercepted , i have even given the next page field also correctly, i have attached a mainwindow to that page and a text element to that . . thanks

  • Question while using report /SAPAPO/SDORDER_DEL

    Hello all, While using Report /SAPAPO/SDORDER_DEL and going through system documentation, I found that: "Normally, the order data remains in the database (it is not deleted as in live Cache)." From the above statement I am assuming that data gets del

  • E1000g driver issues

    Dear Solaris x64 team, over the past 3.75 years I have been running all mpirun traffic on our X2100 cluster over e1000g interfaces and a stack of 7 nortel switches. For some time I was running a specially back-ported e1000g driver and using intr_thro

  • I Need a Book Recommendation

    Hi I am going to be building 2D games foe the for seeable future. Games like Bed Bugs, Flight Control, Rolando etc are how I would build them using 2D. So if anybody knows any good books specifically dedicated to iPhone game programming, much would b

  • IPod Touch won't shuffle full playlist

    iPod Touch, 16GB, iOS 6.1.6 Problem: Selecting shuffle on a particular playlist (900 songs) results in a shuffle of only 174 songs. Playing the playlist directly (without shuffle) plays all 900 songs. Playing the playlist in iTunes (either as is or s