Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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" />
- function addDocIssueClick() {
- var newDU = prompt('Enter new value:', '<new value example>');
- if ((newDU == '') || (newDU == 'undefined') || (newDU == null)) {
- return false;
- }
- document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue").value = newDU;
- var obj = document.getElementById("ctl00_MainContentPlaceHolder_HFnewdocissue");
- obj.value = newDU;
- return true;
- }
- $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))">'
- $ok2=$ie.Document.IHTMLDocument3_getElementById("mysubmit2");
- $ok2.click();
- function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
- this.eventTarget = eventTarget;
- this.eventArgument = eventArgument;
- this.validation = validation;
- this.validationGroup = validationGroup;
- this.actionUrl = actionUrl;
- this.trackFocus = trackFocus;
- this.clientSubmit = clientSubmit;
- }
- function WebForm_DoPostBackWithOptions(options) {
- var validationResult = true;
- if (options.validation) {
- if (typeof(Page_ClientValidate) == 'function') {
- validationResult = Page_ClientValidate(options.validationGroup);
- }
- }
- if (validationResult) {
- if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
- theForm.action = options.actionUrl;
- }
- if (options.trackFocus) {
- var lastFocus = theForm.elements["__LASTFOCUS"];
- if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
- if (typeof(document.activeElement) == "undefined") {
- lastFocus.value = options.eventTarget;
- }
- else {
- var active = document.activeElement;
- if ((typeof(active) != "undefined") && (active != null)) {
- if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
- lastFocus.value = active.id;
- }
- else if (typeof(active.name) != "undefined") {
- lastFocus.value = active.name;
- }
- }
- }
- }
- }
- }
- if (options.clientSubmit) {
- __doPostBack(options.eventTarget, options.eventArgument);
- }
- }
Add Comment
Please, Sign In to add comment