- protected URL: URL allowed only for those in whitelist
- Entry URL: URL allowed only by hyperlink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>hideHref</title> | |
</head> | |
<body> | |
<a href="javascript:;" onclick="javascript:linkFunc('http://www.google.com');">www.hiddenHref.com</a> | |
<script> | |
function linkFunc(link) { | |
window.open(link, '_self'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function restoreHtml(content){ | |
if(content == "" || $.trim(content) == ""){ | |
return content; | |
} | |
content = content.replace(/\</gi,"<"); | |
content = content.replace(/\>/gi,">"); | |
content = content.replace(/\&lt;/gi,"<"); | |
content = content.replace(/\&gt;/gi,">"); | |
content = content.replace(/\[\\\"\\\'][\\s]*javascript:(.*)[\\\"\\\']/gi, "\"\""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* COMMON */ | |
SELECT * | |
FROM Person | |
JOIN Worker | |
ON Person.id = Worker.id; | |
/* Oracle (Same as above) */ | |
SELECT * | |
FROM Person, | |
Worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
File Upload | |
on Spring project | |
*/ | |
/* | |
<form> in jsp need enctype attribute. For example: | |
<form name="formA" id="formA" method="post" enctype="multipart/form-data" action="[your_address]"> | |
... | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<c:forEach items="${list}" var="item" varStatus="stat"> | |
<!-- varStatus has index attribute that counts automatically --> | |
<c:if test="${stat.index == 0}">the first item</c:if> | |
<a href="${item.link}" <c:if test="${(item.prop1 == 'A') || (empty item.prop1)}"> attr1="val1" </c:if>> | |
<!-- src can use the value --> | |
<img src="/file/${item.prop2}" alt="${item.prop3}" /> | |
</a> | |
</c:forEach> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* If you click 'All' checkbox, other checkboxs are cancelled. | |
*/ | |
/* HTML Sample Code: Checkboxs which contains 'All' checkbox. */ | |
// <input type="checkbox" name="hdBox" id="hdBoxAll" value="30000" onclick="checkHdBoxes(this);" checked /><label for="hdBoxAll">전체</label> | |
// <input type="checkbox" name="hdBox" id="hdBox1" value="30110" onclick="checkHdBoxes(this);" /><label for="hdBox1">지역1</label> | |
// <input type="checkbox" name="hdBox" id="hdBox2" value="30140" onclick="checkHdBoxes(this);" /><label for="hdBox2">지역2</label> | |
// <input type="checkbox" name="hdBox" id="hdBox3" value="30170" onclick="checkHdBoxes(this);" /><label for="hdBox3">지역3</label> | |
// <input type="checkbox" name="hdBox" id="hdBox4" value="30200" onclick="checkHdBoxes(this);" /><label for="hdBox4">지역4</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var UserAgent = navigator.userAgent; | |
if (UserAgent.match(/iPhone|iPod|Android|Windows CE|BlackBerry|Symbian|Windows Phone|webOS|Opera Mini|Opera Mobi|POLARIS|IEMobile|lgtelecom|nokia|SonyEricsson/i) != null || UserAgent.match(/LG|SAMSUNG|Samsung/) != null) { | |
location.href = "/mobile/index.html"; | |
} |
NewerOlder