Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: photoxprt1868
  • Order by date
  1. photoxprt1868

    applying 2 decimal function to a form value

    That worked great. You're a genius.
  2. photoxprt1868

    applying 2 decimal function to a form value

    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
  3. photoxprt1868

    applying 2 decimal function to a form value

    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...
  4. photoxprt1868

    rounding off, but always having two digits

    Thank you very much ClFlaVa
  5. photoxprt1868

    rounding off, but always having two digits

    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
  6. photoxprt1868

    New microsoft patch for ActiveX is becoming a problem

    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...
  7. photoxprt1868

    simple javascript is giving me an error

    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
  8. photoxprt1868

    simple javascript is giving me an error

    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.
  9. photoxprt1868

    simple javascript is giving me an error

    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">...
  10. photoxprt1868

    frame-set shows scroll bars for no reason

    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...
  11. photoxprt1868

    close page javascript doesn't work for firefox

    It was working for IE, but not for firefox. I'll try your suggestions now. Thank you very much
  12. photoxprt1868

    need an RSS script that does NOT use active X

    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
  13. photoxprt1868

    close page javascript doesn't work for firefox

    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>
  14. photoxprt1868

    displaying current month and year at the top of the page

    Hello, I was woindering what the syntax would be to display just the current month and year using JS. (e.g., June, 2006) Thank you very much
  15. photoxprt1868

    printing page closes IE after error message

    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...
  16. photoxprt1868

    printing page closes IE after error message

    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...
  17. photoxprt1868

    simple script working with IE, but not with firefox

    Yup. that did it. Thanks a lot.
  18. photoxprt1868

    simple script working with IE, but not with firefox

    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...
  19. photoxprt1868

    simplest javascript function won't work

    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...
  20. photoxprt1868

    can excel change the color of a font based on criteria

    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

Part and Inventory Search

Back
Top