fancybox2.0 could not open with jquery ajax responseText -


I am using fancybox2 to open a new html. Here I am generating html through jquery ajax method. But Fancybox 2 does not respond. Here is the code

  var line = $ .ajax ({type: "GET", url: "/ ajaxHTML", data type: 'html', success: function (results) {warning ( result);},}). Reaction text; $ Fancybox.open ({'content': line}, {type: 'html'});   

Am I using it incorrectly? I can open fancybox with simple text or HTML code. But with this feedback, no text variables and Ajax HTML can successfully get the alert function works and shows the content of the entire HTML page.

Try:

  $ Fancybox.open (line, {type: 'html'});   

... or $ Fancybox.open ({content: line, type: 'html'}); View



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -