숨겨진/보이지 않는 요소에서 Microsoft AJAX jscript $ find가 작동하지 않습니까? 작동하지 않는 것 같지만 예상 된 동작인지 여부를 알 수 없습니다. asp.net은 false
로 설정 Visible
속성을 사용하여 컨트롤의 HTML을 생성하지 않기 때문에 당신이 false
에 컨트롤의 Visible
속성을 설정 한 경우
2
A
답변
4
, 다음 $find
는, 아무것도 찾을 수 없습니다. 하지만 css/javascript를 사용하여 컨트롤을 숨기는 경우 작동해야합니다.
+0
+1 내가 이것을 깨달을 때까지 –
0
DOM에 긍정적 인 요소가 있습니까 (예 : Visible = True)? 여기에 몇 가지 reference info 예상 동작과 같다 :
$find
실제로 findComponent
를 호출
Sys.Application = new Sys._Application();
window.$find = Sys.Application.findComponent;
findComponent: function _Application$findComponent(id, parent) {
/// <summary locid="M:J#Sys.Application.findComponent">Finds top-level components that were added through addComponent if no parent is specified or children of the specified parent. If parent is a component</summary>
/// <param name="id" type="String">The id of the component to find.</param>
/// <param name="parent" optional="true" mayBeNull="true">The component or element that contains the component to find. If not specified or null, the search is made on Application.</param>
/// <returns type="Sys.Component" mayBeNull="true">The component, or null if it wasn't found.</returns>
//#if DEBUG
var e = Function._validateParams(arguments, [
{name: "id", type: String},
{name: "parent", mayBeNull: true, optional: true}
]);
if (e) throw e;
//#endif
// Need to reference the application singleton directly beause the $find alias
// points to the instance function without context. The 'this' pointer won't work here.
return (parent ?
((Sys.IContainer.isInstanceOfType(parent)) ?
parent.findComponent(id) :
parent[id] || null) :
Sys.Application._components[id] || null);
},
관련 문제
- 1. jQuery find가 작동하지 않는 것 같습니다.
- 2. Microsoft Jscript Email Module?
- 3. 왜 ajax 요청이 작동하지 않습니까?
- 4. Firefox의 버튼 요소에서 텍스트 장식이 작동하지 않습니까?
- 5. AJAX UpdateProgress가 서버에서 작동하지 않습니까?
- 6. JQuery가 tr 요소에서 작동하지 않는 것을 찾았습니까?
- 7. 왜 $ .ajax (..)가 작동하지 않습니까?
- 8. Accordian ajax 컨트롤에서 JScript 런타임 오류가 발생합니다.
- 9. Microsoft JScript 런타임 오류 : 'ShowDatePicker'가 정의되지 않았습니다.
- 10. Rails/Ajax 상황에서 경고가 작동하지 않습니까?
- 11. std :: map find가 제대로 작동하지 않습니다.
- 12. Microsoft JScript 런타임 오류 : Object expected OnClientClick
- 13. Microsoft JScript 런타임 오류 : ASPx가 정의되지 않았습니다.
- 14. microsoft jscript 런타임 오류 개체가 예상 됨
- 15. Microsoft JScript 런타임 오류 : 개체 예상
- 16. Microsoft JScript 런타임 오류 : 'RequestCompleted'가 정의되지 않았습니다.
- 17. Microsoft Word - JavaScript/JScript ActiveX에서 텍스트 삽입
- 18. AJAX 컨트롤이 작동하지 않는 이유는 무엇입니까? (그리고 .net 4에 대한 아약은 작동하지 않습니까?)
- 19. Ajax 툴킷 탭 컨트롤이 Firefox에서 작동하지 않습니까?
- 20. Javascript AJAX 기능이 IE에서 작동하지 않습니까?
- 21. Jquery ajax 요청이 IE에서 작동하지 않습니까?
- 22. $ ajax-> link()가 Firefox에서 작동하지 않습니까?
- 23. Qooxdoo AJAX help - 이벤트가 작동하지 않습니까?
- 24. 왜 내 Ajax 게시 스크립트가 작동하지 않습니까?
- 25. 이 AJAX 양식이 왜 작동하지 않습니까?
- 26. AJAX 콘텐츠가 작동하지 않는 jQuery 탭 IE7
- 27. Ajax 스크립트가 로컬로 작동하지 않는 이유는 무엇입니까?
- 28. Jquery Ajax - Ajax가 작동하지 않는 양식 제출
- 29. JSON이 작동하지 않는 jQuery와 CodeIgniter AJAX
- 30. ASP.NET HTTP 처리기로 작동하지 않는 AJAX
은 왜 그냥 보이지 않는 요소와 함께 작동합니다 document.getElementById를 ("foo는")를 사용할 수 있습니까? – jfriend00
나는 jfriend00에 동의한다; getElementById 메소드의 단축키로 $ get을 사용할 수 있습니다. – Romhein
$ get, $ find, document.getElementById ("foo") 모든 CSS 요소가 적용됩니다 (display : none, visibility : hidden ..). .기타). –