473,692 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to disable the text(label) in javascript

1 New Member
hi,
I am unable to disable the text(label) in javascript..it' s working fine with IE,but i am using MOZILLA..
can any one help regarding this..

What's the wrong with my code?
I am sending my code here..

Thanks in Advance...

Regards
Bhanu


[html]

<!--
[START] PUT FILE DETAILS AND VERSION HERE

U98002 - Forex Instrument Parameter Maintenance
Author : Bhanu Balaji Guddanti
Functionality : Forex Instrument Parameter Maintenance
Version : v 1.0.0

[END] PUT FILE DETAILS AND VERSION HERE
-->

<!-- [START] DO NOT REMOVE -->

<%@ include file="../banker-common/taglibs.jsp"%>
<%@ page import="microli nk.bankerdeskto p.web.module.xs .randGen"%>
<%randGen rg=new randGen();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html:html>
<html:base/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<link rel="stylesheet " href="../../css/common.css" type="text/css">
<link rel="stylesheet " href="../../css/tabs.css" type="text/css">
<script language="javas cript" src="../../js/tabs.js"></script>
<script language="javas cript" src="../../js/module.js"></script>
<!-- [END] DO NOT REMOVE -->
[/html]
Expand|Select|Wrap|Line Numbers
  1. <!-- [START] PUT CUSTOM JAVASCRIPT HERE -->
  2.  
  3.     <script language="javascript">
  4.  
  5.           function BLfun()
  6.           {
  7.  
  8.                    var prodtyp = document.forms[0].prodtyp.options[document.forms[0].prodtyp.selectedIndex].value
  9.                 var option= document.forms[0]. option.options[document.forms[0]. option.selectedIndex].value
  10.  
  11.         if((prodtyp=='0008')&&(option=='002'))
  12.  
  13.                  {
  14.                   document.forms[0].weekend.value='2';
  15.                   document.forms[0].tenor.value='02';
  16.                   document.forms[0].cppdfg.checked=true
  17.                   document.forms[0].cpcyfg.checked=true
  18.  
  19.              }
  20.                  if((prodtyp=='0009')&&(option=='002'))
  21.                  {
  22.                   document.forms[0].weekend.value='2';
  23.                   document.forms[0].tenor.value='02';
  24.                   document.forms[0].cppdfg.checked=true
  25.                   document.forms[0].cpcyfg.checked=true
  26.                   document.forms[0].cpperfg.checked=true
  27.  
  28.              }
  29.                  if((prodtyp=='0008')&&(option=='003'))
  30.                  {
  31.  
  32.                   document.forms[0].weekend.value='2';
  33.                   document.forms[0].tenor.value='02';
  34.                   document.forms[0].cppdfg.checked=true
  35.                   document.forms[0].cpcyfg.checked=true
  36.  
  37.  
  38.                   document.getElementById('c1').disabled=true; 
  39.                   document.getElementById('c2').disabled=true;
  40.                   document.getElementById('c3').disabled=true;
  41.                   document.getElementById('d1').disabled=true;
  42.                   document.getElementById('d2').disabled=true;
  43.                   document.getElementById('d3').disabled=true; 
  44.                   document.forms[0].cppdfg.disabled=true;
  45.                   document.forms[0].cpcyfg.disabled=true; 
  46.                   document.forms[0].cpperfg.disabled=true; 
  47.                   document.forms[0].dlrpdfg.disabled=true; 
  48.                   document.forms[0].dlrcyfg.disabled=true; 
  49.                   document.forms[0].dlrperfg.disabled=true; 
  50.                  }                 
  51.                   if((prodtyp=='0009')&&(option=='003'))
  52.                  {
  53.                   document.forms[0].weekend.value='2';
  54.                   document.forms[0].tenor.value='02';
  55.                   document.forms[0].cppdfg.checked=true
  56.                   document.forms[0].cpcyfg.checked=true
  57.                   document.forms[0].cpperfg.checked=true 
  58.                   document.getElementById('c1').disabled=true;
  59.                   document.getElementById('c2').disabled=true;
  60.                   document.getElementById('c3').disabled=true;
  61.                   document.getElementById('d1').disabled=true;
  62.                   document.getElementById('d2').disabled=true;
  63.                   document.getElementById('d3').disabled=true;
  64.                   document.forms[0].cppdfg.disabled=true;
  65.                   document.forms[0].cpcyfg.disabled=true;
  66.                   document.forms[0].cpperfg.disabled=true; 
  67.                   document.forms[0].dlrpdfg.disabled=true; 
  68.                   document.forms[0].dlrcyfg.disabled=true; 
  69.                   document.forms[0].dlrperfg.disabled=true;  
  70.  
  71.                  }    
  72.                   if((prodtyp=='0008')&&(option=='004'))
  73.                  {
  74.  
  75.                   document.forms[0].weekend.value='2';
  76.                   document.forms[0].tenor.value='02';
  77.                   document.forms[0].cppdfg.checked=true
  78.                   document.forms[0].cpcyfg.checked=true
  79.  
  80.  
  81.                   document.getElementById('c1').disabled=true; 
  82.                   document.getElementById('c2').disabled=true;
  83.                   document.getElementById('c3').disabled=true;
  84.                   document.getElementById('d1').disabled=true;
  85.                   document.getElementById('d2').disabled=true;
  86.                   document.getElementById('d3').disabled=true; 
  87.                   document.forms[0].cppdfg.disabled=true;
  88.                   document.forms[0].cpcyfg.disabled=true; 
  89.                   document.forms[0].cpperfg.disabled=true; 
  90.                   document.forms[0].dlrpdfg.disabled=true; 
  91.                   document.forms[0].dlrcyfg.disabled=true; 
  92.                   document.forms[0].dlrperfg.disabled=true; 
  93.                  }                 
  94.                   if((prodtyp=='0009')&&(option=='004'))
  95.                  {
  96.                   document.forms[0].weekend.value='2';
  97.                   document.forms[0].tenor.value='02';
  98.                   document.forms[0].cppdfg.checked=true
  99.                   document.forms[0].cpcyfg.checked=true
  100.                   document.forms[0].cpperfg.checked=true 
  101.                   document.getElementById('c1').disabled=true;
  102.                   document.getElementById('c2').disabled=true;
  103.                   document.getElementById('c3').disabled=true;
  104.                   document.getElementById('d1').disabled=true;
  105.                   document.getElementById('d2').disabled=true;
  106.                   document.getElementById('d3').disabled=true;
  107.                   document.forms[0].cppdfg.disabled=true;
  108.                   document.forms[0].cpcyfg.disabled=true;
  109.                   document.forms[0].cpperfg.disabled=true; 
  110.                   document.forms[0].dlrpdfg.disabled=true; 
  111.                   document.forms[0].dlrcyfg.disabled=true; 
  112.                   document.forms[0].dlrperfg.disabled=true;  
  113.  
  114.                  }    
  115.        }
  116.  
  117.     </script>
  118.  
  119. <!-- [END] PUT CUSTOM JAVASCRIPT HERE -->
  120.  
[html]
</head>

<body>
<html:form action="/U98004" method="post">

<!-- [START] SAFE TO EDIT -->
<input type="hidden" name="ejfno" value="<%=rg.my Method ()%>"/>

<table width="100%" border="0" cellpadding="2" cellspacing="2" >
<tr>
<td class="tablehea der" colspan="10">SM U98004 Murabaha Instrument Parameter Maintenance</td>
</tr>
<tr>
<td class="redtext" colspan="10"><h tml:errors/></td>
</tr>
<tr>
<td colspan="3" class="labeltex t">Transacti on Code</td>
<td width="1%" class="blanktex t">:</td>
<td width="84%" colspan="2" class="blanktex t">
<html:text property="trans actioncode" styleClass="tex tfield" size="3" maxlength="30" value="U98" readonly="true"/>
<html:select property="dscpt " styleClass="dro pdown" value="${U98004 .dscpt}" style="width:21 0px">
<html:option value="004">004 - MURABAHA</html:option>
</html:select>
</td>
</tr>
<tr>
<td colspan="3" class="labeltex t">Option</td>
<td width="1%" class="blanktex t">:</td>
<td colspan="2" class="blanktex t">
<html:select property="optio n" styleClass="dro pdown" value="" style="width:15 0px" onblur="disable d=true">
<html:option value=" "> </html:option>
<html:option value="001">001 - CREATE</html:option>
<html:option value="002">002 - UPDATE</html:option>
<html:option value="003">003 - DELETE</html:option>
<html:option value="004">004 - ENQUIRY</html:option>
</html:select>
</td>

</tr>
<tr>
<td colspan="3" class="labeltex t">Product Type</td>
<td width="1%" class="blanktex t">:</td>
<td colspan="2" class="blanktex t">
<html:select property="prodt yp" styleClass="dro pdown" value="" style="width:25 0px" onblur="BLfun() ">
<html:option value=" "> </html:option>
<html:option value="0008">00 08 - MURABAHA</html:option>
<html:option value="0009">00 09 - REVERSE MURABAHA</html:option>

</html:select>
</td>
</tr>
<tr>
<td colspan="3" class="labeltex t">weekend</td>
<td width="1%" class="blanktex t">:</td>
<td colspan="2" class="blanktex t">
<html:select property="weeke nd" styleClass="dro pdown" value="" style="width:90 px">
<html:option value=" "> </html:option>
<html:option value="1">1 - YES</html:option>
<html:option value="2">2 - NO</html:option>
</html:select>
</td>
</tr>

<tr>
<td colspan="3" class="labeltex t">Tenor</td>
<td width="1%" class="blanktex t">:</td>
<td colspan="2" class="blanktex t">
<html:select property="tenor " styleClass="dro pdown" value="" style="width:15 0px">
<html:option value=" "> </html:option>
<html:option value="01">01 - BY MONTH</html:option>
<html:option value="02">02 - BY DAY</html:option>
</html:select>
</td>
</tr>
</table>
<p>&nbsp;</p>
<table width=100% id="mytable" >
<tr>

<td width="3%" class="blanktex t">
<html:checkbo x property="cppdf g" value="1"/>
</td>
<td width="19%" ><label id="c1" >CounterParty Product Limit</label></td>
<td width="3%" class="blanktex t" >&nbsp;</td>
<td colspan="3" class="blanktex t">
<html:checkbo x property="dlrpd fg" value="1"/> </td>
<td width="14%" class="blanktex t" id="d1">Dealer Product Limit</td>
<td width="37%" class="blanktex t">&nbsp;</td>
<td width="21%" class="blanktex t">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td class="blanktex t">
<html:checkbo x property="cpcyf g" value="1"/>
</td>
<td class="labeltex t" id="c2">Counter Party Currency Limit</td>
<td class="blanktex t">&nbsp;</td>
<td colspan="3" class="blanktex t">
<html:checkbo x property="dlrcy fg" value="1"/> </td>

<td class="labeltex t" id="d2" >Dealer Currency Limit</td>
<td class="blanktex t">&nbsp;</td>
<td class="blanktex t">&nbsp;</td>
</tr>
<tr>
<td> &nbsp;
</td>
</tr>
<tr>

<td height="23" class="blanktex t">
<html:checkbo x property="cpper fg" value="1"/>
</td>
<td height="23" class="labeltex t" id="c3">Counter Party Per Deal Limit </td>
<td height="23" class="blanktex t">&nbsp;</td>
<td height="23" colspan="3" class="blanktex t">
<html:checkbo x property="dlrpe rfg" value="1"/> </td>
<td height="23" class="labeltex t" id="d3">Dealer Per Deal Limit</td>
<td height="23" class="blanktex t">&nbsp;</td>
<td height="23" class="blanktex t">&nbsp;</td>
</tr>

</table>


<!-- [END] SAFE TO EDIT -->

</html:form>
</body>
</html:html>
[/html]
Jul 11 '07 #1
3 6284
gits
5,390 Recognized Expert Moderator Expert
hi

?? ... explain your problem and post some code you have done already ...

kind regards
Jul 11 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
hi

?? ... explain your problem and post some code you have done already ...
You might be wondering: "where did that come from?!"

Unfortunately, there's a bug when using code tags. If you put too much code int one set of tags, it just shows a blank post. I've edited the original post so that you can see the post in all its glory!
Jul 11 '07 #3
gits
5,390 Recognized Expert Moderator Expert
You might be wondering: "where did that come from?!"

Unfortunately, there's a bug when using code tags. If you put too much code int one set of tags, it just shows a blank post. I've edited the original post so that you can see the post in all its glory!
;) thanks ... good to know ... and now i can see the post and the code too ...

@bhanubalaji

hmmm ... i think something like:

Expand|Select|Wrap|Line Numbers
  1. <html:text property="transactioncode" ...
is rendered as regular html-code at runtime? so that it becomes:

Expand|Select|Wrap|Line Numbers
  1. <input type="text" ...
and can you set the correct properties of the desired nodes?

open up the mozilla- or firefox-js-console and have a look at the errors that appear ...

kind regards
Jul 11 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1658
by: gsb | last post by:
I want to test/proof some <NOSCRIPT></NOSCRIPT> stuff in my page via PHP but can not figure how to disable JavaScript on my browser. LOL I am testing with IE6 and Netscape7. Anyone? Thanks gsb
3
6742
by: Marcus Otmarsen | last post by:
During the last months I obeserved a growing number of web pages with popups inside a web page. I don't know the technique by which these in-page-windows are implemented (either Javascript or HTML?). They contain a "close" resp. "x" button/link to click them away. They are however not detectable by "normal" popup blockers. How can I otherwise turn these popup windows automatically (!) off otherwise? Marcus
2
6403
by: | last post by:
Hi all, I would like to know if there are anyways to disable javascript, activeX and all scripting on AxWebBrowser. I have a program that include the AxWebBrowser and load internet pages, but some pages keep having javascript error and a popup was shown. I want to eliminate all the popup from javascript and other object, how can I achieve this? Thanks a lot. Windy.
11
4853
by: matty | last post by:
Hi, I was wondering if there is a known statistic on how many people disable javascript support from their client, and if they do is it intentional or by some default, and when it is intentional what is the reason behind it? For example, I have disabled Flash support and I realize that a lot of sites will just not even check if I support it or not and will just show me a blank page, and they don't see to care/know about it.
1
1783
by: Bob | last post by:
Does anyone know how to disable javascript in the new Netscape 8 -- for off line testing (like can be done readily with the current MSIE, Firefox or Opera browsers) ? When I try tools -> options -> site controls -> web features and check or uncheck the 'enable javascript' box, nothing changes -- it stays enabled. I've searched FAQs, archives and google about the issue, with no luck.
8
1722
by: jpaul | last post by:
Hi I am very new to this two If the browser disable the javascript, what happen to Ajax? can i slove the problem by using server side script? any suggestion for this? i currently do some dirty projects with perl/cgi, and I would like to add more client side features which relate to ajax, and do some validation on the client side with javascript. but it is possible that the javascript may be disable with some browsers. what can i do if...
2
2375
by: Water Cooler v2 | last post by:
How do you enable/disable JavaScript in Internet Explorer v6?
8
2171
by: sultanwadood | last post by:
Hi all. I need to know how to disable javascript through javascript in firefox. thanks in advance if some one could help me. Sultan Wadood.
5
59586
by: Yohan Blurp | last post by:
Hi, Here is sample page to show you the problem : <html><body> <form action="/cgi-bin/test.cgi" method="post"> Data Path : <input type="text" size="50" value="C:\Test Data\May 2007.xls" style='border: thin solid #FFFFFF'></form> </body></html>
0
8611
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8547
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9090
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8812
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8810
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4329
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2983
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2242
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.