I am trying to graph with Flot some data over time. The data being graphed contains:
time: unix epoch time (whole seconds since 1/1/1970)
value: it varies but it's always an integer between 0 and 10000
The time values can be in intervals of 5, 60 or 3600 seconds.
How do I coerce Flot into drawing me graphs where it shows the time ...
I want to make html select tag only activated when a check box is checked,how can i??
...
It's a greasemonkey script. I don't know javascript so that makes this especially fun.
function notify(){
if window.find("1 minute")==true{
alert("y");
setTimeout("alert('time to click soon!')",60000)
}
if window.find("2 minute")==true{
alert("y");
setTimeout("alert('time to click soon!')",2*6...
Hi,
I have this code for that "sends by" GET true or false concerning if a checkbox is checked or not:
var isChecked = document.myform.checkbox.checked ? 1 : 0;
var isChecked0 = document.myform.checkbox0.checked ? 1 : 0;
var isChecked1 = document.myform.checkbox1.checked ? 1 : 0;
xmlhttp.open("GET","roulette2.php?boxchecked=" + isChec...
Hi all, basically what i want to do is this:
I have a flash game on a page (pacman for example)
I want to be able to take a print screen of that game using javascript
Is it possible? I know i can include the game swf in a nother swf and capture the screenshot using flash but i need it to be done in javascript. is this possible?
...
Hello,
I create a new iframe, append it to body, and then try to get its 'document' variable, like this:
var $iframe = $( "<iframe name='my-frame'>" );
$iframe.appendTo( $("body") );
var doc = null;
if($.browser.msie){
doc = window.frames["my-frame"].document; // 'access denied' in IE
} else {
doc = $iframe[0].contentWindow.d...
i saw a javascript implementation of sha-256.
i waana ask if it is safe (pros/cons wathever) to use sha-256 (using javascript implementation or maybe python standard modules) alogrithm as a password generator:
i remember one password, put it in followed(etc) by the website address and use the generated text as the password for that webs...
I'm trying to add a blur event to some form elements which will run some code for me. After the initial blur, I'm trying to remove the listener from that element so that it doesn't fire again.
The onblur event works fine, but for some reason the eventListener.remove never seems to fire, so blur doesn't get removed. Any ideas as to what ...
So this is sort of an exceptional case situation - I have a plugin that I can't modify for contractual reasons. It displays a set of drop downs and I need it to display a set of radio buttons instead. Is there a js/jquery method for converting dropdowns to radio buttons w/o changing the HTML. Remember, I can add stuff - I just can modify...
In one of my projects we have a streaming web site that needs to synchronize HTML content with a video stream down to a ~100 ms level. Currently we are using WMV and Microsoft's Mediaplayer ActiveX object for this, which basically limits us to IE as a platform.
As a prototype a while ago I tried out a Silverlight based media player (cus...
How do I initialize a button as an icon using the JQuery themeroller? I dont want text next to an icon, I just want an icon, and I want to switch between two icons when clicking on it.
...
I'm trying to allow users to vote a record up/down with Ajax. I'm using the vote_fu plugin for the voting functionality, and everything works fine without Ajax. I'm now trying to figure out the best way to implement the asynchronous functionality with unobtrusive javascript.
What I'm doing now is having two buttons, "Up" and "Down", suc...
Hi,
Is there any solution to generate code for the canvas element by visually drawing, as many svg application can?
...
I have an element as follows
<div id="loadNavigation" style="width:20%"></div>
<div id="loadContent" style="width:80%"></div>
Essentially navigation is on the left, content on the right.
Now I am dynamically resizing both loadContent and loadNavigation on page load to be at a minimum height of the browsers window height. Though at po...
I have a background in assembly, basic, pascal, ada, c & c++. All pc or embedded stuff. Decades of it.
I also have a few years of PHP.
I haven't coded any client-side stuff, and think that I would like to look into Ajax (is that the best compliment to PHP?).
What's a good book to start me off?
...
How can I get position of an element based on view? So as viewer scroll I get different values.
jQuery is prefered.
...
I have an application which is javascript and HTML to be delivered with about 500 short (18MB) videos on 2 physical discs. I'm making an ajax request to check a file exists before displaying it, if it does not I prompt the user to insert the other disc.
video.innerHTML = "<p class=\"no-video\">Working...</p>";
$.ajax({
url: "movi...
A popular topic at the jQuery conference in Boston this month was the idea of Pub/Sub -
http://www.bennadel.com/blog/2037-Simple-Publication-And-Subscription-Functionality-Pub-Sub-With-jQuery.htm
A common example of what one may use PubSub to do is tracking for a piece of data changing value in order to execute some other event. As far...
I have installed libssl-dev and openssl but I get this when I install node.js:
> ./configure && make && make install
Checking for program g++ or c++ : /usr/bin/g++ ...
Tags can have multiple attributes. The order in which attributes appear in the code does not matter. For example:
<a href="#" title="#">
<a title="#" href="#">
How can I "normalize" the HTML in Javascript, so the order of the attributes is always the same? I don't care which order is chosen, as long as it is always the same.
UPDATE:...