jQuery Alert Dialogs (Alert, Confirm, & Prompt Replacements)

http://abeautifulsite.net/blog/2008/12 ··· alogs%2F

Overview

This jQuery plugin aims to replace the basic functionality provided by the standard JavaScript alert(), confirm(), and prompt() functions. What’s the benefit of using custom methods? Well, a few good reasons, really.

Implementation

Include the following in the <head> section of your HTML document(s):

<!-- Dependencies -->
<script src="/path/to/jquery.js" type="text/javascript"></script>
<script src="/path/to/jquery.ui.draggable.js" type="text/javascript"></script>
<!-- Core files -->
<script src="/path/to/jquery.alerts.js" type="text/javascript"></script>
<link href="/path/to/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />

Make sure you update the path to the respective files. If you are already using the jQuery UI Draggable plugin (including the UI core), simply omit the link to jquery.ui.draggable.js.

For IE to display the dialogs properly, you’ll also need to make sure that you’re using Standards Mode.  Just add the appropriate DTD at the very top of your page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Usage

This plugin utilizes the $.alerts namespace, but there are three built-in shortcut functions that make implementation easier:

  • jAlert(message, [title, callback])
  • jConfirm(message, [title, callback])
  • jPrompt(message, [value, title, callback])

Unlike their native JavaScript counterparts, you can use HTML in the message parameter. To specify a newline, you can use either \n or <br />.

These methods do not return the same values as confirm() and prompt(). You must access the resulting values using a callback function. (See the demo for more details.)

Compatibility

This plugin requires jQuery 1.2.6 or above and has been tested to work in the following browsers:

  • Internet Explorer 6 & 7
  • Firefox 2 & 3
  • Safari 3
  • Chrome
  • Opera 9

Known Issues

  • ENTER and ESC keys (to accept/cancel) don’t work in WebKit browsers
  • The draggable plugin doesn’t currently work in Opera
  • IE6 acts a bit differently as position: fixed isn’t supported.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/07/01 15:02 2011/07/01 15:02
, ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6276

소프트웨어 개발? 웹 사이트 구현? 정도(正道)는 무엇인가?

개발자가 자리에 앉아서 근무하는 시간에 비례해서 개발OUTPUT이 잘 나오는걸까?
근무시간에 비례해 성과가 잘 나온다면 공장에서 단순작업하는 것과 다른 것이 무엇인가?
아침일찍 나와서 밤 늦게 들어가야 일한거 같고, 주말에라도 나와서 책상 차지하고 있어야 열심히 하는 것이라고 믿는다면, 그것이 소위 말하는 개발환경이라는 것인가?
개발에 몸담은지 10년이 다되어 가는데 아직도 그런 마인드가 갑/을을 떠나서 만연해있는데,  소위 요즘 말하는 smart 라는 단어를 사용하기 부끄럽지 아니한가?
UX 라는 말을 잘들 사용하지만, 사용자환경이란 실제 완성된 프로그램 혹은 웹사이트를
사용하게 되는 사용자층을 겨냥해야 하는 것이라 생각하는데  그 사용자층이 되어 보려고
노력은 해봤는지 의문스럽다.

고객이 정말 원하는게 무엇인지 유도해내는 것이 최우선이 아닐까? 그 다음에 구현이 있고~
아키텍쳐라는 개념은 아직 자리잡기 어려운 것일지도 모른다.
문서에 문서를 더하면 프로젝트가 완료되는 것이 아닌데, 문서의 노예가 되어가는 갑/을 구조는 참 2011년, 이 시점에서 너무 잘 어울리는 것일지도 모른다.

실용주의를 생각해야 할 것이다. 언제나 그러하듯 필요에 의해서 세상은 바뀌는것이기때문에~

프로젝트에 필요한건 정확한 일정을 예측해서, 체계적인 개발 방법을 유도하고, 합리적으로 일정을 이끌어 가는 것? ㅎㅎㅎ

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/07/01 11:27 2011/07/01 11:27
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6275


나는 20년 전에 경영자 그룹의 최고 경영자 후보자에 대한 논의에서
32세 때 큰 실패를 맛본 사람에 대해 평가하며
좋지 않은 징조라고 말한 적이 있다.
하지만, 오늘 다시 논의하게 된다면
‘실패한 경험이 없는 사람’을 가장 우려할 거 같다.
(I can imagine a group of executives 20 years ago discussing
a candidate for a top job and saying,
‘This guy had a big failure when he was 32.’ Everyone else would say,
‘Yep, that’s a bad sign.’ I can imagine that same group considering
a candidate today and saying,
‘What worries me about this guy is that he’s never failed.’)
-존 P. 코터( John P. Kotter)

미국항공우주국 나사에서는 후보자 채용 심사 시에
실패 경험을 매우 중요하게 고려하고 있습니다.
실패 경험이 없는 사람은 큰 어려움에 직면하면
쉽게 당황하고 혼란스러워하는 반면,
실패를 해본 사람은 중심을 잃지 않고 차분하게
대처할 가능성이 큰 것이 그 이유입니다.

When the NASA space program selects candidates,
they place great emphasis on previous failures.
This is because those who have never experienced failure will easily
become overwhelmed when coming across a difficult situation,
whereas those who have experienced failing will have
a better chance of dealing with the situation while keeping their composure.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/07/01 08:31 2011/07/01 08:31
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6274

한 명 뒤의 천 명

"제 눈에는 고객이
한 분으로 보이지 않습니다.
제가 고객에게 서비스를 올릴 때는
고객 뒤에 계신 천 명의 또 다른 고객을 염두에 둡니다.
그리고 고객은 제 일생에 단 한 번 만나는
귀중한 분입니다. 소홀히 할 까닭이 없습니다."


- 오세웅의《The Service 더 서비스》중에서 -


* '서비스'뿐만이 아닙니다.
모든 것은 한 사람에서 시작됩니다.
한 사람을 얻으면 천 사람을 얻을 수 있고
한 사람을 잃게 되면 천 사람을 잃게 됩니다.
육체의 눈이 아닌 마음의 눈(心眼)이 열려 있어야
앞에 있는 단지 한 사람을 바라보면서
그 뒤의 천 사람을 볼 수 있습니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/07/01 08:30 2011/07/01 08:30
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6273

2011.07.01 수영강습

어제 오랜만에 경진, 상철 만나서 용문시장 메밀집에서 시간가는줄 모르고 왁자지껄 ㅎㅎㅎ. 메밀집이 10시마감이라 늦지않게 집으로 왔다.

새벽에 눈을 떴는데 왜 일어났나 생각해보니 수영강습 갈 시간.
1초의 망설임 후 바로 수영장으로.
역시나 오늘도 날씨 덕분에.
출석률이 저조하여 어려운거 시키시는군 ㅋㅋㅋ.

모든 턴은 플립턴으로~

자유형 3바퀴, 자유형 5 바퀴, 자유형/배영 3 바퀴.
배영 플립턴은 뭐랄까...
물을 코로 원샷하는 기분.
한팔접영/평영 5바퀴, 자유형/평영 5바퀴, 한바퀴 걷고.
뭍으로 올라가 스타트 접영 50m 3 set. 25m 접영 계속~~~ 한 6번? ㅋㅋㅋ

그렇게 마무리 자유형 3 바퀴(실제로는 한바퀴 반? )로 마무리. 숨이 턱 끝까지 차오른다.
집에 오니 벼루는 발정기의 숨넘어가는 울음을!!! ㅋㅋㅋ
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2011/07/01 08:11 2011/07/01 08:11
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/6272


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2011/07   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Statistics Graph

Site Stats

Total hits:
182545
Today:
541
Yesterday:
506