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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -