<div id='dialog' title='Blog Post Viewer'></div>
- $(function() {
- $( "#dialog" ).dialog({
- autoOpen: false
- });
- });
- function run_modal( href, url_data ) {
- $("#dialog").dialog("open");
- // alert(href+"="+url_data);
- }
It comes up with this bug: jquery-2.1.4.js:250 Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'open'
What am I doing wrong to trigger the dialog call?
Is there a way you would suggest changing the title, and body content on a single ajax call to the server?