How to make sure the partial rederend by @Html.Action will be complete before $(document).ready(function () {})?

Go To StackoverFlow.com

0

How to make sure the partial rederend by @Html.Action will be completely rendered before $(document).ready(function () {}) is fired ?

2012-04-04 18:34
by zsong
Who the hell down voted this - zsong 2012-04-04 19:53


7

It will of course be rendered before any client-side javascript runs in the ready function because @Html.Action() renders on the server side. (And ready runs after the document from the server has finished loading.)

2012-04-04 18:36
by Kirk Woll
Ads