Jquery для отправки HTML страницы в AJAX - PullRequest
0 голосов
/ 03 марта 2011
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Chatham.Web.Models.Indications.ModelBase>" %>

<div>
<img id="ExportToExcelExposure" style=" cursor: pointer;" src="<%= VirtualPathUtility.ToAbsolute("~/img/btn_user_export_excel_off.gif")%>" />
    <table id="exposureTable">
        <tr>
            <td id="exposureLabel">
                Standard Deviations
            </td>
            <td>
                <%= Html.DropDownListFor(m => m.ExposureStdDev,
                                Chatham.Web.Models.Indications.DropDownData.ExposureStdDev(),
                                new { propertyName = "ExposureStdDev" })%>
            </td>
        </tr>
        <hr />
        <tr>
            <td colspan="2">
                <div id="exposureButton" style="cursor: pointer;">
                    <img src="<%= VirtualPathUtility.ToAbsolute("~/img/chic/btn_calculate.gif")%>" />
                </div>
            </td>
        </tr>
    </table>
    <div>
        <table id="results2">
            <tr>
                <td id="header" colspan="2" />
            </tr>
            <tr>
                <td id="table" />
                <td id="graph" />
            </tr>
        </table>
    </div>
    <br />
</div>

Что такое JQuery, чтобы сделать вызов AJAX моему контроллеру и отправить тело моей страницы?

1 Ответ

0 голосов
/ 03 марта 2011

Должно работать следующее:

$.post("test.php", $("body").html());

См. Документацию для jQuery.post() для получения дополнительной информации.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...