Code that runs when an object is fully loaded
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, jquery
- Lĩnh vực
- frontend
Hướng nghiên cứu
The issue names no repository files, tests, or entry points. Start by reproducing the dynamically inserted object and its jQuery load-listener setup, then define the expected completion behavior before identifying a suitable change and verification approach.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Let's say divSomeObject could be too large to fit in a rectangle that has been allocated for it.
It could have an image in it, so when the object is first created, we have no way of knowing whether or not the contents will fit in the box.
So let's have some code run when the object if fully loaded, using jQuery.
$(divSomeObject).on ("load", function () {
runSomeCode ();
});
But this isn't happening.
I've read all I can find on the web about this, but they seem to be concerned with objects that load when the page loads. There's no requirement that this happen at page-load time. Sometimes the objects appear dynamically while the app is running.
I've made sure the object is inserted in the DOM when we set up the listener for the "load" event.
Any suggestions welcome.
- Ngôn ngữ chính
- HTML
- Star
- 134
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scripting/Scripting-News
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
scripting/Scripting-News#353 · 6 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
scripting/Scripting-News#332 · 25 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
scripting/Scripting-News#362 ·
-
Matt is moved aside Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
scripting/Scripting-News#361 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
scripting/Scripting-News#360 · 1 bình luận · 1 reaction ·
Tất cả issue của scripting/Scripting-News
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
T: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[Super Editor][Chat] - Floating editor scaffold does not reset panel height after closing panel Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 bình luận ·