optikalefx Posted November 30, 2007 Share Posted November 30, 2007 so i have this box that im dragging around the screen. I wanna be able to show me the x and y position as i drag. But the only way i can tell me the numbers is to alert them, but that stops the dragging. is there a dynamic way to do this? Like in flash you would update a textbox as you drag with the x and y numbers, is there anything like that in javascript? Quote Link to comment Share on other sites More sharing options...
emehrkay Posted November 30, 2007 Share Posted November 30, 2007 get firefox, and get firebug plugin. console.log('whatever'); will write to the firebug console. Quote Link to comment Share on other sites More sharing options...
fenway Posted November 30, 2007 Share Posted November 30, 2007 Or, don't get firefox, have an ondrag event handler write to a large TEXTAREA form input on the screen, and write out clientTop and clientLeft. Easy as 3.141459. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.