//18.12.9  변경사항

chrome 버전 70.0.3538.110(공식 빌드) (64비트) 에서는, 아래처럼 하면

chrome 은 열리지만 IE의 url 이 열리지는 않음.


이유 : 최신 chrome에서는, ChromeHTML URL Protocol Handler 가 더 이상 지원되지 않아서.

 (출처 : https://bugs.chromium.org/p/chromium/issues/detail?id=413236 )


---------------------

//18.10.15


IE에서 open된 url을 쉽게 chrome에서 여는 방법

즉,  IE의 즐겨찾기를 클릭하면, 자동으로 IE에서 보고 있던 URL이 chrome에서 열린다.

(작은 팝업창이 잠깐 생겼다가 사라지는데 이건 정상동작임)


* 설치방법:

1. 첨부파일 설치

chrome.zip


2. IE에서 다음 URL을 열어서 즐겨찾기에 추가

 (-> 그래야 즐겨찾기 아이콘이 chrome꺼로 보여서 보기좋음)

https://www.google.com/intl/ko_ALL/chrome/


3. 위 즐겨찾기의 URL을 아래로 변경

javascript:q=location.href;void(myWindow=open('ChromeHTML:// '+encodeURI(q),'_blank','width=200,height=200'));void(myWindow.close());


추가옵션------

현재 IE창을 닫고 chrome을 열 수 있는 javascript

(IE창을 닫을지 묻는 팝업창에서 Yes를 선택하면 IE창을 닫고 chrome을 열고, No를 선택하면 IE창은 그냥 두고 chrome을 연다)

javascript:q=location.href;void(close());void(myWindow=open('ChromeHTML:// '+encodeURI(q),'_blank','width=200,height=200'));void(myWindow.close());



4. 즐겨찾기의 이름을 Open in URL 로 변경





* 사용 환경 :

- IE version : 11.0.9600.19129CO    Update versions: 11.0.85(KB4457426)

- chrome version : 버전 69.0.3497.100(공식 빌드) (64비트)

- OS : Win 7 64bit




참고 URL: 

How To Launch A URL In Google Chrome

https://www.adamfowlerit.com/2015/05/how-to-launch-a-url-in-google-chrome/


Posted by 세모아
,

. Hostinger의 Website - auto installer에서  mediawiki 설치

  (mediawiki 버전이 1.23.6 에 주의)


. Advanced PHP Configuration 에서  php 5.5로 변경

d

Extension:Mantle 설치 (LocalSettings.php 수정 포함) :
    https://www.mediawiki.org/wiki/Extension:Mantle

Extension:MobileFrontend 설치 (LocalSettings.php 수정 포함) :
   https://www.mediawiki.org/wiki/Extension:MobileFrontend
. 모바일기기에서 보면 정상 으로 보임.



* 설치후 최종화면



Posted by 세모아
,

모바일 애플리케이션 디버깅 시에 힘든 점 중의 하는 mouse와 touch 이벤트 제어에 관한 것.


이벤트 속도  : click 보다 touch 이벤트가 빠름


컴퓨터 브라우저에서는 touch 이벤트를 인식할 수 없어서 분제 발행

이 분제 해결하려면, javascript 이용해 touch 이벤트를 동일한 mouse 이벤트로 대체.


Touche 이용해서 모든 touch 이벤트를 click 이벤트로 재매핑.

스크립트를 다운로드하여 javascript 안에 추가해주면 됨.

https://github.com/davidcalhoun/touche



Posted by 세모아
,

* minify

http://www.minifyjs.com/javascript-compressor

http://jscompress.com

http://refresh-sf.com/yui


축소된 파일을 원복

http://jsbeautifier.org    : JS Beautifier

'Programming > Web' 카테고리의 다른 글

모바일 앱에서 Touch vs Mouse 이벤트  (0) 2014.11.21
감사합니다 이미지  (0) 2014.02.04
공익웹 아이디어 & Google map api 활용사례  (3) 2012.12.06
Posted by 세모아
,

출처: apple 고객만족도 조사의 마지막 페이지




Posted by 세모아
,

Drones+ 아이폰앱 제작자인 Josh Begley의 작품.

(Drones+에 대한 한국기사: http://www.bloter.net/archives/136377)



출처: http://prisonmap.com/about


About

Prison Map is not a map -- it's a snapshot of the earth's surface, taken at various points throughout the United States. It was made by Josh Begley, a graduate student studying Interactive Telecommunications at New York University.

* * *

The United States is the prison capital of the world. This is not news to most people. When discussing the idea of mass incarceration, we often trot out numbers and dates and charts to explain the growth of imprisonment as both a historical phenomenon and a present-day reality.

But what does the geography of incarceration in the US actually look like? Prison Map is my attempt to answer that question.




The project came about in a Data Representation class with Jer Thorp at NYU. It begins from the premise that mapping the contours of the carceral state is important. A number of people and organizations have done excellent work in this regard. Among them are the Prison Policy Initiative and Prisoners of the Census. Over the past few years, they have culled together a database of seemingly mundane but hard-to-locate information: the latitude and longitude of every carceral facility in the United States (currently with the exception of WA, WV, WI, and WY). Their locator tool, which aims to identify correctional facilities counted in the 2010 census for the purposes of accuracy and redistricting, is the first database I know of to include state and federal prisons alongside local jails, detention centers, and privately-run facilities. You can explore their facility locator here.

When using the tool, however, it was hard for me to get a sense of volume -- what does it mean to have 5,000 or 6,000 people locked up in the same place? What do these carceral spaces look like? How do they transform (or get transformed by) the landscape around them?

In order to begin answering some of these questions, I started playing with satellite imagery. The Google Maps API allows you to pass any latitude and longitude into its Static Maps service, specifying parameters such as format and zoom level, and it will spit back an image of that particular location. With Jer's help, I wrote a simple Processing sketch that would grab image tiles at various lat/lons, save them as a .jpg file, and cycle through all 4,916 facilities:

String[] prisons;

void setup() {
}

void draw() {
  prisons = loadStrings("prisons-latlon.csv");
  for(int i = 0; i < prisons.length; i++) {
    String[] values = split(prisons[i], ",");
    String lat = values[0];
    String lon = values[1];
    String id = values[2];
    PImage test = getSatImage(lat,lon);
    test.save("facility" + id + ".jpg");
  }
  
}

PImage getSatImage(String lat, String lon) {
    String url = "http://maps.googleapis.com/maps/api/staticmap?center=" + lat + "," + lon + "&zoom=
    16&scale=1&size=640x640&maptype=satellite&sensor=false&junk=.jpg";
    return(loadImage(url));
}

Not all of the coordinates are perfect. Also, because there are so many images, the webpage takes quite a while to load. For this reason, I've only included about 700 (14%) of the best photos. If you want to see the entire data set, you can do so here.

Questions or comments? Email me: josh.begley[at]nyu.edu.


Posted by 세모아
,

출처 [ASP,ASP.NET,PHP,JSP,JavaScript,Database 등 웹개발자 모임] | tlsgidgh

원문 http://cafe.naver.com/webdeveloper/4014

Taeyo's ASP.NET

   강좌 최초 작성일 : 2005년 07월 29일
   강좌 최종 수정일 : 2005년 08월 01일

   작성자 : Taeyo(김 태영)
   편집자 : Taeyo(김 태영)

   강좌 제목 : DataGrid를 간단하게 Excel로 변환하기

강좌 전 태오의 잡담>

세월은 정말로 빠릅니다. 어느덧 사이트를 운영한지도 만 7년이 훌쩍 넘어버렸네요.
7년 4개월째라니... 거 참..

과연 3년 뒤에도 사이트는 존재하고 있을까요? 그랬으면 하는 바램입니다.


저번 강좌에서 여러분은 ASP.NET 페이지가 이미지로 둔갑하는 멋진 액숀을 보셨습니다. 이번 강좌에서는 그 지식을 기반으로 해서, DataGrid의 내용을 아주 쉽게 Excel로 다운로드 시키는 방법에 대해서 알아보고자 합니다.

참고로, 이 글은 http://azamsharp.net/DataGridExport.htm의 컬럼을 참고로 하여 재 작성한 것임을 밝힙니다.

단, 이번 강좌에서 다루는 방법은 아주 단순하고 빠르게 DataGrid의 데이터를 추가적인 변경작업이나 필터링없이 Excel로 단순 출력하고자 하는 경우에만 유용한 방법입니다. 그 외의 추가적인 요구사항이 있을 경우에는 이 방법을 사용할 수 없을 것입니다. 어떤 추가적인 처리가 필요한 경우에는 www.codeproject.com과 같은 사이트에서 ASP.NET에서 엑셀을 제어하는 샘플 소스들을 구해서 그를 응용하여 구현하셔야 할 것입니다. 물론, 그 경우에는 구현이 간단하지도 않겠죠?

하지만, 간단한 수준의 엑셀 출력이라면 그런 복잡한 방법을 사용하지 않고도 가능합니다. 왜냐하면, 최신 Excel 어플리케이션은 HTML 태그를 인식하기 때문입니다. 근데, 말입니다. HTML을 지원하기 시작한 Excel의 버전이 몇 부터인지는 죄송하게도.. 잘 모르겠습니다. ㅜㅜ(아마도 Excel 2002부터가 아닌가 하는데..) 혹시, 아시는 분이 있다면 연락주시면 바로 여기에 추가적으로 기입하도록 하겠습니다.

먼저, 엑셀이 HTML을 지원한다는 것을 확인해보는 것으로 시작해 보도록 하겠습니다. 이를 위해서, 여러분이 매우 자주~ 습관적으로 편하게~ 임시 데이터를 저장하는 장소인 [바탕화면]에 다음과 같은 HTML 태그들을 갖는 html 페이지를 하나 만들어 주세요.     

<table>
    <tr>
        <td>아이디</td>
        <td>이름</td>
        <td>성별</td>
    </tr>
    <tr>
        <td>taeyo</td>
        <td>김태영</td>
        <td>남</td>
    </tr>
    <tr>
        <td>queeny</td>
        <td>욘쟈</td>
        <td>여</td>
    </tr>
    <tr>
        <td>hyunny</td>
        <td>김영현</td>
        <td>남</td>
    </tr>
    <tr>
        <td>vangelis</td>
        <td>성지용</td>
        <td>남</td>
    </tr>
    <tr>
        <td>dukyoung</td>
        <td>김덕영</td>
        <td>남</td>
    </tr>
</table>

그리고, 이 파일을 test.htm 이라고 저장합니다. ^^ 저장이 되셨다면, 이를 Excel 프로그램을 이용해서 열어보세요 ^^ 그러면, 다음과 같이 멋들어지게 Excel로 말끔하게 열리는 것을 볼 수 있을 것입니다.

멋지죠? 여기까지만 설명드려도... 오호라, 이렇다면 그리드의 데이터를 엑셀로 출력하는 것은 정말로 쉽겠구나 하시는 분들이 있죠? 여기 저기서 많이 보이네요.. 하~ 정말이지. 너무 쉬운듯 했네요. 이런 쉬운 내용을 강좌로 올리다니 배신이야 하시는 분들도 조금 보이고.. ㅠㅠ

그렇군요... 그렇다면, 굳이 더 진행을 하지 않아도 될 듯 합니다.






라고 끝을 내면... 허걱!!! 매우 곤란한 지경에 빠질 수 있다는 사실을 압니다. 잠깐의 장난에 대해서도 여러분의 강력한 포스가 느껴지는 군요..

그렇다면, 계속해 보겠습니다. ^^ 방법은 다음과 같습니다. 엑셀이 HTML을 지원하니, DataGrid의 결과 HTML을 얻어서 이를 엑셀로 둔갑시켜 다운로드 시키는 것입니다. 저번 강좌에서 ASP.NET 페이지를 이미지로 둔갑하는 것을 해 보았으니, ASP.NET 페이지를 Excel로 변환하는 것 또한 어렵지 않을 것이라는 것을 아실 것입니다. 문제는 DataGrid의 데이터를 HTML로 얻어내는 것이지요.

하지만, 이 또한 어렵지 않습니다. 왜냐하면, 모든 ASP.NET 서버 컨트롤들은 그 컨트롤이 보유하고 있는 데이터를 기본적으로 HTML로 출력하기 때문입니다. 우리는 DataGrid 컨트롤의 RenderControl()라는 메서드를 이용해서 그러한 데이터를 얻어낼 수가 있습니다. 그리고, 그것을 브라우저를 통해서 화면에 다운로드 시킬 수 있죠.

그렇다면, 소스를 한번 볼까요? 일단, 테스트를 위해서 작성한 웹 폼의 디자인은 다음과 같습니다. DataGrid 컨트롤 하나와 Button 컨트롤 하나죠~ 덜렁~

그리고, 제가 작성한 코드 비하인드 코드는 다음과 같습니다.     

public class GridExportTest : System.Web.UI.Page
{
    protected System.Web.UI.WebControls.DataGrid DataGrid1;
    protected System.Web.UI.WebControls.Button Button1;

    private void Page_Load(object sender, System.EventArgs e)
    {
        SqlConnection con = new SqlConnection();
        con.ConnectionString = "server=.;database=pubs;uid=***;pwd=***";

        SqlCommand cmd = new SqlCommand("Select * from Authors", con);
        SqlDataAdapter a = new SqlDataAdapter(cmd);

        DataSet ds = new DataSet();
        a.Fill(ds);

        DataGrid1.DataSource = ds;
        DataGrid1.DataBind();
    }

    private void Button1_Click(object sender, System.EventArgs e)
    {
        Response.Clear();
        Response.AddHeader("content-disposition", "attachment;filename=DataGrid.xls");
        Response.ContentType = "application/vnd.xls";

        System.IO.StringWriter stringWriter = new System.IO.StringWriter();
        System.Web.UI.HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
        DataGrid1.RenderControl(htmlWriter);

        Response.Write(stringWrite.ToString());
        Response.End();
    }
}

설명을 일단 간단하게 드리자면, 페이지가 로드될 경우 DataGrid에다가 MS-SQL 서버의 Pubs 데이터베이스에 있는 데이터를 로드 하구요. Excel Download라는 버튼이 눌릴 경우, 포스트백과 동시에 DataGrid의 데이터를 얻어와서 그 것을 엑셀 형식으로 다운로드 시키는 것입니다.

코드를 모두 작성하셨다면, 실행하여 결과를 보도록 하세요 ^^

그러면, 위와 같이 엑셀 다운로드 창이 뜨구요. [열기] 버튼을 누르면 뜨거운 열기를 뿜어대며 다음과 같이 Excel 응용 프로그램이 뜨는 것을 보실 수 있을 것입니다.

멋지죠? 또한, 간단하죠?

오오.. 뭔가 뜨거운 기운이 느껴집니다.

그렇다면, 이제 코드를 살펴보도록 하겠습니다. 핵심이 되는 코드는 역시나 Button1_Click 이겠죠?

우선, 버튼이 클릭될 경우에는 저번 강좌에서 설명드렸던 것처럼, Response.Clear() 메서드를 통해서 버퍼에 존재할 지 모르는 모든 데이터를 제거합니다. 즉, 이제부터 작성되는 데이터만을 클라이언트의 브라우저로 내려보내기 위해서 기존 버퍼를 말끔히 비우는 것이지요. ^^

그 다음에는, Response.AddHeader("content-disposition", "attachment;filename=DataGrid.xls") 를 통해서 내려보낼 파일의 이름을 DataGrid.xls라고 지정합니다. 반드시 필요한 코드는 아니겠지만, 이렇게 명칭을 주는 것이 파일을 받아보는 사용자 입장에서는 더욱 분간이 쉬울 것입니다. 만일, 이 한 줄의 코드가 없다면 사용자는 aspx 파일 확장자를 갖는 Excel 파일을 보게 될테니까요 ^^

Response.ContentType = "application/vnd.xls"는 현재 내려보낼 데이터의 형식을 지정해 주는 부분입니다. 이 코드를 통해서 지금부터 내려보낼 데이터는 엑셀(Excel) 데이터라는 것을 클라이언트 브라우저가 인식할 수 있게 됩니다. ^^

자. 여기까지의 코드로 엑셀을 내려보내기 위한 환경적인 준비는 모두 된 것 같네요. 그렇다면, 이제부터는 실제로 Excel을 위한 데이터를 내려보낼 차례입니다.

무엇보다 먼저,데이터를 문자열로 기록하기 위한 클래스인 StringWriter의 개체가 필요할 것입니다. System.IO.StringWriter stringWriter = new System.IO.StringWriter()는 이를 위해 StringWriter 개체를 생성하는 코드입니다.

그리고, HTML 관련 문자 및 텍스트를 순차적으로 쓰기 위해 필요한 클래스인 HtmlTextWriter 클래스 인스턴스를 생성합니다. 이는 생성자의 인자로 방금 앞에서 만들어 둔 StringWriter 개체를 사용하게 됩니다.

DataGrid1.RenderControl(htmlWriter)는 DataGrid의 HTML 출력 렌더를 HtmlTextWriter에 기록하는 작업을 수행합니다. 이로써, 우리는 그리드의 출력을 HtmlTextWriter에 저장할 수 있게 됩니다. 이 작업이 핵심이라 볼 수 있겠네요 ^^

이제 마지막으로, DataGrid의 출력결과 HTML을 Response.Write(stringWrite.ToString())를 통해서 문자열로 브라우저의 화면에 출력합니다. 그러면, 이 모든 HTML 데이터는 실제로는 HTML 태그이지만, 엑셀 타입 형식으로 클라이언트에게로 내려가게 될 것입니다. ^^

생각보다 대단히 간단합니다. 원하는 컨트롤의 출력 HTML을 그대로 브라우저를 통해서 내려주면서, 파일의 형식만을 바꿔주면 되는 것이죠. 같은 방식으로 DataGrid의 출력물을 Excel이 아닌 Word 파일로도 내려보낼 수 있습니다. 왜냐하면, Microsoft Word도 HTML을 인식하거든요. ^^

말이 나온 김에 한번 해 볼까요?

기존의 코드에서 Response.AddHeader() 부분과 Response.ContentType을 주는 부분을 Excel이 아닌 Word 로 바꿔주기만 하면 간단하게 해결이 됩니다. ^^ 다음과 같이 말이죠 ^^     

    private void Button1_Click(object sender, System.EventArgs e)
    {
        Response.Clear();
//     Response.AddHeader("content-disposition", "attachment;filename=DataGrid.xls");
//     Response.ContentType = "application/vnd.xls";

        Response.AddHeader("content-disposition", "attachment;filename=DataGrid.doc");
        Response.ContentType = "application/vnd.word";


        System.IO.StringWriter stringWriter = new System.IO.StringWriter();
        System.Web.UI.HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
        DataGrid1.RenderControl(htmlWriter);

        Response.Write(stringWrite.ToString());
        Response.End();
    }
}

코드를 모두 작성하셨다면, 실행하여 결과를 보도록 하세요 ^^. 그리드의 출력모습은 동일하겠지만, 버튼을 클릭할 경우 이번에는, 엑셀 다운로드 창이 아닌 워드 다운로드 창이 뜨는 것을 보실 수 있을 것입니다.

그리고, [열기] 버튼을 누르면 매우매우 뜨거운 열기를 마구마구 뿜어대며 다음과 같이 워드 응용 프로그램이 실행되어 그리드가 출력되는 것을 보실 수 있을 것입니다.

재미있죠???

다시 한번 강조하지만, 이 방법은 DataGrid의 출력 결과를 간단하게 엑셀이나 워드로 Export하고자 하는 경우에만 사용할 수 있습니다. 즉, 매우 제한적인 상황에서만 사용이 가능한 방법이라는 것이죠. 하지만, 그렇다 하더라도 상당히 유용하게 써먹을 수 있을 것입니다. ^^ 의외로 단순 엑셀 출력을 요구하는 경우는 많으니까요 ^^;

그런데, 안타까운 것은 대부분의 경우 프로젝트 시, 클라이언트들은 말입니다. 설계 시에는 단순 출력만 되면 된다고 말했으면서도, 막상 이렇게 만들어주면 더 추가적인 기능을 요구하는 경우가 많다는 것입니다. 쩝... ㅜㅜ 해서, 의외로 엑셀을 더 세밀하게 제어해야 할 필요가 있는 경우도 많을 것입니다. 그 때에는... 어떻게 해야 할까요?

그때는 홧팅을 해야 할 것입니다. ^^
마음을 가라앉히고, http://www.codeproject.com을 살펴주는 센스!!도 필요할 것이구요 ^^

그럼 다음 시간에 또 뵐께요~ 


Posted by 세모아
,

출처: http://blog.naver.com/zsssd/150021318263


옛날에 썼던 글이네요.. 어느 분이 퍼가셨던거 찾아서 올립니다.

 

 

김호 책을 보다가 전에 봤지만 써보지 않았던 mysqli 에 관한 이야기가 있길래 테스트해 보았습니다. 

1. mysql 함수로 사용했을 경우 

소스코드 : 

<? 
$start = microtime(); 
$link = mysql_connect($host,$user,$pw) or die(mysql_error()); 
mysql_select_db($db) or die(mysql_error()); 
$result = mysql_query("select * from member limit 10") or die(mysql_error()); 
echo "<xmp>"; 
while($row = mysql_fetch_assoc($result))$out[] = $row; 
for( $i=0,$cnt=count($out) ; $i < $cnt ; $i++ ){ 
        $rank = $out[$i]['rank']; 
        $name = $out[$i]['name']; 
        echo "$rank $name \n"; 

echo "</xmp>"; 
mysql_close($link); 
$end = microtime(); 
$time = $end - $start; 
echo $time; 
?> 
0.002698 



2. mysqli를 객체지향으로 사용했을 경우 

소스코드 : 

<? 
$start = microtime(); 
$my_db = new mysqli($host,$user,$pw,$db); 
if ( mysqli_connect_errno() ) { 
        echo mysqli_connect_error(); 
        exit; 

$result = $my_db->query("select rank,name from member limit 10") or die($my_db->error); 
while($row = $result->fetch_assoc())$out[] = $row; 
$result->close(); 
echo "<xmp>"; 
for( $i=0,$cnt=count($out) ; $i < $cnt ; $i++ ){ 
        $rank = $out[$i]['rank']; 
        $name = $out[$i]['name']; 
        echo "$rank $name \n"; 

echo "</xmp>"; 
$my_db->close(); 
$end = microtime(); 
$time = $end - $start; 
echo $time; 
0.001557 
?> 



10건을 쿼리했을 경우 
기존방식처럼 mysql 를 사용했을 경우 0.002698 
mysqli를 사용했을 경우 0.001557 

1000건 쿼리했을 경우 
기존방식처럼 mysql 를 사용했을 경우 0.156648 
mysqli를 사용했을 경우 0.052507 

결론 : mysqli를 사용하는 것이 속도가 훨씬 빠릅니다.


Posted by 세모아
,

1장의 이미지로 표현된 HTML5 역사


출처: http://walyou.com/html5-infographic/


TheHistoryofHTML5 4ffc89a1614e6 w650 The History of HTML5 in Infographic

Posted by 세모아
,



Posted by 세모아
,

It's a permission-related error. Set write permissions for web user to the folder templates_c.
To set permissions in Windows:
- right-click on your folder, go to Properties -> Security
- add user named UISR_<machine name> (if don't exists)
- and assign Full Permissions for this user.
- Then click OK.

'Programming > Web' 카테고리의 다른 글

Firefox Add-in 설정 : Firebug  (0) 2012.10.26
javascript로 php 호출하여 파일 업로드하기  (0) 2012.10.01
JavaScript 공부  (0) 2012.08.27
Posted by 세모아
,

* 목적: redmine의 CKEditor plug-in에 image upload 기능 추가하기


* 테스트 항목

  : javascript에서 html 파일을 거치지 않고, php로 이미지 파일 업로드하기

 1. CKEditor에  파일(이미지) 찾기 기능 추가     -> 완료

 2. win7에서 IIS7에서 jquery 이용하여 php 호출

 3. php에서는  이미지 업로드




동적으로 jquery.js를 삽입하기


'Programming > Web' 카테고리의 다른 글

php- failed to open stream: Permission denied 발생시  (0) 2012.10.02
JavaScript 공부  (0) 2012.08.27
Eloquent JavaScript (Free ebook)  (0) 2012.08.10
Posted by 세모아
,

JavaScript 공부

Programming/Web 2012. 8. 27. 16:47

출처: http://www.w3schools.com/js/default.asp


<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
//document.getElementById("demo").innerHTML=Date();
document.getElementById("demo").innerHTML="Test";
}
</script>
</head>
<body>

<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>

<button type="button" onclick="displayDate()">Display Date</button>

</body>
</html>


Posted by 세모아
,

http://eloquentjavascript.net/


Free ebook- Eloquent JavaScript.zip


Eloquent JavaScript

A Modern Introduction to Programming

by Marijn Haverbeke

Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general.

A concise and balanced mix of principles and pragmatics. I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript!
Brendan Eich, the man who gave us JavaScript

The book exists in two forms. It was originally written and published in digital form, which includes interactive examples and a mechanism for playing with all the example code. This version is released under an open license.

I have published a revised version of the book on paper. The structure of this version remained largely the same, but the whole text has been thoroughly edited and updated. You can order from Amazon here. There is still an interactive coding environment for this version, as a separate page. Errata are here.



Posted by 세모아
,

출처 : http://islet4you.tistory.com/80


이미지 파일만 업로드하도록하는 자바스크립트

function attach(obj) {
    var val = obj.value;
 var point = val.lastIndexOf('.');
 var temp_filetype = val.substring(point+1,val.length);
 var filetype = temp_filetype.toUpperCase()

 if (filetype == 'JPG' || filetype == 'GIF' || filetype == 'BMP')
 {
 
  return true;
 }
 else
 {
   alert("이미지 파일(JPG, GIF, BMP)만 올릴 수 있습니다.");
  //파일폼 초기화
  obj.outerHTML = obj.outerHTML;   //file 개체를 초기화하는 부분
  return false;
 }
 
}

Posted by 세모아
,

출처:  http://blog.naver.com/sharkray1/130076285615


Posted by 세모아
,

출처: http://blog.naver.com/sharkray1/130076287370


Posted by 세모아
,

from : http://www.slideshare.net/zziuni/html5-8990015

Posted by 세모아
,