HTML 5 is spectacular! You can make your life easier within a tag! On the other hand, differences are vast among each browser. I am not even taking the evil browser into consideration. With a plain JavaScript file uploaded in your website directory, you will be able to apply the form submission rules you want, without having to worry about browsers and versions. You can download the file and consult the tutorial here: http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
Tales from the (Javas)crypt
Παρασκευή 24 Μαΐου 2013
Τρίτη 7 Μαΐου 2013
Embedding CSS in .jsp pages
Plain CSS is nice, easy, applicable, but for static pages only. When you want something more, embedding a CSS stylesheet into a .jsp page can work as an amazing taste choice. One of the first things you have to do, is to add the following code snippet to the .jsp code. This will allow direct access to the c: url command, which brings the path you need directly to your plate. (Caution: You need to save the CSS hosting folder under the web subfolder of your project *NetBeans users*)
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Then, you can easily apply the all time classic technique of calling a CSS stylesheet in your good 'old HTML (jsp :p) document.
<head>
<link type="text/css" rel="stylesheet" href="<c:url value="/extra_folder_name(if_any)/default.css" />" />
</head>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Then, you can easily apply the all time classic technique of calling a CSS stylesheet in your good 'old HTML (jsp :p) document.
<head>
<link type="text/css" rel="stylesheet" href="<c:url value="/extra_folder_name(if_any)/default.css" />" />
</head>
Τρίτη 31 Ιανουαρίου 2012
Δύο συχνά λάθη στην εγκατάσταση Apache, PHP και MySQL (Μέρος 1)
Ένα από τα πιο συχνά λάθη που μπορεί να παρουσιαστούν στο τέλος της εγκατάστασης του Apache 2.2.x ή οποιασδήποτε άλλης έκδοσης είναι το γεγονός ότι η πόρτα 80 (στην οποία ακούει ο server μας) χρησιμοποιείται ήδη. Δύο είναι οι συνήθεις ύποπτοι. Το Skype και οι SQL Server Reporting Services. Για να βρούμε τι από τα δύο ευθύνεται, ανοίγουμε ένα Command Line (Start => Πληκτρολογούμε cmd και ανοίγουμε το cmd.exe => netstat -abn |more). Αν το Skype ευθύνεται για το σφάλμα, θα το βρούμε εκεί. Αν παρ' όλα αυτά υπάρξει εγγραφή ότι η πόρτα είναι ανοιχτή, αλλά υπάρχει εγγραφή του τύπου "Can't retrieve information" ή κάτι παρεμφερές, τότε θα πλήκτρολογήσουμε netstat -ao, για να δούμε το id της διεργασίας (PID) που τρέχει στην πόρτα 80. Συνήθως, για τις SQL Server Reporting Services, εμφανίζεται το 4.
Απενεργοποίηση της πόρτας 80 για το Skype:
Πάλι από το Start, γράφουμε Services, βρίσκουμε στον κατάλογο αυτή με το αντίστοιχο όνομα, πατάμε δεξί κλικ και "Properties", στο "Startup Type" επιλέγουμε "Disabled", ενώ αν το "Service Status" είναι "Started", πατάμε "Stopped".
Εγγραφή σε:
Αναρτήσεις (Atom)