My Javascript function can't work inside tabbed panel

I have a web application which has a tabbed panel inside.
And inside the tabbed panel, I place a page which contain Javascript..
When I out the action directly on the behavior, like
onClick="window.alert('Hi')"
it worked well..
But when I put the script to a function and I call the function, it doesn't work..
<script>
function test() {
window.alert('Hi');
</script>
onClick="javascript: test()"
I've tried to put the page out of the tabbed panel, and it worked, after I put it inside again, it didn't work..
Do you know why & how to fix it?
Thanks for helping :D

DeeCeeGee wrote:
My search function does not work at all - it did at one time - can someone please help?
Hi and welcome to the discussions.   This happens once in a while for no apparent reason.  When it happens to me, a simple log out/log in usually gets things going again.  I haven't researched to see what process died when this happens.
If that doesn't, then a restart, but first check Spotlight in System Preferences and make sure that the Privacy list is empty.

Similar Messages

  • If we use DML statement in function then that function can be used inside s

    if we use DML statement in function then that function can be used inside select query or any DML query?

    select f from t2;I think you meant to query t1.
    It works if the function is an autonomous transaction:
    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    select f from t1But as Billy said why would you want to do DML this way. And this is not the way autonomous procedures should be used either.
    An an answer to an interview question though nothing wrong with it.

  • Binding to a javascript function is not working

    I am trying to use the following code to bind to a javascript
    function and it's not working. I finally had to use jQuery to bind
    the event handler, but I would like to see the CF generated stuff
    work. Am I missing something here?
    This jquery code is the workaround:
    $('.match').change(function(){
    updateSA(this);

    Binding is not restricted to flash forms. I can bind directly
    to a cfc without problems, but in this case I need to send more
    info to the cfc than a single field would provide. You're supposed
    to be able to bind to a javascript function using the syntax above,
    but it's not working properly.
    More details here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_03.html#1128486

  • Javascript-function doesn't work with user nobody

    I recently started to use AJAX with APEX. I defined a Application Process and a Javascript-Function which fetch values from a Lookup-Table into some fields, which works great. Except when I make the page available public (user nobody), then it doesn't work anymore.

    Hello,
    Do you have page 0 (zero) in your application? If you are using page 0 as a parameter in your htmldb_Get function, the page must be public (http://htmldb.oracle.com/pls/otn/f?p=11933:63).
    Regards,
    Arie.

  • Javascript function is not working for jsp:include.. form elements

    HI,
    I have two jsp's and i will include one jsp in the another jsp, when i do this
    i am not able to access child form elements value using javascript. the javascript
    function is defined in the main jsp. but i could able to get the main form elements
    through javascript
    here is the code.
    main.jsp
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    <script language="JavaScript">
    function isValidAge() {
    alert ("hage " +document[getNetuiTagName("MyForm")][getNetuiTagName("age")].value)
    alert ("swage " +document[getNetuiTagName("MyForm")][getNetuiTagName("swage")].value)
    alert ("wage "+document[getNetuiTagName("MyForm")][getNetuiTagName("wage")].value)
    </script>
    </head>
    <body>
    <p>
    <netui:form action="myaction" tagId="MyForm">
    <netui:textBox tagId="age" dataSource="{actionForm.age}"/>
    <netui:textBox tagId="swage" dataSource="{actionForm.swage}"/>
    here i am adding
    <jsp:include page="NewPage.jsp" />
    <netui:button onClick="isValidAge();" />
    </netui:form>
    </p>
    </body>
    </netui:html>
    child.jsp :
    <!--Generated by WebLogic Workshop-->
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <table class="tablebody">
    <tr class="tablebody">
    <td> wife age
    <netui:textBox tagId="wage" dataSource="{actionForm.wage}"/>
    </td>
    </tr>
    </table>
    can you tell me is this is bug in hte weblogic portal SP1.
    I am using weblogic portal SP1.
    thanks in advance
    shashi

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Javascript functions don't work

    Hi,
    I have just tried the following code putting the script
    header to execute it on the client side:
    <script>
    if(ParentValue == String("Y"))
    EnableSubGroup();
    else
    DisableSubGroup();
    </script>
    I do not get the object expected error anymore
    but the functions don't work, why is this?
    ----Function definition ------
    <script type="text/javascript">
    function EnableSubGroup()
    document.forms["SubForm"].elements["SubGroupDD"].disabled='false';
    function DisableSubGroup()
    document.forms["SubForm"].elements["SubGroupDD"].disabled='true';
    </script>
    Thanks
    Fifi

    fifo85 wrote:
    > Hi,
    >
    > I have just tried the following code putting the script
    header to execute it
    > on the client side:
    > <script>
    > if(ParentValue == String("Y"))
    > {
    > EnableSubGroup();
    > }
    > else
    > {
    > DisableSubGroup();
    > }
    > </script>
    onload=function(){
    document.forms["SubForm"].elements["SubGroupDD"].disabled =
    !(ParentValue == "Y")
    This will disable SubGroup if "ParentValue" is not "Y"
    Mick
    >
    > I do not get the object expected error anymore
    > but the functions don't work, why is this?
    >
    > ----Function definition ------
    > <script type="text/javascript">
    > function EnableSubGroup()
    > {
    >
    document.forms["SubForm"].elements["SubGroupDD"].disabled='false';
    > }
    > function DisableSubGroup()
    > {
    >
    document.forms["SubForm"].elements["SubGroupDD"].disabled='true';
    > }
    > </script>
    >
    > Thanks
    >
    > Fifi
    >

  • Sliding panel inside tabbed panel - onclick both

    I have two tabbed panels, tab one has a sliding panel function in it with 5 panels. I am wondering that when you are in tab 2 that you can have a button that clicks to tab 1 AND to sliding panel 3 at the same time? I can make them work independently, but can't get it to accomplish both. I don't have a site that I can post but I could dummy one up if that would help.
    OK I have another scenario as well....
    You are on tab 1, sliding panel 4 and then go to tab 2. When you go back to tab 1 it holds the sliding panel 4 active. Is there a way that when you go back to tab 1 and it to default back to sliding panel 1? Basically I don't want it to hold the position of sliding panel 4 on tab 1.

    Try this and adapt to your needs:
    <!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=utf-8" />
    <title>Document sans nom</title>
    <script type="text/javascript" src="SpryAssets/SpryDOMUtils.js"></script>
    <script type="text/javascript" src="SpryAssets/SprySlidingPanels.js"></script>
    <link href="SpryAssets/SprySlidingPanels.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <style>
    .SlidingPanels {
       position: relative;
       width: 200px;
       height: 200px;
       padding: 0px;
    .SlidingPanelsContentGroup {
       position: relative;
       height:600px;
       margin: 0px;
       padding: 0px;
    .SlidingPanelsContent {
       width: 100%;
       height: 400px;
       overflow: hidden;
       margin: 0px;
       padding: 0px;
    </style>
    </head>
    <body>
    <a href="#" id="trigger1">Click me to go to Tab 1 and Panel 3</a>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" id="trigger2">Click mo to go to Tab1 and Panel 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Onglet 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Contenu 1
          <a href="#" onClick="sp1.showPanel(0);">Panel 1</a>
          <a href="#" onClick="sp1.showPanel(1);">Panel 2</a>
          <a href="#" onClick="sp1.showPanel(2);">Panel 3</a>
             <div id="slidingPanel_1" class="SlidingPanels">
                  <div class="SlidingPanelsContentGroup">
                     <div id="content1" class="SlidingPanelsContent">The Content 1</div>
                <div id="content2" class="SlidingPanelsContent">The Content 2</div>
                <div id="content3" class="SlidingPanelsContent">The Content 3</div>
            </div>
          </div>
        </div>
        <div class="TabbedPanelsContent">Contenu 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    var sp1 = new Spry.Widget.SlidingPanels("slidingPanel_1");
    Spry.Utils.addLoadListener(function() {
            Spry.$$("#trigger1").addEventListener('click', function() {
                TabbedPanels1.showPanel(0);
                sp1.showPanel(2);
            }, false);
            Spry.$$("#trigger2").addEventListener('click', function() {
                //TabbedPanels1.showPanel(0);
                sp1.showPanel(0);
            }, false);           
    </script>
    </body>
    </html>
    You may even do better using Spry.$$() CSS3-like selector (:first-child, nth-of-type(n), etc) to avoid adding ids on elements.
    Xav

  • Can I use Spry Tabbed Panels to create a multi page form?

    I'm trying to setup a multi page form and have been unsuccessful using PHP Sessions.
    Would it be possible to use the Spry Tabbed  Panels in DW CS3 and divide the different sections of the form in the  panels?  My thought is to have the Form Element around the main Tab  Div and the submit button at the end of the form.  Would this work?
    If so, is there a way to have a "Next" button that will activate  the next Tab so that the user can easily tab through each form field and easily go to the next tab to help with usability?

    Beth, thank you!  I was able to get the tabs to advance using your suggested
             on the right: "Next Panel"  
    <a href="#" onclick="TabbedPanels1.showPanel(2); return false;">Next Panel</a>
    In order to make it more graphical, I added a Next Button as suggested in the "Open Tabs Programatically" info at http://labs.adobe.com/technologies/spry/articles/tabbed_panel/index.html
    <button onclick="TabbedPanels1.showPanel(0)" >open first  panel</button>
    <button onclick="TabbedPanels1.showPanel('tabID')">open   panel</button>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    When I add the above code, when I clicked on the Next Button, it would submit the form.  After looking at the Text Code, I noticed the Button Code did not have the ;return false; in the code so once I added that, the buttons now work as I want them to.
    Take a look at http://www.soleproductions.com/oakley/tabform.php
    Now that I have the basic setup, I can begin to setup the actual Online Application.
    Thanks again for everyone's help.  I guess I was looking for the WISIWIG way to do it since I'm not very good at hand coding.

  • Clicking certain parts of PS CC UI remove brush functionality (can't paint until tab-out)

    I ran this fix here on the Asus Vivotab Note 8: http://helpx.adobe.com/photoshop/kb/tablet-functions-dont-photoshop-142.html
    and ran into this weird problem.
    if I click certain parts of photoshop -- ie the swatches which were docked to the right as default -- the brush would not paint. this is fixable by tabbing out, or clicking on the photoshop icon on the taskbar even and clicking back on PS. moving the swatches and all the other toolbars slightly so that none of them are docksnapped to edges fixed that problem with most of the buttons, tec. BUT using the menu pulldowns at the top will trigger this annoyance, also if I use a plugin like painters wheel, for example, clicking the colour wheel itself will render the brush non-functional again. Also, clicking certain settings inside the brush settings menu will also trigger this problem (like pulldown menus, etc).
    Thanks for looking into this!

    Hey there. It didn't make a difference whether it was disabled for rightclick or not. However I grabbed the latest feelit drivers that came out yesterday from Wacom, and now the problem has metamorphosed: it fixes the majority of the menu disabling brush issues, but now photoshop will sometimes disable pressure sensitivity until I tab out and tab in again. this is something that also randomly breaks in photoshop CC on my desktop computer at work (on a cintiq with windows 8), I have to occasionally tab out and tab back to get pressure to come back. Any suggestions or thoughts would be really welcome as it's really annoying when it breaks up my workflow.
    Thanks!

  • Elements 11 Divide Scanned Photos Function, can it work with scanner cover open?

    I do a lot of scanning of where three items fit on the platen at one time. In the previous versions of Element this function worked, not automatically, but it worked with the cover open or closed, and it is much faster to scan with the cover open.
    Is there some way I can adjust the sensitity of this function to be more sensitive or less senstive to backround color?
    Thanks in advance,
    jj

    Hi ,
    There is no option of changing sensitivity of Background color option in Divide scan photos In E11.
    But one thing - Divide scanned photos works based on image resolution, so if your scanner output resolution is high , it works too sensitive and if output resolution is low it works less sensitive.
    thanks,
    earth-star

  • I write a simple procedure, but in java, execute function can't work

    I made a very simple procedure in oracle logged as internal user.
    the procedure as the following:
    create or replace procedure temptest
    as
    begin
    insert into indextab(idx) values(100);
    commit;
    end temptest;
    in Java program,I use Oracle's jdbc driver to connect database, still connect as internal user.
    I can call statement.executeUpdate("insert into indextab(idx) values(100)"). and 100 row was added in database.
    then,I delete this row, try to run procedure in java,
    but the call of statement.execute("temptest") throw a exception
    the error message is:"java.sql.SQLException: ORA-00900: invalid SQL statement"
    then, I write the same procedure in sql server.
    all things work right.( I use jdbc-odbc bridge connect to sql server database)
    who can tell me what's the reason?
    I'm so urgent, please help me as soon as fast, thank you very much

    Hi
    You should call the stored procedure using Callable statement .
    The call should be like this
    CallableStatement cs = con.prepareCall("{Call tempest}" );
    cs.execute();
    You can also set parameters using functions of callable statement
    Hope this helps
    Chandar

  • The searching function can't work in my itune app, but why? And how can I fix it?

    The searching function of iTune store doesn't work? How can I fix it??

    Hi,
    Try resetting your iPod:  http://support.apple.com/kb/HT1430. 
    Hope this helps! 
    ---likeabird---

  • My Javascript function is not working in firefox

    This script was designed to work in IE. it opens a pop up window that allows me to print out data from the page:
    function DLNew() {
    //if (!myCheck()){return false}
    var vAction = "DownloadInv/JobsToPrint.asp";
    var vTarget = "_new_Assignments";
    var vFeatures = "";
    SubmitHere(vTarget,vAction, vFeatures);
    The var vAction was written using Microsoft Visual Studio 6.0. Do I need to modify the var JobsToPrint.asp file to work with Firefox, or does something else need to be written to make the function work?

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Why this removeChile function can not work

    Dear All
    can any one help me fix this problem? i can not delete one job record from XML file, and there is no any error message, don't know why can not remove the node from XML file. Thanks!
    XML File:
    <Job_ad>
    <job>
    <title>ABC
    <detail>123
    </job>
    </job_ad>
    the Java code
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder parser = factory.newDocumentBuilder();
    File fn = new File(fileName);
    Document doc = parser.parse(fn);
    NodeList ReportDate = doc.getElementsByTagName("job_ad");
    NodeList job = doc.getElementsByTagName("job");
    for (int i = 0; i < job.getLength(); i++) {
    Element jobDetail = (Element)job.item(i);
    String jobTitle = jobDetail.getElementsByTagName("title").item(0).getFirstChild().getNodeValue();
    if (jobTitle.equals("ABC")) {
    System.out.println("record found");
    Node deadElement = (Node)jobDetail.getParentNode().removeChild(jobDetail);
    catch (Exception e) {
    System.out.println(e);

    if (jobTitle.equals("ABC"))The actual value of jobTitle is "ABC\n", if your posted XML is accurate. You forgot to account for the new-line character after the text.
    A little debugging (such as System.out.println(jobTitle)) might have told you that.

  • How can I use the tabbed panel with the accordion panel options of close all panels and over/not overlap the items below?

    Ideas for features in Adobe Muse

    I assume this is what you want to achieve in the footer....
    Make sure in Muse before you export that the panel is closed, and also as Brad suggested, make sure Overlap Items Below is unchecked. I would also check the "Can Close All" button.

Maybe you are looking for

  • Why can't Max Size of Post Data be increased?

    We need to do a CFFILE upload of 1 – 3 GB videos and are having troubles. (I know this is crazy, but FTP, network mapped drives, etc. aren't going to leave an audit trail like an HTML form will for when people have to upload/update/delete bus inciden

  • Problem with KDevelop

    Well, hi there, i've got a little problem with KDevelop. Most of it works perfect, but when i try to create a new project, the programm crashs without any error messages. Okay, allmost without, when i run it in a terminal, there is a little output, b

  • Editing Ghostscript PDF's in Illustrator/PS

    I've got a PDF I need to edit in llustrator/Photoshop (or anything currently!), its a Ghostscript file. When I try to open through Illustrator CS2 I get a message saying: "The document contains PDF objects that have been reinterpreted The font Helvet

  • What is the post code of phillipines

    what is the post code of the phillipines

  • Problem with BAPI_TRANSACTION_COMMIT function module

    I am updating the two fields of a custom table through a custom BAPI function module. After this I am using "BAPI_TRANSACTION_COMMIT" function module to commit the LUW. but after calling this FM one field is updated in the table and another field is