diff options
Diffstat (limited to 'www/jsScuttle.php')
| -rw-r--r-- | www/jsScuttle.php | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/www/jsScuttle.php b/www/jsScuttle.php index 5e5f31b..de97fd2 100644 --- a/www/jsScuttle.php +++ b/www/jsScuttle.php @@ -90,6 +90,24 @@ function useAddress(ele) {      }  } +/** + * Makes an ajax call to PHP script to generate an new Private Key + * + * @param input    Calling object + * @param response Response object that returned value is placed + * + * @return boolean Returns false to halt execution after call + */ +function getNewPrivateKey(input, response){ +    var pk = document.getElementById('pPrivateKey'); +    if (response != null) { +        pk.value = response.trim(); +    } else { +        loadXMLDocProc('<?php echo ROOT; ?>ajaxGetNewPrivateKey.php'); +    } +    return false; +} +  function getTitle(input, response){      var title = document.getElementById('titleField');      if (title.value == '') { | 
