I'm wondering if anyone has ever come across a plug-in for mootools that will show a hidden div (with embedded video in it) as a light box, upon a click on a link.
What I wanted is somehow like how apple trailers site show the embedded quicktime player.
...
As a rule of thumb, which of these methods of writing cross-browser Javascript functions will perform better?
Method 1
function MyFunction()
{
if (document.browserSpecificProperty)
doSomethingWith(document.browserSpecificProperty);
else
doSomethingWith(document.someOtherProperty);
}
Method 2
var MyFunction;
if...
I have a bunch of images on my ASP.NET page like so:
for (int i = 0; i < 3; i++)
{
Image image = new Image();
image.ID = "UpdateStatus";
image.CssClass = "imageCss";
image.ImageUrl = "Bump.GIF";
this.Controls.Add(image);
}
I want to loop through each image.
Why does this not work? i.e. "Function 1" is outputted bu...
I used a OCX which is designed to control Video.
If I use OCX in the vb.net , and send command to get a snapshot picture,it would return a bytes array,then I turn it to be a stream then turn it to be a Image , then It would show it correctly.
but when I embbed OCX in webpage, It still work will,but I can`t catch the snapshot picture,
if...
I have some one page whose div elements are aligned by JavaScript. The JavaScript just check a set of div elements to find the max offsetWidth, then set all div elements' width to be the max offsetWidth. It works perfect in most browsers and locales, but it fails on french-France in Firefox on Mac. In this case, the content of div wraps....
I have a web page on which I would like to display dynamically a tree based on a JSON array with the help of jQuery. Each node of my tree has a checkbox associated to it. When I click a node which has children, I would like all of them to be checked. I’ve already taken care of printing the tree and the checkboxes and I am now trying to s...
Hi Friends
I want javascript for Image captcha in html code.
Whcih generates images dynamically and match the given character with image characters.
Before entering into the new page it should have to check whether both are same or not
I want to create it in my own, How i can achieve it?
Thanks in Advance,
Praveen J
...
I sort of understand closures in javascript, but what I'm not sure about is how it treats nested functions. For example:
var a = function(o) {
o.someFunction(function(x) {
// do stuff
});
}
I know a new closure is created everytime I call function a, but does that closure also include a new instance of the anonymous fu...
I have a bit of javascript magic going on to create and hide divs on the fly as the user interacts with the page. Each div contains a view of some part of my application and each model instance in these views has an owner. If the person browsing the page is NOT the owner, they just see the data. However, if the user is the owner of th...
$.ajax({
type: "GET",
url: "something.html",
dataType: "xml",
success:function(data){} ,
});
The content while accessing "something.html" is an XML but the above call is failed where if I use "something.xml" it is working fine.
Is it possible to make jQuery to forcefully evaluate the data as XML, without worrying ab...
If I called an ashx page as the src for a script tag and it outputs all the values and a document.write of the contents. Would this been seen by the robots or would this text not get picked up at all since its in a script tag?
For example,
<script src="sitemenu.ashx" type="text/javascript"></script>
SEO is one of the requirements of ...
I am creating a web game for learning new words aimed at children.
I have a set of four links each displaying a specific word retrieved from my database and a clue, I need to check that the word which has been selected matches the correct word for that clue.
I know that I need to use javascript because of the onClick function and I can...
I want add a key up event to every text box element in a table excluding the last text box in each row. The table is dynamic on both axis.
The key up event will total the values in all but the last text box. The total is then placed in the last text box for the row.
The script for the totaling and setting the total all works fine.
I...
I'm looking for a framework or library to create SVG images. It should run in the browser, so it should be based on Flash or maybe JavaScript. Up to now I found the Flash library by inevo.pt, the SVG editing component of Dojox, and some little JavaScript tools.
Is there anything else, preferrably stable and mature?
Thanks a lot in adva...
I am doing one project, in which I want to access the folders from remote system connected via LAN.
From that I have a drop down list. When I select the remote system drive letter (eg: c:, d:) the corresponding files in that folder will displayed in my system.
Is there any tutorial for this?
I've tried this, but it works for local sy...
I have the following form(echoed through php), which when a radio button is selected, I want that value to be passed to a javascript function, which I can then deal with.
<form id=\"form1\" name=\"form1\" method=\"\" action=\"JavaScript:alterRecord()\">
<input name=\"radiobutton\" type=\"radio\" value=\"test1\" />Test 2<p>
<input name=\...
I'm kind of new to JavaScript and jQuery and now I'm facing a problem:
I need to post some data to PHP and one bit of the data needs to be the background color hex of div X.
jQuery has the css("background-color") function and with it I can get RGB value of the background into a JavaScript variable.
The CSS function seems to return a s...
JQuery is not working in ASP 2.0 pages which were developed under VS 2005 and now doing Javascript in it using Visual Web Developer 2008 Express. I have included the jquery file.
I have also installed all patches required. JQuery intellisense works fine in the IDE, but no jquery command is running. btw, the page renders fine from the ser...
I have a js file like:
function loadXMLDoc(fname)
{
var xmlDoc;
// code for IE
if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation
&& document.implementation.createDocument)
{
xmlDoc=document.implementat...
Is it possible to find the memory address of a JavaScript variable? The JavaScript code is part of (embedded into) a normal application where JavaScript is used as a front end to C++ and does not run on the browser. The JavaScript implementation used is SpiderMonkey.
...