posted by 준치 2008. 9. 18. 21:56

간단한거 가지고 삽질을 했는데 body에서 load시에 스크립트를 호출하려 했으나 안됐다
그래서 밑에 소스를 넣으니까 실행이 됐다. 

여기서 startscroll 이게 함수명이다.

<script type="text/javascript">
window.attchEvent("onload",startscroll);
</script>

posted by 준치 2008. 9. 17. 13:14

아래 소스는 span태그 앞에 css를 이용하여 원하는 이미지를 앞에 위치하고
창크기를 조절할시에 밑으로 줄바꿈이 되는데
그것은 white-space:nowrap을 이용하여 한 문장을 선택했을때 줄바꿈이 되게 만든다..

문제가 있었는데 중간에 선택해야 밑에 떨어졌을때 이미지가 보였다.
그래서 span태그에 사이즈를 지정해서 문제가 해결됐다.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <STYLE TYPE="text/css">
 #boolet_tbl span {
 background: url(bl_div.gif) no-repeat 0 0.25em;padding-left: 13px;white-space:nowrap;
 }
</STYLE>
 </HEAD> <BODY>
  <table style="width:100%;" border="1px" id="boolet_tbl">
 <tr><td>
  <span style="width:10%;">인사과(10)</span>
  <span style="width:10%;">인사과(10)</span>
  <span style="width:10%;">인사과(10)</span>
  <span style="width:10%;">인사과(10)</span>
  <span style="width:10%;">인사과(10)</span>
 </td></tr>
  </table>
 </BODY>
</HTML>

posted by 준치 2008. 9. 12. 20:01

쉐어포인트 검색서버를 사용하다가 KeywordQuery로 값을 받아오는 단계에서
에러가 났다. 한마디로 어떤 클래스를 참조하는지 명시하라는 말이였다...삽질...

Scopes are usually used in search code. One of the very common errors when working with scopes in search code is as following:

"Calling GetScopeID from a non-Office server binary."

This error occurs when you instantiate the query object, for example:

KeywordQuery kwQuery = new KeywordQuery(site);

To resolve this issue, include the correct namespace when defining the kwQuery object, for example:

Microsoft.Office.Server.Search.Query.KeywordQuery kwQuery = new Microsoft.Office.Server.Search.Query.KeywordQuery(site)

When you skip the namespace, SharePoint tries to call the GetScopeID() from an assembly different than the one it should be using. This especially happens when both of the following namespaces are included in your code:

using Microsoft.SharePoint.Search.Query;
using Microsoft.Office.Server;