294 Part III . Document Objects Reference there. (Mac os x web server)

294 Part III . Document Objects Reference there. Because this event is a window event, you don t have to turn on window.captureEvents() to get the window to feel the effect of the event. The juiciest tidbit of the event, the URL of the dropped item, can be retrieved only with a signed script and the user s permission (see Chapter 46). Listing 16-44 shows a simple document that reveals the URL and screen location, as derived from the event object passed with the dragDrop event. You must have codebase principals turned on to get the full advantage of this listing, and it works best with Windows. Listing 16-44: Analyzing a dragDrop Event DragDrop Event Drag and Drop a file onto this window The dragDrop event is the only one that uses the data property of the NN4 event object. That property contains the URL. The target property reveals only the window object, but you can access the event object s screenX and screenY properties to get the location of the mouse release. Related Items: event object (Chapter 29). onError NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . . See the discussion of the window.onerror property earlier in this chapter. windowObject.onError
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Leave a Reply