Hello,
Is there a way to check how much a flash file is (down)loaded to the page before it is shown?
Our team cant put loading indicator inside the flash file because the swf file is uploaded by our client. Is there some kind of property on xmlhttprequest that we can use to indicate how much has been downloaded?
Or any other suggestion t...
I'm using JQuery and Prototype in this web application that I'm developing. I'm looking for a way to use Lightbox v2.04 by Lokesh Dhakar to play flash movies. If its not possible using the Lightbox v2.04 then what other ways can I accomplish the shadowing overlayed flash video pop-up with jquery and/or Prototype? The reason I'm set on...
I need to find a reg ex that only allows alphanumeric. So far, everyone I try only works if the string is alphanumeric, meaning contains both a letter and a number. I just want one what would allow either and not require both.
Thanks!
...
In netbeans I created an html page in which I am using Yahoo utils. If I type "yahoo." then namespace, render, hide are not visible in the interactive documentation. Please tell me how to configure Netbeans to handle this.
...
Hi, I've been watching Douglas Crockford's talks at YUI Theater and I have a question about javascript inheritance...
Douglas gives this example to show that "Hoozit" inherits from "Gizmo":
function Hoozit(id) {
this.id = id;
}
Hoozit.prototype = new Gizmo();
Hoozit.prototype.test = function (id) {
return this.id === id;
};
M...
From MS AJAX source code,
Type.isClass = function Type$isClass(type) {
/// <summary locid="M:J#Type.isClass" />
/// <param name="type" mayBeNull="true"></param>
/// <returns type="Boolean"></returns>
var e = Function._validateParams(arguments, [
{name: "type", mayBeNull: true}
]);
if (e) throw e;
if ((typeof(type) === 'undefined') |...
I have a page which has a rectangular area with text and icons in it and the whole thing is clickable. The anchor tag is set to display: block. One of the icons has an onclick handler. If a person clicks on an icon, I just want the icon's onclick handler to run and not to actually activate the containing anchor tag.
Firefox behaves l...
Is it possible to raise a "custom event" in an ASP.NET user control and to subscribe to the event in the calling page? This way I can have any containing page react to changes in a user control without having to do a partial or full postback.
...
I have a page in my application that refreshes some content (a list of users currently signed in) from the server every 10 seconds. This data is loaded using the Ajax class from the mootools framework, specifically with Javascript that looks like:
var xmldata = (function() {
new Ajax('xmldata.jsp?time='+$time(), {method: 'get', onCo...
I'm working on a web app (ASP.NET) that has some features that require Microsoft Excel installed on the client. I'd like to disable those features if Excel is not present.
Windows/IE/Excel only solutions are fine. This is not a multi-browser, multi-OS web app.
Any clever JavaScript out there to accomplish this?
...
I need to limit the jquery ui date picker to only have future Tuesdays and Thursdays as selectable days. How can I accomplish this?
...
I've have finally got the datepicker to work on my MVC demo site. One thing though it doesn't work when browsing with IE7, I havn't testet with IE6 yet. Does anyone know how to fix this problem or can't I use jQuery if I want IE users to be able to pick dates?
It works like a charm on Safari and Firefox, except for it's position when dr...
Say I need to call a javascript file in the <head> of an ERb template.
My instinct is to do the usual:
<head>
<%= javascript_include_tag :defaults %> <!-- For example -->
</head>
in my application's layout. The problem of course becoming that these javascript files are loaded into every page in my application, regardless of whether or...
Hi,
I'm using the code that netadictos posted to the question here. All I want to do is to display a warning when a user is navigating away from or closing a window/tab.
The code that netadictos posted seems to work fine in IE7, FF 3.0.5, Safari 3.2.1, and Chrome but it doesn't work in Opera v9.63. Does anyone know of way of doing th...
There is a JavaScript parser at least in C and Java (Mozilla), in JavaScript (Mozilla again) and Ruby. Is there any currently out there for Python?
I don't need a JavaScript interpreter, per se, just a parser that's up to ECMA-262 standards.
A quick google search revealed no immediate answers, so I'm asking the SO community.
...
Is there any way to change style of text, format the text inside a Javascript Alert box. e.g. changing its colour, making it bold, etc.?
Also, if there an Alert avalaible with a 'Yes', 'No' button instead of an 'OK'/'Cancel' one?
...
Dear all,
I have a javascript function pop_item I have to call this from PHP, so my PHP code is the following:
echo '<a href="javascript:pop_item('.$_code.',1)">Link </a>';
It provides no error, but pop_item is not functioning,
The HTML output for the above is:
<a href="javascript:pop_item('ABC',1)">Link <...
I'm looking for a book that can help me setup up web applications using ASP.NET. I'm not looking so much at the coding side (i.e. C# or the .NET framework) of things, but rather the actual building up of a website from scratch. So perhaps the book is more HTML/Javascript/CSS.
So basically, I have a 'blank piece of paper', and I want to ...
Hi, I'been doing some inheritance in js in order to understand it better, and I found something that confuses me.
I know that when you call an 'constructor function' with the new keyword, you get a new object with a reference to that function's prototype.
I also know that in order to make prototypal inheritance you must replace the pro...
Is there anyone ever used a free vertical scroller that is compatable with both Firefox and IE?
If so is it possible to share it here as an answer?
Thanks
David
...