Opening New Windows From Sites With Audio / Video Files?
Apr 13, 2010
My computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.
I am not sure whether this requires flash or not, therefore I'd like to ask if it is technically possible to create your own audio/video player with JavaScript/jQuery? If not, could I create something similar just not with full functionality? Like stop, next, previous, etc. buttons?
I managed to construct a script to play random sound files to make listening tests for students. The audio files were actually taken from video files and I would now like students to be able to see the video too. I have the code below which works fine for my (and the students') needs, except that only the audio is played and not the video (and the mov files definitely do contain video). Can anyone suggest how I might change the code so that the video is shown too, either on the same page, or in a pop-up window? I would have thought it would be a matter of changing the window.doSound lines, but if so I can't figure out how.
I worked on this website :[URL]and cannot find out why it does not work in IE while it works in other browsers. The small video does not play while the sound does. As far as I can see it works fine in FF and Chrome.
I'm using VS2008Pro with Master pages. On a child page, I have a modalPopupExtender that calls a panel with an embedded Google video. Everything works great - the popup appears with the video,background greyed.But, when I close the panel,the audio keeps playing in IE 7 & 8. Netscape is fine.I went and tried what Google recommended, but it still continues.
Is there an extension or plugin that could take a url to some media -- video, audio, image -- and just load it / display it on the page? I came across jQuery Media [URL]... and it looks like a good start at what I'd need. Although it just focuses on video and audio, not general images.
How can I play midi and/or audio files using JavaScript? I'm hoping there are some calls/APIs I can use that I am unaware of. My JavaScript book from O'Reilly seems rather lacking in this area.
I need to allow user to download mp3 files when they click on the link rather than streaming the audio in the browser. Need to use only Javascript to download the file.
I have a company web site where I wish to open a search window with javascript. I do know and have used the window.open( for this.
The window that is opened provides a search function an returns a list of results as hyperlinks. I then want the user to be able to select the link from the list and when the link is clicked the 'poped' search window closes and the hyperlink reference be displayed in the window which referenced it in th efirst place.
/* * resX(); * * Variable dependencies: * - width * - croppingLeft * - croppingRight * - height * - croppingTop * - croppingBottom * - aspectRatio * - outputFileSize * - videoLength * - audioBitrateModulus * - framesPerSecond * - resXModulus */ this.resX = function() { var x = this.Width - this.CroppingLeft - this.CroppingRight; var y = this.Height - this.CroppingTop - this.CroppingBottom; if (Math.round(this.Width / this.AspectRatio) > this.Height) x /= this.Width / Math.round(this.Height * this.AspectRatio) else y /= this.Height / Math.round(this.Width / this.AspectRatio); var optimum_res_x = Math.sqrt(1024 * this.videoBitrate() * (x / y) / (.2 * this.FramesPerSecond)); if (optimum_res_x < x) x = optimum_res_x; x = Math.round(x); x -= x % this.ResXModulus; return x; }
/* * resY(); * * Variable dependencies: * - width * - croppingLeft * - croppingRight * - height * - croppingTop * - croppingBottom * - aspectRatio * - outputFileSize * - videoLength * - audioBitrateModulus * - framesPerSecond * - resXModulus * - resYModulus */ this.resY = function() { var x = this.Width - this.CroppingLeft - this.CroppingRight; var y = this.Height - this.CroppingTop - this.CroppingBottom; if (Math.round(this.Width / this.AspectRatio) > this.Height) x /= this.Width / Math.round(this.Height * this.AspectRatio) else y /= this.Height / Math.round(this.Width / this.AspectRatio); y = Math.round(this.resX() / (x / y)); y -= y % this.ResYModulus; return y }
/* * kbps2MB( bitrate, seconds ); * * Convert kbps for a given number of seconds to file size in MB. */ this.kbps2MB = function(bitrate, seconds) { return bitrate * seconds / 8192; } }
I am opening a new small window through javascript.
Here is the code:
But on the same page I have another link for a new window which is essentially the same code:
As you can see in the red text, one link should open map.asp and the other should open pofull.asp... but they BOTH open in pofull. So I have tried to change the function name for one of them but then it doesnt work at all.
I have tried everything to separate the two scripts but nothing has worked.
I have a JavaScript that allows you to open 5 additional windows when you click on the button. It works properly when using Mozilla, but when you use IE7, only 1 window pops up not 5.
I have a question about opening new pages when a link is clicked on a webpage. What I want to happen is this:
On the main webpage, I would like to have links to other websites. For example:
Link 1 Link 2 Link 3
Now, if I was to click links 1,2 and 3, I would have 4 browser windows open: The window containing the original webpage, plus the 3 windows that were opened by clicking on the 3 links. (I am using a href="www.,,,,," target="_blank"></A>)
Now, what I want to happen is this, I only want the mainpage to have ONE child window so that at any given time, there will be at most 2 browser windows open, the main page window and one child that is opened by clicking on a link. If I click on Link 1 followed immediately by Link 2, I don't want 2 child windows to pop up. What I need to happen is when I click Link 1, it needs to open a window. When I click link 2, the browser window that contains the webpage from link 1 now needs to show the webpage that from link 2. Is there a way to do this using javascript window.open? Code:
I have a function that opens a new window when the link is clicked. The pop-up window contains a customer's info. Each time I click the link, my pop-up is opening in the same (popped-up) window, but I'd like it to create a new window each time.
i m making a web app. after login i want the app run in a 1280*800 size window. i saw many tuts on how to make a popup window but what i don't get it where should i post the code? in the login page or the main home page and so on?
Doing a bit of window-opening: the idea is, when a link is clicked, it selects a random one from an array of urls, and then opens it with certain toolbars missing. Got a script for each part, but not sure how to combine them: 'location' seems to be talking about different things in each script.
the random script:
var single = new Array ("a.htm","b.htm","z.htm") function choose(){ window.location=choose[Math.floor(Math.random()*single.length)] }
I am working on an application (for internal company use) that is meant to be viewed over three monitors. I'm wondering how to accurately position windows on the secondary and tertiary monitors. If they all have the same resolution (say 1280x1024), can we assume that the second monitor begins at 1281, and the third begins at 2561?
I am currently designing a website for our public library. I have added a card catalog search bar on the side of every page. Our catalog software company has supplied the code. After embedding it, I previewed each page to make sure it was working properly. At the time, it worked fine. Since then, I have added other elements to the homepage such as a Twitter feed and a Flickr slideshow. Now, when I attempt to search in the catalog search bar on the homepage, it opens two tabs, but only in Firefox.
Our IT person from the software company suggested I make a copy of the page and strip the code down to see what the problem is. After doing this, I have made no headway. Even with the catalog as the only code left on the page, other than text, it still opens two tabs.
I need "No-Block PopUp Window" for my web site.. for example if users open my sites another sites show or opens for them.. even a full page site like full pages ads..and it be like One time per hour or more..I found some script like that but some of them being blocked by IE or other browsers..
ive downloaded the DHTML window script from here :
[URL]
and have it running on my site.
i also have a DTHML / ajax chat running on the site which is currently on the main page in an iframe. im trying to put this iframe inside the DHTML window, i have tried all 4 of the window types and for each one i either get the items in the directory or the source code eg
if i put the link as test/ i get the list of files in that directory, if i put test/index.php i get <php? source code blah blah ?>
it works fine with .html files i assume its because they are .php ?