Hi guys!
I was searching through the web how to do time lines. I found this one that I like: http://www.simile-widgets.org/timeline/
So I try to follow their tutorial, which can be found here: http://simile.mit.edu/wiki/How_to_Create_Timelines
I following the tutorial so the code is the same but here it goes:
<script>
var tl;...
How can i capture the browser events like 'window close', 'back button pressed' using javascript or any other client script.
Is there a way to capture the events when clicked outside the document.
...
Is there a way to replace a standard scrollbar with a custom image (arrow graphics) that allows visitors to click on the graphics and scroll? 2 graphics (up and down arrow).
...
Hello,
I am trying to do something very hard (well, hard to me at least):
I would like to create a slicer (like Photoshop's one) in Javascript.
For now, I just concluded the Photoshop function creates "immuable" points each time you do a slice, and create 4 automatics slices (more if the slice overlap more than one other) around, whic...
On my web site I am using several player calls. Every player is connected using the following calls.
First:
$f("player1", "http://releases.flowplayer.org/swf/flowplayer-3.2.4.swf", {
$f("player1".playlist("#list1", {loop:true});
It has 3 tracks in a playlist.
Second:
$f("player2", "http://releases.flowplayer.org/swf/flowplayer-3...
How do you prevent formatted user input past a max width? (e.g., 800 pixels) The user input is formatted because it is entered into a WYSIWYG text editor (CK Editor).
This solution doesn't work:
// Replicate user input in hidden div
// Check width
// If width > 800px, remove characters
...because you'd be removing characters fro...
I have a PHP generated form which consists of a list of items, each with a button next to them saying "Remove This" it outputs similar to below:
Item A - [Remove This]
Item B - [Remove This]
...
I wish to be able to click Remove This and it will detect which item it is, and then remove that from the database. Here's my code so far:
s...
i have an modal pop up i am showing it in the middle of screen using javascript
$('div.openIDPopup').css({ 'height': $(document).height() + 'px',
'width': $(window).width() + 'px',
'visibility': 'visible'
})
.fadeIn('slow');
$('div.openId').css({ 'visibility': 'visible',
'top': ($(window).height()...
I have been asked to come up with a solution which would allow our users to create their own custom javascript dialog text. However we need it to be centered.
At the moment, we have a textarea, which the user pads using spaces and tests with a preview button. I would like to change this to allow for the text to be center aligned automat...
I'm building a simple game using a canvas tag and want to add some sound effects to it.
If I use the following code to play the SFX...
function playSfx( sound ) {
var snd = new Audio("file.mp3");
snd.play();
}
Is the garbage collection / memory management clever enough to play the sound and then dispose of the Audio object? Or will ...
Hi All,
I'm kind of stuck on a problem of how to stop my menu from executing the fadeOut() function. When I click the main links on my menu to open the submenu it just fades out. Here is how the code looks at the moment:
$('a.main-menu-item').click(function(){
if($('.rtmenu:visible')){
$('.rtmenu').click(function(e) {...
I bumbed into one of those moments when I just lose the focus and start wondering on a silly question:
var a = {
b: "value"
}
What is the typeof 'b' and I don't mean the typeof "value", but the actual Key labeled as b?
background:
I started wondering about this when I had to create a key which is a string:
var a = {
"b": "value"...
How do I insert one xmldom object to a node of another xmldom object in javascript?
Thanks in advance
...
I have a page that contains an element (a TextBox) that has two CSS classes assigned on page load, but once the page has rendered and the JavaScript has run, the class attribute of the input element is empty.
I know the element originally had the classes defined because good old IE6 shows me the original source when I choose to view sou...
I've just installed Yeti from Yahoo, but when I go to http://localhost:8000/ I get this:
Error: Cannot find module 'jade'
at loadModule (node.js:289:15)
at require (node.js:420:14)
at ServerResponse.render (/usr/local/lib/node/.npm/yeti/0.1.0/dependencies/express/view.js:258:46)
at Object.<anonymous> (/usr/local/lib/node/.npm/yeti/0.1.0...
I am using python for web programming and javascript heavily. Currently, i am using NetBeans
but i am looking for another IDE. NetBeans is not very good while programming with python and javascript. Any suggestion?
...
I need to serialize and deserialize Javascript objects to store them in a DB.
Note that these objects contain functions, so I can't store them as JSON, so I can't use json2.js.
What's the state of the art in [de]serialization of javascript objects (in javascript of course).
Thanks,
Stewart
...
Is there a way by which we can capture the click of HOME and BACK button in the html file in android application using phonegap/jqtouch/javascript.
...
I am using the Jquery UI tabs, and want to change the properties of an element on mouseover.
My HTML is this:
<ul id="sub-tabs">
<li><a href="#000"><span>000<br /><p id="ct1">General</p></span></a></li>
</ul>...
And jquery is:
$('#guide-nav ul#sub-tabs span').mouseover(function() {
$("#guide-nav ul#sub-tabs li p").css("displ...
$(function() {
var availableTags = ["ActionScript", "AppleScript", "Scheme"];
$("#tags").autocomplete({
source: availableTags
});
I don want the values inside the tags. i have a JS page i need to make a function for connecting my DB to the auto complete plugin. How can i do it suggestions Please.
Thanks in ...