daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <input type="submit" name="ctl00$MainContentPlaceHolder$FormView1$TabContainer1$PropertiesTabPanel$btnAddDocIssue" value="+" onclick="return addDocIssueClick();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContentPlaceHolder$FormView1$TabContainer1$PropertiesTabPanel$btnAddDocIssue", "", true, "", "", false, false))" id="ctl00_MainContentPlaceHolder_FormView1_TabContainer1_PropertiesTabPanel_btnAddDocIssue" />
  2.    
  3. function addDocIssueClick() {
  4.             var newDU = prompt('Enter new value:', '<new value example>');
  5.             if ((newDU == '') || (newDU == 'undefined') || (newDU == null)) {
  6.                 return false;
  7.             }
  8.             document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue").value = newDU;
  9.             var obj = document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue");
  10.             obj.value = newDU;
  11.             return true;
  12.         }
  13.    
  14. $ie.Document.IHTMLDocument3_getElementById("ctl00_MainContentPlaceHolder_FormView1_TabContainer1_PropertiesTabPanel_btnAddDocIssue").outerHtml = '<input type="submit" id="mysubmit2" value="Send" onclick="function my(){document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue").value=12345;var obj=document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue");obj.value=12345;}return my();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContentPlaceHolder$FormView1$TabContainer1$PropertiesTabPanel$btnAddDocIssue", "", true, "", "", false, false))">'
  15. $ok2=$ie.Document.IHTMLDocument3_getElementById("mysubmit2");
  16. $ok2.click();
  17.    
  18. function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
  19.     this.eventTarget = eventTarget;
  20.     this.eventArgument = eventArgument;
  21.     this.validation = validation;
  22.     this.validationGroup = validationGroup;
  23.     this.actionUrl = actionUrl;
  24.     this.trackFocus = trackFocus;
  25.     this.clientSubmit = clientSubmit;
  26. }
  27. function WebForm_DoPostBackWithOptions(options) {
  28.     var validationResult = true;
  29.     if (options.validation) {
  30.         if (typeof(Page_ClientValidate) == 'function') {
  31.             validationResult = Page_ClientValidate(options.validationGroup);
  32.         }
  33.     }
  34.     if (validationResult) {
  35.         if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
  36.             theForm.action = options.actionUrl;
  37.         }
  38.         if (options.trackFocus) {
  39.             var lastFocus = theForm.elements["__LASTFOCUS"];
  40.             if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
  41.                 if (typeof(document.activeElement) == "undefined") {
  42.                     lastFocus.value = options.eventTarget;
  43.                 }
  44.                 else {
  45.                     var active = document.activeElement;
  46.                     if ((typeof(active) != "undefined") && (active != null)) {
  47.                         if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
  48.                             lastFocus.value = active.id;
  49.                         }
  50.                         else if (typeof(active.name) != "undefined") {
  51.                             lastFocus.value = active.name;
  52.                         }
  53.                     }
  54.                 }
  55.             }
  56.         }
  57.     }
  58.     if (options.clientSubmit) {
  59.         __doPostBack(options.eventTarget, options.eventArgument);
  60.     }
  61. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top