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 SkipVought 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. SysTechGuy

    FireFox problems with Javascript Logic

    Sorry about my confusion. I was modifying multiple versions of the code, trying different things and I made a stupid mistake of using the version where I didn't set the id...thinking that I did. I appreciate all of your help.
  2. SysTechGuy

    FireFox problems with Javascript Logic

    Here is the page that has the most recent changes where the check state function is: function stateCheck(checkThisState) { stateString = checkThisState.value; if ( stateString != "" ) { stateString = stateString.toUpperCase(); if ( stateString.length == 2 ) {...
  3. SysTechGuy

    FireFox problems with Javascript Logic

    That is odd. For me, the exact code is not putting focus on the zip code field after I click away the alert message. You are using Firefox...correct?
  4. SysTechGuy

    FireFox problems with Javascript Logic

    Nope. I am still getting the same results as before. The recursion is eliminated, but the focus will not go back to the state field after bad data is entered. Here is what I changed: function stateCheck(checkThisState) { stateString = checkThisState.value; if ( stateString != "" ) {...
  5. SysTechGuy

    FireFox problems with Javascript Logic

    Here are the changes I made: function stateCheck(checkThisState) { stateString = checkThisState.value; if ( stateString != "" ) { stateString = stateString.toUpperCase(); if ( stateString.length == 2 ) { checkThisState.value = stateString; } if ( stateString.length != 2 ) {...
  6. SysTechGuy

    FireFox problems with Javascript Logic

    Well, based on my limited experience with JavaScript, the Error Console appears to indicate that there is a problem passing the argument to the function: "Error: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"...
  7. SysTechGuy

    FireFox problems with Javascript Logic

    That is a good idea, but there are many other fields in the application that require other formats, like phone number (###-###-####) and zip code (#####) that have to be numbers. The State field is just an example I used since the problem it is having with FireFox is the same as the other...
  8. SysTechGuy

    FireFox problems with Javascript Logic

    I still get the same result as before. Here is the change I made to the original: <input name="applicantState" type="text" size="5" onblur="stateCheck(this);">
  9. SysTechGuy

    FireFox problems with Javascript Logic

    My company has an online application written in JavaScript where people enter personal information and submit it via the Web. Within the code, information that has to be formatted is sent to functions that test the data to see if it meets certain criteria. For instance, "State" must be...
  10. SysTechGuy

    Can't find the uncaught exception

    I tried your advice and it eliminated the problem of locking out the user, but now with the changes that I made, once a user enters an incorrect format for data, the focus goes to the next field. For instance, if I enter 3 letters for state instead of 2, the exception is thrown and a pop-up...
  11. SysTechGuy

    Can't find the uncaught exception

    I should apologize first because I am a total noob when it comes to javascript. However, my company is using an online application and there are certain fields where when data is entered in the incorrect format (example: A phone number is not entered in the ###-###-#### format) An exception is...

Part and Inventory Search

Back
Top