2

when i call

$('#test').load('<%= VirtualPathUtility.ToAbsolute("~/Home/Helper") %>', { pass: null });

all content is loaded, but

<script>...</script>

not loading. why??

1
  • When you say "not loading", how do you mean? Does it appear in the DOM if you inspect it with Firebug or suchlike? Also, please post the rendered HTML, not the server-side source code. Commented Jan 2, 2011 at 15:32

2 Answers 2

1

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/

Sign up to request clarification or add additional context in comments.

Comments

0

Try using head.js insted.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.