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!

Recent content by SofaKingGreat

  1. SofaKingGreat

    Associative array + eval() problem

    It seems I forgot to take my "Anti Donkey" medication today.... I had a space between the _ and the 00. Thanks for the help, and for informing me about the evil ways of eval(). Cheers. TennisLessons.com - The place to go to find a pro. MathLessons.com - When the numbers don't add up.
  2. SofaKingGreat

    Associative array + eval() problem

    OK, eval = evil = it's gone. I changed it to var tmp = document.pb.elements['ten_' + x].value; But when I try to alert(tenmap[tmp]) I still get undefined.... I also tried getting the value directly (var tmp = document.pb.ten_1.value;), but that also return undefined. When I alert tmp and...
  3. SofaKingGreat

    Associative array + eval() problem

    I need some help..... I have an associative array (tenmap). I have a form with numbered hidden fields (num_1,num_2,num_3 etc..) I'm trying to print the values from "tenmap" based on the values num_X the while loop checks that ten_x exists, if it does I try to print the values. I'm trying to...

Part and Inventory Search

Back
Top