Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ajaxLoad() {
- var ed = tinyMCE.get('elm1');
- // Do you ajax call here, window.setTimeout fakes ajax call
- ed.setProgressState(1); // Show progress
- window.setTimeout(function() {
- ed.setProgressState(0); // Hide progress
- ed.setContent('HTML Here');
- }, 500);
- }
- function ajaxLoad() {
- var ed = tinyMCE.get('elm1');
- // Do you ajax call here, window.setTimeout fakes ajax call
- ed.setProgressState(1); // Show progress
- window.setTimeout(function() {
- ed.setProgressState(0); // Hide progress
- ed.setContent(<% ViewData["test"] %>);
- }, 500);
- }
- ed.setContent(<%= ViewData["test"] %>); // the equals sign
- <input type="hidden" id="myTestData" value='<%=ViewData["test"]%>' />
- $("#myTestData").val();
- $.post("/jQueryTests/jQueryAddMessageComment", { commentText: commentText }, function(newComment) {
- $("#divComments" + id.toString()).html(newComment);
- });
- $.post("/Articles/jQueryDownVoteArticle", { id: id }, function(votes) { document.getElementById("ArticleVotes").innerHTML = votes; }, "json");
- return PartialView("commentList", new FormViewModel { LastComment = commentText });
- return Json(new FormViewModel { LastComment = commentText });
Add Comment
Please, Sign In to add comment