Hi Friends,
I created a HTML table and populated with the values from the database. Now i wanna create edit functionality to this table.I added Edit button to each row of the table. I need to know the corresponding rowID upon pressing the relevant edit button.I am using java script to get the ID of the row but unfortunately i was gettin...
I'm trying to create a bar chart where the data is grouped. Eg. let's say the first 4 bars are 'Dark Orange', the next 10 are 'Fire Brick', the next 5 are 'Dark Orchid' & the last group are Yellow. I know there's a property called groupdBars, but I'm unsure of how to utilise this:
http://www.ejschart.com/help/index.html?ejsc_barseries_...
i have created a menu using jQuery n hoverIntent. You can check it here
http://bit.ly/dnAEtt
To see the problem please, hover One then Two then Three then back to Two (please hover a little fast). All sub-menus will open but sub-menu under Two will not open.
This is a strange behavior, when moving forward sub-menus will open when you ...
Hi All
When using the each() function in jquery for a group of, let's say, 3 radio buttons, how do I retrieve the 3rd button so when it's checked something happens?
Basically how do I choose the element I want to work with from the each() function?
Here is my coding:
HTML:
<form id="orderDefinition" name="orderDefinition">
<fieldse...
Hi,
A small question for versed javascript programmers: There are two ways to declare a function in javascript.
A: javascript-object-notation
function MyLittleHouseA(name) {
this.age = 88,
this.name = name,
this.getName = function()
{
return this.name;
}
}
B: uhm, normal:
function MyLittleHouseB(name) {
...
I have a canvas with two lines of text on it. I want to animate these 2 lines differently.
How to do this?
How can i only animated one line of text without clearing the whole screen?
...
I have a table with lots of rows.
I would like to select all rows that does not match some selector.
For example:
$('#my_table tr').each(function() {
if ($(this).find(".class_a.class_b[my_param='" + my_value + "']").length > 0) {
$(this).do_something();
}
});
Is that possible to do the same in easier way ?
...
I have to copy and paste the values of input type="button" (ie value="1.25", value="3.50") from a lot of pages. Is it possible using jquery or greasemonkey?
<td>
<input type="button" onmouseout="btnGiocataOut(this)" onmouseover="btnGiocataOver(this)" onclick="aggiungiScommessa(6659, 12, 22, 1, 125)" value="1.25" class="ris">
</td>
...
Hi all,
I have an iframe with Js code to run, and i wan't to control the iframe DOM options and css style.
How can i do it? If you wan't to use jQuery, thats ok, but i preffer pure javascript...
Things that i want to modify:
- frameborder
- css styles (float, display, position, overflow)
- no scrolling bar
EDIT: The code run's inside t...
I have a strange problem, I am trying to implement drag and drop using dojo, this all works fine. However I need to attain the id of all divs with a certain class, I have been unable to do so using the dojo.query method e.g. :
var totalNumDays = dojo.query(".shiftDropper");
console.log(totalNumDays.id);
This results is...
Hi everyone,
I am new to JavaScript OO programming please bear with me for any ambiguities.
I have a method that requires an object as its arguments.
The required object sets options for the method to work with.
var objInstance = csvObj.getData({
url: '', // csv url
format: '', // return data format
onComplete: function ...
Hi, I would like to create something like this using ruby on rails.
Im not tied to jquery but it seems like this his what I want:
http://labs.abeautifulsite.net/projects/js/jquery/fileTree/demo/
The issue is I want to build the tree not based on a file system, but based on ruby code which pulls info from various models. In other words...
(In every browser I've tried) double-clicking on an HTML5 canvas selects any text immediately following the canvas element. I'd prefer to keep the clicks confined to the canvas.
(N.b.: I don't want to disable text selection entirely (e.g. like this): if you double-click the text it should be selected. I just don't want the clicks to "...
hi,
i need to create a component using html5 canvas that given an image the user can paint on it and directly (via a kind of save button) upload it's customized version on the server.
Can i use html canvas for it ?
Any suggestion ?
thx in advance
...
Hi,
Is there any ways to add different style class to all li in a ul tag using jquery/javascript/php.
Consider I have a list as follows
<ul><li>a</li><li>b</li><li>c</li><li>d</li><li>e</li></ul>
I would like to add as follows
<ul><li class='cat1'>a</li><li class='cat2'>b</li><li class='cat3'>c</li><li class='cat4'>d</li><li class='...
In a generated html page, we have a fixed size area (lets say 200 x 300) in which we need to fit in as much text as possible (like a regular paragraph of text), and if it doesn't fit, remove an appropriate number of characters and append "..." to the end.
The text is NOT in a fixed sized font, and although we are using one specific font...
I was thinking of making a game using javascript for the game logic and the HTML5 canvas element to animate the drawing. My goal is to write something that works in browsers and on newer smartphones. So I wrote up a quick program that moves 100 circles around on the screen and shows me the frame rate. I was fairly disappointed with the r...
If I only have a reference to document.getElementById('btn_test'), how can I get a reference to that first checkbox input element using only Javscript. Maybe a parent.parent? What is a safe way?
<td>
<input type="checkbox" name="text_rnd_input"/>
<label>
<button id="btn_test" type="button">
</button>
</label>
</td>
...
I've been playing with event bubbling and came upon a couple of things new to me...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html onclick="alert('html')" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="t...
Hello,
I use dom to add inline styles directly to the head of a web page via Javascipt. The function goes like this:
// Create internal style sheet
function createStyle(styleText, styleName) {
// Create the node
var cssNode = document.createElement('style');
cssNode.type = "text/css";
cssNode.rel = "stylesheet";
cssNode.titl...