javascript - How can I preserve the page scroll position when opening a dialog in response to a link trigger? -
I would like to know how to create a scrolling status when I open a jQuery dialog.
I am using my dialog to open:
& lt; One class = "link" onclick = "openmyDialog ();" Href = "#" & gt; Open a dialog & lt; / A & gt;
More functions:
function openmodialog () {$ ("# dialog") Dialog ('destroyed'); $ ("#in dialog") HTML ("message"). $ ("# Dialog") Dialog ({button: {"yes": function () {$ (this) .dialog ("close");}}, resizable: false, dragable: true, model: true, title: 'error '}); return false; }
You are not returning your return value to the click handler correctly: < / P>
onclic = "return openmodylog ();"
Comments
Post a Comment