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.
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...
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.
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"...
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") {...
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()
{...
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...
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.
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...
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...
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...
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...
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...
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...
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.