Web/javascript2009/01/01 15:57

이번 프로젝트중 계속 말썽을 부렸던 ajax UI관련 라이브 러리들 ㅡㅜ

죄다 완성도 있는게 없다.

심지어 YUI까지도 나에게 쓰디쓴 고통을 주어 날 저 안드로 메다로 보내 주었고....

"대채 왜 API문서에 된다고 나와 있는 중요 기능중에 하나가 동작 안하냔 말이다!!!!"

그럼 본론으로 jQuery에서의 UI깨짐 문제와 그에 대한 대처를 알아보장!!


우선 UI가 깨진 것을 보자


dialog안의 내용이 왼쪽으로 심히 밀린다.
사실 내가 혼자서 지지고 볶고 할 프로젝트이면 이런거 ? 그냥 "IE를 버리세요"라고 말할텐데 ....  그럴수 없다는 것이 눈물이 난다.

그렇다. 이건 돈받고 하는 일이다..... 그런거에 IE6버려요 라고 할 수 도 없는 것 아닌가.......

더욱이 내가 "IE7,8에서는 잘 동작하는데 구형 IE6에서만 문제 입니다"라고 했더니 윗분이 "그래도 아직 사람들이 많이 쓰는 IE6에 맞춰야지 않겠어?"라고 말씀도 하시고 ㅡㅜ

그래서 프로젝트가 거의 마무리단계인 지금에서 와서 저 문제를 해결...

문제가 일어난 부분은 다음과 같다.

.ui-dialog-content

에서 문제가 일어났다.
원래는 dialog안에 padding을 넣는 효과일텐데.... 여기서 ....에러가 ㅡㅜ 덕분에 ㅡㅜ
아놔...


해결책


일단... 주석처리 -_-? nonono

padding을 margin으로 바꾼다.



하악하악 이제 남은건 "영어로" jQuery UI팀에 메일 보내는것?
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser
Web/javascript2008/11/07 16:09
출처 네이버 인쇄기능
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser
Web/javascript2008/10/21 13:15

International Language Support in JavaScript

JavaScript is built to support a wide variety of world languages andtheir characters – from the old US ASCII up to the rapidly spreadingUTF-8. This page clears up some of the difficulties encountered whendealing with multiple languages and their related characters.

JavaScript and Character Sets

When working with non-European character sets ("charsets"), you mayneed to make changes to the way your page references externalJavaScript(.js) files. Ideally, your .js files should saved in theUTF-8 character set in order to maximize its multilingual features —though you can use a different charset that supports your language, atthe potential expense of users who can't support it. Once your filesare saved as UTF-8, they must be "served" in the UTF-8 charset in orderto display correctly. There are a few ways to ensure this:

Serve the Web Page as UTF-8

If your page is already served as UTF-8 (i.e. Content-type=text/html; charset=UTF-8),you don't need to make any changes — all embedded files in an HTMLdocument are served in the same charset as the document, unlessexplicitly specified not to by you. You can do this by:

  • Use the Content-type meta tag — place at the TOP of your page's <head> section.

    <meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>)
  • Edit your webserver configuration to serve all documents as UTF-8
  • Send the Content-type header via your server-side scripts (i.e. PHP, ASP, JSP)

Use the charset attribute of the <script> tag

The easiest way to ensure your script is served as UTF-8 is to add acharset attribute (charset="utf-8") to your <script> tags in theparent page:

<script type="text/javascript" src="[path]/myscript.js" charset="utf-8"></script>

Modify your .htaccess files (Apache Only)

You can also configure your webserver to serve all .js files in theUTF-8 charset, or only .js files in a single directory. You can do thelatter (in Apache) by adding this line to the .htaccess file in the directory where your scripts are stored:

AddCharset utf-8 .js
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser
Web/javascript2008/10/10 03:26
window.showModalDialog('페이지명','pop','dialogwidth=400, dialogheight=600)

저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser
Web/javascript2008/10/10 03:08
작성자: dosuser
작성일: 2007.1. 24  24:22:54



function hover(){
 var obj=event.srcElement;
 obj.className="hover";
}
function hout(){
 var obj=event.srcElement;
 obj.className="hout";
}
function setHover(target){
 if(target==null || target==""){
  target=document.getElementsByTagName("body");
  target=target[0];
 }else{
  target=document.getElementById(target); 
  if(target==null) return;
 }
 
 trTags=target.getElementsByTagName("tr");
 var count=trTags.length;
 
 var r;
 for(r=0;r<count;r++){
  trTags[r].attachEvent("onmouseover",hover);  
  trTags[r].attachEvent("onmouseout",hout);
 } 
 
}
저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser