Computing.Net > Forums > Web Development > please critique my javascript

please critique my javascript

Reply to Message Icon

Original Message
Name: robber2
Date: November 13, 2006 at 10:14:52 Pacific
Subject: please critique my javascript
OS: w xp home
CPU/Ram: 2 gig celeron, 256 MB
Model/Manufacturer: dell dim 2350
Comment:

Please look at the following two pages and please give your advice.

http://home.earthlink.net/~luthazar...
http://home.earthlink.net/~luthazar...

Both "seem" to work, but being fairly new to this javascript action, I'm not sure if this is the most streamlined approach. What I'd like to do is:
have the sound file play in the same window each time, rather than launching a new window. What I don't like is alot of windows open on the screen to close later. What would be sweet is that after the sound file plays, the window closes itself! Also, it would be nice to open the sound file window somewhere else on the screen, like in the lower right corner. And I'm not sure why, but my I.E. browser and my Firefox browser don't seem to be respecting the window's "features".
(you can specify which features you don't want by setting those features equal to no. For example:

<code>
window.open("some_url","window_name",
"location=no,status=no");
</code>

like i sed, i'm new at this, so don't laugh directly in my face, but any constructive criticism is appreciated.


Report Offensive Message For Removal


Response Number 1
Name: -Bryan-
Date: November 14, 2006 at 01:09:54 Pacific
Subject: please critique my javascript
Reply: (edit)

In both IE and Firefox, the windows close themselves while/after the sound file plays.

Not sure why they are staying open for you.


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: November 14, 2006 at 08:09:51 Pacific
Subject: please critique my javascript
Reply: (edit)

In my browser the windows is only for a split second, then WMP opens to play the file. I must then manually close WMP.

There really is no way to control this behavior. Each user's computer will determine how the sound files are played - in the browser or in a supporting app. You could try to play the files as embedded objects in the page.

Michael J


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: please critique my javascript

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software