How can I select all elements within an HTML document with a specific class and specific element type?
I'm trying to select all anchors with the class title loggedin from an HTML document (and then open them within the browser). These are within parragraphs with the class title.
They are leafs in the following DOM tree:
+ body
+ div...
Iam debugging some javascript, and cant explain what this "||" does?
loadingError: function(title, msg){
var title = title || 'Error';
var msg = msg || 'Error on Request';
new my.widget.InformationBox({
title: title,
message: msg,
type: 'error'
}).show();
}...
Hi,
Does anyone know of a javascript UML diagrammer?
I have found the Eclipse plugin jsuml from jsuml.org, however the plugin crashes when I try to generate a diagram.
[EDIT]
This is to generate a diagram from existing javascript code.
Thanks,
Bob
...
im trying to get from applet to object so i can resolve z-index issues. The first applet tag works...my conversion to object doesn't. Can anyone point me in the right direction?
From:
<applet name='previewersGraph' codebase="http://www.mydomain.info/sub/" archive="TMApplets.jar" code='info.tm.web.applet.PreviewerStatsGraphApplet' wid...
hi
in FF and chrome, safari it is of course totally fine.. IE8 however, in compatability mode or not, doesnt load the overlay over the top (it just sits a t the top, scrolling the content down - although i guess this is because the overlay is at the top of the markup)..
and it doesnt show the image im attempting to show , but shrinks the...
I'm looking for the easiest way to sort an array that consists of numbers and text, and a combination of these.
E.g.
'123asd'
'19asd'
'12345asd'
'asd123'
'asd12'
turns into
'19asd'
'123asd'
'12345asd'
'asd12'
'asd123'
This is going to be used in combination with the solution to another question I've asked here.
The sorting functi...
I am looking for a list of all JavaScript event handlers (such as onLoad, onSubmit ect...) and the corresponding html tags that they can be applied to. This is is the best document I have found so far, but I believe it is is incomplete. The W3 specs are even worse, all it says is "This attribute may be used with most elements.". All...
I am currently using the DevBridge jQuery Autocomplete plugin - it works fine as is, however I would like to display the returned information in a multi-column view, but yet when clicked only return the first value.
HTML
<form class="form" action="index.php" onsubmit="alert('Submit Form Event'); return false;">
<div id="selection"></...
Hi there.
I have a site set up with some thumbs and links to videos hosted on vimeo. I show them in a overlay using shadowbox.js. This works perfect.
Now I want to add a video hosted on dailymotion, but it doesn't work.
The working link to vimeo video:
<a rel="shadowbox;height=636;width=956" href="http://vimeo.com/moogaloop.swf?clip_...
I'm considering creating a simple remote debugging application for Javascript. Actually, I want to provide an object to Firebug Lite and let it do all the job.
So, can I get an object from one page, serialize it, send it to server and then to another browser and finally see the same results in Firebug Lite (on that other client) as I wo...
Given a javascript array and one of its members, how to retrieve the member index without having to compare the contents of the member against every other member in the array?
...
Hi, Im using form_name.textbox.focus() and it working fine in IE but not in mozilla. Can someone tell me how to handle this? this for answering.
...
I'm looking to do some client-side PGP encryption in Javascript. I've found some GPL library scattered on the web, but for obvious reason, I cannot use that code due to licensing issues.
I'm looking for some BSD-like license library that would accomplish the same thing. Anyone know of a library I could use?
...
Hi guys
Suppose I have the following piece of code
bool run (void)
{
HandleScope hande_scope;
Handle<String> source;
Local<Script> script;
Persistent<Context> context;
context = Context::New();
Context::Scope context_scope(context);
script = Script::Compile("var a = 1; var b = 2;");
Local<Value> result...
$("li").hoverIntent({
sensitivity: 3,
interval: 200,
over: addOver,
timeout: 500,
out: removeOver
});
function addOver(){ $(this).addClass('over').children('a:first').addClass('active');}
function removeOver(){ $(this).removeCl...
I have a form with a disabled submit button. Even though the user can't press this button, he can still hit Enter to submit the form. How do I prevent that?
...
I work in Javascript with integer numbers only (mainly adding numbers and shifting them). I wonder how big they can be without loosing any bits.
For example, how big X can be such that 1 << X will represent 2^X ?
...
How to compare browser versions via javascript?
For example if script wants to know if user is using Firefox 3.5+
Is there any way?
...
It seems that when I configure SWFUpload the same way it is set up in the demo, the form shows the same other than where the browse (hello) button is located. The only differences are the locations of files and the image used for a browse button... any ideas?
...
I know that 0x is a prefix for hexadecimal numbers in Javascript. For example, 0xFF stands for the number 255.
Is there something similar for binary numbers ? I would expect 0b1111 to represent the number 15, but this doesn't work for me.
...