473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to work javascript in mozilla firefoxe

28
hi

i am before using IE 7 now iam using mozilla firefoxe in this javascript validation is not working how to change the javascript function .

shyam
Jun 18 '07 #1
8 1614
gits
5,390 Expert Mod 4TB
please post some code that is not working in FF, Moz ... then we may be able to help you ...

kind regards ...
Jun 18 '07 #2
shyamg
28
hi


how to validate java script functions in mozill firefox.
Jun 18 '07 #3
r035198x
13,262 8TB
hi


how to validate java script functions in mozill firefox.
Java != Javascript
Moved to Javascript forum.
Jun 18 '07 #4
gits
5,390 Expert Mod 4TB
hi ...

to see the errors open the javascript-console from firefox's extras menu ... there you will see the errors that occur during script-execution.

kind regards ...
Jun 18 '07 #5
shyamg
28
hi,



1) This is working on IE 7 now i am using mozilla firefox4.42 inthis its not working javascript,

2)where can i find extras in mozilla,......
(to find my javascript errors) ?


Thanks ,

<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="javascript" src="../../js/tabs.js"></script>
<script language="javascript" src="../../js/module.js"></script>
<!-- [END] DO NOT REMOVE -->

<!-- [START] PUT CUSTOM JAVASCRIPT HERE -->
<script language="javascript">




function BLfun()
{
var dscptVal = document.all.dscpt.value;
if(dscptVal=='001'||'002'||'003')
{
document.all.dscpt.disabled=true;
}else{
document.all.dscpt.disabled=false;
}
document.all.dscpt.value=dscptVal


var dealeridVal = document.all.dealerid.value;
if(dealeridVal=='dealerid')
{
document.all.dealerid.disabled=true;
}else{
document.all.dealerid.disabled=false;
}
document.all.dealerid.value=dealeridVal
}




var dealerid = new keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ','Alpha-numeric input only.');
var dealinit = new keybEdit('abcdefghijklmnopqurstuvwxyz01234567890 ','Alpha-numeric input only.');
var dealername = new keybEdit('abcdefghijklmnopqurstuvwxyz ','Alphabets input only.');
var rank = new keybEdit('01234567890','Numeric input only.');

void function setEvents() {
document.getElementById(dealerid)onkeypress = new Function('editKeyBoard(this,dealerid)');
document.all.dealinit.onkeypress = new Function('editKeyBoard(this,dealinit)');
document.all.dealername.onkeypress = new Function('editKeyBoard(this,dealername)');
document.all.rank.onkeypress = new Function('editKeyBoard(this,rank)');

}

</script>

<!-- [END] PUT CUSTOM JAVASCRIPT HERE -->

</head>

<body onLoad="javascript:setEvents()">
<html:form action="/X33" method="post">


<%
randGen rg=new randGen();
%>

<!-- [START] SAFE TO EDIT -->
<input type="hidden" name="ejfno" value="<%=rg.myMethod ()%>"/>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td class="tableheader" colspan="3">Dealer Creation</td>
</tr>
<tr>
<td class="redtext" colspan="3"><html:errors/></td>
</tr>
<tr>
<td width="24%" class="labeltext">Transaction Code</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="transactioncode" styleClass="textfield" size="3" maxlength="3" value="X33" readonly="true"/>
<html:select property="dscpt" styleClass="dropdown" value="<%=(String)session.getAttribute("dscpt_val" )%>">
<html:option value="">Please Select</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:select>

</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's ID</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealerid" styleClass="textfield" size="20" maxlength="20" value="${X33.dealerid}" onblur="getRimData(document.forms[0], '/ILICTreasury/banker-web/X33.do', this, 'IX33001')"/>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's Initials</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealinit" style ="background-color: #FFFFCC" styleClass="textfield" size="20" maxlength="30" value="${X33.dealinit}" readonly="true"/>
</td>
</tr>
<tr>
<td width="24%" class="labeltext">Dealer's Name</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:text property="dealername" style ="background-color: #FFFFCC" styleClass="textfield" size="40" maxlength="30" value="${X33.dealername}" readonly="true"/>

</td>
</tr>
<tr>
<td width="24%" class="labeltext">Rank</td>
<td width="2%" class="blanktext">:</td>
<td width="74%" class="blanktext">
<html:select property="rank" styleClass="dropdown" value="${X33.rank}">
<html:option value="">Please Select</html:option>
<html:option value="01">01-SENIOR DEALER</html:option>
<html:option value="02">02-JUNIOR DEALER</html:option>
</html:select>

</td>
</tr>

<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr align="center">
<td colspan="3">
<html:button property="submitbutton" styleClass="button" value="SUBMIT" onclick="doSubmit(document.forms[0], '/ILICTreasury/banker-web/X33.do','UX33')"/>
<html:reset property="reset" styleClass="button" value="CLEAR"></html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
Jun 18 '07 #6
gits
5,390 Expert Mod 4TB
hi ...

after a first look : document.all doesn't work in FF ... you may use document.getElementById(id_as_string) instead ...

kind regards ...
Jun 18 '07 #7
gits
5,390 Expert Mod 4TB
sorry ... i meant the tools menu - FF calls it Error Console, in moz you find web-development -> JavaScript Console ...

kind regards
Jun 18 '07 #8
acoder
16,027 Expert Mod 8TB
Threads merged.
Jun 18 '07 #9

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

Similar topics

4
by: Steven Green | last post by:
I did a clean install of Windows XP on my computer and my javascript will not work. I've tried all types of browsers, I've download the Service pack 1 for XP and IE. I have download java from...
6
by: anon | last post by:
How *EXACTLY* does Smart Navigation work? (I would really really really like for this Smart Navigation to work in Mozilla.) The inner workings and the code is what I am looking for. Does it...
2
by: kelvin | last post by:
Hi, I've this piece of code which does not work at all. Can anyone point out my mistake? I've 2 buttons. History button will call verifyFields() function and lead to different page for...
4
by: Brian Glen Palicia | last post by:
My goal is to accept input from the user into a text box and then parse the data using split(). The first step is this tiny program to test the split() function. It runs in IE, but in Mozilla it...
2
by: Evan Wong | last post by:
I have problem to get onkeyup event. If we put the event in HTML statement like - "<input name=field1 size=16 onkeyup="javascript:function1();>" it works. If we put in JavaScript code like...
3
by: kaith | last post by:
The following code used to popup a window when I used netscape 4.79. Now I switched to mozilla 1.4 and the window doesn't popup. function newWindow(newContent) { winContent...
3
by: Matt | last post by:
I want to know if readOnly attribute doesn't work for drop down list? If I try disabled attribute, it works fine for drop down list. When I try text box, it works fine for both disabled and...
1
by: kj | last post by:
I don't know what I'm doing wrong. I have a file called user.js in my Mozilla (or Firefox) directory, and this file contains the following code: user_pref("browser.throbber.url",...
2
by: Alan Searle | last post by:
I would like to use an XSL/HTML template to sort XML data dynamically on the client side. As it is, I found a tutorial showing how to do this on the following site ... ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.