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
>

Similar Messages

  • Javascript debugger don't work

    I love the webdevelopment tool in firefox, but my javascript debugger don't work :(
    I only can pause / unpause javascript but all other buttons have no function.
    Must I activate something in about:config or is my computer too old? (The tilt function is not supported by my graphic card)
    Thanks for answers.

    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
    >

  • Mobile wifi mouse back and forward functions don't work

    I just bought the hp wifi mobile mouse model MOWFFKUL and back and forward functions don't work and it's driving me crazy. I bought it for these specific functions. At first I thought that it was a broken mouse. So I went and returned it, got back home, and the same thing. I set the side buttons to other functrion options and they work. What the hell??? just the back and forward buttons don't. I'm losing my mind big time because I REALLY NEED those buttons/functions to work!! All the regular top buttons functrion fine, it's only the back forward setting that DOESN't WORK.

    I restarted my laptop, and the buttons worked! For only 2 minutes. Then nada ever again. What a POS. Come on HP, give a solution. I bought and returned it twice, which makes this my third wifi mouse. What a waste of my time. I think I'm just gonna return this mouse and forget the wifi mouse. Functionality is more important than a freed up USB port. I bought it for the forward/backward buttons specifically. HP used to make wonderful products, but this experience bring that into question now.

  • Asynchronuous functions don't work in a C# dll used by a CVI application

    Hello,
    I have an existing application written with CVI 9.0.1, which have to interact with a C# 2010 dll (which doesn't have any window) via a CVI<->.net wrapper (created using the usefull .net controller of CVI).
    This C# dll uses asynchronuous functions, like NetworkStream.BeginRead() and EndRead() functions of a System.Net.Sockets.TcpClient object for example.
    These asynchronuous functions work fine when the C# dll is used by a C# application (having a main window) or when the C# dll is converted in a standalone C# program (having a main window with buttons, to call its methods, just to try), but asynchronuous functions don't work when my C# dll is called by my CVI application (which is my goal): execution stays inside NetworkStream.BeginRead() for example (for the concerned thread).
    NetworkStream.BeginRead() can be successfully bypassed by using the synchronuous function NetworkStream.Read() instead, but the C# dll uses others asynchronuous functions wich have no associated synchronuous functions.
    Here is a portion of C# code (I don't have the source code for the Snmp object ; got_trap() method is never called when asynchonuous calls don't work):
    public void run() // the thread
     Snmp snmp = null;
     try
      snmp = new Snmp(true);
      snmp.NotifyListenPort = 162;
      snmp.NotifyRegister(null, null, new NotifyCallback(got_trap), CB_DATA_);
      isActive = true;
      Thread.Sleep(Timeout.Infinite);
    Thinking it could be a problem with window messages which could be not processed (in the C# dll), I tried to replace the Thread.Sleep(Timeout.Infinite) instruction, in the code where the asynchronuous management take place, by a window creation plus my Win32 window message loop, but asynchronuous functions don't work better (whereas my loop seems to successfully process messages):
    Form myForm = new Form(); // an empty window
    myForm.Show();
    int bRet;
    MSG msg = new MSG();
    while ((bRet = GetMessage(out msg, IntPtr.Zero, 0, 0)) != 0)
        if (bRet == -1)
           // handle the error and possibly exit
        else
          switch (msg.message)
            default: // everything else
            TranslateMessage(ref msg);
            DispatchMessage(ref msg);
            break;
    Any idea ?
    Thank you,
    rvfr.
    Solved!
    Go to Solution.

    Solved: in fact, the snmp assembly that I was using just needed to be dotNet registered.
    rvfr.

  • IOS6 Headset / Headphone "Skip to the next chapter" & "Return to the previous chapter" functions don't work in the Music App

    "Skip to the next chapter" & "Return to the previous chapter" functions don't work in the iOS 6 Music App when listening to Podcasts and Audiobooks through Headsets (Apple & 3rd party), Speaker Docks, and in my autos handsfree bluetooth system (Ford Sync).
    Listening with the Podcasts App allows "Skip" and "Return" to work. So, this is either a bug or Apple is forcing the use of the Podcast App to get the "Skip" & "Return" controls. All the other headset functions work as designed.
    I listen to news Podcasts in chronological order. In iTunes I set up smart playlists sorted by release date for the podcasts. The Podcast App doesn't support playlists therefore I need to use the Music App.
    Is anyone able to get "Skip" and "Return" to work in the Music app?
    Thanks for any insight!

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple. If you want to leave feedback for Apple then you can do so here : http://www.apple.com/feedback/ipad.html

  • I have spotty signal at my home, so some functions don't work until I leave the house. I noticed on the main screen, it says I have 54 emails, but when I open the app, I only have 4. I powered down and back up. No fix. What gives?

    I have spotty signal at my home, so some functions don't work until I leave the house. I noticed on the main screen, it says I have 54 emails, but when I open the app, I only have 4. I powered down and back up. No fix. What gives?

    Im having this same problem an my phone is about 3 weeks old. I am not sure about the voice over part though...I have not yet figured out how to work the voice recognition part of the phone...I am such a newbie with this phone. I did the power off/on suggestion, several times. I tried leaving it off for 10 minutes. Tried to reset with the power on/off and home button pressed at the same time. Charged battery. Still makes no difference. You cannot scroll any direction. Have to double click to open apps. Have to double click letters when texting or emailing in order to get the letter in the text box. Can scroll through app choices, have to click on the line with the dots in it and move from page to page. Can't access the settings - > general - > accessibility - because it won't allow me to scroll down to "general".
    Anyone help you with your fix yet?

  • InDesign copy, cut or move box functions don't work

    I am having trouble with the copy, cut and move box commands. When a text or shape box is active, I cannot move it with the cursor. It will move if I use the arrow keys, but the box behaves like it were "locked." I deleted my preferences, but that makes no difference. This problem persists whether I am in an existing ID document, or if I start a new one.
    The copy and cut functions don't work either.

    Of course replacing your prefs is a possibility, and has nothing to do with the need to force quit (but will probably cure it). Replacing prefs is done with the application closed, either using the keyboard combination as you relaunch, or by deleting or renaming the specified files, both ow hich are desribed inthe link in the previous post.
    You posted that you had already deleted the prefs, I believe, but many users are not aware they can use the keyboard or that there are two files involved for ID and are not successful, and thus think repacing the the prefs is not going to solve the problem. Hence my previous question. Did you use one of the methods in the link?

  • 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 popups don't work using global variables?

    I have a "References" menu region that contains links to several pop-up pages showing valid data entry codes filtered for the user's location. I tried to make this work from another page by changing the references from page variables to global/application variables, but this doesn't work. Can anyone suggest a workaround? Here's the code I'm using:
    URL target in link
    javascript:callEmpPopup('P1050_ORG_ID')Javascript
      function callMyPopup (formItem1,formRow1) {
        var formVal1 = document.getElementById(formItem1).value;
        var formVal2 = 1;
        var url;
      url = 'f?p=&APP_ID.:1056:&APP_SESSION.::::P1056_FACTORY_ID,P1056_ROW:' + formVal1 + ',' + formVal2;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=1000,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }

    Javascript can reference and manipulate only those elements that are part of the HTML page (DOM elements). Application items are not part of the HTML that constitutes an APEX page and as a consequence cannot be accessed using Javascript.
    Varad

  • 5800 expressmusic functions don't work after updat...

    Hi!
    I bought my 5800 expressmusic, and was glad for it, until i updated it first time. After the first update all the shortcuts and functoins on the background didn't work. I could live with that, so I waited for the next update.
    Now i've updated it again, now the functions didn't work before, they work now, but now the musicplayer don't work probably. I can go into the musicplayer, but when i try to update the library and get the music from my SD card into the player like I used to do.. It only finds about 20 songs of 180 songs..
    Anybody now how I can solve this problem? 
    Thanks

    it's usually good to do a reset after an update;
    Soft reset (reformat). Type *#7370# and the phone's lock code (Nokia default lock code is 12345). Soft reset wipes the C drive.
    If you want to thank someone, just click on the blue star at the bottom of their post

  • Javascript menus don't work.

    I'm having some trouble with javascript menus (or what I believe are javascript menus). Whether it matters or not I am not sure, but it happens in both Firefox and Chrome...IE works fine.
    Examples of sites with menus that don't work:
    1. Orbitz.com: Can't pull down the "Adult" or "Child" menus.
    2. toyota.com: Can't "select vehicle" at the top of the page.
    I get no error messages. I have started Firefox in safe mode, I have also reset Firefox.

    I do have a touch screen. Can't believe that matters!
    I toggled both of these settings to:
    dom.w3c_touch_events.enabled = 0
    dom.w3c_touch_events.expose = false
    However the selector still does not work. I don't get a "javascript;;" message.
    This occurs both in Safe Mode and standard mode.

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

  • Eject function don't work anymore in my user

    Hi there! My first post in this forum! =)
    Since few day's the eject function doens't work anymore in my user. Not in finder, not with the eject key and not by drag and drop to the trash.
    In disk utilly it work normaly and if I change user it works too. Shut down with ctrl, comd works too.
    How can I reset my keyboard?
    By the way - I installed win 7 and also win 7 bootcamp with virtualbox in the last days...
    Thanks for all help!

    Hi there! My first post in this forum! =)
    Since few day's the eject function doens't work anymore in my user. Not in finder, not with the eject key and not by drag and drop to the trash.
    In disk utilly it work normaly and if I change user it works too. Shut down with ctrl, comd works too.
    How can I reset my keyboard?
    By the way - I installed win 7 and also win 7 bootcamp with virtualbox in the last days...
    Thanks for all help!

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

Maybe you are looking for

  • HR-PA What does u201CCEu201D in name means

    Dear all, I am looking at BI Contend for HR-PA (Personnel Administration).   In the name of some of the objects there is u201CCEu201D at the end.  What does this CE means? Thanks for your help, Reynir

  • Why has the option to delete cookies on quit been eliminated from preferences in Firefox 12

    The "Privacy" preferences panel no longer offers the option to delete cookies on quit, as it did in Ffx 6, the version I updated from. Has this option been moved elsewhere? Has it been eliminated? If it has been eliminated, what is the last version t

  • A problem caused by the file name

    hi,i have a problem today,here is the source file: //saved as String.java class Strings{ public static void main(String [] args){ String x="java"; System.out.println("x string ="+x); and when i try to compile it,the compiler complains as follows: jav

  • What's the 'best' way to copy a usable project to new one so it can be modified without affecting the original?

    I'm pretty much a LavVIEW newbie.  I'm using LabVIEW 2012 Full on Windows 7.  I copied a project using Save As-Duplicate in Project Explorer.  It created an excessively long, complex directory structure.  It resulted in 'too long' errors (presumably

  • LMS 3.2 Data purge

    Hello Dear's We have installed CS 3.2 and RME on 1 server on C: Drive. Now the problem is C: Drive is full with MB of space behind, when i went through the Cisco Works folder  i found location CSCOpx/files/rme/syslogpurgeddata files are occupying spa