How to warn users not to drag’n'drop local files while running a web applications?
Some users might accidently drag and drop local files into a web browser while a web application is running on the same browser. When it happens, the browser, supposed to run the application, suddenly displaying the local file(s).
Then user has to go back to the application page and do it again. How to send notification to the user that he is not supposed to drag’n'drop files while the app. is running?
Could it be done using JavaScript? Please help!
Albert
You cannot do this using Javascript. You can capture drag drop events using javascript however javascript is a client side programming language and will function only if the page is loaded somewhere within the IE page. When a user browses websites, you javascript code cannot be called unless you have your code within the page they are browsing.
My thoughts for this solution is windows mfc programming. You can get handle to any window using mfc programming and then control the behaviour of various events / items. Just a warning that this is very powerful and you should code your application to register and unregister events correctly.
Hope that helps
http://bharathinstituteoftechnology.blogspot.com/2012/02/j2ee-web-application-basics.html
Five Ways to Build Your Personal Brand Today
A presentation on web applications with examples of wikis, blogs, content management systems, collaborative software and social media. Also discusses the LAMP framework, popular web application development frameworks and the roles of HTML, JavaScript and CSS.
My presentation about intercepting and modifying http requests in web applications like Words with Friends on Facebook. It allows anyone to play any word (essentially a cheat) by modifying GET requests when validating the word.
Recent Comments