<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    thinking

    one platform thousands thinking

    Type mismatch in IE

    A:
    I am writing an AJAX application.

    Here is a piece of my code:

    http.open("GET", fullURL, true);
    http.onreadystatechange = handleHttpResponse;

    the handleHttpResponse is the function that processes the returned data.

    If I wanted to pass a string in to handleHttpResponse, I use:

    = handleHttpResponse(user_name);

    function handleHttpResponse_remtrip(string) {
    alert(string);
    .. other code ..
    }

    This generates a "Type mismatch" error. What gives?


    B:
    if you do this:

    http.onreadystatechange = handleHttpResponse(user_name);

    then you are assigning the returned value of handleHttpResponse and not the function itself.

    You could try this:

    http.onreadystatechange = createFunc(user_name);

    function createFunc(v) {
    return function() {
    alert(v);
    }
    }

    posted on 2011-01-26 11:35 lau 閱讀(363) 評論(0)  編輯  收藏 所屬分類: Web

    主站蜘蛛池模板: 日韩免费高清一级毛片| 国产91久久久久久久免费| 毛片在线看免费版| 亚洲一区二区三区在线视频| 亚洲中文字幕在线第六区| 亚洲色成人网一二三区| 特级aaaaaaaaa毛片免费视频| 免费无码黄网站在线看| 一个人在线观看视频免费| 亚洲中文字幕无码中文字在线| 91嫩草亚洲精品| 久久www免费人成精品香蕉| 扒开双腿猛进入爽爽免费视频 | 免费A级毛片无码A∨免费| 一级毛片直播亚洲| 亚洲一卡2卡4卡5卡6卡在线99 | 亚洲精品久久久久无码AV片软件| a级毛片100部免费观看| 国产在线观看免费视频播放器| 亚洲第一中文字幕| 中文字幕av免费专区| 日韩一区二区在线免费观看| 亚洲精品在线免费看| a级片免费观看视频| 日产国产精品亚洲系列| 亚洲人成伊人成综合网久久| a级毛片毛片免费观看久潮| 免费人成视频在线观看视频| 国产成人精品亚洲日本在线| 午夜免费福利视频| 亚洲精品V欧洲精品V日韩精品| 天天综合亚洲色在线精品| 久久久久久国产a免费观看黄色大片| 亚洲精品tv久久久久久久久| 成人免费夜片在线观看| 美女被免费视频网站a国产| 亚洲人妖女同在线播放| 中文字幕免费观看| 亚洲视频一区调教| 青青草无码免费一二三区| 亚洲国产精品一区二区成人片国内 |