free php javascript Ajax chat script

Posted at 2008/02/09 11:47 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
사용자 삽입 이미지
great free php javascript ajax chat script. here my free php-ajax chat script trying to got you the best of the best php ajax chat or php javascript chat script for your website based on the day modern web technology!. this free php-ajax chat will install on your website very fast and easy with out any file confirm/edit require only by access install directory in your web browser. the Chat Script have a powerful administrator panel to manager the free php javascript ajax chat service on your website as well. this free php-ajax chat Chat Script will allow chat users to create unlimit chat rooms, send private message in PM box. the Chat Script also allow users to ADD or IQNORE peoples in the php ajax javascript chat. register to this free php-ajax chat script is very fast! really fast in less 10 second with out any error after form processed. in the free php javascript ajax chat script administrator can change the php ajax chat Speed Connection from administrator panel to get best perfomance on any host. administrator can insert lots of BANNER Advertisements at header or footer of chat areas too easy from admin panel, the banners will be rotate every 60 second at the rooms then administrator can stop the rotate or change the rotate speed per second. alitalk chat script is compatible with most browsers including Internet Explorer, Netscape and Firefox, Opera. this free php-ajax chat don't needed to any plugin to run on users browsers and this will not limit your chat users... well! now yourself check the my free php-ajax chat script Online Demo. This php javascript chat script offer you: Ad Manager so you can add advertising, Connection speed controls, User profile manager, Room manager for maintaining chat rooms, Multi language capabilities, Smileys and other emoticons, Change chat font and colour, Fast user registration in less 30 second, Firewall for ajax http_requests, Easy link with your forum database, Support vBulletin, IPB, MyBB, PHPBB, Joomla and SMF, Quick installer with out any file confirm require.




WebSite : http://www.alilg.com/software/free-php-ajax-chat/




AliTalk_1.9.1.1.zip

AliTalk_1.9.1.1 Download


2008/02/09 11:47 2008/02/09 11:47

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Jaxer - The Ajax Server

Posted at 2008/01/23 21:52 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
Aptana 에서 Jaxer 서버 솔루션을 만들었습니다.
XMLHttpRequests, JSON, DOM스크립팅을 서버단에서 사용할 수 있고, 네트워크, 파일, 데이터베이스에 접근이 가능하다고 합니다.
다시 말해서 다른 언어 필요 없이 Javascript 언어로 웹서비스 하나를 만들어 낼 수 있다는 것이네요.. 와우.. 신기하기만 하넹.. ㅎㅎ

자세한 내용은 파이어준님의 포스트를 참고하시고 Jaxer에 직접 방문해보시면 알거 같습니다.



사용자 삽입 이미지


2008/01/23 21:52 2008/01/23 21:52

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Prototype Ajax 기본 문법

Posted at 2007/12/11 13:12 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
prototype 에서 사용 되는 Ajax 기본 문법입니다.
new Ajax.Request('/some_url',
  {
    method:'get',
    parameter:'param1=value1¶m2=value2',//or $('form').serialize()
    onSuccess: function(transport){
      var response = transport.responseText || "no response text";
      alert("Success! \n\n" + response);
    },
    onFailure: function(){ alert('Something went wrong...') }
  });

2007/12/11 13:12 2007/12/11 13:12

댓글을 남겨주세요.

[로그인][오픈아이디란?]

RSS Reference

Posted at 2007/12/11 13:07 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
http://www.w3schools.com/rss/rss_reference.asp

RSS <channel> Element

The links in the "Element" column point to more information about each specific element.

Element Description
<category> Optional. Defines one or more categories for the feed
<cloud> Optional. Register processes to be notified immediately of updates of the feed
<copyright> Optional. Notifies about copyrighted material
<description> Required. Describes the channel
<docs> Optional. Specifies an URL to the documentation of the format used in the feed
<generator> Optional. Specifies the program used to generate the feed
<image> Optional. Allows an image to be displayed when aggregators present a feed
<language> Optional. Specifies the language the feed is written in
<lastBuildDate> Optional. Defines the last-modified date of the content of the feed
<link> Required. Defines the hyperlink to the channel
<managingEditor> Optional. Defines the e-mail address to the editor of the content of the feed
<pubDate> Optional. Defines the last publication date for the content of the feed
<rating> Optional. The PICS rating of the feed
<skipDays> Optional. Specifies the days where aggregators should skip updating the feed
<skipHours> Optional. Specifies the hours where aggregators should skip updating the feed
<textInput> Optional. Specifies a text input field that should be displayed with the feed
<title> Required. Defines the title of the channel
<ttl> Optional. Specifies the number of minutes the feed can stay cached before refreshing it from the source
<webMaster> Optional. Defines the e-mail address to the webmaster of the feed

RSS <item> Element

Element Description
<author> Optional. Specifies the e-mail address to the author of the item
<category> Optional. Defines one or more categories the item belongs to
<comments> Optional. Allows an item to link to comments about that item
<description> Required. Describes the item
<enclosure> Optional. Allows a media file to be included with the item
<guid> Optional. Defines a unique identifier for the item
<link> Required. Defines the hyperlink to the item
<pubDate> Optional. Defines the last-publication date for the item
<source> Optional. Specifies a third-party source for the item
<title> Required. Defines the title of the item
2007/12/11 13:07 2007/12/11 13:07

댓글을 남겨주세요.

[로그인][오픈아이디란?]

RSS Tutorial

Posted at 2007/12/11 13:06 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
http://www.w3schools.com/rss/default.asp

RSS 란?
  • RSS stands for Really Simple Syndication
  • RSS allows you to syndicate your site content
  • RSS defines an easy way to share and view headlines and content
  • RSS files can be automatically updated
  • RSS allows personalized views for different sites
  • RSS is written in XML
RSS 기본 샘플 코드

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">

<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>

</rss>
주석 처리는 HTML 코드에서 사용 되는 주석태그 <!-- This is an RSS comment --> 를 사용하면된다.
2007/12/11 13:06 2007/12/11 13:06

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Google AJAX Feed API

Posted at 2007/05/18 09:52 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
http://code.google.com/apis/ajaxfeeds/
2007/05/18 09:52 2007/05/18 09:52

댓글을 남겨주세요.

[로그인][오픈아이디란?]

JSON PHP-encode, JS-parse

Posted at 2007/04/03 10:44 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
JSON-PHP-encode
http://mike.teczno.com/json.html

JSON-Javascript-Parse
http://json.org/js.html
2007/04/03 10:44 2007/04/03 10:44

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Ajax Data Transfer Format - UED(Url Encoded Data)

Posted at 2007/03/16 04:42 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
scheme://host[:port]/path[?query]

ued_encode 함수는 JSON 데이터를 query 형태로 encoding 해준다.



Ajax Data Transfer Format - UED(Url Encoded Data)

JSON has taken the award for the easiest method for transporting data when using Ajax. JSON is great to get data from the server side to the client side. What what about when you need to send data to the server side? Sure you can use JSON then - but the advantage of using JSON is lost. So I propose using another format for it - UED or URL Encoded Data. Its a very simple concept - and it has been in use for a long time - all I have done is create a function that will encode the data into this format. The basic concept behind this is that the most used data structures can be easily encoded into a URL. You can create variables, numerical arrays, associative arrays, multi-level arrays etc. using existing syntax. The best part is all the server side languages are capable of handling this format - so no parsing is needed.

ued_encode() will take an array as its argument and return the data encoded in UED format - as a string. You can use that string to send the data via POST or GET in the query part of the URL.

Demonstration

See ued_encode() in action.

A Brief Look at URL Syntax

scheme://host[:port]/path[?query]
http://www.google.com:80/search?q=hello

The syntax for the data part is given below

Variables (for the lack of a better name)

name=Binny
year=2007
quote=Hello%2C+World%21 - That is "Hello, World!" in a 'url encoded' format.

List(Numerical Arrays)

os[]=Windows
os[]=Linux
os[]=Mac

Arrays(Associate Arrays)

software[editor]=vi
software[audio]=xmms
software[video]=vlc

All these will be joined using '&' - that will be the final string. Note: Line wrapped at '?'

name=Binny&year=2007&quote=Hello%2C+World%21&os[]=Windows&os[]=Linux&os[]=Mac ?
&software[editor]=vi&software[audio]=xmms&software[video]=vlc

No, it is not readable - it is not designed to be readable. But it is a very compact format. You can send this data to the server side by appending it to a url as the query(using the get method)

http://www.example.com/get_data.php?name=Binny&year=2007&quote=Hello%2C+World%21&?
os[]=Windows&os[]=Linux&os[]=Mac&software[editor]=vi&software[audio]=xmms&software[video]=vlc

But if you are a web developer, you already know that. You use it every day. Sometime you don't see it - the browser will automatically format the data from a form into this format and send it. In other occasions you have to create such URL by hand to send data to the server side in your Ajax(or non-Ajax) app.

So I have created a function that will encode the given data to this format.

Usage

//The JS Array format of the example given above
var arr = {
'name':"Binny",
'year':2007,
'quote':"Hello, World!",
'os':['Windows','Linux','Mac'],
'software':{
'editor':"vi",
'audio':"xmms",
'video':"vlc"
}
}
var data = ued_encode(arr);

Code

ued_encode.js - <1 KB


//ued_encode() will take an array as its argument and return the data encoded in UED format - as a string.
//http://www.openjs.com/scripts/data/ued_url_encoded_data/
function ued_encode(arr,current_index) {
var query = ""
if(typeof current_index=='undefined') current_index = '';

if(typeof(arr) == 'object') {
var params = new Array();
for(key in arr) {
var data = arr[key];
var key_value = key;
if(current_index) {
key_value = current_index+"["+key+"]"
}

if(typeof(data) == 'object') {
if(data.length) { //List
for(var i=0;i<data.length; i++) {
params.push(key_value+"[]="+ued_encode(data[i],key_value)); //:RECURSION:
}
} else { //Associative array
params.push(ued_encode(data,key_value)); //:RECURSION:
}
} else { //String or Number
params.push(key_value+"="+encodeURIComponent(data));
}
}
query = params.join("&");
} else {
query = encodeURIComponent(arr);
}

return query;
}

License

BSD License

2007/03/16 04:42 2007/03/16 04:42

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Yahoo! UI Library (YUI)

Posted at 2007/02/28 10:21 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
http://www.jackslocum.com/blog/index.php

http://www.yui-ext.com/deploy/ext-1.0-alpha2.zip

http://www.yui-ext.com/deploy/ext-1.0-alpha2/docs/

http://developer.yahoo.com/yui/

http://www.yui-ext.com/deploy/ext-1.0-alpha3/examples/
2007/02/28 10:21 2007/02/28 10:21
  1. 비밀방문자

    2007/03/02 14:21 [수정/삭제] [답글]

    관리자만 볼 수 있는 댓글입니다.

댓글을 남겨주세요.

[로그인][오픈아이디란?]

Ajax 로딩 이미지(Spinner) 다운로드 사이트 북마크

Posted at 2006/11/01 17:35 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
여러 형태의 로딩 이미지(Spinner) 를 gif로 다운받을 수 있다

http://www.ajaxload.info/


2006/11/01 17:35 2006/11/01 17:35

댓글을 남겨주세요.

[로그인][오픈아이디란?]

블로그 글을 자동으로 알리는 법: XML-RPC Ping

Posted at 2006/10/22 13:48 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
출처 : 스마트플레이스 블로그

블로그를 운영하는 분들이라면 FeedBurner 서비스는 익히 들어보았을 것이다. FeedBurner 서비스는 블로그의 피드(feed)를 자신의 블로그가 아닌 FeedBurner 사이트를 통해 배포할 수 있도록 서비스를 제공하는 것이다. 얼마 전 국내에도 이와 유사한 FEEDWAVE라는 서비스가 나와 앞으로는 더욱 쉽게 이들 서비스를 사용할 수 있게 되었다. 이런 서비스는 단순히 개인의 피드를 대행하여배포하는 기능 이외에 피드에 대한 일부 편집 및 구독자에 대한 통계 서비스도 같이 제공한다. 특히 이런 서비스는 피드 구독자가많은 블로그 운영자들에게는 트래픽을 줄이는 효과도 주기 때문에 최근 많은 블로거들의 사랑을 받고 있는 서비스이다.

FeedBurner 서비스와 같은 블로그 연동 서비스들은 아주 많다. 피드 수집, 블로그검색엔진, 블로그 글에 대한 통합 수집과 같은 많은 서비스들이 이미 존재하고, 지금도 개발되고 있다. 그러면 이들 블로그 연동서비스와 개별 블로그간에 공통적으로 필요한 기능이 무엇이라고 생각하는가? 여러 가지 공통 기능들이 있겠지만 블로그를 이들서비스에 잘 알리기 위해서는 개별 블로그에 새로운 글이 등록되었을 때 이를 블로그 서비스로 알려주는 부분이 가장 중요한 내용이라생각한다. FeedBurner의 경우에는 30분의 주기를 가지고 등록된 개별 블로그의 새로운 글 등록 여부를 확인한다. 이는 대부분의 블로그 글 수집 서비스가 구현되는 방식으로 국내의 올블로그(http://www.allblog.net)도 수집 시간의 차이는 있지만 동일한 메커니즘으로 동작한다.


[FeedBurner 핑 서비스 안내 페이지]

하지만 경우에 따라 이런 자동 주기의 시간 때문에 블로그 글을 등록한 뒤 오랜 시간이 지난 뒤에야 해당 서비스에 반영될 가능성이 있다.즉 FeedBurner의 경우 글을 등록한 후 최대 29분이 지난 다음에 피드가 수집될 수 있다는 이야기이다. 이런 문제점을해결하고 사용자의 편의를 제공하기 위해 여러 블로그 서비스들에서는 개인들이 직접 블로그의 주소를 입력하여 정보를 수동으로수집하도록 하는 Ping 서비스나 XML-RPC Ping과 같은 인터페이스를 제공하여 자동으로 이런 문제를 해결하고 있다. 이런과정을 통해 블로그의 정보가 수집되면 자동 주기의 시간과 상관없이 바로 해당 사이트의 정보를 수집하게 되는 것이다.
개인들이 직접 입력하여 처리하는 Ping 서비스는 해당 서비스 사이트들마다 모두다른 모습을 가지고 있다. 그러나 개별 블로그 시스템과 블로그 서비스 시스템간의 Ping 인터페이스를 이용한 통신은 많은사이트들이 표준적인 모델을 따르고 있다. 바로 “Dave Winer”에 의해 소개된 “XML-RPC Interface”를 사용하고 있는 것이다.
블로그 Ping 서비스를 위한 표준화는 작은 시작일 뿐이다
블로그와 블로그를 연동하는 서비스들 간의 통신을 위한 XML-RPC Ping과같은 서비스는 이들 서비스에서 작은 기능에 불과하다. 더불어 XML-RPC Ping 서비스를 꼭 따라야만 좋은 서비스로 평가받는 것은 아니다. 하지만 많은 외국 서비스들의 사례에서 알 수 있듯이 이를 지원하고, 연동을 위한 API를 제공하여 사용자의편의를 증대해주기 때문에 우리가 눈여겨봐야 하는 것이다.
XML-RPC Ping 인터페이스는 말 그대로 데이터의 수신과 송신에 XML-RPC프로토콜을 이용하고, 전달 메시지에 대한 포맷을 규정하고 있는 것이다. 실제 서비스에서 구현해야 하는 사항은 클라이언트로부터이런 포맷의 데이터가 수신되면 해당 함수를 수행하고 그 결과를 포맷에 맞추어서 전송하면 되는 것이다. 쉽게 이야기하면 특정함수를 실행하기 위한 시작과 그 결과에 대한 메시지를 전달하는 방법인 것이다.
우리의 현실은 어떠한가?
블로그를 묶어주는 서비스로 국내에는 이미 몇 개의 메타블로그 사이트들이 있다. 올블로그, 블로그코리아, 블로그 플러스, 오픈 블로그가 이들 서비스에 해당하며, 피드를 블로그로부터 읽어가는 서비스로 대표적인 한RSS등이 있다. 이들 서비스들 중에서 올블로그만이 앞서 이야기한 XML-RPC Ping 인터페이스를 지원하고 있다. 그러나 이런 Ping 서비스는 올블로그에서 조차도 활성화되지 못하고 있는 것이 우리 블로그 소프트웨어 시장의 현실이다. 태터툴즈이올린 서비스가있지만 이올린으로는 태터툴즈를 사용하는 블로그에서만 자동으로 발행되고 그 결과를 바로 확인할 수 있어 그 의미가 조금 다르다.이는 엄연히 말해 태터툴즈간의 서비스 연동이지 다른 서비스와의 연동으로는 볼 수는 없는 것으로 이해하면 된다.

이미 XML-RPC Ping은 업계에서 여러 논의가 있어왔고, 트래픽이나 스팸 유발과 같은 문제점들을잠재적으로 가지고 있는 것은 사실이다. 그러나 구더기가 무서워서 장 못 담글 수는 없지 않는가? FeedBurner의 경우만하더라도 자동으로 Ping 서비스를 짧은 시간에 여러 번 전송할 경우 실행하지 못한다는 에러를 발생시켜 이 문제를 해결하고있다.

웹 2.0 시대의 블로그는 아주 중요한 개인미디어로의 역할을 수행한다. 이들 블로그를 세상 바깥으로 가져다 주는 서비스가 바로 이들 메타블로그들과 같은 서비스이다. 우리의서비스를 대외적으로 알리고 새롭게 나올 서비스들과의 연동을 원한다면 블로그 서비스업체와 개발업체 모두 이런 표준 부분을 고민을해 주었으면 하는 바램이다. AllBlog America가 나온다고 상상해보라! 정말 흥미 있지 않은가? 컴퓨터와 컴퓨터간의자동 대화의 시작으로도 볼 수 있는 OpenAPI를 지원하는 블로그 서비스를 앞으로는 많이 보았으면 한다. 국내의 블로그소프트웨어 개발 업체들의 분발을 기대해본다.

(작성자 : 네오비스)


2006/10/22 13:48 2006/10/22 13:48

댓글을 남겨주세요.

[로그인][오픈아이디란?]

ajax 한글 처리

Posted at 2006/08/28 18:19 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비


1. encodeURIComponent('문자열');
//javascript 문자열 인코드

2. rawurldecode($var); //PHP 문자열 디코드
2006/08/28 18:19 2006/08/28 18:19

댓글을 남겨주세요.

[로그인][오픈아이디란?]

AJAX file upload progress for Java using commons fileupload and prototype

Posted at 2006/08/22 09:14 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비

원문 : http://blogs.missiondata.com/?p=28

AJAX file upload progress for Java using commons fileupload and prototype

This has been done before with PHP (AJAX upload progress meter for PHP) etc but I needed something a little different because I wanted to upload a file and then have it loaded into a database. I looked around and found that someone had already made something that used the commons file upload package to do the upload part (AJAX Upload progress monitor for Commons-FileUpload Example). It wasn’t exactly what I was looking for but it a good start.

To understand the way this works I think it is easiest to break it down into parts:

  1. A file upload extention that counts bytes as they are uploaded
  2. An interface that monitors the progress of something running on the server
  3. AJAX to pull the monitoring into the current screen

Counting bytes when files are uploaded

This was taken from the example listed above. It extends and wraps parts of the commons File Upload classes so that you can count the bytes as they are uploaded to the server. You can download the source with build file or the binary. You will also need the commons file upload, commons io and commons logging. If you download the source put the commons jars in the lib directory before building.

The code is fairly simple to follow. MonitoredDiskFileItemFactory replaces DiskFileItemFactory and the construction of a MonitoredDiskFileItemFactory takes a OutputStreamListener that will be passed on down the chain. The new factory creates MonitoredDiskFileItems instead of DiskFileItems for each file uploaded. When the file needs to be written to disk a MonitoredOutputStream is given back instead of a normal OutputStream. The MonitoredOutputStream calls the OutputStreamListener methods as the bytes are written and with that you now have a way to monitor the byte count as the file is created on the server.

Now to test this all out we can just have an OutputStreamListener that writes its progress out to a logfile or something.

public class FileUploadListener implements OutputStreamListener{  private long totalFileSize;  private long currentFileRead;  public FileUploadListener(long totalFileSize)  {    this.totalFileSize = totalFileSize;    this.currentFileRead = 0;  }  public void start()  {    log.debug("Upload started. Total file size: " + totalFileSize);  }  public void bytesRead(int byteCount)  {    log.debug("Read bytes. Currently " + byteCount + " out of " + totalFileSize + " bytes.");    currentFileRead+=byteCount;  }  public void error(String error)  {    log.debug("Hit an error: " + error);  }  public void done()  {    log.debug("Upload done.");  }  public long getTotalRead()  {    return currentFileRead;  }  public long getTotalSize()  {    return totalFileSize;  }}

Now we try it out. You can put this in a servlet or jsp so I’m only going to list the parts that matter.

  FileUploadListener listener = new FileUploadListener(request.getContentLength());  session.setAttribute("LISTENER", listener);  FileItemFactory factory = new MonitoredDiskFileItemFactory(listener);  ServletFileUpload upload = new ServletFileUpload(factory);  List items = upload.parseRequest(request);  for (Iterator i = items.iterator(); i.hasNext();)  {    FileItem fileItem = (FileItem) i.next();    if (!fileItem.isFormField())    {       // code here to process the file     }   }

I’m going to assume you can find the correct way to do the actual form upload part.

Note: One issue that you will face at some point is where the upload post goes to becuase when you get to the AJAXy part of things you want the post to stay on the same page. You can use a hidden iframe and the form’s “target” parameter to do this (I have an example later). This is one thing the Java examples I found didn’t have but the PHP examples did and I’m not sure exactly how the Java examples work without it.

Monitoring progress on the server

The next step is to monitor the progress of the upload on the server. What you are monitoring on the server doesn’t even need to be the upload. For the work I was doing the upload goes fairly quickly but what happens to the file after the upload takes a little longer. I wanted to monitor both and that is one reason I think it helps to break this up into parts because you aren’t limited to just monitoring file uploads.

The main thing to keep in mind here is that the application server is multithreaded and you can make more than one request to the server at the same time. You probably know that you can open a tab in firefox or another window in ie and use the same session from the current webapp you are using. Knowing that you can create a page that monitors the status of things as they are running on the server.

From the example above you could toss the listener into the users session. Then insead of logging you just add a couple variables to keep track of the number of bytes that have been uploaded. Then create a simple jsp that pulls the Listener out of the session and dumps its data to a page. Open two windows, one to the upload page and another one to the status page. Start the upload and then start refreshing the status. You should see that the values change as the file is uploaded.

<%@page%><%  FileUploadListener listener = (FileUploadListener)session.getAttribute("LISTENER");%>Total size: <%=listener.getTotalSize()%><br/>Read count: <%=listener.getTotalRead()%><br/>

Of course you will probably want more than just the total size and bytes read as well as more formating like a little progress bar or something but I’ll leave that up to you.

AJAX integration with prototype

You have the major parts to the upload progress done and now all you need is the AJAX part. To do this I chose to use prototype because it cuts right to what you want to do. One call is all you need to use: Ajax.PeriodicalUpdater.

The Ajax.PeriodicalUpdater call will update a container (in my case a div) on a set interval. Here is an example of how to have it update a div with an id of “status” every second.

    new Ajax.PeriodicalUpdater(                                'status',                                'status.jsp',                                {asynchronous:true, frequency:1, method:'get'});

The first argument is the id of the div, the second is the jsp that contains the data to stick into the div every second and the 3rd arguement is a set of options. There are more options availabe if you need them.

You would want to kick the update off whenever the form is posted. When the post is complete the iframe used as a place to post to will load with the results of the servlet or jsp that you posted to. If you return some javascript as a result for the iframe you will be able to create a final “finished” message on the page to let the user know the upload has completed and stop the processing of the AJAX updater.

So there you have it. The basics of setting up an upload progress bar using java and AJAX. I have left out a good bit but you should have enough to at least get you started.

By request I have created a simple example that pulls everything together. The source contains everything you need to create a war file including all source and an ant build file.

2006/08/22 09:14 2006/08/22 09:14

댓글을 남겨주세요.

[로그인][오픈아이디란?]

MSXML GUIDs and ProgIDs

Posted at 2006/08/10 11:57 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/7e831db8-9d0a-43ff-87e9-11382721eb99.asp



GUID and ProgID Information 항목 참조

2006/08/10 11:57 2006/08/10 11:57

댓글을 남겨주세요.

[로그인][오픈아이디란?]

"자동화 서버는 개체를 작성할 수 없습니다." 라는 메시지가 발생될 경우 해결책

Posted at 2006/08/10 11:45 // in 웹프로그래밍™/Ajax, JSON, XML,RSS // by 블루비


사용자 컴퓨터에 설치된 XML Paser가 없거나 버전이 낮아서 생기는 현상이므로.
M$의 다운로드 센터에서 최신버전을 다운로드/설치 하시면 됩니다.

※ XML Paser 다운로드 페이지
http://www.microsoft.com/downloads/search.aspx?langid=14&displaylang=ko

http://www.microsoft.com/downloads/details.aspx?FamilyID=28494391-052b-42ff-9674-f752bdca9582&DisplayLang=ko

※ MSXML Reference
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_xmlprod.asp

2006/08/10 11:45 2006/08/10 11:45

댓글을 남겨주세요.

[로그인][오픈아이디란?]