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 strongm 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: *

  1. stewartwebb

    Regular expression ignore decimal

    Thanks very much - works perfectly - you can both have a star.
  2. stewartwebb

    Regular expression ignore decimal

    Thanks that works great. 1 more question, not sure if this is possible and sorry for not asking this in the first place, but is it possible to only allow 1 decimal point - at the moment the user can enter as many decimal points as they like? Stewart.
  3. stewartwebb

    Regular expression ignore decimal

    Hi All, I call this line of code on onKeyUp from a text box:- myInput.value = myInput.value.replace(/\D*|./g, "") The code works as I want it too, it removes any non numeric characters that have been entered. Can someone let me know how I can adjust this line so that it removes non numeric...
  4. stewartwebb

    Click return textbox value disappears (KeyCode 13)

    Hi, On this subject, I added another text box on the page and the return works, then if I take the 2nd text box off it doesn't work. Any thoughts? Stewart.
  5. stewartwebb

    Click return textbox value disappears (KeyCode 13)

    Hi Kaht, Thanks for your reply but I still have the same problem. I've post all the code, do you have any other ideas? <HTML> <HEAD> <TITLE>Quantity (4 characters)</TITLE> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="gcsglobal.css"...
  6. stewartwebb

    Basic login form validation problem

    On delpierro's idea, did you close your <a> tag? Not sure the effect this will have but in your example code you haven't included </a>
  7. stewartwebb

    Basic login form validation problem

    Checking for keyCode 13 is another option.
  8. stewartwebb

    Basic login form validation problem

    Could you not change your button to this:- <input type="button" value="Submit" onClick="dbLogin();"> and your javascript to this function dbLogin () { if (document.loginform.login.value=="dashboard") { if (document.loginform.password.value=="PsWd123") {...
  9. stewartwebb

    Click return textbox value disappears (KeyCode 13)

    Hi all, I have a strange problem that I can't figure out. I've opened a pop-up window which has 1 textbox:- <input name="hPART_QTY" type="text" id="hPART_QTY" tabindex="01" onKeyUp="checkcr();" size="04" maxlength="04"> onKeyUp some javascript is called function addParent() {...
  10. stewartwebb

    Runtime error onLoad (using frameset)

    theniteowl, I put the function in the main frameset and it works much better, thanks. Stewart.
  11. stewartwebb

    Runtime error onLoad (using frameset)

    Thanks theniteowl, I have tried this but came into a problem. The top frameset is just a page that is opened when users login and then from the frameset it opens the banner and the main page. The global javascipt file is not in the frameset page it's in the banner and main page and so when the...
  12. stewartwebb

    Runtime error onLoad (using frameset)

    Thanks for the replies. I've changed the code as ggriffit suggested and now the function is called after 2 seconds. This seems to be enough time to allow both frames to load before the function is called. Thanks both for your help. Stewart.
  13. stewartwebb

    Runtime error onLoad (using frameset)

    Hi All, I have a problem with this page that is using a frameset. When the 2 frames load, onLoad in both frames calls a function which then displays a runtime error. The error doesn't appear everytime the page loads, it's very random, so i'm hoping someone can help. In both the frames onLoad i'm...
  14. stewartwebb

    Web page security

    Hi vbkris, Thanks for the reply, but session checks? Can you elaborate on that a bit more? Thanks Stewart.
  15. stewartwebb

    Web page security

    Hi all, I wonder if anyone can help me or has done anything like this before. We have a system but users seem to copy the url then email it to someone else, who can then view data they're not suppose to see. We are trying to find a quick and easy solution to stop this happening. We really only...
  16. stewartwebb

    window.onunload

    Thats annoying, but thanks for the help. Stewart.
  17. stewartwebb

    window.onunload

    Sorry i'll explain a bit more. We have a website (which has quite a few pages) and we now want to save a cookie everytime a user exits a page and read the cookie everytime a user enters a page. So I tried to use the window.onload and window.onunload in the global javascript file. This is when...
  18. stewartwebb

    window.onunload

    Hi All, I have a problem with window.onunload. I have put the 'window.onunload' in our global javascript file and there is also a 'window.onunload' on the page. The problem is that it will perform the function from the page but not the function in the global javascript. When I remove the...
  19. stewartwebb

    Writing to a cookie

    Hi all, I'm new with cookies but i'll explain what i'm trying to do and if possible can someone point me to a thread thats already covered this topic. I have the code to create, delete and read a cookie, but what I want to do is be able to write information to the cookie. I'll be writing the...
  20. stewartwebb

    When press return, don't want to submit

    Hi, The checkForSpaces function is in the global javascript file and has been used on loads of pages and never had a problem before. The fieldHasSpaces is declared in the global javavscript file aswell. I don't believe it is anything to do with the checkForSpaces function as I put an alert...

Part and Inventory Search

Back
Top