when i call
$('#test').load('<%= VirtualPathUtility.ToAbsolute("~/Home/Helper") %>', { pass: null });
all content is loaded, but
<script>...</script>
not loading. why??
when i call
$('#test').load('<%= VirtualPathUtility.ToAbsolute("~/Home/Helper") %>', { pass: null });
all content is loaded, but
<script>...</script>
not loading. why??
This method is the simplest way to fetch data from the server.
It is roughly equivalent to $.get(url, data, success) except that it is a method rather than global function and it has an implicit callback function.
When a successful response is detected (i.e. when textStatus is "success" or "notmodified"), .load() sets the HTML contents of the matched element to the returned data.
For details refer http://api.jquery.com/load/