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!

Search results for query: *

  • Users: phpPete
  • Content: Threads
  • Order by date
  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 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...
  4. 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 "appears" to work with the others, however...
  5. 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++ )...
  6. 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
  7. 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
  8. phpPete

    Looking for some feedback here

    Am I on the right track here? The jist of this is that ultimately I want to set up a select box that's pre-selected with data already in the DB. The reason for the 2 queries is this: i only want to allow my user to choose what's available in the DB obviously, but also, a new election will...
  9. phpPete

    Here's the scenario: 2 tables:

    Here's the scenario: 2 tables: table1 ( a lookup table ) 1:N id ingredient gross_cost ------------------------ table2 ( one record per item ) id rec_ingredient rec_unit ( a number ) rec_portion ( a unit of measurement ) rec_code ( unique identifier ) Now, using various queries I...
  10. phpPete

    Good DB design tutorial here

    Found this DB design tutorial. It's visually very clear, and offers many concrete methods to design your DBs. Especially helpful is the CRUD matrix.
  11. phpPete

    JOIN problem: results only patially correct

    I can't seem to get the data I want from my tables. Desired result is: recipe_ingredient (from recipe_ingredient ) paired with its corresponding prep instruction from instructions ( from prep ) I've tried any number of combinations of JOINS, the closest I get to what I want is using this...
  12. phpPete

    Stumped by $PHP_SELF, possible scope issue?

    Sorry for the lengthy post. This script works in all respects, except that $recName is not being inserted into the DB. Hopedully some fresher eyes can help me out. I've attempted: $GLOBALS[&quot;recName&quot;], global $recName, and also making $recName a session variable, still no luck. As...
  13. phpPete

    A loop question

    OK, this one has me a bit bonkers. I have a dynamically generated form, using PHP. I want to use JS to move a value into a field upon selection. Each row is 5 fields long, the number of rows vary depending upon the query, but the same five fields are gernerated each row. The value I want...
  14. phpPete

    Careless &quot;Submit&quot;

    I read here the other day about not naming Submit buttons submit. At the time it didn't occur to me why, but I ran into the problem this morning. I carelessly left all the submit buttons named as Submit on a page calling $PHP_SELF with multiple forms. Took about an hour of figuring out why...

Part and Inventory Search

Back
Top