JS Calculator Not Working In Mozilla But Ok In IE
Feb 26, 2010
I have an online calculator in javascript which works in IE but not Moz.
site: [URL]
code:
function workit()
{
var xsource = new Array(0,0.09,0.1); // source language
var xtarget = new Array(0,0.09,0.10,0.12,0.14); // target language
[Code]....
View 4 Replies
ADVERTISEMENT
Oct 4, 2009
I am working on an Mpg calculator and I am stuck.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
I have a mistake when it is suppose to calculate.
View 4 Replies
View Related
Jan 11, 2012
I have been fighting a nutrition calculator and I finally have all the addition working. the problem is the subtract link is not working. (it works as a link but doesn't trigger my jquery).
var jM = jQuery.noConflict();
jM(document).ready(function(){
// Calculator behavior
//Addition Time!
jM(".add").click(function() {
//Create the Variables to Hold the Values for Nutrition Information.....
jM('.subtract').click(function() {
alert('test');
});
});
View 5 Replies
View Related
Sep 28, 2010
JS settimeout is not working in Mozilla but working in IE
View 3 Replies
View Related
Oct 9, 2010
I have a JavaScript calculator, here is the code:
<script type="text/javascript">
var num1=prompt('Enter your first number',"");
var num2=prompt('Enter your second number',"");
var problem=prompt('Enter the operator you wish to use..x,X,+,-,/ are valid..',"");
if (problem=="+")
{
[Code]...
It will open when the page comes up, but how do I put it so that it opens when the user clicks a button?
View 9 Replies
View Related
Aug 9, 2006
I have a link in my website(abc.com) called "Make Us your home page". Once a user clicks it the link of my website(abc.com) becomes the home page for the browser.
This works absolutely fine in IE, but does not work in mozilla. I get the following error in the console:
Error: this.setHomePage is not a function
The code i have used is as follows:
<a href="#" onClick="this.style.behavior='url(#default#homepage)' this.setHomePage('http://www.abc.com');">Make us your homepage</a>
I suppose that sethomepage function is not supported by mozilla, if that is so, then how do i achieve my objective in mozilla?
View 5 Replies
View Related
Jun 21, 2010
with the bellow code iam able to run the code without any problem in mozilla but not in other .
Code:
<html>
<body>
<script language="javascript">
[Code]....
View 1 Replies
View Related
Jan 15, 2007
The php file is just an echo statement
now to simplify for the moment. If instead of calling the replace
function I've also tried putting in an alert function. Alert works,
the calling the php file does not.
Any suggestions greatly appreciated, I've never encountered such
difficult functionality as with javascript in firefox compared to IE.
Might just be my luck though... Code:
View 3 Replies
View Related
Aug 26, 2006
The onchange event is not working in Mozilla 1.5.0.2. Is this a Mozilla bug.
View 1 Replies
View Related
Jun 9, 2010
I have tested following code and it works fine in IE but not Mozilla:
var ajax = false;
if (window.XMLHttpRequest) {
ajax = new XMLHttpRequest();
}
[Code]....
View 3 Replies
View Related
Nov 15, 2010
My parent window is dash.html. From this i call a pat.jsp file which is a child window to dash.html. I wrote a function in dash.html
function feed_refresh(){
getGlaceCompleteDashBoardResult(1);
}
this function getGlaceCompleteDashBoardResult(1); is included in a .js file in dash.html file. Now from the pat.jsp i call the feed_refresh() function on onunload=db_refreshfeed(); like this.
var db_refreshfeed = function(){
if(REQUEST_TYPE)
window.opener.feed_refresh();
}
This code working nice in IE but in mozilla it throws uncaught exception.
View 3 Replies
View Related
Feb 18, 2010
Following code i modified to make it work in the firefox browser.
but its not working in firefox
if (document.selection)
{
var objRange = document.selection.createRange();
var sOldRange = objRange.text;
[Code]....
View 5 Replies
View Related
Jul 20, 2005
I normally use Mozilla 1.4 on Windows XP Pro.
As I was developing some test webpages, I discovered that the SRC
parameter doesn't seem to work when a path is used with the filename.
In one example, when I want to run a JavaScript from an external file
(i.e., not inline), I would do the following ...
<SCRIPT LANGUAGE="JavaScript" SRC="program.js"> </SCRIPT>
If "program.js" were in a different subdirectory than the .htm file
referring to it, the filename would have to be prefixed by the
pathname as follows ...
<SCRIPT LANGUAGE="JavaScript" SRC="/mydir/program.js"> </SCRIPT>
But when I ran the above from within an .htm file loaded locally into
Mozilla, it did not work. (The result was as if the above code weren't
there). However, when I ran the identical code on Internet Explorer
(v.6), it worked. Code:
View 13 Replies
View Related
Aug 27, 2009
I'm using $.getJSON to get data from WCF service in the form om json. this is working fine in IE7 but in mozilla it returns nothing. My code is
$.getJSON("http://localhost:3162/VirtualService/Settings.svc/
GetAllCountries",
function(data) {
alert(data);
});
this code returning me the list of countries in json format. so what to do in the case of mozilla..
View 1 Replies
View Related
Oct 6, 2009
I am using one script which is functioning properly incase of IE but incase of Mozilla evenif the shift key is pressed and any character key is pressed then it is displaying Caps Lock is On. how can I make it Mozilla and IE compatible.
View 5 Replies
View Related
Oct 9, 2010
I'm having a small problem, I'm trying to reach this: (This is just regular JavaScript).
But, when I'm trying to get it working on Mozilla FireFox (Combined with MacBook Pro), it fails. So I want to try with jQuery, but I don't know about it,
function changeText(){
View 1 Replies
View Related
May 13, 2010
I wrote code to resize a div element.The main aim is to resize the div element from any direction. But it is not working correctly in Mozilla. Even in IE it is working fine only if the mouse is dragged slowly. If we drag the mouse fast it is loosing the control. Are there any browser issues to be fixed. Please check it. I'm including the file.
Code:
========================HTML File============================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>[code]..........
View 3 Replies
View Related
Oct 29, 2010
I have implemented a jQuery hover top level menu & it is working fine in bothIE 7& 8. However, when I am executing the same code in Mozilla Firefox, it is not rendering hover effect at all. Also, I am adding a <span> using jQuery if JavaScript isn't enabled. This span is also not getting added in Mozilla.
Following is the code that I am using.
<script type="text/javascript" src="[URL]"></script>
<script>
$(document).ready(function(){
$("ul.subnav").parent().append("<span></span>");
$("ul.pnode li a").mouseover(function() { //When trigger is clicked...
//Following events are applied to the subnav itself (moving subnav up and down)
$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
});
//Following events are applied to the trigger (Hover events for the trigger)
}).hover(function() {
$(this).addClass("subhover"); //On hover over, add class "subhover"
}, function(){ //On Hover Out
$(this).removeClass("subhover"); //On hover out, remove class "subhover"
});
});
</script>
I came to know that IE & Mozilla see .parent differently.I have tried everything but not able to get this stuff working in Mozilla. I am using Firefox 3.5.5 version.
View 4 Replies
View Related
Jun 3, 2009
document.exeCommand ('Copy',false,null); is not working in mozilla
View 5 Replies
View Related
Jul 16, 2009
had this in browsers areas but people told me I should put it here in Javascript because more people here would probably have seen it before and know why it happens. I have basic Javascript that rotates images. I've noticed any kind of Javascript code that rotates images has this same problem only in Mozilla. When the images rotate in Mozilla in between the rotations, Mozilla browser adds a little colored square that represents a blank image that are able to be seen does anyone know why Mozilla Browser adds that? For example when looking at this page in Mozilla can see it. if you know if this is some Mozilla problem with Javascript and images. Doesn't happen with IE and other browsers shows the images only and nothing else.
View 2 Replies
View Related
Nov 30, 2010
I've a BIG Problem With a HUGE JS application , i'm modifying its javaScript code to work on both IE/Mozilla , currently it works fine on IE but not on Mozilla.
My main Point now is events.
Lets try with a little module, consider this function :
And it is attached in this place like :
This works fine in IE , i want to modify it to work on Mozilla.
View 2 Replies
View Related
Apr 12, 2011
I have the following bit of jQuery:
Code:
$("#save_photos_all_continue").click(function() {
event.preventDefault();
var $black_white_all = $("#black_white_all").is(':checked');
var $color_all = $("#color_all").is(':checked');
var $other_all = $("#other_all").is(':checked');
[Code]...
In Google Chrome it works fine but in Mozilla/5.0 it actually goes to the save_edits page instead of just using the post and staying on the original page.
View 2 Replies
View Related
Mar 25, 2011
I'm trying to make a calculator app; with a few differences. I have a text field with a numberpad below it, I got the numbers to show up in the text field, but am unsure as to how when I hit the enter button - it would store them in a variable?...I am also wondering as to how it would store current value and then allow me to input another value(maybe on the next page) and either subtract or add to it(the first value that is stored).I am also wondering how to get a decimal point in place(need it for currency).
Here is my code:
<html>
<head>
<script type = "text/javascript">
[code].....
View 10 Replies
View Related
Dec 2, 2011
I have the last assignment that she wants us to do and I had to pull up another assignment that she wanted us to build upon( which is one of those coding without anything advance)
<html>
<head>
<title>
[code]....
now she wants us to do max <beta and then name the variables with if a<b and I don't know if I put that in the concatenation or what to name my variables!
View 18 Replies
View Related
Jan 4, 2007
I am trying to create a price calculator that automatically calculates the price of custom made picture frame. I got an equation that finds the square area of the frame by multiplying the perimeter (2*length*width) by the thickness (which the user can choose from 1.5", 2" or 3"). Then it multiplies it by a decimal number (0.27 if the frame is 1.5" thick, 0.23 if its 2" thick, and 0.18 if its 3" thick). Then it adds a $5 custom made fee to the final answer. But when I save it to an html file and load it in Internet Explorer, it doesn't calculate. Code:
View 5 Replies
View Related
Jul 26, 2007
I'm having some problems with a calculator that I'm working on and am stumped on a particular situation regarding adding additional script and how it should be written. I've searched the forum and the web and just cant locate a viable solution. Code:
View 1 Replies
View Related