I want to build into my app a way to select multiple objects on the screen (this is an HTML page with a bunch of absolutely positioned HTML divs). You know, like when you click down with the mouse and drag a transparent/translucent box and anything within that box gets selected upon mouse release?
I don't know how to go about coding tha...
Is the Google visualization gauge reliable?
Just started up the page I am working on using Google gauges and I had to refresh the page 4 times and then the google gauge finally came up. It disappeared for 10 minutes, came back again and now it is gone?
Internet is connected and have not experienced this before the few times I hav...
I have a menu that is contained in a div with the class float. float is given below:
.float {
display:block;
position:fixed;
top: 20px;
left: 0px;
z-index: 1999999999;
}
* html .float {position:absolute;}
The above css class makes it so that the menu stays in place regardless of how the user scrolls (the *html is for internet explor...
so I have a button with this event:
onmousedown="hideElements('\x22cartview\x22,\x22other\x22')"
and then this function hideElements:
function hideElements(what)
{
var whichElements=[what];
alert(whichElements[0]);
}
I want it to alert "cartview" but it alerts
"cartview","other"
I am aware of the arguments object ...
Hi, everyone!
I'm writing Asp.Net MVC 2 site.
I have TimeController and TimeView, CountDownHelper for render time on TimeView page.
Also I have JavaScript that updates current time, that is used in CountDownHelper.
I need to call AJAX from this JavaScript to get current Time on server.
How I can to do it? Please help me! I must i...
Hello there JavaScript and Jquery gurus, I am getting and then displaying list of a facebook user's friend list by using the following code:
<script>
function getFriends(){
var theword = '/me/friends';
FB.api(theword, function(response) {
var divInfo = document.getElementById("divInfo");
var friends = response.data;
divInfo.in...
I am trying to use jquery to do an animated scroll from one div to another. I am halfway there but can't seem to get it to scroll on both axis. I have called the scrollto plugin and am open to using that. Here is the site live and the code: http://littleboxcreative.com/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt...
Hi, obviously I'll need to learn HTML to even begin to get into the scripts or whatever, but which language is overall the better to code a webpage in for my brother. The two choices I think I've narrowed it down to are: Javascript or PHP. I would like to know which one is the more productive one to learn and please keep in mind that I o...
I have a sprite animation, a small cannon rendered using a 3D app. I have exactly 360 frames for a 360 degree turn. Each image has a 100x100 pixel size.
So basically what I am trying todo is when I click anywhere in the page, the barrel of the cannon needs to rotate to point at the mouse cursor, sound simple maybe but I can't really get...
Hello,
I've read lots of articles and tried everything I can think of, but I can't manage all three: position a draggable object, make it move correctly and get the droppable object to recognize it. When I change the code, I manage every time to do one or two of them, but never all of them together, and I need them all.
Here is some co...
I have written this code for Firefox:
<html><head><title>No</title>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
</head>
<body>
<form action="javascript:void(alert('Yes'));">
<input type="submit" value="Submit">
</form>
<script>$($('form').submit())</script></body></html>
It correctly displays the alert box.
However,...
Is there a javascript class/object name set? In a raphael demo i saw this code
var targets = r.set();
targets.push(r.circle(300, 100, 20),
r.circle(300, 150, 20), ...
and i didnt know js can use object that way. So i looked into the source and it looks like i am calling this
paperproto.set = functi...
I found this piece of code which seems pretty cool. I see return new Set(array); written so i know set is a class. But what does Set[proto] mean and what does [push] mean and .pop and why is
one a dot while the other is in square brace.
Also arguments[length] looks pretty cool. I imagine its an implicit parameter in each func? i am not...
I have two combo boxes.
Let's say the first one had values A, B, C
And when I select A the second one should show me options 1, 2, and 3
If I select B, then the second one should have the options 4, 5, and 6
and C should make the second combo box have the options 96, 98, 100.
Is there a way to do this via jQuery??
Thank you very muc...
Hi, Im trying to create a page that allows a user to select a maximum of 8 checkboxes out of 25 checkboxes total, While at the same time detecting the exact order the user clicked the checkboxes.
My question is, What code can I add to the javascript to gather this info and pass it along to a page named check_combination.php I have been ...
I have a data table with alternating row background colors. I have an AJAX script to delete a row. I can't come up with a way to change the class of all the rows beneath the one that was deleted so that it alternates correctly again.
For example, considering the following:
`<tr id="1" class="row1">
<td>blah</td>
</tr>
<tr id="2" c...
I am trying to get this Javascript in my application working.
function validateQuantity(field)
{
var value = field.value; //get characters
//check that all characters are digits, ., -, or ""
for(var i=0; i < field.value.length; ++i)
{
var new_key = value.charAt(i); //cycle through characters
if(((new_key...
Hi
I need to add a color picker to some input elements.
I'm using
$(".element").colorPicker(){ ... }
This works perfectly.
The problem is that the page has a AJAX form, which - when submitted - will overwrite the previous form with a new one (new input fields etc). After that the colorPicker stops working.
So how can I fire that fun...
Is there a Thor equivalent (ruby tool) or similar scripting framework for Javascript that could be used to build scripts?
...
Can someone recommend a reliable HTML tree control that also supports tree manipulation?
I need it for a backend and want to move, reorder, delete, add and rename nodes.
Right now i use a nested set model in my database to store the tree structure, and dhtmlxTree (see dhtmlx.com) as tree control.
The problem i'm having is that this co...