Chinaunix首页 | 论坛 | 博客
  • 博客访问: 194759
  • 博文数量: 76
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-12 16:58
文章分类

全部博文(76)

文章存档

2011年(3)

2010年(52)

2009年(21)

我的朋友

分类:

2010-04-24 12:04:25

Cookieapp.jsp 文件

<%@ taglib uri="FlexTagLib" prefix="mm"%>




cookie.mxml

   
        function setCookie() {
            srv.send({action: 'set', userId: userId.text});
        }

        function getCookie() {
            srv.send({action: 'get'});
        }

        function setCookieJS() {
            getURL("javascript:setCookie('"+userId.text+"')");
        }

        function getCookieJS() {
            getURL("javascript:getCookie()");
        }

        // callback function invoked by the getCookie() JavaScript function in cookieapp.jsp
        function set userIdJS(userIdJS:String) {
            userId.text=userIdJS;
        }
   

            result="userId.text=srv.result.userId"/>

   
   
   
   
   
   



cookie.jsp

   
        function setCookie() {
            srv.send({action: 'set', userId: userId.text});
        }

        function getCookie() {
            srv.send({action: 'get'});
        }

        function setCookieJS() {
            getURL("javascript:setCookie('"+userId.text+"')");
        }

        function getCookieJS() {
            getURL("javascript:getCookie()");
        }

        // callback function invoked by the getCookie() JavaScript function in cookieapp.jsp
        function set userIdJS(userIdJS:String) {
            userId.text=userIdJS;
        }
   

            result="userId.text=srv.result.userId"/>

   
   
   
   
   
   

阅读(1216) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~