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 Chriss Miller 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: rmagan
  • Order by date
  1. rmagan

    Auto Selecting field value with event.KeyCode

    I have a table of items in a form. I have code to use the up and down arrow to scroll thru the items. I would like the items to be auto-selected when they enter the field. I tried using this.select() in the OnFocus trigger, but that does not work if I use the up/down arrow to get into the field...
  2. rmagan

    Filed value auto-selected

    I have a form that has text items in a table. When the user enters the table cell, I want the value to be automatically selected/highlighted (so it is easier to change the value). Is this possible? <html> <form name=&quot;post_grdbk&quot...
  3. rmagan

    Checking if field value exists in a string

    I have a field that needs to be checked against a string. If the field value exists in the string it is ok. Why is the code below giving me an error? <input type=&quot;text&quot; name=&quot;p_chg_semester&quot; onChange=&quot;IsValidSemester(this.value,'~Q1~~Q2~~Q3~~Q4~~RM~~S1~~S2~')&quot...
  4. rmagan

    Adding characters to input field

    I have a form that uses a input text field. When the user enters a value, I need to make it uppercase and add some characters to the begining and end of the field and pass it to a function. For example: If the users enters &quot;s1&quot; I need to send the value of &quot;/~S1~/&quot; to the...
  5. rmagan

    Checking for matching values in a string

    I have a form that accepts a field(p_chg_semester). I need to check the value of p_chg_semester to see if it exists in the string (field_string). For example. If the sample below a value of '*G*' would be one of the valid entries. field_string = '*A**B**C**D**F**G**H**I**J**K*'; <input...
  6. rmagan

    Checking select box before processing form

    I have a form that uses a select box (multiple). When the users hits the 'Go' button, I need to make sure that the user selected at least 1 value from the select box. If they did, I need to process my form, otherwise display alert and cancel. <html> <head> <html> <head> <title>Student...
  7. rmagan

    Using HREF value for form procedure

    I have a form that uses links in a table to execute the submit. The submit calls a procedure that needs to be passed the value of the link. I think I need to use the onSubmit to populate a hiiden input field with the value of the link. How do you set a hidden field the value of the link...
  8. rmagan

    Populating hidden fields in form

    I have a form that accepts a radio field and a select (multiple) box field and processes a function. When the user hits the go, I need to populate some hidden fields (p_hidden_period) based on the values of the radio and select fields. What is the best way to do this? Here is my code: <html>...
  9. rmagan

    Form using links as input items

    I have a table that has only links as items. When the user hits the link, I want the form to submit and pass the value of the link to the stored procedure. Is this possible? <HTML> <FORM name=&quot;process_student_schedule2&quot; action=&quot;stars3.star_portal.process_student_schedule&quot...
  10. rmagan

    Passing checkbox values to stored procedure contd.

    Here is a sample of my code. The checkbox ('p_drop_class') is the last item in the table. This example only has 1 row, but a real table would have more rows. <form name=&quot;maint_student_schedule&quot; action=&quot;stars3.star_portal.process_student_schedule&quot; method=&quot;post&quot;>...
  11. rmagan

    Passing checkbox values to stored procedure

    I have a HTML form that uses a checkboxes in a table. The form calls a stored procedure. When the user checks all the checkboxes the procedure works fine. If not, the procedure does not work because the HTML form is not passing anything for the checkbox. I tried the code below, but it doesn't...
  12. rmagan

    Checkbox unckecked value

    How can I set a value for a checkbox that is not checked? When it's checked it sends 'on'. I need it to send something (ie. 'off' ) when it's unchecked. <input type=&quot;checkbox&quot; name=&quot;p_drop_class&quot;>
  13. rmagan

    Problem with dynamic select box

    I have some code that re-sets values in a select box based on what was chosen in a radio group. 2 problems: 1) When I change my radio option, the select box re-sets its values but it jumps from the radio option I selected to the first radio option (try changing from radio 'ADD' to 'DROP' to...
  14. rmagan

    Trapping Key Codes

    I am trying to trap the enter, down arrow and up arrow keys in my form. I want to set focus to a new field depending on which key is entered. The following code works fine in IE. I need something that works on most browsers (especially Netscape). <TD align=&quot;center&quot; nowrap> input...
  15. rmagan

    Show help text next to item

    I have a table of text items. When a user enters the field, I would like to display some bubble help next to the appropriate text item. When they leave he field, the help must disappear. Any suggestions? <TD> <input type=&quot;text&quot; name=&quot;p_grd_score&quot; size=&quot;5&quot...
  16. rmagan

    scrolling table

    I am trying to implement a scrolling table. This will keep the <THEAD> static while the <TBODY> scrolls up/down. I would like to call the function when the user hits the enter key (scroll down 1 row), down arrow (scroll down 1 row) and up arrow (scroll up 1 row). I have some of the code but I...
  17. rmagan

    Text submit link on form

    I have a form that calls a stored procedure (passing in values) from the submit button. I wanted to add an additional link that does the same submit. When I try to submit frm the link, I get &quot;page cannot be found&quot;. I look at the URL line and it shows...
  18. rmagan

    Changing entries in select box when other item changed

    I have a form that uses 2 select boxes. I need to populate the options of the 2nd select box based on what was chosen in the 1st select box. What can I do? <SELECT name=&quot;p_opt1&quot;>'); <OPTION value=ALL>ALL Assignments <OPTION value=1>1 Assignment <OPTION value=2>2 Assignments </SELECT>...
  19. rmagan

    setting bgcolor of select box contd.

    I have a select box in a table that is dynamically getting its options from the database. I have created a function that changes the BG color of the select box when the option value is changed. This works fine. When the page is displayed, I want to initially set the BG color of the select box...
  20. rmagan

    Setting background color of select box

    I have a select box that is dynamically getting its options from the database. I have created a function that changes the BG color of the select box when the option value is changed. This works fine. When the page is displayed, I want to initially set the BG color of the select box depending on...

Part and Inventory Search

Back
Top