Get value from AJAX using Javascript and ASP

前端 未结 9 1033
轮回少年
轮回少年 2020-12-02 01:44

I am using this Ajax code. But I dont know how i will retrieve my value of value1 on my server-side asp using Javascript.

On my serverside I want to have something

9条回答
  •  渐次进展
    2020-12-02 01:54

    Here is a very good ajax tutorial. There is everything explained. https://developer.mozilla.org/en/AJAX/Getting_Started

    You forget a double quote:

    xmlHttp.open("post","CmsAjax.asp",true)
    

    To get the data:

    /* this puts the value into an alert */
    alert(xmlHttp.responseText);
    

提交回复
热议问题