com4people

Thursday, March 15, 2007

AJAX SIMPLE DEMO & CODE (쪽지구현)

간단합니다.no,sendid,getid,memo,memo_type,send_date 이렇게 6개 항목을 만들고 철수가 영희에게 '안녕'이라고 쪽지를 보냈으면 sendid는 '철수' getid '영희' memo '안녕' memo_type '0' // 0은 안읽은 쪽지 1은 읽은쪽지 2는 삭제된 쪽지임 send_date '보낸시간' 이렇게 해둡니다. 그럼 영희가 접속하면 getid='영희' 이면서 memo_type='0'인걸 불러서 보여주면 되구요.쪽지 확인하고 난 후 memo_type='1'로 바꾸시면 더이상 그 메세지는 새로왔다고 뜨는일은 없을꺼구요.삭제는 직접 delete해주시던지 삭제는 않고 가리기만 할땐 memo_type='2'로 바꾸시는 방법을 사용하시면 됩니다.

==> 특정한 담당자(몇명이 될 수 있음)를 지정하여 발주(오더)가 실행되면 해당 담당자로
write하면, 특정 담당자가 로그인하거나 하면 쪽지를 pop으로 보여 준다.(실시간으로)
browser를 켜놓으면 그사람이 자리에서 떠나도 소리나, 기타 pop up을 alert해 준다.
그런데, 여러사람으로 부터 온 쪽지가 많은 경우는 해당하는 것 모두를 모여주어야 하나?

Ajax Agent is another Ajax toolkit/library/framework created by some old Ajax pro's (the Lead Architect behind Onepage Portal Server (now Sybase Enterprise Portal) & one of the core engineers behind the Content Express For Microsoft Commerce Server).
Their aim is to make Ajax work as simple as possible.
The PHP version offers three steps to get started with the framework:


1. update asynronus
There is an even more simple example availiable at the following address: http://www.ajaxtechforums.com/viewtopic.php?t=47

2.
A very simple self-refreshing stock ticker example. Based upon the Ajax Agent php-ajax framework. The printPrices() function could connect to perhaps a DB and retrieve and populate a new table at the interval you set.

Live version located at: http://yapabout.com/tset/test.php Note, the randomly occuring error-popup. Occurs every time the request timeout. This is meant to enlight you regarding interaction issues and not-so thought through Ajax solutions. If you run the code above on your local machine it will prove to work very well. But if you put it on a server with perhaps a very poor connection in between it and you. Or perhaps if the serverload is too much, you will notice random errors coming along.


<윈도우 처리 부분>

msn 메신저에서 친구가 로그인하면 누구누구님이 로그인하셨습니다. 라고 스스로 오른쪽 아래서 올라왔다 내려가 사라지는 공지방식을 어는분이 올려주셨는데...어딧는지 좀 알려주시면 감사하겠습니다.

http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_html&wr_id=66004&sca=&sfl=wr_subject%7C%7Cwr_content&stx=pop+up&sop=and&page=9

0 Comments:

Post a Comment

<< Home