Category: Coding
[issue/alpine] docker 20.10.2 -> golang:1-alpine3.14 error: make: go: Operation not permitted
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396 I got the same issue on docker 20.10.2 golang:1-alpine3.14 error: make: go: Operation not permitted golang:1-apline3.13 works
[Popup/Ajax] Tạo popup(modal/bootstrap) insert data bằng ajax và php
https://www.webslesson.info/2016/10/php-ajax-insert-data-in-mysql-by-using-bootstrap-modal.html video: Demo: http://demo.webslesson.info/insert-data-through-bootstrap-modal-by-using-ajax-php/ Nếu modal bị lưu data thì sài cách dưới How to reset the bootstrap modal when it gets closed and open it fresh again? Chỉnh to nhỏ popup thì: Popup to: Popup nhỏ:
[Js] Sử dụng Jquery để liên kết 2 select trong page.
use case của bài này, Sau khi bạn chọn (select 1) thành phố Hồ Chí Minh thì (select 2) sẽ list ra được các quận, huyện của TP HCM Links demo: http://jsfiddle.net/YPsqQ/ code html: Code Js
[Ajax/PHP] Cách để PHP trả Json Data về cho Ajax
Phần code php: Phần code ajax Demo https://makitweb.com/demos/return-json-response-ajax-using-jquery-php Conclusion In this tutorial, I showed how you can return the JSON response and handle it in jQuery AJAX. You can convert the PHP array in JSON format with json_encode() function and return as a response. Set dataType: ‘JSON’ when send AJAX request.
[JS] Lấy value hoặc text của option đã được chọn trong thẻ select bằng jquery hay javascript
1- val() – method returns the value of selected attribute value. 2- text()– method return String of selected option.
[Selenium] Undetected Selenium Webdriver – Làm sao trang web không nhận ra bạn đang sử dụng Selenium Webdriver!
Khi bạn biết selenium mà muốn code 1 thứ j đó hay ho để có thể làm hộ bạn như “Tự động tham gia meeting online, săn sale, săn voucher” .Nhưng đa số các trang web sẽ phát hiện ra bạn đang chạy selenium. Vậy phải làm sao? Mình code golang và đây là cách…
Đo kích thước browser của bạn là bao nhiêu!
[iframe/Grafana]Hướng dẫn nhúng iframe grafana đẹp xoá left menu
Link tham khảo https://stackoverflow.com/questions/5867985/full-screen-iframe-with-a-height-of-100 Mình sài ví dụ sau: I ran into the same problem, I was pulling an iframe into a div. Try this: The height is set to 100vh which stands for viewport height. Also, the width could be set to 100vw, although you’ll likely run into problems if the source file is…
Read More “[iframe/Grafana]Hướng dẫn nhúng iframe grafana đẹp xoá left menu” »
[Laravel] Hướng dẫn taọ 1 array từ việc tổng hợp nhiều Array lấy từ DB hay API
Ở ví dụ này sẽ khá hiểu: Đầu tiên bạn có table chứa thông tin Cha và đương nhiên 1 cha có nhiều conBạn thực hiện get dữ liệu của các Cha từ DB lên và mỗi cha sẽ có thông tin các con của họ. Ở đây mình ko dùng quan hệ 1 nhiều…
Read More “[Laravel] Hướng dẫn taọ 1 array từ việc tổng hợp nhiều Array lấy từ DB hay API” »