Pass data from backend to javascript is done in many different ways. One of the most simple is to inject(<%= %>) value as function argument inside of script tag. Unfortunately this pattern has well known XSS vulnerability but in a little different form than same injection in html template.
Home » Posts filed under html
Showing posts with label html. Show all posts
Showing posts with label html. Show all posts
DOM element class - css reference or javascript reference?
Designer have used element class attribute for CSS styling for ages. Nowadays classes are also used in javascript selectors. This overlapping cause additional problems: Changes in js may cause broken design and changes in design may cause broken js. The last one may be hard to detect especially when design and css are handled by different person.
Clear upload file input field
Many web developers came to the problem that they are not able to change value of file input field from Java Script in the web application. There is no access to value field of file input tag because of security restriction. However there is a trick how to erase this field if you need it in your application.
Subscribe to:
Posts (Atom)Template Responsive Design
Label
Aneh Banget
Apresiasi
Artikel
Artis Unik
asmara
Berita Aneh
Berita unik
Blogging
Cerita Inspiratif
Christmas
Dahsyat
Dampak Media
Dewasa
Foto Unik
Free Download
Hewan Unik
Inspirational
Inspiring SMS
IT-related
Kesaksian
Kesehatan
Lucu
Misteri
motivasi
Motivational
Nama Allah
News
Olahraga Unik
orang terkenal
pengembangan diri
programming
Religi
Renungan
Resources
Second Coming
Sejarah
Selebriti
Seni
SEO
Sharing
Soal Asmara
Spiritual Reflection
Suara Hati
Tau Gak Sih
Tekno
Teknologi
Tempat Unik
Tips
Tips Unik
Tokoh
travel
Trik Kehidupan
True Love
True Story
Tumbuhan Unik
Unik
Wallpaper
Worship Video