Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("input").keyup(function() {
- $.post("../fhphp/updatetree.php",{id: $(this).closest("div").attr("id"), type:
- $(this).attr('name'), value: $(this).val()});
- });
- if ($mytree!=null) {
- $person=$mytree->findPerson($_POST['id']);
- if ($person!=null) {
- $varFunction="change".$_POST['type'];
- $person->$varFunction(mysqli_real_escape_string($link,$_POST['value']));
- } else {
- $mytree->addPersonNode(new personNode($_POST['id']));
- }
- }
- $mytree=new treeClass();
- $mytree->constructTree($_SESSION['loginusername'],$link);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement