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? Link to comment https://forums.phpfreaks.com/topic/79579-tracing-my-code/ 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. Link to comment https://forums.phpfreaks.com/topic/79579-tracing-my-code/#findComment-403041 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. Link to comment https://forums.phpfreaks.com/topic/79579-tracing-my-code/#findComment-403224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.