본문 바로가기
반응형

javascript9

CSS , javascript 에서 로딩 지연이 발생할때 처리방법 asynchronously, async defer CSS , javascript 에서 로딩 지연이 발생할때 처리방법 css or javascirpt 에서 외부 URL 로 관련 자료를 불러올때, 지연이 발생하는 경우가 있다.google or bootstrapcdn 등등.. 우선 부트스트랩의 경우원래 아래와 같이 head 안에 들어가게 되는데.. .... 처리 방법은 아래와 같다. 구글 자바스크립트의 경우 async defer 을 넣어주면 된다. 추가 사항아래와 같이 적용이 가능합니다. 2018. 6. 26.
[자바스크립트] 입력한 글자가 숫자, 영어, 특수기호, 한글 인지 체크. 갑자기 스크립트를 체크하다가 숫자, 영어, 특수기호, 한글을 체크 해야 하는 부분을 찾았다. 나중에 유효하게 사용할 것 같아서..ㅎ function check_key(value) { var char_ASCII = value; //alert(char_ASCII); //숫자 if (char_ASCII >= 48 && char_ASCII =65 && char_ASCII=97 && char_ASCII=33 && char_ASCII=58 && char_ASCII=91 && char_ASCII=123 && char_ASCII 2009. 3. 27.
[2.0] 'System.Web.Mail.MailMessage'은(는) 사용되지 않습니다. 'System.Web.Mail.MailMessage'은(는) 사용되지 않습니다. 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202' 2.0으로 업그레이드 한 후에 컴파일을 하면서 이런 메세지가 뜨게 됩니다. 2.0 에서는 이 클래스가 제공되지 않고, System.Net.Mail.MailMessage 를 사용하시면 됩니다. 기존에 사용하던 MailMessage mailMessage = new MailMessage(); mailMessage.To = mailTo; //!< 수신자 mailMessage.From = mailFrom; //!< 송신자 mailMessage.S.. 2009. 3. 27.
[2.0] 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete.... 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete.This method is obsolete, it has been replaced by 'System.ConfigurationSystem.Configuration.ConfigurationManager.AppSettings' 2.0으로 업그레이드 한 후에 컴파일을 하면서 이런 메세지가 뜨는 경우가 있습니다. 물론 컴파일에는 문제가 없지만 웬지 찜찜한 마음이 들게 됩니다. 이것은 마이크로소프트사에서 어셈블리를 완전히 바꾼것 때문입니다. 이전 버전에는 "System.Configuation.ConfigurationSettings" 이 "System.dll" 이었는데 새 버전에서는 "Syst.. 2009. 3. 27.
[2.0] System.Web.UI.Page.RegisterStartupScript(string, string).. 'System.Web.UI.Page.RegisterStartupScript(string, string)'은(는) 사용되지 않습니다. 'The recommended alternative is ClientScript.RegisterStartupScript(Type type, string key, string script). 'http://go.microsoft.com/fwlink/?linkid=14202' 2.0으로 업그레이드 한 후에 컴파일을 하면서 이런 메세지가 뜨는 경우가 있는데요. 물론 컴파일에는 문제가 없지만 왠지 찜찜하게 느껴집니다. Page.RegisterStartupScript(string, string) 되어 있는 것을 Page.ClientScript.RegisterClientScriptBl.. 2009. 3. 27.
[IE8] IE8에서 작동되지 않는 document.all -> document.getElementById 변경 기존에 IE5,6,7 에서 document.all 을 사용하던 것은 IE8 에서 스크립트 에러가 발생하게 된다. document.all 은 IE 에서 기존에만 사용되던 방식. 다른 브라우저에서 사용이 되지 않는다. 정식 방법은 아래와 같이 수정을 해 줘야 한다. 단, document.all. 에서 배열일 경우 바꿔줘야 하는 방식이 다르다. 조금 신경을 써서 고쳐져야 한다. document.all 은 name와 id로 된것들의 모음 getElementById : 지정된 ID의 개체 1개 getElementsByName : 지정된 name의 개체 배열(여러개) 2009. 3. 25.
반응형