This code
function LoadContent(Id) {
alert('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id);
$.get('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id, function(data) {
$(Id).append(data);
});
$(Id).removeClass("Waiting");
}
works perfectly in IE7. the alert displ...
I'm trying to get:
document.createElement('div') //=> true
{tagName: 'foobar something'} //=> false
In my own scripts, I used to just use this since I never needed tagName as a property:
if (!object.tagName) throw ...;
So for the 2nd object, I came up with the following as a quick solution -- which mostly works. ;)
Problem is, i...
I am having a problem with lightbox2 on IE7. I've modified lightbox, moved the navigation around a bit - everything works fine on Firefox but in IE7 there is a problem: the first time I click on a thumbnail only a part of the background dims and the large image doesn't show. If i try again it works, the problem only occurs after a full p...
The task seems to be pretty easy: how to include a Javascript file in xml-document so that at least Opera and Firefox could actually parse it and execute the code?
...
Is there a way to specify some JavaScript to execute on the OnBlur event of an ASP.NET text box? It seems to me like if I add any event handlers to the TextBox object they will just cause postbacks to the server isntead of doing what I want. Basically, I just want to be able to have the textbox be rendered in this HTML:
<INPUT type="t...
I have an ASP.NET user control that contains a text box control and a button control. This user control will be added to my web-page many times. I need to have a piece of JavaScript that will run whenever the text box changes, and disable the button if the value of the text box is invalid. My question is this: how do I put JavaScript ...
I am looking at some javascript code and it has this in a function:
$$('.CssClass').each(function(x) { .... } )
I get that the intent is to apply the anonymous function to each element with a class of CssClass, but I can't work what the $$ refers to ... and can't google for $$!
Update: thanks for the hints. The javascript comes fro...
Hi everyone,
In Javascript, I want my onmouseout event to sleep/pause/wait/ (not sure of the proper terminology here) for three seconds before taking effect. How is that accomplished?
thanks
...
Hello,
I want put a div by iframe over a video containing an active player
is it possible ?
...
Hi! I am trying to read CSS selectors in my stylesheets with the document.styleSheets array. It works fine with <link> and <style> tags, but when I use @import inside a <style> it doesn't show up in the array - only as a cssRule (style is "Undefined" in Safari 3 and FF 3).
So: How can I parse the css in an @imported file?
...
I am creating a Vista Gadget and I haven't been able to get JQuery to work. I have tried a few very simple calls like this:
$(function() {
$('a').click(function() {
$('#box').html("test");
});
});
I know you can use JavaScript so it doesn't make much sense to me why you wouldn't be able to use a library.
Does an...
Hello, I come from classes object orientation languages and recently I have been learning those fancy dynamic languages (JavaScript, Python and Lua) and I want some tips about how to use OO in those languages. It would be useful to know the pitfalls and the shortcomings of such approach and the advantages compared to traditional OO.
The...
I need to learn about graphics in javascript. Can someone recommend good tutorial material?
In particular I'd like to mix graphics and formatted text in layers, if that helps.
Update: Eugene asks a good question, but the answer is really "yes." I don't know much about graphics in js from any point of view. I'm particularly unclear o...
Say I have the following code:
function One() {}
One.prototype.x = undefined;
function Two() {}
var o = new One();
var t = new Two();
o.x and t.x will both evaluate to undefined. o.hasOwnProperty('x') and t.hasOwnProperty('x') will both return false; the same goes for propertyIsEnumerable. Two questions:
Is there any way to tell t...
JavaScript does funky automatic conversions with objects:
var o = {toString: function() {return "40"; }};
print(o + o);
print((o+1)+o);
print((o*2) + (+o));
will print:
4040
40140
120
This is because +, if any of the arguments are objects/strings, will try to convert all the arguments to strings then concatenate them. If all argume...
the following js works fine in FF2 but in IE6 the dropdown always selects one option to early, IE -> testix2 vs. FF2 -> testix3
If we add an alertBox somewhere in the script, it also works fine in IE6.
But how to solve this without an alertBox?
tia
<script language="JavaScript" type="text/javascript">
<!--
function Entry(value, name, s...
I have an HTML page with multiple checkboxes.
I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?
...
My original question was "Is there a javascript function to swap a still image(jpg) to a movie(swf)? If there is is there a disjointed swap image path?"
Jack's answer worked but did not have a disjointed rollover. His function imgToSWF works great but it isn't what is needed. What I need is to have multiple thumbnail images(jpgs) that w...
I am trying to do a multi rollover with Javascript. I know a lot of people say to use css, but it's going to be done in Javascript this time around.
Anyway, I am having much trouble with this rollover hierarchy. I have a button image nav with five buttons. When you mouseover one of the buttons, the button changes color AND a heading ap...
Can anyone recommend a graphical call stack visualiser for JavaScript, that I can install on a Linux box (or is OS neutral)? Preferably one that doesn't involve having to modify the JavaScript being profiled.
I'm after something similar to the graphs produced by valgrind/kcachegrind but for JavaScript.
Edit: A couple of people have sug...