Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Giving a window an onblur event

Reply
Thread Tools

Giving a window an onblur event

 
 
Laser Lips
Guest
Posts: n/a
 
      10-07-2008
Hi, this is not as easy as it sounds. Sorry it's long winded, here is
some background

I've written an application which is something like a media viewer.
You can upload Documents, Images, Videos, Sounds and anything else you
like. The files are stored in a database as text, not as files on the
hard drive.

A user can use an interface to scroll through the media that has been
uploaded. If they scroll on to an Image, the image is retrieved from
the database, written to a file, and then an <IMG> tag has it's SRC
changed to the newly created file. When the user stops viewing the
image, the image is deleted from the file system.

If the user scrolls over something other than an image, the media is
retrieved from the database and written to a file as before, then a
window opens up with the location of the written file. If it happens
to be something that the system recognises, it opens the file with the
appropriate application. IF the Computer does not recognize the file
it offers to download it for you, or open in an application of your
choosing.

This behaviour is fine, except (my boss) would like this open window
to automatically close when the user decides to either download or
choose an application.

Is it possible to inject some JavaScript into the opening window for
an onBlur event, or attach one from the opening window. So far I've
been unsuccessful.

Please let me know if this is not clear.

Graham
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can you use the onblur event with an ajax control Paul ASP .Net 0 10-28-2008 03:38 PM
Does the onblur event still work in IE7? John Kotuby ASP .Net 1 06-24-2008 05:58 PM
The giving that keeps on giving sixteenmillion C Programming 0 11-19-2007 10:59 PM
Onblur() event cause infinite loop Bartosz Wegrzyn Javascript 2 09-08-2003 12:48 AM
onblur event Luthor Javascript 0 08-11-2003 12:03 AM



Advertisments