I would like to implement the download estimator using the JavaScript and the Ajax.
I have gone trough Google, existing posts on stackoverflow also to find the existing implementations for the download estimator and i found most of the time asking user bandwidth and then calculating the number is strategy. It good approach and there is...
Hey Guys,
my file beginning looks like this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My title</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/update.js" type="text/javascript"></script>
<!-- sifr -->
<link href="sifr207/sIFR-screen.css" rel="styl...
var musicsrc="jyothir2.mp3";
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="infinite">')
friends my javascript( for background music) cod...
I have a function that uses GXMLHttp class to access data from server.
getGeoData: function() {
var url = 'response.cfm';
var request = GXmlHttp.create();
request.open('GET', url, true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
console.info(request.responseXML);
var xml...
If there is a tag as
<p id="name" onclick="javascript:var ele=context(this);">sumtext here</p><br>
<p id="name" onclick="javascript:var ele=context(this);">newtext here</p><br>
<script>
function context(obj)
{
var b = document.getelementbyID("area");
b.removeChild(obj);
...
I've been asked to do the front end for a web app, and to use ExtJS specifically.
I've been working through a couple of tutorials, but I've not seen much variation on the default ExtJS look and feel except for some subtle changes to the colors and what not.
The design I've been handed seems to be a radical departure from the standard ...
O, so i have a 'live search' ajax search, which currently runs an sql search (via ajax) on each key up.
What i would prefer is to:
run an sql search after a key has not been pressed for say 800 milliseconds
.
So i want to have a timer that is started on key up,
if the timer reaches 800ms then the ajax is called,
if a new keyup event...
I have the following html file that plays a wav file when the user hovers over the 'Play' anchor tag. It works perfectly on IE, Chrome, Firefox, Opera, Safari on both Windows and Mac - except for Firefox on the Mac which does not play the file.
We know the file type is supported because if the autostart attribute of the embed tag is se...
Hi all,
I've got a question about CSS based popup windows, like those generated by jQuery UI's dialog system, or Colorbox. If I use those (or something like them) to open a popup window to an HTML page and that page has Javascript in it, does the Javascript in the popup window run in its own context, or does it become part of the contex...
What are good questions to determine if applicant is really a pro JavaScript (browser side) developer ?
Questions that can distinguish if someone is not an ad-hoc JavaScript programmer, but is really doing professional JavaScript development, object-oriented, reusable, and maintainable.
Please provide answers, so an intermediate and ad...
I have just stared using jQuery and although following code gets the job done, I have a feeling that it can be shortened.
var accountAddress = $(document.createElement("input")).addClass("readOnly").attr("contentEditable", "false").attr("id", "d_accountAddress");
$("#customerid_c").next().next().next().append(accountAddress);
If it is...
Is there any Google Analytics testing/sandbox environment for testing your JS custom code before putting it to live system?
I don't want to use my real tracking ID to see if everything is correct on my dev. environment, neither I want to put my code untested live...
Is there any techniques or maybe some fake Analytics tracking lib I ...
My code is like
var shapes1 = [ r.image("node.gif",190, 100, 47, 45)];
var shapes2 =[];
for (var i = 0, ii = shapes1.length; i < ii; i++) {
shapes1[i].mousedown(function(e){
var temp=this.clone();
shapes1.push(temp);
//now I want to remove "this" from shapes1
//and put it into shape2
//HOW??...
Hello all,
I am using JQuery to get the contents of a div, which only contains a price in dollars and I would like to add $99 to it, but its text, so when I do the below it won't work.
$('#price_' + part[0]).text($('#price_' + part[0]).text() + 99);
//Changes the div contents to $10099 - if it the contents was $100 to start with
So t...
I have a problem with the jQuery UI Slider. The issue also appears on the demo.
It is more obvious in Chrome - if you go to http://jqueryui.com/demos/slider/#steps
and slide the slider, you'll not see anything wrong. If you then click "New Window" or go to (http://jqueryui.com/demos/slider/steps.html) to view the demo in a new window...
I have a problem with tinyMCE but only on live environment from some reason tinyMCE rewrite absolute url and only for some TLD sites, so far I'm notice that it doesn't work for .eu domains, does someone hade a same problem or know what can fix this?
...
I want to allow people to select a feature region on an image using jQuery.
This should work similarly to the Facebook tagger except once someone "tags" an area of the image an ellipse should appear with the ability for the user to rotate and scale it.
How can I achieve this using jQuery?
...
I'm trying to create a custom drop down and using the code below it works pretty well - only one problem is if i have more than one drop down, all the links will only activate the first drop down. Any ideas on how I would fix that? (and yes I know about Suckerfish I just need to get this to work)
function toggle() {
var ele = document....
In HTML5 there is a new input type, 'search'.
On most browser it's just remain to a simple 'text' input, but for webkit based browsers, it adds a little cross to reset the input.
I'd like to be able to handle this, is there an event for that ?
...
I am having WEbview and textfield. webview size is small(so all contents are not visible at a time) . i want to find a single word . My requirement is that suppose i enter a word in Textbox and then there are 10 occurences of that word. When i click on a button, focus should shift on occurences one by one(by click of a button). if an oc...