Java script problem for enabling & disabling textboxeswhencheckbox is check

hiii,
the checkboxes are generating in a for loop.beside the checkboxes
the textboxes are akso generating.
suppose
checkboxes per amount
\--\ nssf [------] [------]
\--\ TAPw [-----] [------] tapw[------]
\---\ HRA [----] [------]
\----\ XYZ [-----] [------]
here there are 4 checkboxes generating in a loop.
also 4 textboxes of per generating in one loop
4 text boxes of amount generating in one loop
the tapw textfirld is an individual one and it is having the text box name as 'tapw'
here the condition is if i check the check box the textboxes behind them should be enabled ,otherwise disabled.
that is coming.
but i also want that tapw should be enabled if the checkbox behind the TAPW is checked.
here one important thing is the TAPW can't be always in 2nd position
first if the person doesn't check the nssf,it may be in 1st position or it may be in 3rd position like that.
but that tapw textbox (individual)will always be generated besides the TAPW textbox.
can u tell me how to identify that one and how i can get enable if that checkbox is checked.

hioooooo,
am i correct now
<html>
<head>
<title>Test Page</title>
<script language="Javascript">
checkForm.T1.disabled = true;
checkForm.T2.disabled = true;
checkForm.T3.disabled = true;
checkForm.T4.disabled = true;
function setTextBox(check, row, totalbox)
     var tick = !check.checked;
     for( var k=1; k<= totalbox; k++)
          var ctl = "T" + k;
          checkForm[ctl][row].disabled = tick ;
          if( k == 2 ) break;
     if( totalbox == 3)
          var ctl = "T" + 3;
          checkForm[ctl].disabled = tick;
</script>
</head>
<body>
<form name="checkForm">
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="60%">
    <tr>
      <td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 0, 2)" name="C1" value="ON"></td>
      <td width="31%"><input type="text" name="T1" disabled value="AAA1" size="20"></td>
      <td width="31%"><input type="text" name="T2" disabled value="AAA2" size="20"></td>
      <td width="20%"></td>
    </tr>
    <tr>
      <td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 1, 3)" name="C1" value="ON"></td>
      <td width="31%"><input type="text" name="T1" disabled value="BBB1" size="20"></td>
      <td width="31%"><input type="text" name="T2" disabled value="BBB2" size="20"></td>
      <td width="20%"><input type="text" name="T3" disabled value="BBB3" size="20"></td>
    </tr>
    <tr>
      <td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 2, 2)" name="C1" value="ON"></td>
      <td width="31%"><input type="text" name="T1" disabled value="CCC1" size="20"></td>
      <td width="31%"><input type="text" name="T2" disabled value="CCC2" size="20"></td>
      <td width="20%"></td>
    </tr>
    <tr>
      <td width="18%"><input type="checkbox" onclick="Javascript:setTextBox(this, 3, 2)" name="C1" value="ON"></td>
      <td width="31%"><input type="text" name="T1" disabled value="DDD1" size="20"></td>
      <td width="31%"><input type="text" name="T2" disabled value="DDD2" size="20"></td>
      <td width="20%"></td>
    </tr>
  </table>
  </center>
</div>
</form>
</body>
</html>AE

Similar Messages

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • Sreaming at the top of my lungs for HELP with Java Script problem!

    Hello,
    I have this strange problem that no one seems to know why or how to fix it.Whenever I encounter a web site that has java scripting for anything pop ups or redirects to url's anything that says java script when I mouse over the link my browsers do nothing.That is for explorer 6.0 beta netscape 4.7 and netscape version 6.I have tried in another forum some suggestions but nothing changed even though I am told nothing is wrong with the java scripting.I used to be able to click java script's with all of these browsers but no longer.That was a few months ago.Now to try something new I tried to see if a new browser would work.I now have the latest version of Opera.It did work but using Opera on some sites limits what I can do so it doesn't solve my problem.Then I tried the Sun JavaHot browser it also worked but limits what I can do on some site's.I have Windows 98 & updated most of my dll's etc & my java is version 2 1.3.1.My java script is enabled in Explorer & netscape's & the security is at a minimum level.Please help me figure out why these other browsers work but the other's do not.I want to edit a web site of mine but I can't because of this problem.I am very frustrated by this and need as detailed help as I can get.Anything of a suggestion would be very much appreciated.But I am also not an expert on the working's of a computer so bear with me.
    Brian

    Hi,
    Well I am thinking that if anyone could know something about Java script it would be java developers.But anyways I had the previous version of explorer 5.0 & the java didn't work in it either.Now how weird is this,I opened netscape 4.7 today & the java scripts are suddenly working.This has me scratching my head wondering if my computer is possesed by some force beyond my capability to know...????Weird as it seems though the explorer still will not respond to a java script.
    Brian

  • Error message: "Java Script turned off, Enable Java Script" How to do this? I have gone into "Tools--then Options--Then checked Java Script--Then the "OK/Save" Button but this has not helped. What is the right course of action?

    Java Script is disabled on my HP laptop. I have done the obvious things. It still will not enable Java Script. What do I try next?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Java script problem when trying to sign in to Ovi ...

    Hi Folks
    I am running XP SP3, with IE7.  I have had problems due to installing ie8 then removing it and going back to IE7.  I have had to reset all sorts of bits.  Anyway. I still can't sign in to the music store, or register my PC for comes with music.  I installed a debugger to see what was going on.  This is my current stage of the problem..... 
    When I sign in, I only get a white panel.  The debugger highlights this section of the java script: __doPostBack('ctl00$C$btnEContinue','')  
    Can someone tell me why this fails, and how I can fix it?
    many thanks.

    I also have the same problem. I've tried all fixes listed in other forums and nothing works. Running windows Vista 32 bit. Any working solutions yet? Tried every solution listed for the cmd prompt. Turned off antivirus and spyware. Rebooting about 100 times. Nothing works.

  • Problem in enabling/disabling Custom JDeveloper Extension

    Hi,
    I've been trying to develop an extension for JDeveloper version 11.1.1.3/11.1.1.4 which i should be able to enable/disable from Tools->Preferences->Extensions section. However the problem i'm facing is that, after installing the newly developed extension, if i try to disable it by unchecking it from the Tools>Preferences->Extensions list, it does not show up in the extensions list after JDeveloper restarts. Therefore if i want to enable it again, i'm not able to do that because it is not available in the list.
    Trouble is that even if i reinstall it again (from Help->Check for updates) it does not appear in the list, and it does not work either because JDeveloper is treating the extension as disabled.
    I've kept my extension.xml simple for now:
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest" id="oracle.ide.sampleextension" version="11.1.1" esdk-version="1.0">
    <name>Sample Extension</name>
    <owner>Oracle</owner>
    <hooks>
    *<feature-hook>*
    *<description>Sample Extension</description>*
    *<optional>true</optional>*
    *</feature-hook>*
    </hooks>
    </extension>
    My bundle.xml is:
    <update-bundle version="1.0" xmlns="http://xmlns.oracle.com/jdeveloper/updatebundle" xmlns:u="http://xmlns.oracle.com/jdeveloper/update">
    <u:update id="oracle.ide.sampleextension">
    <u:name>Sample Extension</u:name>
    <u:version>11.1.1</u:version>
    <u:author>Oracle</u:author>
    <u:author-url>www.oracle.com</u:author-url>
    <u:description>Sample Extension</u:description>
    <u:requirements>
    <u:requires-extension id="oracle.jdeveloper"
    minVersion="11.1.1.3.37.56.60"
    maxVersion="11.1.1.4.99.99.99" />
    </u:requirements>
    </u:update>
    </update-bundle>
    I've done a lot of troubleshooting on this issue but in vain. I could not find any help on google either. Can anyone please help me on this?
    Thanks in advance,
    Suhail.
    Edited by: 865337 on Jun 13, 2011 2:34 PM

    Hi Suhail,
    Can you zip up your project folder and send it to me in email? I'll look it over and try to find the issue.
    email is: john<DOT>brock<AT>oracle<DOT>com
    I'm not quite sure what is is going on, but I suspect that the extension.xml file is to simple. Not even sure what I mean by that just yet. I want to take a look at see what is in the extension.xml file compared to some of the more basic extensions that I have created for demos and blogs, etc.
    Go ahead and send me the source and I'll take a look.
    Is there a reason that you are staying on 11.1.1.3 by the way? We are up to 11.1.1.5 right now in the 11gR1 release. I'm not aware of a bug like this, but it could be something in the older version.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Java script problem

    Hai all,
    i had a problem regarding java script,i had a time shedule page in which there is a start time and end time for each day,means monday,tuesday......
    the problem is when i select monday it shows '0000' in start up but when i de select means change to 'no it will not rest the value to '0000',how can i do this my code is PROBLEM WHEN ONCE SELECTED YES AFTER FIRDAY I WANT TO CHANGE THE TIME OR RESET THE TIME OF SUNDAY TO 'NO' THEN THE DEFAULT VALUE ie "0000" WILL NOT ENTER THE DATA BASE BUT THE ENTERED VALUE HOW WILL I CORRECT IT OR I HAD TO USE AJAX FOR REPOPULATE THE TEXT BOX WITH "0000".and how can i popup a calender insted of this.
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html lang="true">
    <head>
    <%String path=request.getContextPath();
    String basepath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;%>
    <title>BLUE LAW</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">
    function display(val, id1,id2)
         if(val=="Y")
         document.getElementById(id1).style.display="block";
         document.getElementById(id1).style.visibility="visible";
         document.getElementById(id2).style.display="block";
         document.getElementById(id2).style.visibility="visible";
         else
         document.getElementById(id1).style.display="none";
         document.getElementById(id1).style.visibility="hidden";
         document.getElementById(id2).style.display="none";
         document.getElementById(id2).style.visibility="hidden";
         function newWindow(url) {
         popupWindow = window.open(url,'popUpWindow','height=300,width=250,left=50,top=50,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes');
         var timeout = 500;
    var closetimer          = 0;
    var ddmenuitem = 0;
    // open hidden layer
    function mopen(id)
         // cancel close timer
         mcancelclosetime();
         // close old layer
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
         // get new layer and show it
         ddmenuitem = document.getElementById(id);
         ddmenuitem.style.visibility = 'visible';
    // close showed layer
    function mclose()
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    // go close timer
    function mclosetime()
         closetimer = window.setTimeout(mclose, timeout);
    // cancel close timer
    function mcancelclosetime()
         if(closetimer)
              window.clearTimeout(closetimer);
              closetimer = null;
    // close layer when click-out
    document.onclick = mclose;
    </script>
         <style type="text/css">
    <!--
    body {
         background-color: #e1f2f8;
    .style1 {     font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 12px;
    .style5 {color: #EEF0EC}
    -->
    </style>
    <link href="<%=basepath%>/style/style.css" rel="stylesheet" type="text/css">
         <link rel="stylesheet" type="text/css" href="<%=basepath%>/css/default.css">
    </head>
    <body topmargin="0">
    <html:errors/>
    <html:form method="get" action="addblue.do" onsubmit="return validateTYUY(this);">
    <input type="hidden" name="action" value="Add"/>
    <table width="891" border="1" align="center" cellpadding="4" cellspacing="0" >
    <tr >
    <th colspan="4" ><b><strong>Enter TIME Details</strong></b></th>
    </tr>
    <tr >
    <td width="421" class="Label" align="right"> Number</td>
    <td width="448" ><html:text styleClass="Textfield" property="ABCnumber" size="2" maxlength="2" ></html:text><br></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td class="Label" ></td>
    <td width="62" ></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr >
    <td class="Label" width="152"> Restrict on Sundays</td>
    <td style="background-color: rgb(255, 255, 255);"><html:select property="sundayrest" styleClass="Textfield" onchange="display(this.value, 'sunday','sunday1')" >
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td class="Label" ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="133" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday1" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="sundaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Sundays End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td width="160" class="Label" >Restrict on Mondays</td>
    <td width="59" style="background-color: rgb(255, 255, 255);"><html:select property="mondayrest" styleClass="Textfield" onchange="display(this.value, 'monday','monday1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="monday">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="148" class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="mondaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr id="monday1" style="visibility: hidden;display:none;" >
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr>
    <td class="Label" width="152">Restrict on Tuesdays</td>
    <td width="62" style="background-color: rgb(255, 255, 255);"><html:select property="tuesdayrest" styleClass="Textfield" onchange="display(this.value, 'tue','tue1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="131" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue1">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="tuesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr>
    <td width="160" class="Label" >Restrict On Wednesdays</td>
    <td width="58" style="background-color: rgb(255, 255, 255);"><html:select property="wednesdayrest" styleClass="Textfield" onchange="display(this.value, 'wed','wed1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="149" class="Label" style="background-color: rgb(255, 255, 255);"> Wednesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="wednesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed1">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time2:</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table>
    <tr >
    <td class="Label" width="150">Restrict On Thursdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="thursdayrest" styleClass="Textfield" onchange="display(this.value, 'thu','thu1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="thursdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td class="Label" width="170">Restrict On Fridays</td>
    <td width="57" style="background-color: rgb(255, 255, 255);"><html:select property="fridayrest" styleClass="Textfield" onchange="display(this.value, 'fri','fri1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td width="150" class="Label" > </td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri1" >
    <td width="153" class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="150" class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td width="162" class="Label" > Restrict On Saturdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="saturdayrest" styleClass="Textfield" onchange="display(this.value, 'sat','sat1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td width="132" class="Label" ></td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td><td> </td>
    </tr>
    <tr>
    <td height="27" colspan="4" align="center"><html:submit value="Save"></html:submit>
    <html:reset value="Cancel" onclick="window.close();"></html:reset></td>
    </tr>
    </table>
    <html:javascript formName="ert"/>
    </html:form>
    </body>
    </html:html>

    [some javascript forum...|http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s]

  • Visual Web JSF and Java Script problem

    Hi i am using Visual Web JSF for development in my project. AJAX to update data from server when users enters data in one text box its an chat application. i am getting data from server but unable to update my <webuijsf:textarea> component with the new data on my chat page ... I am facing another problem in java script that it is not accepting relational operators (< . >) in JSF Application.... i am attaching some code here for reference...result =http.responseText.split(","); /// this is the response text from AJAX based call
    var obj=document.getElementById('form1:chatter_box'); /// this text area is to be updated...
    var txt=document.createTextNode(http.responseText);
    ///document.getElementById('form1:chatter_box').innerHTML = txt;
    for(i=0;i < size;i++){
    var txt1=document.createTextNode(result);
    obj.appendChild(txt1);

    Try changing onclick to onClick and try...
    regards
    shanu

  • When i try to log in at a banking site it tells me java script is not enabled how do i enable java script

    ally bank would not even let me try to log in, their site says they use Java, DOM and Java Script and that my browser (Firefox) does not support these. I have reloaded firefox several times I do not know how to enable these languages. thanks for your help

    For JavaScript
    : Tools > Options > Content > (turn on) JavaScript
    For Java, verify if you have Java:
    :http://www.java.com/en/download/installed.jsp?detect=jre&try=1
    if not download
    :http://www.java.com/en/download/
    watch out for crapware installation of the Yahoo Toolbar being packaged with Java ([http://imageshack.us/photo/my-images/266/javainstall.png/ picture]).

  • JAVA SCRIPT PROBLEM IN UNIX

    When we run JAVA SCRIPT in window, the GUI display comes out difference from running under UNIX. For example the check boxes show check when running under WINDOW but not in UNIX. Can anyone tell me how to resolve this problem? Thanks in advance for the information.

    The browsers are generally optimized for specific platform, hence the different look-and-feel. But I find it hard to believe that checkboxes would show up checked on unix but not on Windows. The only thing I can suggest is to examine the HTML file and see if there is the CHECKED keyword being used where you are not expecting.
    V.V.

  • Java script problem in JSP called thru servlet

    when jsp page is displayed thru a servlet in following way the java scripts built in that JSP page are not working.
    ServletContext sc = getServletContext();
         RequestDispatcher rd = sc.getRequestDispatcher(url);
         rd.include(req, res);
    how can i enable these java scripts?

    Most probably you have something like this:
    <script language="JavaScript1.2" src="menu.js"></script>
    The bit that is probably causing the problem is the src attribute.
    Its a common issue when using the request dispatcher
    You request "/servlets/myServlet"
    it forwards to "/jsp/myJSP"
    You try and access a resource using a relative URL.
    however, the browser knows nothing about the forward being done - it thinks that the URL is /servlets/myServlet, when you want it to be /jsp/myJSP.jsp
    So if you access menu.js it will look in /servlets/menu.js instead of /jsp/menu.js (example only)
    to fix
    1 - Don't use relative links. Ie use /scripts/menu.js to import the script
    2 - use a <base> tag <base href="http://www.mywebsite.com/jsp/> This tells a web page where to resolve relative references from.
    Hope this helps,
    evnafets

  • When i try to access a banking internet site they tell me java script is not enabled

    I get an error message saying my browser is not equipped with java script and i cannot log into the site

    The global setting is here:
    orange Firefox button ''or'' Tools menu > Options > Content > "Enable JavaScript"
    ''If you have the NoScript add-on,'' then you need to allow the site in the add-on's white list.
    If neither of those explains it, and you were able to use this site successfully before, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Here you can remove ally.com cookies. (If allybank.com doesn't forward you automatically, try going directly to ally.com)
    Then try reloading the page. Does that help?

  • Java script problems

    wasn't supposed to. I don't have the original template.

    What is not working? All I see is DW stock javascript, no
    java whatsiever
    Mick
    destind4film wrote:
    > I have been completely revamping my website using
    Dreamweaver (originally
    > designed in iWeb) and had recently gotten a friend to
    help me put in some java
    > script on the "Order" page. The page works perfectly in
    IE07 and in Firefox,
    > but for some reason the Java does not work at all in
    Safari or on any of my
    > MACs. The site is being hosted on the .MAC servers so
    naturally my friend
    > (anti-MAC user) says that my problem is the .mac or my
    Apple cmputers and not
    > the Java script.
    >
    > I really need to make sure all of my pages work for
    everyone who would go to
    > my site regardless of what OS they have or what browser
    they are using.
    >
    > The page in question is currently located at:
    >
    http://homepage.mac.com/dvdflashbacks/New_DVD_FB_Site/Order.html
    >
    > And in case anyone is curious as to what the original
    site looked like before
    > my redesign, the url is :
    >
    http://www.dvdflashbacks.com
    >
    > If anyone knows Java really well and can take a look at
    the code, maybe
    > something will jump out that is causing my problems.
    >
    > Thanks!
    >

  • Adobe Dreamweaver CS5.5 - Windows 7 - Java Script Problem

    I am having trouble with Anchor.htm.
    When I try to insert an anchor in the text (Insert > Named Anchor> I get this error message:
    "While executing insertObject in Anchor.htm a Java Script error occurred."
    I recently downloaded both the 32- and 64-bit Java Script applications when I received a message that the existing version of Java Script was out-of-date. Anchor.htm worked before I installed the update.
    The files I downloaded and installed are:
    jre-7u9-windows-i586.exe
    jre-7u9-windows-x64.exe
    Please can anyone help me with this problem?

    From Dreamweaver FAQ
    http://forums.adobe.com/thread/429114
    "If Dreamweaver is acting erratically, or if you see a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing to try should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Full instructions are in Deleting a corrupted cache file.
    http://forums.adobe.com/thread/494811"
    Nancy O.

  • Urgent !!! - Java script help for events in adobe form

    Hi ,
    We have requirement  where we have 5 buttons on interactive form which will retrive data from R/3 system .
    1) How can i distingish the event of each button  ?
    For Ex : We have 5 buttons namely , GetPlantcode , GetStatus, SubmittpSAP etc..
    We hav only 2 events on adobe form - Submit to SAP and SAPCheckFields.
    Please let me know some alternative by which i can sent some variable to webDynpro which distinguishes them.
    2) How to set a value for the context variable on button click event ?
    Ex : I have a context node ( data node ) bind to adobe interactive adobe component on a webDynpro application. If i want to set Selectindicator ( value attribute in data Node ) a value on a button click , Please let me know the java script how i can do this.
    Happy New Year for all
    Nanda

    Hi ,
    We found one work around for this. It seems to solve our issue for now.
    Set a text field on adobe and try to set it with some value in each button click. We can get retrived that value in webdypro application through context bind value node to text field.
    Using the value in the value node we have applied different logic in same event submit to SAP.
    Nanda

Maybe you are looking for

  • How do I move my iPhone to a new iTunes installation?

    Hi folks, I have a new Windows 7 computer and want to sync my iPhone with it, but iTunes says it's going to delete all of my data. My old computer that I used to sync with is gone; the drive has been reformatted. I don't care about the music on the p

  • REP-1401 in 9.0.2.3 reports builder on Linux

    Hi, I am trying to make use of the 2d barcode jarfile provided by IDAutomation. when I try to incorporate it into one of my reports I am consistently getting: REP-1401: 'cf_2d_barcodeformula': Fatal PL/SQL error occurred. ORA-39565: Message 39565 not

  • IPhoto '09 - original and (un)modified files

    Hi there, just beginning to use this software and am confused. I have my original photos on my hard drive. When I import them into iPhoto, I get two additional copies - one in the iPhoto Library Originals folder, and another in the Modified folder, d

  • ESS with SAP ERP 2004 ECC 5.0

    Hello, with SAP R/3 we used the Employee Self Services via an external ITS. Now we are using SAP ERP 2004 ECC 5.0 with an installed Java AddIn without Enterprise Portal. My Question is: What ways are possible, so that we can use the ESS functionality

  • How can i unlock my iphone 4 by mobily carrier

    i need unlock by mobily carrier which was purchased in riyad, kingdom of soudi arabia