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 wOOdy-Soft 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

    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...
  2. 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() {...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. stewartwebb

    When press return, don't want to submit

    Hi all, I have a problem with my page I can't solve. Basically I have a text box and 'onKeyUp' I perform a function which checks 'if(window.event.keyCode == 13)' if it does it performs the funtion below. function funcFind() { checkForSpaces(document.form1.FIND.value) if(fieldHasSpaces == "Y")...
  8. stewartwebb

    Bad fade image

    Hi, A quick question. When I fade an image in fireworks, the image looks nice and smooth. Then when I view it in internet explorer you can see lines as the colours blend into the image. Is there a reason for this? Also is it possible to set the image in internet explorer exactly the same as it...
  9. stewartwebb

    Remove Address Bar

    Hi all, We have a web system which all users use IE. What i'm trying to do is if a user is in the system to remove the address bar. I'm thinking this will have to go in the global css, but how is it done? Any ideas? Thanks Stewart.
  10. stewartwebb

    Appearance of a confirm box

    Hi all, Can anyone tell me if it's possible to change the appearance of a confirm box? Like change the colour of the buttons and backgound. Thanks Stewart
  11. stewartwebb

    Printing headers

    Hello all. I'm trying to get headers to print on each page, this is what I have so far. Below is the 'table' which will be the header on each page. Is this correct? <table cellpadding="0" cellspacing="0" width="100%" class="nestedTable" id="TERRITORY_ROW"> <thead...
  12. stewartwebb

    Assigning a class to a div using javascript

    Hi all, Is there a way to assign a class to a div using javascript? Thanks Stewart.
  13. stewartwebb

    Checking if a text field has focus

    Hi all, Is it possible to know whether a field has focus? Basically what i'm doing at the moment, I have an 'onDblClick' on the form tag which calls a function. When I double click on any text field on the form the function is called (this works). Now what i'm doing is looping through all the...
  14. stewartwebb

    insertRow then attach an event to row

    Hi all, Having a small problem which I hope is possible. Basically i've inserted a row and cells at the end of my table. var a=window.document.getElementById('topTable').insertRow(vRowsLength); var b=a.insertCell(0); var c=a.insertCell(1); var d=a.insertCell(2); var e=a.insertCell(3); var...
  15. stewartwebb

    Submit form without refresh

    Hi, I'm not sure if this is possible. Basically there are 2 tables on the left of the screen and the right. When the user clicks one of the tasks in the left table at the moment the page is submitted and refreshed which takes a second or so but that task is then added to the right table. What...
  16. stewartwebb

    Check match when changing field

    Hi, I have a <tr> on my page which is in a 'rows' tag and being loaded depending on how many records are on a file. So there could be many <tr> down the page. The user can the select a value within 1 of the <td>'s within the <tr> which opens a mini window which they then enter a new value for...
  17. stewartwebb

    Memory problem

    Hi, In the company I work for we use cgi to link cobol with the web. We have occured a memory problem every now and then where we seem to have no memory and this occurs when reading in fields from the web to our cobol programs. Is there a limit to the number of fields or the size of the fields...
  18. stewartwebb

    Regular expression - Decimal values

    I have several text fields, all are decimal numbers. Each decimal field is of different format e.g can be 123.45, 1234.56, 12345.67 etc. Is there a way that I can pass the value of the field and the format (4,2 for example) and do a regular expression to check that the value matches the...
  19. stewartwebb

    Setting focus on an image

    this is probably an easy question but for some reason I can not get it working. How do you set an image to being focus?
  20. stewartwebb

    Alert box Properties

    Is there a way in javascript to change the colour of the alert Box when you call 'Alert'?

Part and Inventory Search

Back
Top