Latest Added Tutorials
HTML form
<div class="flex flex-col flex-auto min-w-0">
<div class="flex-auto p-6 sm:p-10 ">
<p-table #dt2 [value]="users" [loading]="loading" dataKey="id" [paginator]="true"
[rows]="10" [rowsPerPageOptions]="[10,25,50]" styleClass="p-datatable-gridlines"
[globalFilterFields]="filterColumns">
<ng-template pTemplate="caption">
<div class="flex">
<span class="p-input-icon-left ml-auto">
<i class="pi pi-search"></i>...Continue Reading
07-09-2022
HTML file
<div class="flex flex-col flex-auto min-w-0">
<!-- Main -->
<div class="flex-auto p-6 sm:p-10 ">
<p-table [value]="users" [lazy]="true" (onLazyLoad)="loadCarsLazy($event)" dataKey="id" [paginator]="true"
[rows]="10" [totalRecords]="totalRecords" [loading]="loading">
<ng-template pTemplate="header">
<tr>
<th *ngFor="let col of cols">
{{col.header}}
</th>
</tr>
<...Continue Reading
Change button text and background color then submit form:
<input class="btn btn-primary"
onclick="this.style.backgroundColor='red';
this.style.borderColor='red';
this.value='E-Posta Gönderiliyor... Bu işlem 1-2 dakika sürebilir.. Lütfen Bekleyiniz';
document.getElementById('mainForm').submit()" type="submit" value="Gönder" />...Continue Reading
24-07-2015
The request.setCharacterEncoding("UTF-8"); only sets the encoding of the request body (which is been used by POST requests), not the encoding of the request URI (which is been used by GET requests).
You need to set the URIEncoding attribute to UTF-8 in the <Connector> element of Tomcat's /conf/server.xml to get Tomcat to parse the request URI (and the query string) as UTF-8. This indeed defaults to ISO-8859-1. See also the Tomcat HTTP Connector Documentation.
<Connector ... URIEncoding="UTF-8">
See also:
Unicode -...Continue Reading
Question:
I have this in web.xml
<filter>
<filter-name>encoding-filter</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encoding-filter</f...Continue Reading
13-02-2015
If you design mobile web application, your layout should look like as follows:
Css:
//you can use other html elements that needs word-wrap
h1,h2,h3,h4,p,span,label{
word-wrap: break-word;
}
.page {
height: 100%;
padding: 10px;
}
.topic {
text-align: justify;
}
Html:
<div class='page'">
<div class='topic'>
<!--other html elements-->
</div>
</div>...Continue Reading
30-09-2013
Seems the minlength attribute for an input field doesn't work.
Is there any other attribute in HTML5 with the help of which I can set minimal length of value for fields? We can use the pattern attribute.......Continue Reading