Can a page On Load process call Javascript API?

I am trying to use $s_Hide for some page items when the page loads. Can an 'On Load' page process call $s_Hide API? if yes, share code example please?! If not, what is the right way to accomplish it?
Thanks,
Yivon, Newbie in JAVA

Normaly, you can put this script into the region footer. However, you can wrap it into a PL/SQL block like in this example:
http://apex.oracle.com/pls/otn/f?p=31517:170
See the code explanation Step Nr. 4.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Error occured during load process com.essbase.api.base.EssException: (-1):

    I am trying extract the Measures dimension from Sample application by following John's blog (ODI Series - Loading Essbase Metadata) . Its giving error on extracting metadata from Sample basic.
    ODI Ver 10.1.3.6.3
    Error
    Error occured during load process com.essbase.api.base.EssException: (-1):
    Error log :
    2010-07-17 04:25:30,741 INFO [DwgCmdExecutionThread:null:9]: ODI Hyperion Essbase Adapter Version 9.3.1.1
    2010-07-17 04:25:30,741 INFO [DwgCmdExecutionThread:null:9]: Connecting to Essbase application [Sample] on [M2BTG.BADAKLNG.COM]:[1423] using username [admin].
    2010-07-17 04:25:30,760 INFO [DwgCmdExecutionThread:null:9]: Successfully connected to the Essbase application.
    2010-07-17 04:25:30,760 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option RULES_FILE = prodload
    2010-07-17 04:25:30,762 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option RULE_SEPARATOR = Tab
    2010-07-17 04:25:30,762 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option PRE_LOAD_MAXL_SCRIPT =
    2010-07-17 04:25:30,762 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option POST_LOAD_MAXL_SCRIPT =
    2010-07-17 04:25:30,762 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option ABORT_ON_PRE_MAXL_ERROR = true
    2010-07-17 04:25:30,763 INFO [DwgCmdExecutionThread:null:9]: Essbase Load IKM option RESTRUCTURE_DATABASE = KEEP_ALL_DATA
    2010-07-17 04:25:30,774 INFO [DwgCmdExecutionThread:null:9]: Begining the load process.
    2010-07-17 04:25:30,792 ERROR [DwgCmdExecutionThread:null:9]: Error occured during load process com.essbase.api.base.EssException: (-1): null.
    2010-07-17 04:25:30,792 INFO [DwgCmdExecutionThread:null:9]: Load process completed.
    2010-07-17 04:25:30,792 INFO [DwgCmdExecutionThread:null:9]: Logging out and disconnecting from the essbase application.
    On checking the toplology manager, it gives error as shown below.
    rg.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: (-1): null
         at com.hyperion.odi.essbase.ODIEssbaseMetaWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx9.f$0(<string>:23)
         at org.python.pycode._pyx9.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.h.A(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.essbase.api.base.EssException: (-1): null
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.essMainBuildDimension(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMainMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect._invokeProtected(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin.essMainBuildDimension(Unknown Source)
         at com.essbase.api.datasource.EssCube.buildDimension(Unknown Source)
         at com.hyperion.odi.essbase.wrapper.EssbaseApplication.buildDimension(Unknown Source)
         ... 32 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: (-1): null
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.h.A(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please Help me
    Rgds
    Uka FP

    You won't get much response with an error like that, what I can suggest is have a look at one of the blogs I wrote going through loading metadata :- http://john-goodwin.blogspot.com/2008/11/odi-series-loading-essbase-metadata.html
    Try building some test metadata loads against the sample.basic application to get a feel for how to do it.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Pages not loading completely with JavaScript enabled

    This just started in the last day or so. I have Safari extensions disabled.
    When I go to the ThinkProgress.org site/blog, I'm getting an incomplete page unless I disable JavaScript. With JavaScript, I'll get the first post on the blog, but nothing else. With JavaScript off I get the site looking pretty much normal.
    I get a similar problem if I go to Economist.com and click to read one of the stories. In that case, I get the story's headline, but it cuts off before the text of the article, right after a link to Tweet the story. Again, disabling JavaScript allows the page to load correctly.
    I suspect some third-party service is providing a script, which broke in the last day or so, but nobody's paying attention because of the Holidays.
    The problem doesn't appear to effect Chrome. Safari was upgraded to 5.0.3 in November, but this problem is more recent than that.
    Has anyone else seen this?

    Hi Jonathan,
    Go to the Economist.com site.
    From your Safari menu bar click Safari / Preferences then select the Advanced tab. Select the box next to: Show Develop menu in menu bar.
    Now click Develop / Disable Runaway JavaScript Timer.
    See if that makes a difference.
    Otherwise, check Safari / Preferences - Extensions or try disabling Safari plugins, Safari / Preferences - Security.
    And delete the cookies associated with those url's in Safari / Preferences - Security. Show Cookies
    Carolyn

  • Loading data into essbase - can't stop the loading process

    Hello Everyone
    I have built an interface which loads data into essbase.
    The interface was working great until last night, don't know why it got stuck in the stage of loading data into essbase
    (This is my bonus question, why? does it have anything to do wit hte fact that I have refreshed the database via planning)
    Any way, we have tried to kill the loading process by clicking stop on the interface execution in operator, and even after we killed the
    session in essbase it was still there in essbase.
    Does anyone know why?
    Thanks

    Hi,
    I can't answer your questions but ...
    I'm really familiar with the fact that trying to stop an execution fail.
    The only solution I found is to pass by an agent for all my executions.
    With an agent if I have a problem, as an emergency I can stop the agent it will stop the execution...
    I'm sure that it is a bit dirty but it works...
    And that is better than nothing...
    The ugliest and only way I found without agent to stop an execution was to drop a table used by the job (like a I$ table) it forces the failed...
    Sorry no more clue.
    Regards,
    Brice

  • Double Page Load on call javascript method

    I have implemented a tree component(which I have the folders). When I clic on the tree I have to expand or close it, so I have implemented a javascript method on clic:
    <af:tree value="#{bindings.OpcionesPadreView1.treeModel}" var="node"
    rowSelection="single" id="t1"
    partialTriggers=":::cbNuevCpta :::dlCfr"
    selectionListener="#{pageFlowScope.GestionDocumentos.buscarDocumentos_SelectionListener}">
    <af:clientListener method="expandTree" type="click"/>
    <f:facet name="nodeStamp">
    <af:outputText value="#{node.Gesdopcach}" id="otOpc"/>
    </f:facet>
    </af:tree>
    <af:table value="#{bindings.ArchivosView.collectionModel}" var="row"
    rows="#{bindings.ArchivosView.rangeSize}"
    rowBandingInterval="0" id="tArch" shortDesc="Documentos"
    partialTriggers=":::dlCfr :::cbOk ::t1"
    disableColumnReordering="true"
    binding="#{pageFlowScope.GestionDocumentos.tarch}">
    </af:table
    I also need a selectionListener on Java, because When I clic on the tree( that are folders), I have to bring the documents according to the folder selected into the table, so I have implemented this:
    public void buscarDocumentos_SelectionListener(SelectionEvent selectionEvent) {
    String codigoOpcion = null;
    RichTree tree = (RichTree)selectionEvent.getSource();
    RowKeySet rowKeySet = selectionEvent.getAddedSet();
    Iterator rksIterator = rowKeySet.iterator();
    while (rksIterator.hasNext()) {
    List key = (List)rksIterator.next();
    CollectionModel collectionModel = (CollectionModel)tree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = treeBinding.findNodeByKeyPath(key);
    Object[] atributeValues = nodeBinding.getRow().getAttributeValues();
    codigoOpcion = (String)atributeValues[0];
    Map params = new HashMap();
    params.put("PV_CODREF",codigoOpcion);
    params.put("PV_CODROL", LoginBean.getUser().getRolActual());
    Map permisos = new HashMap();
    permisos.put("PV_CODOPC",codigoOpcion);
    permisos.put("PV_CODROL",LoginBean.getUser().getRolActual());
    executeOperationBinding(EXECUTE_FILES, params);
    executeOperationBinding(EXECUTE_PERMISOS, permisos);
    The problem I have is that when I clic on the folder in the tree, the table is fetching the documents twice(like a doble page load). This doesn't happen when my clientListener is of type "selection", but with "selection" I have problems to close the tree.

    Here is an example, let me know if it needs explanation.
    Private Sub RSWVBAPage_afterPlay()
    Dim doc As HTMLDocument
    Set doc = RSWApp.om.GetTopDocument
    doc.parentWindow.execScript "MyJavascriptFunction();", "javascript"
    Set doc = Nothing
    End Sub

  • Page not found after call to API

    Hi all,
    I have a portal formal that calls a PL/SQL procedure on submit. My procedure has the following lines.
    uid:= create_user (p_username, p_password, p_first_name, p_last_name);
    wwsec_api.add_user_to_list ( p_person_id => uid, p_to_group_id => p_group_id, p_is_owner => wwsec_api.NOT_OWNER);
    wwsec_api.SET_DEFAULTGROUP ( p_groupid => p_group_id, p_username => p_username);
    After a successfull call I'm not able to navigate through Portal any more (I get "Page cannot be found" errors). Every page under pls DAD gives me this error, even if I try to call http://server/pls/portal30/ . I have to close my browser and open it again to be able to work.
    I tried to change my procedure to have just one line: dbms_output.put_line ('something') and then I was able to navigate after the call.
    So I changed again the code and put just the line "portal30.wwctx_api.set_context (p_user_name => 'PORTAL30_SSO', p_password => 'PORTAL30_SSO');" and got the same problem again.
    Somebody could explain me what I am doing wrong ?
    Thanks,
    Rafael.

    I'm having the exact same problem!!
    Some procedures are calling API's which needs to be run as
    PORTAL30. You can make it work for a normal user if you use
    set_context like this:
    portal30.wwctx_api.set_context(p_user_name => 'PORTAL30',
         p_password => 'PORTAL30');
    my_special_procedure;
    portal30.wwctx_api.clear_context;
    BUT - the user cannot access any page after using set_context!
    You need to quit the browser and go back to be able to access
    portal again... I guess the session is lost somehow.
    I've been struggling with this for a few days and still haven't
    got it to work.
    There is another post going with some more info:
    http://forums.oracle.com/forums/message.jsp?
    id=576096&v=d&uid=1005925321432

  • How to trigger the automated row fetch process and open modal window by javascript api?

    Hi,
    I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.
    There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.
    But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   
    I tried to use following 2 ways. But failed.
    First method:
    add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"
    when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.
    Second method:
    add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"
    when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".
    such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');
    But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.
    I am not sure if my thinking is right. Could you please provide any suggestion?
    Thanks in advance,
    Ping

    Hi Ping,
    You can try to set the session state of your modal page's primary key before opening the modal page. Use one dynamic action (on click of IR row) with two true actions. First one to set session state of modal page pk, second on to open modal page.
    Or you can add the modal page url as link in your report by extending your query:
    select ...
    ,         apex_util.prepare_url( 'f?p='||:APP_ID||':7:'||:APP_SESSION||'::'||:DEBUG||':7:P7_ID'||COLUMN_VALUE ) as link
    from ...
    This will give you the url of the modal page, with set primary key.
    Regards,
    Vincent Deelen
    http://vincentdeelen.blogspot.com

  • How to call javascript function from PL/SQL procedure

    Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?

    Hi,
    I have a requirement to call Javascript function inside a After Submit Process.
    clear requirement below:
    1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
    2. user clicks on "save files" button
    3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
    Hope this clarify U.
    Krishna.

  • Automating the cube load process

    Hi All,
    I have created the essbase cube using Hyperion Integration services 9.3.1 as my datasource is the star schema residing in a oracle db. I can successfully load the cube and see the results in smart view.
    I want to know how I can automate the data loading process(both dimension and fact) into the essbase cubes either by using unix scripts and windows .bat scripts.
    Your inputs are Appreciated. Thanks in Advance.
    Regards
    vr

    What everyone has shown you is the use of esscmd or MaxL, howevery you stated you are using EIS. Until you get to 11.1 and use Essbase studio, these won't help you. What you will need to do is to go into EIS, then select your metadata outlline. Pretend you are going to build the cube manually. Start scheduling it, when you get to the screen that allows you to schedule it or create a file, create the file only. You will want the name to end in .cbs (Hint, if you select both outline and data load, you will get all the statements in one script)
    After you are done, if you look on the EIS server under arborpath\EIS\Batch, you should see the .cbs file you created. It is a regular text file so you can look at it. If you open it, you will see loaddata and/or loaddimensions statements This is what does the work.
    To run it, create a batch file with the command olapicmd -fscriptFileName >logfilename
    For more information about the Integration Services Shell look at http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/eis_sysadmin.pdf Chapter 5 tells you everything you need to know

  • Anybody has experience calling ID API web service in Java

    Hello,
    as you know we can programmatically update ID objects by call ID APIs (web service). To do that you need to import the wsdl into a java project, generate web service client and call the client to update ID objects.
    I've tried this in NWDS CE version. However I got error when generating web service client from the wsdl of the ID web service. Only the BusinessComponentService passed the ws client genertion, the rest web services do not work.
    The error I got:
    IWAB0399E Error in generating Java from WSDL:  java.lang.NullPointerException
        java.lang.NullPointerException
        at org.apache.axis.wsdl.toJava.JavaInterfaceWriter.writeOperation(JavaInterfaceWriter.java:126)
    Anybody has experience with ID API?
    Thanks
    Jayson

    HI Jayson,
    you can also request the web service directly.
    For example, you could create a local xml file with the values you want to pass to the web service and configure a file 2 soap scenario within XI itself.
    You can create interfaces for each available web service.
    You could call this scenario "ID objects generator" or something and save the .tpz for the repository objects of this scenario, since you could reuse it in other projects.
    Other than that, in Teched '08, Bill Li showed a lot of proxies developed over Java to consume the ID API web services, and they all seemed to work ok. However I do think he used NW Developers Studio 7.0 (2004s), not CE.
    I'd raise an OSS msg with SAP in order to check the problem you're getting.
    Regards,
    Henrique.

  • Calling Java API's

    HI,
    can any one have idea about calling java api's in oracle apex 3.1?

    api where? where is your java code ? More information needed to answer your q.
    usually you should be able to call server side java routines as outlined in the manual Link:here.
    hope this helps

  • How can we call "SP.UI.Notify.addNotification" methods in sharepoint designer page(.aspx) load without any onclick control?

    Hello Friends,
    How can we call "SP.UI.Notify.addNotification" methods in sharepoint designer page(.aspx) load without any onclick control?
    Scenario: When i was open my page i need to show below script,But here i used button control.
    <script type="text/javascript" src="/_layouts/14/MicrosoftAjax.js"></script><script src="/_layouts/14/sp.runtime.js" type="text/javascript"></script>
    <script src="/_layouts/14/sp.js" type="text/javascript"></script><script type="text/javascript">
    var strNotificationID;
    function showNofication()
     strNotificationID = SP.UI.Notify.addNotification("<font color='#AA0000'>In Progress..</font> <img src='/_Layouts/Images/kpiprogressbar.gif' align='absmiddle'> ", false);
    </script>
    <div class="ms-toolpanefooter"><input class="UserButton" onclick="Javascript:showNofication();" type="button" value="Show Nofitication"/> </div>
    Thanks
    Reddy

    Hi  Reddy,
    You can use the window.onload method for achieving your demand as below:
    <script type="text/javascript">
    window.onload=function(){
    </script>
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • WAD : Call Javascript Function only on Initial Load

    Hi
    I need to replicate the functionality found in the web template parameter ACTION_BEFORE_FIRST_RENDERING in a Javascript function. I need to to do this in order to read a querystring parameter, and then perform actions based on that querystring parameter.
    Is there a way to either call a function from the ACTION_BEFORE_FIRST_RENDERING command, or how do I call my Javascript function only the 1st time the page is loaded?
    I can call the Javascript function from the body onLoad event, but that results in the function being called every time the page loads, which is not what I want ... I only want the function called the 1st time the page is loaded.
    Cheers,
    Andrew

    Seems you can use this parameter to check :
    sapbi_page.m_requestIdValue
    The first time a page is loaded, that value is 1. Thereafter, it increases. I can therefore put that check in my onLoad function, and call the stuff I need if it is 1, otherwise leave the function.
    Cheers,
    Andrew

  • Javascript API: how can I jump to library from custom store page?

    I have custom store page, and I want to show library page and initiate the download process when user hits download button on custom store page. How can I finish these functionalities with Adobe DPS Javascript API V2? Thanks.

    I found it by myself. just call  adobeDPS.configurationService.gotoState("library");

  • Bug? calling javascript click() on a hidden button causes js error on page

    I call the .click() method on a hidden button to cause the page to refresh. This works OK, but when the page comes back up, it has a javascript error on it. It turns out the error is from some javascript that is trying to set the focus on the hidden button that was clicked, which causes an error in IE (This doesn't seem to bother Firefox) .
    While I imagine that there are workarounds, why should the underlying faces architecture be setting the focus to a hidden button?
    It's easy to duplicate:
    Create new page. Add two buttons. For the first, make it invisible (uncheck visible in properties), then cause it to submit a virtual form.
    For the second, add this to the onclick:
    document.getElementById("form1:button1").click();return false;
    Bring up the page, click on the visible button. The page will refresh, and you'll have a nice js error.
    BTW: Obviously, I don't want to click one button from another. What I want is a way to cause an action to happen from javascript. I can't imagine it would work to simply submit a form from javascript, so I use this method. It works fine except for the error. Is there a better way to do this?

    which causes an error in IE (This doesn't seem to bother Firefox) .Vaious browsers behave differently at times when executing javascript code. Many instances of this can be found on the net. This is a browser specific problem.So it's ok to set the focus to a hidden button because firefox is more relaxed about this obvious error than explorer is? When would anyone really want a hidden button to gain focus? What do I tell my users--don't use explorer, because it doesn't like it when faces sets the focus to a hidden button? Ignore the error message you get? What?
    BTW: Obviously, I don't want to click one button from another. >>What I want is a way to cause an action to happen from javascript.Please describe in detail what action you would like to perform from javascript. It is not clear as to what the use case is.
    I don't really see how the use case matters. I gave a very easy example how to duplicate this problem. The reason that I want to do this is that there are many places to enter javascript code that don't allow for an action to be triggered. I have many instances of this. For example, I'd like a mouseover on an edit field to cause an action. I can capture this in javascript, but I can't cause any server side processing. To get around this limitation, I call the hidden button's .click method, which does cause a server side event.
    Here's a simpler, more direct incarnation of this error that doesn't involve javascript.
    Create a new page. Put an element on it, like an edit box. Put a button on the page. For its action, put:
    public String button1_action() {
    getButton1().setVisible(false);
    return null;
    Pressing this button will cause a page refresh, and then a javascript error.
    Use Case: After the user presses the button, they shouldn't be allowed to press or see it again.

Maybe you are looking for

  • TS3212 Insufficient privileges error when trying to install itunes in Windows 7

    I'm trying to install itunes on a machine with windows 7 and keep getting the error that installer has insufficient privileges to access this directory c:\programdata\microsoft\windows\startmenue\programs\itunes.  I am logged in as an administrator. 

  • PPC Mini works with Samsung 46" LCD at 1360x768 (sort of)

    Greetings. I just purchased a Samsung 46" LCD panel with the intent of using my PPC mini as a home theatre. I connected the mini to the LCD and once I turned off overscan, the display looks very good. The on-screen text is clear and sharp and the col

  • How can I download CoolEdit MAC free version?

    How can I download CoolEdit MAC free version? How can I find the oldest version of CoolEdit available for MAC? I have MacBook Pro running OSX 10.6.8

  • Upgraded to Windows 8.1, CRXI RDC crashes VB6

    Hello, We have a number of Visual Basic 6 projects that utilize Crystal Reports XI.  We maintain these reports within Visual Basic 6 itself using the Report Designer Component (RDC).  This has always worked for us and allows us to continue with furth

  • Refresh j table

    i have a jtable in which three textfield r also there and a button to save when i click save the data from textfield goto database and then i retrieve data to jtable.. but it is not coming at the same time when i clicked save. when i close frame and