Jump to content

fatkatie

Members
  • Content Count

    132
  • Joined

  • Last visited

Community Reputation

1 Neutral

About fatkatie

  • Rank
    Advanced Member
  1. Op... I think I'm on my way. Feel free to nuke the post if you wish. Thank you.
  2. It's not working , but after a login, can it be this simple? curl_setopt($ch, CURLOPT_URL, $gotoUrl); $content = curl_exec($ch); echo $content;
  3. I'm a little familiar with Perl's lwp and I've scraped a few sites. But I've never logged in remotely AND presented a 'protected' page to the user. Is it possible to login remotely and then open a page for a user via a link? We have the credentials but we're sick of the login dance. I'll invest some time figuring it out if someone can tell me if this is even possible. Thank you.
  4. This is what I wound up with (you need your wits). var next_row_id = e.parentNode.parentNode.nextElementSibling.id Thanks again for the road map.
  5. lol The shampoo routine... wash rinse repeat. No, just a few rows. Thanks. I can't use jQuery but I see what your doing. I'll do a w3schools thing and look at the dom things. And you nailed the html. That's exactly what I'm doing. Thanks again.
  6. Greetings to All, I have a table with multiple rows. These row are added and removed dynamically based on this or that. In row 'A' I have a select box with its onchange event set to a javascript function. I need to discover, from within this function, if the next row has an id with a particular format (id string starts with 'shipping'). How can I get this id? - There is always a next row. It always has an ID. - Additional TD elements may, or may not, follow the TD containing the select box element. - This is a 'single level' table construct (no tables within tables). Thank you.
  7. Being a trigger virgin the new. and old. references confused me, but now I'm off. The code is good enough to almost use verbatim. Thanks for your 'comment'. Thanks again.
  8. So ... Barand... been there done that I see. Thanks. I'll digest this and let you know. Looks good thou at first glance.
  9. Only the project managers have access to their pages (each pm owns his 'record(s)' and no other may edit) The traffic is low. It is unlikely two would hit the table at the same time. It's impossible that two would hit the same record at the same time. The application is web based - login - no table locks are used. This table is read by many other pages/reports - not modified. Thank you.
  10. I'm on a new path here and would appreciate any ideas you pros might have. I think this involves triggers and another table but am not sure. I have a project record that has fields that contain information. It's important to know when some fields change. For example, I have a field call DRAWING which contains a link to a project print. Values in this link change whenever the print is modified. It's important to know the date of the last change. When the project page is opened for review, I want to show, to the right of this field (and a few others), the date/time is was last changed. I want the time information field based, not record based. My initial idea is to trigger after a record update and compare an 'identical' table against the project table. After checking the fields of interest for change I would write the project table associated lastupdate fields with a date and then overwrite this 'identical' table with the new state of things. This all could be done with code but it gets a bit onerous. I was hoping to do it once in a stored procedure. Comments? Thank you. 10.1.38-MariaDB
  11. I know apache writes a log that contains this information. Does php has a function that can obtain apache's last restart time? xampp, w10 (lastest stuff) Thank you.
  12. @#$@#$@! You spend all day on something that has nothing to do with anything. It was a stupid join. mb_check_encoding But, I would like to know if mb_check_encoding() is worth anything. I've relied on binding which has never failed me. Thank you.
  13. while ($pending || $row = $sth->fetch(PDO::FETCH_OBJ)) { $pending = false; $hn = $row->houseid; writeData("READ $hn", __FILE__, __LINE__); } There's the loop. houseid starts repeating. I found the record but I don't see anything wrong yet. Newlines? I'm going to rewrite the record with the check and see what that does.
  14. I just started populating a mysql table with data collected from a form posting. I do the dance ... $post_partnumber_source = html_entity_decode(trim(fvs($_POST['nsel_pnsrc'])));where fvs is function fvs($string){$string = filter_var($string, FILTER_SANITIZE_STRING); return $string; } And then I use PDO and binding. Something has happened. Something bad. My PHP $sth->fetch(PDO::FETCH_OBJ) loops are failing. All the records are not being read (some seem to be read twice)... and it happens around the record when form input was starting to be used. It's got to illegal data messing this up. So, my question is, what now? Will mb_check_encoding() solve this or am I missing something very basic. Thank you. mysql Ver 15.1 Distrib 10.1.37-MariaDB, for Win32 (AMD64), Using configuration as supplied by xampp
  15. I have a search function that finds parts. It's a callback that constructs a new form with all items found contained in a table. This form/table is returned and appended to the html using this (within a div element) jQuery('#iddiv_searchresultsarea').empty().append(html); Each of the input text areas, available for updating, has a proper element id. Here's an example row (within a table; within a form): <tr> <td>73T3590</td> <td>Hinge, Blum Plus</td> <td><input type="text" id="idin_loc_73T3590" value="A206" maxlength="20" size="4"></td> <td><input type="text" id="idin_qty_73T3590" value="1" maxlength="20" size="4"></td> <td> <button class="btn btn-primary" type="button" id="idbut_73T3590" name="nbut_73T3590" value="UPDATE" onclick="updateStock('73T3590')"> </button></td> <td>Blum Hinge Plus Inserta Full O/L 110 Deg</td> <td>no image</td> </tr> For some reason, jQuery does not see any of this. javascript getElementById() works just fine. Here is a simple snip of the problem: function updateStock(pn) { var qty_value = document.getElementById('idin_qty_263.16.705').value; alert("qty value " + qty_value); // ok jQuery(document).ready(function() { var stock_qty = jQuery('#idin_qty_263.16.705').val(); alert("stock qty " + stock_qty ); // undefined . . . Do I have to do something else after the append to 'sync' up the page? Or is this a scope issue that I won't figure out until next week. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.