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 TouchToneTommy 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: deeciple
  • Content: Threads
  • Order by date
  1. deeciple

    Using GET() parameters in a python script

    Hi All, I am trying to send some values to a python script using an AJAX call. The AJAX is calling the script properly because if I plug the values directly into the script it executes properly. The problem I am having is when I try to send the values to my script by embedding them in the...
  2. deeciple

    Help calling a python script through AJAX

    Hi All, I have been wrestling with trying to get a simple python script to run on the click event of an HTML button. Here is the python script: #!C:\Python27 import kipro client = kipro.Client('http://10.221.14.161') client.play() It issues a "play" command to a remote VTR. I have the...
  3. deeciple

    Strange row number behaviour with javascript generated table

    Hi All, I have a script that runs on my page load and pulls some data from a database to build a table with. function makeTable(tableID){ var str = "<?php echo $row_rstRequestDetails['tblEquipRequestID']; ?>"; var body = document.getElementsByTagName("fieldset")[0]; var tbl =...
  4. deeciple

    Need help with COUNT() function

    Hi Everyone, I have this query to count how many support requests are made within a given date range: SELECT tblequipissues.EquipType, tblequipissues.Issue, tblequipissues.IssueDate, tblequipissues.FixedDate, tblequipissues.EnteredBy, COUNT(tblequipissues.EnteredBy) FROM tblequipissues WHERE...
  5. deeciple

    Querying multiple checkboxes in different states

    Hi All, I have a table with three checkboxes that I want to query. I need to be able to check any box (or boxes) and return records where the box/boxes is checked, but not records where it is unchecked. I tried this but it keeps returning all records, regardless of the checked status: (chk1...
  6. deeciple

    MySQL Date range or IS NULL

    Hi All, I have a form that populates search criteria in a query query. I want the user to be able to select a date range if they want to but also be able to use other search criteria and not use the range. My query seems to only be working if the date range fields are filled. Otherwise no...
  7. deeciple

    Need help with a query in PHP (not returning any records)

    Hi All, I have this code to authenticate users on an active directory server and then query a table on my database that contains their user level. For some reason I am not getting any records returned when I run the query in my script but if I run it directly in MySQL i get back the expected...
  8. deeciple

    Need help with a PHP query

    Hi All, I have created a query in php. The idea is that the user enters search criteria into some (but not necessarily all) text fields on my form and the form gets posted to my PHP page containing this query: $query ="SELECT * FROM tblequipissues WHERE Location LIKE '%$Location%'...
  9. deeciple

    Nested loops not displaying properly

    Hi All, I am creating a report using tables and nested "do... while..." loops. On the inside loop, I have only the <tr> that I want to loop set within the "do... while..." statements but for some reason I am still getting the header and footer rows and table caption looping. I believe it has...
  10. deeciple

    Triple state checkbox

    Hi All, I have a search form that has a checkbox on it. I want the user to be able to query the database for this checkbox in three states, as follows: 1. The box is checked (return records where only the box is checked). 2. The box is not checked (return records where only the box is not...
  11. deeciple

    Undefined error in script

    Hi All, I am using the following in a repeating region table cell to return some values from my database: <td><script>document.write(CnvToFrames("<?php echo $row_rstSegmentInfo['EOM']; ?>")-CnvToFrames("<?php echo $row_rstSegmentInfo['SOM']; ?>"));</script></td> I am trying to sum these...
  12. deeciple

    Using javascript to query a database

    Hi All, I have a form field that populates a column in my database with a unique value. What I am trying to do is write a function that will be called on the form field's onblur event to initiate a query of the database column for the form field's value, pop-up an alert box if a match is found...
  13. deeciple

    Having trouble with javascript submit form method

    Hi All, I have some code to check two text fields and submit a form if the fields match (it's to verify passwords). I don't know why but I am getting an "Object doesn't support this property or method" on the submit method. I tried it as shown below, as well as: document.frmAddUser.submit()...
  14. deeciple

    Code to clear a text field not working

    Hi All, I have a function that I have been working on to dynamically (based on the user's selection in a drop list) enable and destroy spry validation for a couple of text fields (while also showing or hiding these fields). This part is working great but what I would like to do is if the user...
  15. deeciple

    Delete a dynamic table

    Hi All, I hate to ask such a basi question but is there any function or method to delete an html table? I have tried destroy(), removeChild() with no luck. I created a function that dynamically creates a table and adds rows to it. The code is called via a checkbox. I would like, if the user...
  16. deeciple

    Inserting multiple records to a table simultaneously

    Hi All, I have the following javascript code to dynamically create a table and populate it with data. Each time the user presses the "Add Row" button on my form, the addrow function is called and a row containing their data is added to the table. Here is the code: <SCRIPT...
  17. deeciple

    Need help with transactions in PHP

    Hi All, I am having a hard time getting SQL transactions to work in PHP. I am using the following code in my form's process.php file and I am being redirected to the success.html page but when I check the database, there is no data being written to the tables. If I remove the transaction and...
  18. deeciple

    Need help with a dynamic table script

    Hi All, This is my first post and I am fairly new to javascript and web development. I am working on a script to generate a dynamic table and populate the fields in that table with data from a number of text fields on my page. The page uses Adobe spry validation and this is the only way I...

Part and Inventory Search

Back
Top