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!

Recent content by mtorbin

  1. mtorbin

    Referring to form elements via javascript variables

    Unfortunately, I am still getting the same errors: // Dynamic Date List Boxes var i; var today = new Date(); var currentYear = today.getYear(); var currentMonth = today.getMonth(); var currentDay = today.getDate(); var months = new Array(); months[0] = "january"; months[1] = "february"...
  2. mtorbin

    Referring to form elements via javascript variables

    Kaht, My appologies. I'll try to be more considerate. - MT Matt Torbin Center City Philadelphia Macintosh Users Group http://www.ccpmug.org ichat/aim: mtorbin_at_mac.com direct email: mtorbin_at_mac.com
  3. mtorbin

    Referring to form elements via javascript variables

    Hey all, I'm having a lot of trouble with the following: function buildPage(formName,monthName,dayName,yearName) { formName = document.formName; monthName = document.formName.monthName; dayName = document.formName.dayName; yearName = document.formName.yearName...
  4. mtorbin

    Is there an easier way to write this dynamic select?

    I just realized that the full code above has NOT been posted, so here it is: // Dynamic Date List Boxes var i; var today = new Date(); var currentYear = today.getYear(); var currentMonth = today.getMonth(); var currentDay = today.getDate(); var months = new Array(); months[0] =...
  5. mtorbin

    Is there an easier way to write this dynamic select?

    Thanks guys! OK, here's part two. I want to make this exensible so I made the following changes (please note I'm not going to post the full code as it's already posted above. Only the changes will be posted): <body onLoad="buildPage('myForm','theMonth','theDay','theYear');"> and function...
  6. mtorbin

    Is there an easier way to write this dynamic select?

    Thanks all. Here is the final (working) version: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script> <!-- function...
  7. mtorbin

    Is there an easier way to write this dynamic select?

    Here's the updated code. The selected = true part isn't working yet so any advice would be much apprecited: function changeDate(selectedMonth) { alert(selectedMonth); switch(selectedMonth) { case "january": createOptions(31); break; case "february": createOptions(28)...
  8. mtorbin

    Is there an easier way to write this dynamic select?

    Ok, I don't know why I didn't think of this last night, but this works SO much better: <script> <!-- function changeDate(selectedMonth) { alert(selectedMonth); switch(selectedMonth) { case "january": createOptions(31); break; case "february": createOptions(28)...
  9. mtorbin

    Is there an easier way to write this dynamic select?

    When the user selects the month dropdown the day dropdown will automatically change so that they can't select, say, 11/31/2006 which doesn't exist. - MT
  10. mtorbin

    Is there an easier way to write this dynamic select?

    Hey all, I'm having trouble with the following code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script> <!--...
  11. mtorbin

    Converting a String to a Number

    Hey gang, I am working on the following code snippet: <cfset journalPrefix = Left(#URL.PubID#,2)> <cfset journalVolume = Mid(#URL.PubID#,3,2)> <cfset journalIssue = Mid(#URL.PubID#,6,1)> <cfif (journalPrefix IS "HR")> <cfif (journalVolume = 8) AND (journalIssue >= 6)> <frameset...
  12. mtorbin

    Combining Record Sets

    The following query gives me an "invalid character" error: SELECT U.userid, U.firstname, U.initials, U.lastname, A.addr1, A.addr2, A.city, A.stateprov, A.country, A.postalcode, A.phone FROM cr_users As U...
  13. mtorbin

    Combining Record Sets

    SELECT cr_users.userid, cr_users.firstname, cr_users.initials, cr_users.lastname, cr_useraddr.addr1, cr_useraddr.addr2, cr_useraddr.city, cr_useraddr.stateprov, cr_useraddr.country, cr_useraddr.postalcode, cr_useraddr.phone...
  14. mtorbin

    Combining Record Sets

    George, I get an "invalid character" error when I try your code. - MT
  15. mtorbin

    Combining Record Sets

    I got this far, but it only returns the first result repeated the number times that I have records: SELECT...

Part and Inventory Search

Back
Top