Minimum Bandwidth For Streaming Picture?
Jul 23, 2005I need to know the min bandwidth for streming picture?
View 1 RepliesI need to know the min bandwidth for streming picture?
View 1 RepliesThe code is working 100%, but the only problem is with the function calling statement. It is working on the first img (picture) i want it to be called on the second picture.
<!DOCTYPE html PUBLIC "-w3cDTD xhtml 1.0 strict EN"
<html xmlns=http:www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = http:www.w3.org/1999/xhtml">
[code]....
I am trying to change a picture in a program but I keeps being a broken picture link.
[Code]...
I've been working on photo gallery that can be seen here: [URL] I would like the title to change according to the picture selected. This works when you click on the thumbnail images. However, it current does not work with the drop-down menu, "back" and "next" buttons, or the automatic slide-show.
[Code]...
i looking for a way to stretch picture in background and put some divs over that picture with links and text. what i find so far don't work in all browsers any one know something like this?
View 5 Replies View RelatedDoes anyone have a good java script that I can add to my page so that the same user doesn't pound my site and use all of my bandwidth?
View 12 Replies View RelatedIs there a way where I can "guess" what relative speed the user's
connection is?
Currently, the client is wanting some graphical intensive content and
I'd like to be able to warn users on dial-up to allow them to go to a
"gracefully degraded" version.
I thought of simply putting up a question for users to answer but the
client would rather it happen, more or less, automatically.
I found this on JavaScriptKit. It checks to see if the site accessing the data is your domain. I found it pretty cool.
//Beginning of "test.js" file
var accepted_domains=new Array("wsabstract.com","javascriptkit.com")
var domaincheck=document.location.href //retrieve the current URL of user browser
var accepted_ok=false //set acess to false by default
if (domaincheck.indexOf("http")!=-1){ //if this is a http request
for (r=0;r<accepted_domains.length;r++){
if (domaincheck.indexOf(accepted_domains[r])!=-1){ //if a match is found
accepted_ok=true //set access to true, and break out of loop
break
}
}
}
else
accepted_ok=true
if (!accepted_ok){
alert("You're not allowed to directly link to this .js file on our server!")
history.back(-1)
}
/////rest of your libray
"
"
"
What I'm doing is taking the parts of my web site that apear on every page, for example the tags from the first <html> tag to the <body> tag, and I just put some JS code into an external file that tells it to write that same code to the browser, then I call the external file where I had the original code.
That way the external file gets cached and they don't have to re-download that part of the code every time.
Combining this, with some other things including gzip I've been able to get my main index page down to 300 bytes, not including images, css files or js files, which are only downloaded once because of caching anyways(and they aren't that big in size themselves, either).
Of course this wouldn't work if you don't want to alienate people who don't use javascript, but 9/10 people do so for some this might be helpful...
Also, this still works with dynamic content as well. for example what I did for my main page where I display the news in little "news boxes" as I call them which are basicly divs setup so they look nice visually... what I did was make a function in the external JS file that accepts the different parts of the news box such as subject, body, time/date of post and who posted it, and then it creates the HTML for it. Then it's really easy to change the look of the displayed news by just changing the js file.
I'd like to know please if there is a Javascript solution for enlarging pictures.
The outcome I am seeking is for the user to click on a thumbnail picture which then links to a bigger picture I dont want to use a HTML hyperlink.
How would you go about writing a script to switch the style sheet if low bandwidth is detected? Is this even possible?
View 3 Replies View RelatedI'm trying to come up with a script and I'm having a heck of a time...
I require users to enter the size (in MB or KB) of the attachment they
wish to transfer/upload. As they enter the number and move over to
the next field (using onBlur or...), I would like a popup/alert window
warning them that this attachment size would take "x" amount of time
based on a speed of 24 kilobits per second (kbps). If they are happy
with the amount of time, I wish to allow them to click OK (to carry on
with the transfer) or Cancel/No to cancel it.
I have a streaming audio feature set up using a M3u file and a bunch of
MP3's: http://www.motorcityrock.com/mcr_radio/mcr_radio.html. When then
visitor clicks on the link the M3u kicks in and the songs play in the
pre-determined order. That works great, but everytime a visitor clicks the
link the songs start from the beginning. Is there a simple way (using
Javascript or?) to keep the M3u "running" in the background all the time so
that all visitors will hear the same song at the same time...just like a
traditional radio station?
Is it possible to stream XML data from a file using AJAX?
The xml file is constantly being updated by a backend program, I currently have a javascript that has a timer, every second it just runs a loadXML() function to return the XML data however having a few problems with the javascript tripping over itself.
Wondering if AJAX has streaming abilities?
Also, can someone please clarify for me, is the xml dom javascript, or ajax? As I have just read a ajax book that tells you to use xmldom to read xml data but im already doing that, with javascript, what is the difference?
I have just uplaoded my web page and I have having problems playing my files. The entire page works well on the hard drive but dosn't work after I upload it. I assume the problem must be to do with the streaming.
You can view the page to see what I'm trying to do at ....
I am playing with the XMLHTTPRequest method to perform client/server
transactions. I have it set up right now so that when readyState is 4,
it takes the XML and processes it. This works great until there is alot
of data. In that case, the user will have to wait for the data to come
back which may take a minute or so.
I don't want the user to have to wait. Is it possible for javascript to
periodically (while still receiving more data) stop and display what it
has received thus far? I guess this would be considered a type of
streaming.
In mozilla/firefox, I have read that I can use readyState 3 to run my
callback function every 4096 bytes. I can then take those 4K, parse
them, and then continue on. However I have also read that IE cannot do
this. Since I need this to work in IE, is there a workaround?
I wants to access server web page which data is continuously growing(streaming data), I want to buffered some of that data write it in responseText then again get next buffered data write it and so on (in AJAX).
View 3 Replies View RelatedI wanna play streaming audio (an asx.file) trough javascript. I allready found a tutorial on the net. Till so far it works (I can push play, pause and stop), but I want to change the volume to. An example: Code:
Do you know where the problem is? One thing that I must say is that the tutorial (where I took it from) worked with a wav-file, as you can see I work with a streaming file (asx-file).
<html>
<body>
<div style="width:500; height:200; border:1px solid black;">
[code]....
I'm working on a sign-up sheet for a website. I have a text input field, and I need something to verify that the number the user inserts is greater than or equal to 3500. I already have a Javascript function in place that only allows numbers to be typed into the field so that's not an issue.
View 1 Replies View RelatedI have two text areas. I would like to prevent form submitting if the member does not enter at least 100 characters in each text area. There is no maximum number of characters, just the minimum (100 characters).
In case that he hit submit button I would like to display him a message that would inform him that he didn't enter minimum requested characters.
It would be neat if I could have the character counter below of each text area which should be decreased with each entered character.
I am going to use the server push
for streaming the data by keeping the connection open. At client side,
i am having the XMhttprequest object (i.e ActiveX object of IE). When
the data comes, onreadystatechange method get callback on state 3 but
it doesn't allow me to read the data from the object. It says 'The data
necessary to complete this operation is not yet available'. Is it
possible to read the streaming data from the XMLHttprequest object in
IE?
I know Mozilla supports to read the data, when the ready state is 3. In
Internet Explorer, how we can use the XMLhttp Active object to read the
streaming data.
Scenario
: I have Jquery datepicker in my form, The form have such requirement that the datepicker should only show the dates form current date.
Problem
:How should i set minDate to current date in datepicker functionality.
Ive just started to learn JavaScript, and I have trouble to write JavaScript code which checks a string to contain at minimum one uppercase letter, one lowercase letter one number and one special character with no white space allowed.
View 4 Replies View RelatedI am using window.showModalDialog() to open a modal dialog window. I would like to set a minimum size for the window (width & height).
I set the following:
Code:
<body onresize="pageResize()">
...
</body>
In a javascript file I have:
Code:
function pageResize() {
var windowWidth = document.body.clientWidth;
var windowHeight = document.body.clientHeight;
if (windowWidth < 100) {
document.body.clientWidth = 100;
}
if (windowHeight < 100) {
document.body.clientHeight = 100;
}
}
I get an error saying: "Object doesn't support this action" for line settings:
Code:
document.body.clientWidth = 100;
Is there another way of doing that?
I want to stream audio into a hidden frame and load, stop, and control
volume via JavaScript. I'm thinking w/ Windows Media Player.