Archive for March, 2008

Web hosting colocation - CD-543Appendix F . Examples from Parts III and

Thursday, March 13th, 2008

CD-543Appendix F . Examples from Parts III and IV Chapter 29 Examples The following sections contain examples from Chapter 29, Event Objects. NN4 event Object Properties data NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example The page in Listing 29-12 contains little more than a TEXTAREA in which the URLs of dragged items are listed. To run this script without signing the scripts, turn on codebase principals, as directed in Chapter 46. To experiment with this listing, load the page and drag any desktop icons that represent files, applications, or folders to the window. Select multiple items and drag them all at once. Because the onDragDropevent handler evaluates to return false, the files are not loaded into the window. If you want merely to look at the URL and allow only some to process, you would generate an if…elseconstruction to return trueor false to the event handler as needed. A value of return true allows the normal processing of the DragDrop event to take place after your event handler function has completed its processing. Listing 29-12: Obtaining URLs of a DragDrop Event s data Property Drag and Drop