【问题标题】:Jeditable & ASP, I can't see POST values on processing pageJeditable & ASP,我在处理页面上看不到 POST 值
【发布时间】:2015-09-26 16:52:18
【问题描述】:

我正在使用 Jeditable,我在 localhost 中工作(不知道这是否重要),我看不到任何发送到 AJAX 页面的值。

JS代码:

 $('.editable').editable('/mypage.asp?act=update-profile', {
             type      : 'textarea',
             cancel    : 'Cancel',
             submit    : 'OK',
             indicator : '<img src="img/indicator.gif">',
             tooltip   : 'Click to edit...'
         });

HTML

<p class="editable" id="testo_it">Some text here</p>

我的页面.asp

        <%
    testo_it    = Request.form("testo_it")

response.write testo_it
    %>

变量“testo_it”为空!

有什么建议吗? 谢谢

【问题讨论】:

    标签: jquery ajax asp-classic jeditable


    【解决方案1】:

    From the documentation:

    当提交更改时,以下数据将被 POST:ed 到服务器:

    id=elements_id&value=user_edited_content

    所以你需要得到的值是:

    Request.Form("value")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-27
      • 1970-01-01
      • 2010-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-13
      相关资源
      最近更新 更多