You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have implemented the "simulated drag and drop" technique as illustrated in chapter 13. It works fine on my local machine but when I uploaded the pages to a web server, a javascript error "EventUtil is undefined" is thrown. I'm pretty sure that the javascript file is already on my web server and that the path to it is correct. I tried to upload my website to another web server and it didn't work either. Has anyone here encountered the same problem and knows how to resolve it? Thanks in advance.
The most likely reason is that you're referencing the file incorrectly. Make sure that you have the JavaScript file in the same directory as the HTML file and make sure that you're referencing the file in a way consistent to its case. EventUtil.js and eventutil.js are considered different files on a Unix system (but are the same on a Windows system).
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088) http://www.nczonline.net/