I have a container with a lot of small images.
<div id="container">
<img src="1.jpg" />
<img src="2.jpg" />
<img src="3.jpg" />
...
<img src="100.jpg" />
</div>
I set opacity to 0. (not hidding)
Then I want to show(fadeIn) random image after half second. for example 5th, 1st, 55th ...
Any suggestions, thanx a lot
...
I have a javascript function from where I am trying to call the serverside function WebSchedule.Client.RadGrid1_SelectedIndexChanged. This is the code:
<script type="text/javascript">
function RowSelected(sender, args)
{
var dataKeyValue = args.getDataKeyValue("Order_No");
document.getElementById("txtOrde...
I have created a jQuery content switcher. Generally, it works fine, but there is one problem with it. If you click the links on the side multiple times, multiple pieces of content sometimes become visible.
The problem most likely lies somewhere within the click event. Here is the code:
$('#tab-list li a').click(
function() {
...
Does this look like it should work? I'm wanting to generate directions from one latitude/longitude to another latitude/longitude.
var dirMap = new GMap2($("#dirMap").get(0));
var wp = new Array(2);
wp[0] = new GLatLng(35.742149,139.337218);
wp[1] = new GLatLng(35.735347,139.328485);
var marker = new GMarker(wp[1]);
dirMap.addOverlay(ma...
I'm creating silverlight without visual studio. I just have raw html, xaml, and js (javascript).
What I want to do is pass values from the xaml to the javascript. I can call and activate javascript functions from xaml. See below. The canvas element has a mouse left button up event that callls LandOnSpace in the javascript.
But ho...
Netscape fails to read a lot of jQuery written. What steps do you take to overcome these, and how much of the market do netscape users take up?
...
ECMAScript 5 is in final draft now, and includes new features relating to objects and prototypes. While hunting around SO and Google for OOP design patterns, I found that there were quite a few different ways of "doing OOP" (however you might define OOP, from trying to emulate classical OOP to simply trying to cut down namespace polluti...
Hi guys. I don't know the name for this, if did i would search for it.
I wanted something like this, i think its uses javascript but I'm not sure how to do it know.
In a web page you have 2 listboxs, its content comes from mysql.
There is 2 tables in the database, for each listbox, they are both related.
Then when you select a item f...
I am working on a Firefox addon and I currently need to dynamically add menuitems to a menupopup element. I have tried basically all of the approaches on the Mozilla Developer Center and none of them work.
function populateDropdown() {
var counter = 0;
for (var key in services) {
var newMenuItem = document.createElementNS("http:...
There is large website all data comes from database ,
I want to remove all instances of "(MHC)" from next to company name on this page, and also more than 12 other pages.
like "Northfield Bancorp Inc. (MHC)" to "Northfield Bancorp Inc."
Is there any javacript for this, I have tried xslt solution, but still prefers Javascript solution....
I was reading a tutorial and the author mentioned to include Javascript files near closing body tag (</body>) in HTML.
I was wondering for what type of functionality I should not declare/define JavaScript include in the head section? It makes sense to me include JavaScript like Google Analytics near the closing body tag. Where should I...
Is it possible to do this:
myfile.js:
function foo() {
alert(<my-function-name>);
// pops-up "foo"
// or even better: "myfile.js : foo"
}
I've got the dojo and jquery frameworks in my stack, so if either of those make it easier, they're available.
...
We have a very large JavaScript application where after many months of coding there have inevitably sprung a couple scope slip ups where a variable is defined in the following fashion:
function() {
x = 5; ...
}
instead of:
function() {
var x = 5; ...
}
This is happening somewhere -- We're not sure where -- and s...
I have a web application that pops up another window.
If the person closes the main browser window, I need to close the child window as well.
Is this possible? If so, how?
...
<script language="JavaScript1.2" src="aj.js">
I am calling function a() for my image onload event .but i am getting the error - function a() [a.js has function] is not defined.
How to resolve this issue
...
What is the difference between the following lines of code:
function foo() { return 5; }
var foo = function() { return 5; }
var foo = function foo() { return 5; }
What is a named function expression and how do browsers deal with these constructs differently?
What do the responses to a similar question (http://stackoverflow.com/qu...
I have the following code below for a button on an aspx page. When it is clicked it should call a javascript that will print the text in that div. Everything works great in IE & Firefox but when it is tried in chrome it is as if the OnClientClick is not kicking off the javascript. I receive no errors and it works in IE and FF now.
...
Is there a way to map the computed style of a dom element (as retrieved by window.getComputedStyle) to a corresponding CSSStyleRule in document.styleSheets?
My ultimate goal is to retrieve specified values for dom elements (rather than computed values or actual values).
...
Hello:
I am using the following JS function to open a pop-up window to display another website:
function link()
{
window.open("www.google.com")
}
onClick="Link()"
The URL in the above example is just for testing. I actually intend on replacing the URL with a text value from a listbox, which is in the form of a URL. Anyway, when...
Hi, I've been having some weird issues when it comes to make an AJAX request and handling the response.
I am making an ajax call for an xml file. however when i get the response the xhr.responseText property works fine in firefox but not in IE.
Another thing is that I am trying to access the xhr.responseXML as XMLDocument, but it tells ...