using .style(“font-size”, “1.5em”)
Month: 29/04/2020
Cách thức để truy cập dịch vụ web trong các ứng dụng với Grails
Tài liệu tham khảo https://guides.grails.org/grails-mock-http-server/guide/index.html
Git shows files come along a specific commit
Sometimes we need to check which files were come along with a given commit so as to verify which is the missing file, for instance. I bet some of you…
Checking existence of an element in an array with JavaScript
JavaScript is a loosely typed or a dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and reassigned) values…
(English) Understanding data type of dictionary in JavaScript
Rất tiếc, mục này chỉ tồn tại ở English.
How to build and render data in JSON format with Grails
Nowadays, an awful lot of web based applications are using JSON as a principal data to load and render information rapidly. While some applications store data into persistence volume as…
How to consume web services in Grails
Frankly, implementing RESTful API endpoints/services is a vital part of any modern web-based applications these days because of inherent advantages of this technology. However, how do you consume RESTful services…
Event Delegation trong jQuery
Event delegation là cách để giải quyết vấn vấn đề: trong những đoạn html được cập nhật bằng ajax (ajax updated content). Tham khảo https://learn.jquery.com/events/event-delegation/ https://blog.revathskumar.com/2013/10/jquery-on-avoid-losing-event-binding-for-ajaxed-contents.html https://aiocollective.com/blog/click-doesn-t-work-after-ajax-load-jquery/
How to change default server port for Grails application
As a web developer, all of us are aware of the number 8080 as the holy port nobody can forget. In Grails based applications, there is no exception at all.…