CI 묻고 답하기

제목 Twitter라이브러리의 결과값을 자바스크립트에서 사용하려면?
글쓴이 초보동훈 작성시각 2010/06/14 14:21:56
댓글 : 2 추천 : 0 스크랩 : 0 조회수 : 27580   RSS

반갑습니다.
아직까지 codeigniter초보입니다.

twitter라이브러리를 사용해서 받아온 결과값을 자바스크립트 jquery에서 사용을 하고자합니다.

라이브러리를 사용해서 받아온 결과값은 배열 오브젝트형태로 나오더라구요
Array
(
    [0] => stdClass Object
        (
            [in_reply_to_user_id] =>
            [source] => <a href="http://twtkr.com" rel="nofollow">twtkr</a>
            [created_at] => Mon Jun 14 04:57:03 +0000 2010
            [place] =>
            [in_reply_to_screen_name] =>
            [favorited] =>
            [truncated] =>
            [user] => stdClass Object
                (
                    [notifications] =>
                    [profile_background_image_url] => http://a3.twimg.com/profile_background_images/XXXXXXXXXXXXX.jpg
                    [profile_image_url] => http://a1.twimg.com/profile_images/XXXXXXXXXXXX_normal.jpg
                    [description] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                    [lang] => en
                    [statuses_count] => 13
                    [profile_sidebar_fill_color] => c9c9c9
                    [profile_background_tile] => 1
                    [screen_name] => happytalkman
                    [contributors_enabled] =>
                    [profile_sidebar_border_color] => bfbfbf
                    [following] => 1
                    [geo_enabled] =>
                    [created_at] => Mon Jun 01 07:08:55 +0000 2009
                    [followers_count] => 19
                    [friends_count] => 17
                    [verified] =>
                    [profile_background_color] => 07090b
                    [favourites_count] => 298
                    [protected] =>
                    [url] => http://twitpic.com/xxxxx
                    [profile_text_color] => 1c1f23
                    [name] => XXXXX(YYYYYY)
                    [time_zone] => Seoul
                    [location] => XXXXXXXXXXXXXXXXXX
                    [id] => 438
                    [utc_offset] => 320
                    [profile_link_color] => c34242
                )

            [in_reply_to_status_id] =>
            [contributors] =>
            [coordinates] =>
            [id] => 16124289759
            [geo] =>
            [text] =>test
        )
...........................
.........................
.......................

)


저는 이결과값을 jQuery의 AJAX를 이용해서 받아와서 자바스크립트에서 바로 사용하고 싶은데 어떤 방법인 있는지 좀 알려주시면 감사하겠습니다.

수고하십시요

 다음글 초보의 form_error 질문;;;; (2)
 이전글 웹호스팅 올린후 DB연결이 안되요. (11)

댓글

앤드그리고 / 2010/06/14 15:12:44 / 추천 0
트위터 결과를 json 이나 xml 로 변환해서 js 에 전달하면 될 거 같은데요... 
변종원(웅파) / 2010/06/14 15:14:32 / 추천 0