AJAX

Computer 2008. 8. 13. 10:08

 1. 서버측

Function GetHTMLBin(URLaddress)

  Dim Http

  Set Http = Server.CreateObject("Microsoft.XMLHTTP")

  Http.Open "GET", URLaddress, False

  Http.Send

  GetHTMLBin = Http.ResponseText

  Set Http = Nothing

End Function

Function BinToText(varBinData, intDataSizeInBytes)    ' as String

  Const adFldLong = &H00000080

  Const adVarChar = 200

 

  Set objRS = CreateObject("ADODB.Recordset")
  objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong

  objRS.Open

  objRS.AddNew

  objRS.Fields("txt").AppendChunk varBinData

  BinToText = objRS("txt").Value

  objRS.Close

  Set objRS = Nothing

End Function


'HTMLBin = GetHTMLBin("http://localhost/DeciWeb/MPC/templates/Reports/comments/LoanComments.asp?View=OT_Loan")

'html = BinToText(HTMLBin,32000)

'response.Write html

 

2. 클라이언트 측


<script language="JavaScript">
    // PostXml
    function PostXml() {
        var req = new ActiveXObject("Microsoft.XMLHTTP");
 
        var str = "";
        str = str +" 0000000";
 
        req.Open("GET", "http://localhost/DeciWeb/MPC/templates/Reports/comments/LoanComments.asp?View=OT_Loan", false);
        req.Send(str);
 
//        var str = BinDecode(req.responseText);
          var str = req.responseText;
//        document.theForm.vHtml.innerHTML = str;
        document.getElementById("theComments").innerHTML = str;
    }
</script>
 
<script language="VBScript">
    '// BinDecode : 바이너리 -> 아스키 변환
    function BinDecode(byval binData)
        dim i, byteChr, str
 
        for i = 1 to LenB(binData)
            byteChr = AscB(MidB(binData,i,2))
            if byteChr > 127 then
                i = i + 1
                str = str & Chr("&H" & Hex(byteChr) & Hex(AscB(MidB(binData,i,2))))
            else
                str = str & Chr(byteChr)
            end if
        next
 
        BinDecode = str
    end function
</script>

이 글은 스프링노트에서 작성되었습니다.

Posted by leebaro
,
보통 VPC를 생성 할 때 하드 크기를 지정하면 변경할 수 없다.

하지만 아래의 툴을 사용하면 변경이 가능하다.

http://vmtoolkit.com/files/folders/converters/entry87.aspx
Posted by leebaro
,


위의 소스코드를 참고하면 된다.

필요한 부분은 <HTML> 태그와 @Page css 와 한글 인코딩 meta 태그를 신경 써주면 된다.
Posted by leebaro
,

첨부한 HTML 파일을 참고하면 된다.
Posted by leebaro
,

회사 컴퓨터 사양

Computer 2007. 10. 11. 15:23

주문제품

수량

가격

합계

씨게이트 SATA II 400G ST3400633AS 7200.10 (16M)

2

86,000

172,000
(172 point)

기가바이트 GA-G33-DS3R (G33/소켓775)

1

160,000

160,000
(160 point)

B-25 블랙 (시소닉 SS-300HS)

1

46,000

46,000
(46 point)

코어 2 쿼드 켄츠필드 Q6600 (2.40GHz/8M/1066MHz)

1

279,000

279,000
(0 point)

트윈모스 DDR2 SDRAM 2G (PC2-6400/800MHz)

2

128,000

256,000
(0 point)

SH-S183A 블랙 (DVD±RW/정품 벌크)

1

29,000

29,000
(0 point)

조립비

1

20,000

20,000

운송료

2

2,500

5,000

합계 (967,000 )

 

Posted by leebaro
,