the version of ExtJS/Sencha (js library behind cfwindow) in cf9 is different than in cf8, so a method name could have easily been changed and is not moveTo() any longer.
try using setPagePosition() method instead of moveTo() setPagePosition() is the method to move an Ext.Window object in current version of ExtJS (and hopefully is in cf9's implementation of Ext.Window too) Azadi On 23/10/2010 05:07 , Mike wrote: > I recently upgraded to CF9 and have noticed that the moveTo function no > longer seems to work to reposition a cfwindow. > > I still have a CF8 server running and the same code works perfectly in > CF8, but throws the following JS error in CF9: > > Mywindow.moveTo is not a function > > Here's the JS code: > > rePositionWindow = function(windowName,x,y){ > > //Get window object > myWindow = ColdFusion.Window.getWindowObject(windowName); > winEl = myWindow.getEl(); > //move the window > myWindow.moveTo(x,y); > } > > Anyone got any ideas? Or another way to position a cfwindow where the > user clicks? > > Thanks, > > Mike > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338490 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm