I had tried that before and it gave me a js error.
"Object doesn't support this property or method"
I'm sure the error is how I'm passing the variable because if I try it with just a fixed number then it works
do you know where the error might be?
Thank you
Hello,
I found this function here to always have two decimal places after rounding but how can I apply it to a form value
this is the function
<script language="javascript">
<!--
function numberFormat(str)
{
if(str.indexOf(".") == -1)
{
return str;
}
splitString...
Hello,
How can I round using Math.round but making sure to always have two digits. In other words 45.20 vs 45.2
this is how I have it now
var difference = Math.round((fuel2006 - fuel2005)*100)/100;
but I'm looking the last digit if it's 0. I need that 0 there.
Thank you
Hello,
Just wondering if anybody knows of a work around for the way Flash behaves now with the new Microsoft patch for Active-X. Any new ways for embedding the Flash document that minimizes the effects of the patch. It's very annoying for the users to have to click once every time to active a...
Actually at first I just pasted that same code in the body of the page and wrapped it around a <div> tag. and that didn't work either.
If I were to separate some of the code in the <head> what would be the syntax to then show the current month and year in the body.
Thank you very much
it works for me too by itself, but as soon as I insert it into the page where I want to use it the it gives me an error.
It gives me a syntax error and it doesn't display anything.
I even put it in a server side include and nothing.
hello,
I have this simple piece of code in my page to spit out the date and it's braking my page. Without it the page works great, but with it the page doesn't display becuase of a javascript error.
I have this on the body of the page
<SCRIPT language="JavaScript" TYPE="text/javascript">...
Hello all,
I have this frame set dived top and bottom, and the bottom is divided left and right. On the left I have a menu which loads the appropiate content on the right. The content frame on the right is showing both scroll bars horizontal and vertically when it should only show vertical...
Hello I'm trying to put together a page that will read news items via RSS, but I must not use active X to do so. Can someone help in finding such a script?
Thanks in advance
Hello,
does anyone know where I can find a script to close a page that works for both IE and firefox
This is what I'm currently using
<form>
<input type="button" value="Close This Page" onClick="javascript:window.close()">
</form>
actually,
fishy thing number two
this function
function closesubnav(event){
if ((event.clientY <48)||(event.clientY > 107)){
for (var i=1; i<= numofitems; i++){
var shutdiv =eval('menuitem'+i+'.thediv');
shutdiv.style.visibility='hidden';
}
}
}
is being called on
<body...
Hello,
I'm disecting a page which closes every time you try to print it. It gives that error that says "There's been an error and IE needs to close now". The only thing fishy I see with the page is an excessive number of div tags and this java script at the end
<script...
Hello,
Does anybody have an idea why this script is not working in fireFox. It works perfectly in IE
Here's the script
<SCRIPT LANGUAGE="JavaScript">
function calculateCost(kwh){
var custCharge2005 = 5.25;
var first750kwh = 0.04302;
var first750 = 0;
var over750kwh = 0.05232;
var over750...
Hello,
I'm writing what I think is a simple formula, but it's working at all. Can someone tell me if there's anything wrong with my syntax
<head>
<SCRIPT LANGUAGE="JavaScript">
function calculateCost(kwh){
var custCharge2005 = 5.25;
var custCharge2006 = 0;
var first750KWH = 0.04302;
var...
This works great.
Thank you very much. The only drawback is that it turns it red all the time. Would it be possible to turn it red if date is less than NOW() and if cell next to it has value = not completed?
Thank you very much
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.