My guess would be you don't have the latest version of jQuery (1.2.6) required by jQuery UI. Can you confirm which version you have? - Richard
On Sat, Oct 11, 2008 at 4:22 PM, GARIL <[EMAIL PROTECTED]> wrote: > > I'm getting the following error with the html snippet shown below. > > doc.scrollTop is not a function > pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), > > the above from 'ui,dialog.js' > > Can anyone help? > > ------------------ > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <head> > <script src="../lib/jquery.js" type="text/javascript"></script> > <script type="text/javascript" src="http://dev.jquery.com/view/tags/ > ui/latest/ui/ui.core.js<http://dev.jquery.com/view/tags/ui/latest/ui/ui.core.js> > "></script> > <script type="text/javascript" src="http://dev.jquery.com/view/tags/ > ui/latest/ui/ui.dialog.js<http://dev.jquery.com/view/tags/ui/latest/ui/ui.dialog.js> > "></script> > <script type="text/javascript" src="http://dev.jquery.com/view/tags/ > ui/latest/ui/ui.resizable.js<http://dev.jquery.com/view/tags/ui/latest/ui/ui.resizable.js> > "></script> > <script type="text/javascript" src="http://dev.jquery.com/view/tags/ > ui/latest/ui/ui.draggable.js<http://dev.jquery.com/view/tags/ui/latest/ui/ui.draggable.js> > "></script> > > > <script type="text/javascript"> > function addDialogBox() { > var div = document.createElement('div'); > div.innerHTML = "Here is a newly added div field"; > div.id="newDiv" > var body = document.getElementsByTagName('body')[0]; > body.appendChild(div); > $("#newDiv").dialog(); > } > </script> > </head> > <body> > > <input type='button' value='add dialogbox' onClick='addDialogBox()' /> > > </body> > </html> > >