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 phpPete

  1. phpPete

    Programatically changing/editing JTable cells

    2 of the columns in my JTable hold monetary values ( double). If the value in cell A changes, then value B should be updated with the result of a calculation performed using the new value in A and the old value in B. Sort of like a spreadsheet. I can't seem to set the new value of A or B...
  2. phpPete

    passing a function to setAttribute()

    In a JS dynamically generated table, if I do this: var currentRow = document.createElement('tr'); currentRow.setAttribute('onclick', 'nukeNode(this.id);'); I get no response. When i replace the function nukeNode() with an alert for testing purposes, the event handler is fired not when i...
  3. phpPete

    Getting JS to play nice with PHP

    OK...got that. Now as to posting all the selected options...any ideas? Thanks Pete
  4. phpPete

    Getting JS to play nice with PHP

    Ok dokie! I make selections from one large select list, then add them to one smaller select list. No problem. Problem is that only the last item selected is posted. Now I know if I name the select as : name[] it declares an array and all the selcted options are posted, however, JS doesn't...
  5. phpPete

    Part 2: Problems dynamically changing SELECT box

    In this case I'm restricing the user to IE anyway, ( it's an intranet ). The select lists are dynamically generated by PHP so the number on any given call to the page varies, and the form is defined like so: <form name=&quot;frmTest&quot;> <select name=&quot;frmTest[selIngredient[<?php echo $i...
  6. phpPete

    Part 2: Problems dynamically changing SELECT box

    Thanks for your answers: Point of clarification: Tek-tips faq 216-335 (6b on the FAQ for JS ) gives an example of what I'm trying to do, and the author uses an add() method to add the new Option, and in fact this does work in my code. As to your second point, my thought in naming my select...
  7. phpPete

    Part 2: Problems dynamically changing SELECT box

    Thanks for your posts guys. i've made a test html page which shows what I'm getting. if you care to cut and paste you'll see. I've narrowed my problem down to the innermost block of code in the function,> I'm having trouble synchronizing the calling function select box with it paired...
  8. phpPete

    Part 2: Problems dynamically changing SELECT box

    OK...here's my latest incarnation of my script. Essentially this adds an option to another select list after checking against a lookup array . My problem now is that the script only works peoperly on the first select list in the list. It &quot;appears&quot; to work with the others, however...
  9. phpPete

    Problems dynamically changing SELECT box

    Thank You Thank You Thank YOU!!! I was at my wits end! You just saved what little hair I have left!! Pete
  10. phpPete

    Problems dynamically changing SELECT box

    The below code should add an option to a select box for each element in ana array. I get one item added then an invalid argument error. Any ideas? function addToSelect(arr) { var oOption = document.createElement(&quot;OPTION&quot;); for(var i = 0; i < arr.length; i++ )...
  11. phpPete

    Password verification

    I use 2 pages for authorization, one is straight HTML holding the login form, the second is an intermediate page which processes the data posted by the form...depending on the validity of the data it then redirects accordingly... the login page ---------------- <form...
  12. phpPete

    How to print one form &quot;X&quot; times per page

    Vampire!!! You da man!!! Many thanks for your response. That's the ticket! PAS
  13. phpPete

    How to print one form &quot;X&quot; times per page

    I'd like to print the same form 3 times per page, like chekcs on a page...in this case it's for gift certificates. For example: frmSample.PrintForm prints once per page. Can anyone point me in the right direction? Thanks, PAS
  14. phpPete

    Regular expressions Delphi 6 (Personal Edition )

    Can someone give me an example of using regular expressions in Delphi? I well aquainted with regular expression syntax, jut implementing it in Delhi has me stumped. Thanks, phpPete
  15. phpPete

    A fix against single quote mess in mysql

    I found this on SitePoint.com --- magic_quotes, addslashes(), and stripslashes() magic_quotes_gpc, when on, automatically adds slashes to all GET/POST/COOKIE data so that you don't need to use addslashes() before using GET/POST/COOKIE data in MySQL queries, etc. (e.g. with magic_quotes_gpc OR...

Part and Inventory Search

Back
Top