Что нового

нужна помощь в определении параметров окна ввода

shyra1976

Новичок
Сообщения
71
Репутация
0
Добрый день.
Нужна помощь в нахождении ID параметра TYPE(Как выглядит страница можно видеть в файле ниже.зайти на сайт нет возможности без разрешения )


это код страницы
<!DOCTYPE html><html><head><base href="http://enoviaplm.kla-tencor.com/ematrixprd/common/"><title>Search</title><script type="text/javascript" src="../tvc/core/scripts/jquery.js"></script><script type="text/javascript" src="../tvc/core/scripts/jquery-ui.js"></script><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/common/styles/jquery-autocomplete.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/classic/styles/tvcJqueryUIAll.css"><script type="text/javascript" src="../tvc/core/scripts/jquery-autocomplete.js"></script><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/common/styles/tvcForm.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/classic/styles/tvcForm.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/common/styles/tvcCalendar.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/classic/styles/tvcCalendar.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/structurebrowser/themes/common/styles/tvcTable.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/structurebrowser/themes/classic/styles/tvcTable.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/structurebrowser/themes/common/styles/search/tvcSearchForm.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/structurebrowser/themes/classic/styles/search/tvcSearchForm.css"><script type="text/javascript" src="scripts/emxUIModal.js"></script><script type="text/javascript" src="../tvc/core/scripts/tvcCommonScript.js"></script><script type="text/javascript" src="../tvc/core/scripts/tvcCalendar.js"></script><script type="text/javascript" src="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/scripts/tvcAjaxEngine.js"></script><script type="text/javascript">if(!window.search){window.search={};}
search.URL="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/ajax";
search.getUserFullName=function(a0,c){tvc.ajaxEngine.call(search.URL,"UTF-8","search","getUserFullName",[a0],c,true);}
search.deleteQuery=function(a0,c){tvc.ajaxEngine.call(search.URL,"UTF-8","search","deleteQuery",[a0],c,true);}
search.getDisplayText=function(a0,a1,c){tvc.ajaxEngine.call(search.URL,"UTF-8","search","getDisplayText",[a0,a1],c,true);}
</script><script type="text/javascript">if(!window.calendar){window.calendar={};}
calendar.URL="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/ajax";
calendar.parseDisplay=function(a0){return tvc.ajaxEngine.call(calendar.URL,"UTF-8","calendar","parseDisplay",[a0],null,false);}
calendar.formatForDisplay=function(a0,a1,a2){return tvc.ajaxEngine.call(calendar.URL,"UTF-8","calendar","formatForDisplay",[a0,a1,a2],null,false);}
</script><script type="text/javascript" src="../tvc/structurebrowser/search/scripts/tvcSearchFormCommon.js"></script><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/common/styles/tvcUIDefault.css"><link rel="stylesheet" href="http://enoviaplm.kla-tencor.com/ematrixprd/tvc/core/themes/classic/styles/tvcUIDefault.css"><script type="text/javascript" src="../tvc/structurebrowser/search/scripts/tvcSearchForm.js"></script><script type="text/javascript">function updateF0(){var x=[];$('#F0_ac').parent().find('span.value-item').each(function(){x.push($(this).attr('value'));});$('#F0_input').val(x.join(','));}function typeChooserCallbackF0(id,values,displayValues){$('#F0_wrapper span').remove();for (var i=0;i<values.length;i++){addF0(values,displayValues);}updateF0();}function addF0(value,displayValue){if(displayValue==null||displayValue==''){displayValue=value;}var lblRemove='Remove';var f='F0_input';var $f=$('#F0_ac');var $span=$('<span>').addClass('value-item').attr('value',value).text(displayValue);var $input=$('<input>').attr('type','hidden').attr('name',f).attr('value',value);$input.appendTo($span);var $a = $('<a>').addClass('remove').attr({href:'javascript:void(0)',title:lblRemove+' '+displayValue}).text('x').click(function(){$(this).parent('span').remove();}).appendTo($span);$span.insertBefore($f);}function resetF0(){$('#F0_wrapper span').remove();updateF0();$('#F0_ac').focus();}$().ready(function(){var types=['Part','Part Family','Drawing Print','Part Specification','Sketch','ECO','ECR','DOCUMENTS'];var params={caseSensitive:false,contains:true,localize:true,returnAbstractTypes:true};var callback=function(event,i,fieldId,valueFieldId){addF0(i.data,i.value);};var f='F0_ac';tvcSetupTypeFieldAC(JSON_URL,f,null,types,params,callback);$('#'+f).bind('autocompleteclose',function(event,ui){$('#'+f).val('');});$('#'+f).bind('autocompletechange',function(event,ui){updateF0();});$('#F0_wrapper').click(function(){$('#F0_ac').focus();});updateF0();$('#F0_ac').focus();});</script><script type="text/javascript" src="../tva/engineering/scripts/searchForm.js"></script><script type="text/javascript">function setF3(s) {var id='F3_input';var o=document.getElementById(id);o.value=s;o=document.getElementById(id+'_shown');if (o!=null) {search.getUserFullName(s,function(r,s){if(s&&r)o.value=r;});}}$().ready(function(){var f='F3_input';var p={caseSensitive:false,contains:true};tvcSetupCustomFieldAC(JSON_URL, f+'_shown' , f, 'com.technia.kla.autocomplete.ActiveUserHandler', p );});</script><script type="text/javascript">function setF7(s) {var id='F7_input';var o=document.getElementById(id);o.value=s;o=document.getElementById(id+'_shown');if (o!=null) {search.getUserFullName(s,function(r,s){if(s&&r)o.value=r;});}}$().ready(function(){var f='F7_input';var p={caseSensitive:false,contains:true};tvcSetupUserFieldAC(JSON_URL,f+'_shown',f,p);});</script><link rel="stylesheet" href="../tva/common/styles/jquery.fancyselect.form.css"><script type="text/javascript" src="../tva/common/scripts/jquery.fancyselect.js"></script><script type="text/javascript" src="../tva/common/autocomplete/scripts/jquery.xautocomplete.js"></script><script type="text/javascript" src="../tva/common/autocomplete/scripts/jquery.xautocomplete.loadstyle.js"></script><script type="text/javascript">function handleNewItem() {}</script><link rel="stylesheet" href="../tva/common/autocomplete/styles/jquery.xautocomplete.css"><script type="text/javascript">var MAX_LIMIT = 1000;var QUERY_LIMIT = 150;var CHOOSER_WINDOW = null;var SUBMITTING = false;var SCROLL_TO = null;var INPUT_FIELD_PARAM_NAME = "inputFieldName";var LIMIT_PARAM_NAME = "limit";var APPEND_PARAM_NAME = "append";var EXEC_QUERY_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/executeQuery";var RELOAD_FORM_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/reloadForm";var TOGGLE_MORE_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/toggleMoreVisibility";var CLEAR_FORM_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/clearSearchForm";var JSON_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/json";var RELOAD_ON_CLEAR = true;var SAVE_QUERY_PARAM_NAME = "queryName";var SAVE_QUERY_ALLOWED = true;var SAVE_QUERY_SHOW_IN_BOTTOM_FRAME = true;var MSG_SEARCH_IN_PROGRESS = "Search in Progress...";var USER_NAME = "apougatc";var USER_NAME_REAL = "POUGATCH, ALEX";var USER_EMAIL = "[email protected]";var FIND_LIKE_URL = "http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/loadFindLikeForm?object=tvc-000000000000001a&type=tvc%3Asearchform%3Atva%3Acommon%2FGeneralSearch.xml&findLikeType=";</script></head><body class="searchform"><div style="display:none"><form name="savedQueriesLoadForm" action="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/savedQueriesSearchForm" method="post" target="tableContentFrame"><input type="hidden" name="object" value="tvc-000000000000001a"></form><form name="collectionsLoadForm" action="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/collectionsSearchForm" method="post" target="tableContentFrame"><input type="hidden" name="object" value="tvc-000000000000001a"></form><form name="clipboardLoadForm" action="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/loadClipboardIntoTable" method="post" target="_parent"><input type="hidden" name="object" value="tvc-000000000000001a"><input type="hidden" name="reuseObject" value="true"><input type="hidden" name="targetPage" value="/tvc/structurebrowser/search/tvcSearchResultFS.jsp"><input type="hidden" name="instantiate" value="false"></form><form name="recentObjectsForm" action="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/tvaRecentObjects" method="post" target="_parent"><input type="hidden" name="object" value="tvc-000000000000001a"><input type="hidden" name="reuseObject" value="true"><input type="hidden" name="targetPage" value="/tvc/structurebrowser/search/tvcSearchResultFS.jsp"><input type="hidden" name="instantiate" value="false"></form></div><form name="tvcSearchForm" method="post" action="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/executeQuery" target="_parent" style="margin:0px"><input type="hidden" name="object" value="tvc-000000000000001a"><input type="hidden" name="targetPage" value="/tvc/structurebrowser/search/tvcSearchResultFS.jsp"><input type="hidden" name="instantiate" value="false"><input type="hidden" name="append" value="false"><input type="hidden" name="limit" value="150"><table border="0" cellspacing="2" cellpadding="2" width="100%" class="form searchform"><input id="queryName" name="queryName" type="hidden"><tr><td class="label" style="width:150px">Type</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellspacing="0" cellpadding="1" width="100%"><tr><td><div class="inputFieldWrapper ui-helper-clearfix" id="F0_wrapper"><input type="hidden" id="F0_input"><input type="text" size="20" id="F0_ac"></div></td><td width="25" align="left"><input type="button" id="F0_chooserButton" value="..." url="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/showTypeTree?type=Part&amp;type=Part+Family&amp;type=Drawing+Print&amp;type=Part+Specification&amp;type=Sketch&amp;type=ECO&amp;type=ECR&amp;type=DOCUMENTS&amp;selection=multiple&amp;showHiddenTypes=false&amp;expandAllowed=true&amp;expandTo=0&amp;maxExpandDepth=-1&amp;callback=typeChooserCallbackF0" inputField="F0_input" w="400" h="400" onclick="var x=this.getAttribute(&#039;w&#039;);var y=this.getAttribute(&#039;h&#039;);var u=this.getAttribute(&#039;url&#039;);var f=this.getAttribute(&#039;inputField&#039;);tvcOpenChooser(x,y,u,f);"></td><td align="left"><a href="javascript:resetF0();">Reset</a></td></tr></table></td><td align="left"><div id="F0_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Name</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><textarea rows="1" cols="20" overflow="hidden" resize="none" onpaste="replaceSeparators(this);" onblur="replaceSeparators(this);" size="20" id="F1_input" name="F1_input" value="" max-length="127" multi-allowed="false" data-type="string" field-def-id="F1" op-chooser-id="F1_operator" onValidate="return validateUnlimitedNameField(this)"></textarea></td><td align="left"><div id="F1_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Revision</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellpadding="1" cellspacing="0"><tr><td><input fieldId="F2_input" type="radio" value="any" name="F2_input" id="F2_input_any" onclick="var id=this.getAttribute(&#039;fieldId&#039;)+&#039;_specific&#039;;var o=document.getElementById(id+&#039;_txt&#039;);if(o){o.disabled=this.id!=id;}"></td><td colspan="2"><label for="F2_input_any">Any</label></td></tr><tr><td><input fieldId="F2_input" type="radio" value="last" name="F2_input" id="F2_input_last" onclick="var id=this.getAttribute(&#039;fieldId&#039;)+&#039;_specific&#039;;var o=document.getElementById(id+&#039;_txt&#039;);if(o){o.disabled=this.id!=id;}" checked></td><td colspan="2"><label for="F2_input_last">Last Only</label></td></tr><tr><td><input fieldId="F2_input" type="radio" value="first" name="F2_input" id="F2_input_first" onclick="var id=this.getAttribute(&#039;fieldId&#039;)+&#039;_specific&#039;;var o=document.getElementById(id+&#039;_txt&#039;);if(o){o.disabled=this.id!=id;}"></td><td colspan="2"><label for="F2_input_first">First Only</label></td></tr></table></td><td align="left"><div id="F2_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Owner</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellpadding="2" cellspacing="0"><tr><td><input name="F3_input" id="F3_input" value="" type="hidden"><input name="F3_input" id="F3_input_shown" type="text" size="20" max-length="127" value=""></td><td><a href="javascript:void(0);" title="Sets the value of this field to your own user-name." onclick="tvcSetCurrentUser('F3_input')"><img border="0" src="../tvc/structurebrowser/search/images/ownerPopulate.gif"></a></td><td><input type="button" id="F3_chooserButton" value="..." url="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/findPerson?jsFunction=setF3" inputField="F3_input" w="800" h="600" onclick="var x=this.getAttribute(&#039;w&#039;);var y=this.getAttribute(&#039;h&#039;);var u=this.getAttribute(&#039;url&#039;);var f=this.getAttribute(&#039;inputField&#039;);tvcOpenChooser(x,y,u,f);"></td><td><a href="javascript:tvcClearFieldValues('F3_input');void(0);">Clear</a></td></tr></table></td><td align="left"><div id="F3_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Description</td><td class="inputField" style="width:100px"><select class="operator" id="F4_operator" name="F4_operator" size="1" inputField="F4_input"><option></option><option value="STRING_IS_EXACTLY">Is Exactly</option><option value="STRING_IS_NOT">Is Not</option><optgroup label="Case Sensitive"><option value="STRING_BEGINS_WITH_MATCH_CASE">Begins With</option><option value="STRING_ENDS_WITH_MATCH_CASE">Ends With</option><option value="STRING_CONTAINS_MATCH_CASE">Contains</option><option value="STRING_NOT_CONTAINS_MATCH_CASE">Doesn&#039;t Contain</option></optgroup><optgroup label="Case Insensitive"><option value="STRING_BEGINS_WITH">Begins With</option><option value="STRING_ENDS_WITH">Ends With</option><option value="STRING_CONTAINS">Contains</option><option value="STRING_NOT_CONTAINS">Doesn&#039;t Contain</option></optgroup></select></td><td class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><input type="text" size="30" id="F4_input" name="F4_input" value="" max-length="127" multi-allowed="false" data-type="string" field-def-id="F4" op-chooser-id="F4_operator" onValidate="return tvcValidateField(this)"></td><td align="left"><div id="F4_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Title</td><td class="inputField" style="width:100px"><select class="operator" id="F5_operator" name="F5_operator" size="1" inputField="F5_input"><option></option><option value="STRING_IS_EXACTLY">Is Exactly</option><option value="STRING_IS_NOT">Is Not</option><optgroup label="Case Sensitive"><option value="STRING_BEGINS_WITH_MATCH_CASE">Begins With</option><option value="STRING_ENDS_WITH_MATCH_CASE">Ends With</option><option value="STRING_CONTAINS_MATCH_CASE">Contains</option><option value="STRING_NOT_CONTAINS_MATCH_CASE">Doesn&#039;t Contain</option></optgroup><optgroup label="Case Insensitive"><option value="STRING_BEGINS_WITH">Begins With</option><option value="STRING_ENDS_WITH">Ends With</option><option value="STRING_CONTAINS">Contains</option><option value="STRING_NOT_CONTAINS">Doesn&#039;t Contain</option></optgroup></select></td><td class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><input type="text" size="30" id="F5_input" name="F5_input" value="" max-length="127" multi-allowed="false" data-type="string" field-def-id="F5" op-chooser-id="F5_operator" onValidate="return tvcValidateField(this)"></td><td align="left"><div id="F5_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Policy</td><td class="inputField" style="width:100px"><select class="operator" id="F6_operator" name="F6_operator" size="1" inputField="F6_input"><option></option><option value="STRING_IS_EXACTLY">Is Exactly</option><option value="STRING_IS_NOT">Is Not</option><optgroup label="Case Sensitive"><option value="STRING_BEGINS_WITH_MATCH_CASE">Begins With</option><option value="STRING_ENDS_WITH_MATCH_CASE">Ends With</option><option value="STRING_CONTAINS_MATCH_CASE">Contains</option><option value="STRING_NOT_CONTAINS_MATCH_CASE">Doesn&#039;t Contain</option></optgroup><optgroup label="Case Insensitive"><option value="STRING_BEGINS_WITH">Begins With</option><option value="STRING_ENDS_WITH">Ends With</option><option value="STRING_CONTAINS">Contains</option><option value="STRING_NOT_CONTAINS">Doesn&#039;t Contain</option></optgroup></select></td><td class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><input type="text" size="30" id="F6_input" name="F6_input" value="" max-length="127" multi-allowed="false" data-type="string" field-def-id="F6" op-chooser-id="F6_operator" onValidate="return tvcValidateField(this)"></td><td align="left"><div id="F6_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Originator</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellpadding="2" cellspacing="0"><tr><td><input name="F7_input" id="F7_input" value="" type="hidden"><input name="F7_input" id="F7_input_shown" type="text" size="20" max-length="127" value=""></td><td><a href="javascript:void(0);" title="Sets the value of this field to your own user-name." onclick="tvcSetCurrentUser('F7_input')"><img border="0" src="../tvc/structurebrowser/search/images/ownerPopulate.gif"></a></td><td><input type="button" id="F7_chooserButton" value="..." url="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/findPerson?jsFunction=setF7" inputField="F7_input" w="800" h="600" onclick="var x=this.getAttribute(&#039;w&#039;);var y=this.getAttribute(&#039;h&#039;);var u=this.getAttribute(&#039;url&#039;);var f=this.getAttribute(&#039;inputField&#039;);tvcOpenChooser(x,y,u,f);"></td><td><a href="javascript:tvcClearFieldValues('F7_input');void(0);">Clear</a></td></tr></table></td><td align="left"><div id="F7_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Originated</td><td class="inputField" style="width:100px"><select class="operator" id="F8_operator" name="F8_operator" size="1" inputField="F8_input" onchange="var i=this.selectedIndex;var j=this.options.length-1;var s=i==j?&#039;inline&#039;:&#039;none&#039;;var fId=this.getAttribute(&#039;inputField&#039;);var o=document.getElementById(fId + &#039;_2&#039;);if(o){o.parentNode.style.display=s;o.disabled=i!=j;}"><option></option><option value="DATE_ON">On</option><option value="DATE_ON_OR_AFTER">On or After</option><option value="DATE_ON_OR_BEFORE">On or Before</option><option value="DATE_BETWEEN">Between</option></select></td><td class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellpadding="1" cellspacing="0"><tr><td><input type="text" size="15" id="F8_input" name="F8_input" value="" max-length="127" multi-allowed="false" data-type="timestamp" field-def-id="F8" op-chooser-id="F8_operator" readonly class="readonly" onValidate="return tvcValidateField(this)"> <a href="javascript:void(0)" inputField="F8_input" nr="0" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcEditDate(fId,n);" oncontextmenu="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/calendar.gif" border="0" height="16" width="16"></a> <a href="javascript:void(0)" inputField="F8_input" nr="0" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/clear.gif" border="0" height="16" width="11"></a></td><td><div style="display:none"> And <input type="text" size="15" id="F8_input_2" name="F8_input" value="" max-length="127" multi-allowed="false" data-type="timestamp" field-def-id="F8" op-chooser-id="F8_operator" readonly class="readonly" onValidate="return tvcValidateField(this)"> <a href="javascript:void(0)" inputField="F8_input" nr="1" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcEditDate(fId,n);" oncontextmenu="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/calendar.gif" border="0" height="16" width="16"></a> <a href="javascript:void(0)" inputField="F8_input" nr="1" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/clear.gif" border="0" height="16" width="11"></a></div></tr></table></td><td align="left"><div id="F8_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Modified</td><td class="inputField" style="width:100px"><select class="operator" id="F9_operator" name="F9_operator" size="1" inputField="F9_input" onchange="var i=this.selectedIndex;var j=this.options.length-1;var s=i==j?&#039;inline&#039;:&#039;none&#039;;var fId=this.getAttribute(&#039;inputField&#039;);var o=document.getElementById(fId + &#039;_2&#039;);if(o){o.parentNode.style.display=s;o.disabled=i!=j;}"><option></option><option value="DATE_ON">On</option><option value="DATE_ON_OR_AFTER">On or After</option><option value="DATE_ON_OR_BEFORE">On or Before</option><option value="DATE_BETWEEN">Between</option></select></td><td class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellpadding="1" cellspacing="0"><tr><td><input type="text" size="15" id="F9_input" name="F9_input" value="" max-length="127" multi-allowed="false" data-type="timestamp" field-def-id="F9" op-chooser-id="F9_operator" readonly class="readonly" onValidate="return tvcValidateField(this)"> <a href="javascript:void(0)" inputField="F9_input" nr="0" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcEditDate(fId,n);" oncontextmenu="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/calendar.gif" border="0" height="16" width="16"></a> <a href="javascript:void(0)" inputField="F9_input" nr="0" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/clear.gif" border="0" height="16" width="11"></a></td><td><div style="display:none"> And <input type="text" size="15" id="F9_input_2" name="F9_input" value="" max-length="127" multi-allowed="false" data-type="timestamp" field-def-id="F9" op-chooser-id="F9_operator" readonly class="readonly" onValidate="return tvcValidateField(this)"> <a href="javascript:void(0)" inputField="F9_input" nr="1" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcEditDate(fId,n);" oncontextmenu="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/calendar.gif" border="0" height="16" width="16"></a> <a href="javascript:void(0)" inputField="F9_input" nr="1" onclick="var fId=this.getAttribute(&#039;inputField&#039;);var n=this.getAttribute(&#039;nr&#039;);tvcClearDate(fId,n);return false;"><img src="../tvc/core/images/calendar/clear.gif" border="0" height="16" width="11"></a></div></tr></table></td><td align="left"><div id="F9_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">State</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><select id="F10_input" name="F10_input" multiple size="12"><option value="Active">Active</option><option value="Cancelled">Cancelled</option><option value="Complete">Complete</option><option value="Create">Create</option><option value="Implemented">Implemented</option><option value="Inactive">Inactive</option><option value="Obsolete">Obsolete</option><option value="Preliminary">Preliminary</option><option value="Release">Release</option><option value="Release Pending">Release Pending</option><option value="SAP Complete">SAP Complete</option><option value="Technical Review">Technical Review</option></td><td align="left"><div id="F10_input_errors" class="errorMsg"></div></td></tr></table></td></tr><tr><td class="label" style="width:150px">Project</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><div class="fancyselect" id="F11_input"><div class="fancyselectcontrols"><a id="all">all</a> | <a id="none">none</a></div><div class="fancyselectlabel labelRequired" style="color: #990000;font-weight: bold;font-style: italic;white-space: nowrap;"> <span id="count"></span></div><div class="fancyselectautocomplete"><input type="text" autocompleteurl="../tvc-action/ktFindProjectOrProjectList" parametername="F11_input" placeholder="Project or Project List Name"></div><div class="fancyselectlist" style="height:100px"></div></div><script type="text/javascript">$(function(){$('.fancyselect').filter('#F11_input').fancyselect({ onNewItem: function(){ handleNewItem.apply(self,arguments) }});});null</script></td><td align="left"><div id="F11_input_errors" class="errorMsg"></div></td></tr></table></td></tr></table></form></body></html>







укороченный вариант страницы откуда, я взял ID
Type</td><td colspan="2" class="inputField"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td><table cellspacing="0" cellpadding="1" width="100%"><tr><td><div class="inputFieldWrapper ui-helper-clearfix" id="F0_wrapper"><input type="hidden" id="F0_input"><input type="text" size="20" id="F0_ac"></div></td><td width="25" align="left"><input type="button" id="F0_chooserButton" value="..." url="http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/showTypeTree?type=Part&amp;type=Part+Family&amp;type=Drawing+Print&amp;type=Part+Specification&amp;type=Sketch&amp;type=ECO&amp;type=ECR&amp;type=DOCUMENTS&amp;selection=multiple&amp;showHiddenTypes=false&amp;expandAllowed=true&amp;expandTo=0&amp;maxExpandDepth=-1&amp;callback=typeChooserCallbackF0" inputField="F0_input" w="400" h="400" onclick="var x=this.getAttribute(&#039;w&#039;);var y=this.getAttribute(&#039;h&#039;);var u=this.getAttribute(&#039;url&#039;);var f=this.getAttribute(&#039;inputField&#039;);tvcOpenChooser(x,y,u,f);"></td><td align="left"><a href="javascript:resetF0();">Reset</a



написал код в но он почему то не работает В чем ошибка ?
Код:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <TrayConstants.au3>
#include <Misc.au3>
#include <MsgBoxConstants.au3>
#include <IE.au3>

Global $sUrl = 'http://enoviaplm.kla-tencor.com/ematrixprd/tvc-action/beginSearch?searchConfig=tvc%3Asearchconfig%3Atva%3Acommon%2FGeneralSearch.xml&searchPageRenderer=com.technia.kla.search.render.WithRecentObjectsSearchRenderer';url
Global  $oIE, $oTxt, $oBtn
$SN = 123

    $oIE = _IECreate( $sUrl,1,1,1)
    $HWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState($HWND, "", @SW_MAXIMIZE)
    ConsoleWrite($SN & @LF)
Do

		 _IELoadWait($oIE)
		 ConsoleWrite($sUrl)
    $oTxt = _IEGetObjById($oIE,'F0_input')
     ConsoleWrite($SN & @LF)
    _IEFormElementSetValue($oTxt,$SN)
    _IELoadWait($oIE)
Until 1
ConsoleWrite(@error & @LF)
 

Вложения

  • 1.png
    1.png
    64.8 КБ · Просмотры: 11

Garrett

Модератор
Локальный модератор
Сообщения
3,999
Репутация
967
Автор
S

shyra1976

Новичок
Сообщения
71
Репутация
0
я неправильно выразился Мне нужно ID = окна
id="F0_chooserButton - это кнопка после окна ввода
 
Автор
S

shyra1976

Новичок
Сообщения
71
Репутация
0
я пробова и
id="F0_wrapper
id="F0_input
id="F0_ac
id="F0_chooserButton
и не работает
 

inververs

AutoIT Гуру
Сообщения
2,135
Репутация
465
Попробуй ввести одно значение в 2 элемента: в F0_input и в F0_ac
Код:
$oTxt1 = _IEGetObjById($oIE,'F0_input')
$oTxt2 = _IEGetObjById($oIE,'F0_ac')
$oTxt1.value=...
$oTxt2.value=...
 

C2H5OH

AutoIT Гуру
Сообщения
1,473
Репутация
333
Всё работает с F0_ac
Просто при запуске сайта там выскакивают всякие сообщения о всплывающих окнах и блокируют возможность заполнения полей.
Вот так попробуй
Код:
#include <IE.au3>

$SN = "работает"
$oIE = _IEAttach("Search")
$oTxt = _IEGetObjById($oIE,'F0_ac')
_IEFormElementSetValue($oTxt,$SN)
 
Автор
S

shyra1976

Новичок
Сообщения
71
Репутация
0
спасибо

так работает
Код:
#include <IE.au3>

$SN = "работает"
$oIE = _IEAttach("Search")
$oTxt = _IEGetObjById($oIE,'F0_ac')
_IEFormElementSetValue($oTxt,$SN)
 
Верх