Stop People Using Bandwidth

Jul 23, 2005

Does 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


ADVERTISEMENT

Switch Content If Low Bandwidth

Sep 24, 2007

Is 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.

View 7 Replies View Related

Bandwidth Theft Prevention

Jul 27, 2002

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
"
"
"

View 1 Replies View Related

Saving Bandwidth With Javascript

Mar 7, 2003

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.

View 3 Replies View Related

Minimum Bandwidth For Streaming Picture?

Jul 23, 2005

I need to know the min bandwidth for streming picture?

View 1 Replies View Related

Style Switcher If Low Bandwidth Detected

Mar 22, 2010

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 Related

Javascript - Download/upload Times W/bandwidth

Jul 20, 2005

I'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.

View 4 Replies View Related

How Many People Run With JS Disabled?

Jul 23, 2005

Is there any statistical data available about what percentage of browsers run with JS disabled?

View 24 Replies View Related

Getting Address Of People Accessing Site Using Js

Jul 23, 2009

I'd like to be able to get the address of people accessing my site. I don't need their actual house address, just a general area like zip code or city/state/country. Is something like this possible? I know you can do this in php.

View 2 Replies View Related

Statistics On How Many People Have Javascript Enabled?

Mar 15, 2003

I wondered if anyone knew of any statistics about how many people have Javascript enabled/disabled. Also, what sort of policies do IT departments have towards it. I know of at least two large organisations that have Flash disabled for instance.

View 2 Replies View Related

Prevention : People Stealing Pages

Feb 22, 2001

i want the browser to test wether or not a page that is
called is beieng called from within the specified window
the script is originally used to prevent a page within a frame to be called alone it redirected the user to the main window if i can call it that so that parts of
your frames could not be viewed alone

i have managed to secure most of my site
no rightclicks can be performed and no options to view
source code by using a chromeless window the problem now
is that i wanna make sure that someone cannot call a page
into a normal browser window by using shift while clicking
on links thus preventing anyone from getting to my source code.

View 10 Replies View Related

Displaying When People Put There Mouse Over The Links?

Apr 17, 2009

I'm try to hide the title of some links on a web page. I'm using the title property of some links to pass a description of the images linked to a lightbox script. These descriptions are long and formatted in HTML so I don't want them displaying when people put there mouse over the links.

Heres an example of my title tags:

Code:
<a href="image1.jpg" title="<b>Blah</b> <br> Blah" alt="" rel="lightbox">Image 1</a>

I heard this can be done in Javascript but can't find any information anywhere,

View 5 Replies View Related

Preventing People From Entering HTML In Textarea

Jul 20, 2005

I have a text area and I want prevent people from entering HTML text in the text area....

View 3 Replies View Related

How To Protect JS Code From Analysis By Competent People?

May 16, 2003

I'm developing very advanced web-based intranet application that uses a lot of very complex JavaScript for interface, including charting via ActiveX components and other processing.

Obviously I'm tempted to make the analysis of the javascript code very hard for people who may wish to steal my code and/or ideas.

Is there is anything I can do to make analysis of .js code difficult for *professionsals*?

View 3 Replies View Related

Allow People To Download Mp3 File By Clicking Button

Dec 25, 2010

I'm trying to allow people to download music files, from my web site server, to their desk top, by clicking a button. I don't know if I need html or some kind of script. The page already plays short music clips automaticly with a simple "onload" script I found somewhere--but I don't know how to get the viewer a copy of the music for their mp3 player or disk burner.

View 5 Replies View Related

Why Do People Prefer Ajax Apps Over Java Applets?

Sep 21, 2006

From the common user perspective (like my grandma), why would they care
if its a java applet or an ajax application? Say I want to make a chat
system on my website...If i'm doing really involved Comet push-style
data communication, and rendering everything using DHTML, why would
users prefer that over a java applet?

Moreover, say I use a java applet to transfer data through a socket
connection, then use DHTML to display the data, so that basically the
front end is the same, but the backend is differs, why would a user
prefer the comet-style programming over applet?

I'm asking because I wrote an Ajax chat system through polling, and I
want to switch to a Comet push-style system because polling just isn't
responsive enough. I want to know if I can avoid Comet (since it is
alot of overhead for the server) and just use an applet in the
background to transfer data through socket connections, then use DHTML
to render the chat boxes.

View 8 Replies View Related

JQuery :: PHP Script That Will Use Pagination To Display What People Have Written?

Jan 27, 2011

I'm creating a PHP script that will use the pagination to display what people have written. This will can get fairly lengthy and I was wondering what is the best way to develop my php script to be fast and effective. I'm scared that if I output an entire query of all of the data that it will be slow. Would it? Could it slow down the javascript?

View 2 Replies View Related

Disable ALT + TAB Key Combination On My Webpage To Avoid People Using Any Other Application?

Feb 27, 2007

I want to disable ALT+TAB key combination on my webpage to avoid people using any other application while using my application while working on my website.

View 14 Replies View Related

Anti - Ignorant People - Reading The Usernames And Passwords?

Feb 2, 2010

I have this script, where I want it to use a multi-user login. the code is below.

[Code]...

I have 2 problems. One is that mainly, it doesn't work! And Two, is there someway you can block an external script from being viewed in a browser, or someway to keep people from reading the Usernames and Passwords?

View 1 Replies View Related

Show Images After People Scroll Down The Page - Don't Load Them Immediately?

Sep 21, 2011

show images after people scroll down the page - don't load them immediately after the page is loaded.also the images which are below the scroll should be first loaded when an user scrolls down.i need a javascript for that, but i don't want jquery! the code should be as short as possible.

View 2 Replies View Related

Confirm Doesn't Stop On Cancel / Stop It?

Nov 3, 2011

I m trying to make a person stay on same page on cancel, but the confirm takes the user to the next page like they press ok. how can i stop it? code...

View 1 Replies View Related

HTML - Build A Web Page To Conduct A Fictious Online Poll And People Vote Their Favourite Candidate

Jul 14, 2011

I am trying to find the answer of the following. Suppose, I am trying to build a web page to conduct a fictious online Poll and people vote their favourite candidate. Now each voter is allowed to vote only one candidate from any one party. I have made the code with JavaScript and HTML. But the problem is that, after voting the Candidate and pressing Submit, the page should open another new page where the voter must select any one name of the party to which the candidate belongs and Submit again. But my problem is that, I am trying to open that new page in the place of the existing page but its only opening in a new window. Putting '_self' doesn't work! (I am using radio buttons. It also needs form vaildation so the voter must vote!)

<HTML>

Use any html file of yours as party_names.html. If you omit "_self" from it, then it'll work properly. But that opens a new window for party_names.html. But I want it to open the new page in the same window carrying the data selected from both pages in order to process in the server.

View 9 Replies View Related

Add A Stop Button To Stop The Clock?

Oct 19, 2010

How do I add a stop button to stop the clock. Here is my code below.

<HTML>
<HEAD>
<script language="Javascript1.2">
<!--

[Code]....

View 3 Replies View Related

Onclick Event - Prevent People From Clicking "search" Twice

Jun 15, 2010

I have very intense php script that takes from 5 - 30 seconds to execute, depending on user request. So I want to prevent people from clicking "search" twice, so I decided to glue it by disabling button on click.
Here is my code:

[Code]...

But, for some reason it won't proceed. JS executes fine, but form won't go on. What is wrong?

View 1 Replies View Related

Stop Getting Intercepted In A Pop Up

Nov 11, 2005

<html>
<script type="text/javascript">
win=window.open();
var printDoc=win.document.open('text/html','replace');
printDoc.writeln(""211PNG

View 1 Replies View Related

Stop An Ad Box Floating?

Aug 10, 2009

I have a website that has an ad box to show the next event. after many hours i got the box to sit above a flash menu but it now floats and when people try to scroll to read the rest of the flyer it is always bellow the screen...

<style type="text/css">
<!--
#sponsorAdDiv {position:absolute; height:1; width:1px; top:0; left:0;}
-->

[Code]....

View 10 Replies View Related







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