Download Video File From Client

May 23, 2007

I developped a SW for restaurants, pub, ecc...
It's developped in php (and html, javascript, mysql) and runs by an Apache webserver (phpdev 4.2.3). The my system is not absolutely connected to the web.

It is a client-server system: in the server is installed Apache, while the clients are PCs where only a web browser (IE) is running, connected to the server via Wi-Fi.

I have the following problem:
I want to show in the clients some videos (huge files); therefore I would kike to avoid to download them everytime from the server (in order to not overload the Wi-fi network).
The client should call a php page from the server, but the video file should be downloaded from the own (client) HD.

The question is:
Is it possible to open a file (in my case a video file) on the Local HD of the client PC by a javascript?
Please consider that, if it could be a restriction problem on the client PC, I can change the configuration because it is not an internet application.

View 3 Replies


ADVERTISEMENT

Amount Of Video Buffered Already By Client And Whole Duration Of Video

Jun 28, 2011

I am new to javascript (I started learning it today) so please explain it for newbies.I am trying to get the amount of video (in seconds) buffered already by the client and the whole duration of the video.Then, I divide them to get the precentage which was buffered so far.I have no problem storing the durating using:var duration = document.getElementById('vid').duration- returns "12.6" (seconds).I am struggling with getting the buffered time. I tried: var buffered = document.getElementById('vid').buffered.This one returns "[object TimeRanges]".From what I understood this is some kind of an object (Like an array?).I tried returning "buffered.length" and I get "1" back.

View 2 Replies View Related

Create A Way For Users To Download Code Dynamically From Webpage Via A File Download?

Oct 2, 2011

I am trying to create a way for my users to download some code dynamically from my web page via a file download. Below is the code that i have written so far. It seems to be dying on the iframe but i'm not sure why.

Here is my jquery trigger which is inside my onreadystate function.

$('#export_txt').click(function(e){
alert(LPAjax.ajaxurl + "/download.php");
$.generateFile({
action: "download_txt",
filename: "exportme.txt",

[Code]...

View 1 Replies View Related

Download Button Download File And Redirect To New Page

Apr 11, 2009

I need to have a submit input button automatically start a download when clicked, but also redirect to an additional "information" page. Since I'm not sure if this can simply be solved with HTML or must use some Javascript.

View 4 Replies View Related

Youtube Video Gallery - Clicking On A Video From The Smaller Div See The Video Being Displayed In The Bigger Div ?

Dec 3, 2011

I have a video gallery with a bigger div with width 500 pixels where the main video is waiting to be played and below is a smaller div with all the others videos from the gallery having width of 80 pixels.The list of video are managed by a content management system in PHP and are the result of youtube "Share Embed action" where the result is an iframe with the link for the video.How can i clicking on a video from the smaller div see the video being displayed in the bigger div ? already playing? or in a new layer above the website ?For now the video plays in the div it is located at.As an example here is the source video format :

<iframe width="420" height="315" src="http://www.youtube.com/embed/somevideourlhere" frameborder="0" allowfullscreen></iframe>

View 3 Replies View Related

How To Check The Input File Object File Size On Client Side?

Dec 20, 2004

I have a form with three Input File form objects in which the user can add image files. But I am worried about the problems these controls can lead, because to check the file size the server needs to receive the entire file, so serious problems may happen, for example:

1. Malicious user trying to collapse the website sending big files.

2. Users that have not seen the warning “Maximum size: 100 KBâ€&#65533; for each image, and try to send three image files consisting in 1,5 MB each one. These users will have a bad experience waiting one hour or more to upload the images, and after that receive an alert saying “Oooops! Your image files are too big.â€&#65533; And also, web server will waste an important amount of resources. The same case with 100 users at the same time can be a nightmare!


I have been searching a way to check the file size on client side without having to force user to install anything, but I think that there isn’ t nothing to do with javascript. But I found an interesting PHP article that explains a way to do it with this server side language. The technique consists in:

“A hidden field (measured in bytes) that precede the file input field, and its value is the maximum filesize accepted. This is an advisory to the browser, PHP also checks it. This form element should always be used as it saves users the trouble of waiting for a big file being transferred only to find that it was too big and the transfer failed. Code:

View 1 Replies View Related

Use Client Side .js File To Load A Local .html File?

May 18, 2009

I have a .js file, we want to make it to load a html file right next to it, both files are on client system. I couldn't find any such examples and some posts talked about JavaScript security issues, I wonder if it is related to what I want.

Someone said .js file is not really JaveScript file, though Microsoft named it 'JavaScript'.

note that I am trying to "call" .html file from the .js file, not embed html code in .js.

View 8 Replies View Related

JQuery :: Form Malsup - IE7 "File Download - Security Warning" On Ajax File Upload ?

Dec 15, 2010

I implemented Malsups jquery form and use it for ajax file uploads. Works fine in FF, but in IE as soon as the ajax has completed the upload IE gives me a File Download box - Security warning. If I click on save it save thereturnedJson object (I do JS call onsuccessto get a file list and display it). If I click cancel or save on the popup has same effect the file still gets uploaded but just looks ugly.

How can I get rid of this? All coming form the same domain, calling from the same domain. This is on a python django project and I am testing it on the dev server.

Its pretty basic jquery nothing to exciting, don't get why IE would cause.

View 4 Replies View Related

Download More Than 1 File

Aug 17, 2006

I'm using ASP.NET and setting window.location.href in my web page to output an audio file that the user is prompted to download. I would like to provide a link so that the user can download the audio file and an XML file one after the other. I've been experimenting with opening a new
window, but there must be a cleaner way of doing this.

View 1 Replies View Related

Dividing A File Before To Download It

Nov 23, 2005

I need to download - randon size - parts of a file, not the whole file.
Says: I have the zip file test.zip, it is 10 mega bytes long. But I
don't want the 10 mega today. Today I want 5 mega bytes. Tomorrow I
could want more 3 mega bytes of the file, but it is not sure, could be
4 mega bytes. I need to part the zip file in chunks at request. No CGI,
no asp, no php. Only client side scripts.

View 5 Replies View Related

Type In Js File Name In The Url Get A Download Box

Feb 24, 2011

i noticed today that if i type in my js file name in the url i get a download box, i have an htaccess on my site so this should not be happening, thats another issue.. my question is, is there a trick to creating a js file that cant be accessed in this manner, i was thinking about adding a php define statement as it comes from one source only, but i wanted to ask first to see if there was something on the js side i could do or is that strictly a htaccess or server side issue..

View 2 Replies View Related

Get Message Box Before File Download?

Mar 30, 2011

I'm wanting a message box to appear when a user clicks on a link that pops up a message. Once they click "OK' on the message box, a file download box pops up letting them open/save the file.

Basically a person clicks on a link for a class. A message box pops up saying "Please print and bring the following papers to class." When they click "OK", the *.pdf file pops up ready to be downloaded.

View 1 Replies View Related

File Download Problem

Aug 30, 2005

I know there got 1 function is fileUpload, the code is like this:
<input type="file" name="filename" size="35">
After that will prompt out 1 dialog box to let user to select file to upload.
*User must select 1 file to upload.

How about If I just want to browse the path? and I do not want to select a file but create a filename by myself?

Actually I just want to specify the path and filename so that later I can create 1 file by using the filename and create the file in that path.

View 1 Replies View Related

How To Save The Download File.

Feb 13, 2011

There is text file save on my pc.i wnat a code which give the solution that after complete the code it should show the that text file and there should be option of download and on click on the download button there should be option of save and cancel and on click on the save there should be option of location so that i could save that file at that location.

View 3 Replies View Related

Download An .epub File?

Feb 3, 2011

I would like to download an ebook file with the extension .epub. If I use a regular link, I get an error message saying "page not found". I want to make an automatic saveas window comes up.

Can anyone help me with the javascript code.

View 1 Replies View Related

How To Dynamically Chose Download File

Dec 22, 2005

I would like to create in my site a picture that when a user clicks on
it, a javascript code which determines which file is to be downloaded
to the user, is ran.

My problem is that I do not know how to make the file that was chosen
by the javascript code to be downloaded to the user.

I know how to do it statically (using anchor) what I'm looking for is
how to do it dynamically.

View 6 Replies View Related

JQuery :: Download File In Background?

Jul 16, 2010

Is there a way to get jQuery to download a js file in the background without parsing it? I have a CMS with a login form, which may take the user 3-5 seconds to fill in the data. I am thinking that if I can pre-load my js scripts which are used after the login page, then this will make things quicker after they login. Can this, and should this, be done?

View 4 Replies View Related

JQuery :: Execute JS After File Download?

Aug 3, 2010

i have a link to a dynamically generated report download. when you click the link it takes a while for the server to do the number crunching and return the file. i need to execute some JS on completion of the file download. is this even possible??

View 5 Replies View Related

Make An Xml File Download From Website?

Dec 10, 2009

I am trying to make an xml file download from my website, so the saveAs window will be open, I checked the forum and found the following code. but instead of saving the xml file it saves the html file.

<html>
<script type="text/javascript">
function forceSaveAs (filename){

[code]....

I also try to send the xml with the following header but with no success

print "Content-type: application/octet-stream

";
print "Content-Disposition: attachment; filename=file.xml;"

View 2 Replies View Related

Download A File Automatically In Every 3 Mins?

Dec 4, 2009

I want javascript to download a file automatically in every 3 mins and save it to my server.

Is it possible. What will be the javascript code?

View 1 Replies View Related

Building A Dynamic File For Download?

Jul 5, 2011

I have a website which displays routes on a map. The data behind this is held in a MySQL database. What I want to do is to be able to click a button and the current route information would be download in a gpx file (xml variant) for that route, built from the database. I'm using shtml, Javascript and perl. Is it possible? The formatting of the data is not an issue. I am a real novice and have self taught enough to get where the site is today, so please be gentle.

View 2 Replies View Related

Check When File Download Is Complete?

Apr 15, 2010

I am trying to build a script, where the file references get added to an array when downloaded.

I have a slideshow so I want it the image references to be dynamically added to the javascript array. Any ideas how to do this? Is there an event which returns true when download complete

View 1 Replies View Related

Download File Request From Browser

Nov 7, 2001

I am trying to trigger the download of a file from the browser (at the moment a word file!).

But when I supply the link as an '<a href='...'>' html tag the document appears in the browser. Although this is quite good I unfortunately need to open up the download dialog box.

View 2 Replies View Related

Allow User To Download File From Array?

Oct 19, 2011

I have an array that is made and modified in a function. At the end of the function I want to have the array to be sent as a file to be downloaded to the user. How can I go about doing this?

View 7 Replies View Related

Download And Read JSON File?

Sep 14, 2010

I need to download and read one *.json file in my javascript. Do you know about some library or the best how to do that? The best would be be if the solution would work in all web-browsers.

View 2 Replies View Related

Detect End Of Video File.

Jul 23, 2005

I have a webpage in which a media player is embedded.I would like
to close the page at the end of the video. Can I detect the end of the
file so as to close the page programmatically?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved