I have a medium size legacy php application with almost no javascript integration. I've recently been learning javascript (yes actually learning it) using Douglas Crockfords excellent book and taken YUI as my library of choice. I've tried out a few things and got a few things working but now I want to integrate the various components e...
I have an application that displays tables of data, in a paged format. Clicking on a "page" button re-renders the table. (These are not HTML pages - these are just buttons that re-populate my table with a new "page" of data) Each table cell has event handlers attached to it.
For all intents and purposes, if the application starts on "Pa...
Hi
I need to detect OS language using javascript so I can view my page depending on the language.
I know that we can detect the browser language but that is not enough for me.
I need Operation System language
Thanks in advance
...
Anyone have a good idea for a method of achieving random floaty motion? Like, just general smooth drift in a constrained area.
This is what I tried:
var rangeX = 100;
var rangeY = 100;
var gravity = .001;
$('.floating').each(function() {
$(this).data('startX', $(this).position().left);
$(this).data('startY', $(this).position()...
How can I make a form that allows users to enter a number and then goes to example.com/page/# where # is what the user typed in? I want this for a pagination "jump to" option.
I can only use HTML and JavaScript
...
I am trying to mimic key press events, for instance Ctrl+D on a button click.
It would be great if someone can point me in the right direction on how to achieve the same.
...
I'm creating a site, tested out on my local server and it worked fine, but once I moved it over ot my host anything to do with javascript/jquery on the page just refuses to work :/
http://www.neuromanga.com/mangaReader1.0.php?cid=1
could someone please help me out
...
Can some one help me make the following JSON data:
{
"main": {
"label":"Main",
"url":"#main"
},
"project": {
"label":"Project",
"url":"#project"
},
"settings": {
"label":"Settings",
"url":"#settings",
"subnav":[
{
"label":"Privacy",
"url":"#privacy"
},
{
"label":"Security",
"url":"#security"
},
{...
I'm trying to make all textareas remove default text on focus, except those of class "pre-fill".
But the problem is the textareas of class "pre-fill" are still being selected and included.
Suggestions on how to fix this?
Thanks.
jQuery(document).ready(function inputHide(){
$('textarea, input:text, input:password').not($('.pre-fill...
A good way to improve as a developer is to look at well-written code.
What examples of beautiful, well-architected Javascript have you encountered?
Note that I am not looking for a debate about the language itself. It has good parts and bad parts; some like it, and many hate it. Let's leave that discussion to other threads.
...
hi all,
It been a long time that im searching on how can i create my own Coverflow effect with Javascript or Jquery.
So if any one have an idea or can give a something releated with that, it will be great.
Thnx
...
I'm unable to find the download link for the Tipsy plugin
http://onehackoranother.com/projects/jquery/tipsy/
The jQuery project page for the plugin (http://plugins.jquery.com/project/tipsy) does not have a download link. Am I not looking in the right place?
...
I have a page with 24 links that each open up a .html file in a modal window with Fancybox, and each .html file has a video embedded in it. How do I track to see who is opening which videos?
...
Hi I'm painting an image onto a canvas (html5) and I want to reduce the number of fillRect calls I'm making in the hope of making the process more efficient.
Note: I'm calling canvas.fillRect to paint individual pixels and pixels can be 1x1 or other size rectangle depending on resolution I'm painting in (So I know that they are not call...
I need to find the most optimal combination of coins that makes up a certain dollar amount. So essentially, I want to use the least amount of coins to get there.
For example:
if a currency system has the coins: {13, 8, 1}, the greedy solution would make change for 24 as {13, 8, 1, 1, 1}, but the true optimal solution is {8, 8, 8}.
I ...
I am working on a website that has incorporated the jquery cycle plugin. It was all working fine until I tried to add the lightbox plugin. There seems to be an issue within the element that only allows the latter JS files to work. Any help would be great.
Here is the jquery code I am using in the element.
<script type="text/javascrip...
I created a simple RSS web app using the template in Dashcode. Problem is, when choosing items in the list from the feed the transition flickers (even with the default settings). I am guessing its because of the images in the posts.
I tried disabling the transitions completely but even then I get a flickering when returning to the list...
I have a javaScript that calls a function:
var combineddata = jQueryGetHtml();
The function is:
// Get ALL of the HTML using jQuery
var jQueryGetHtml = function()
{
var htmlStartTag = function()
{
return $('html').contents();
var attrs = $('html')[0].attributes;
var result = '<!DOCTYPE HTML PUBLIC "-/...
Im working on a little greesemonkey script to calculate some numbers, and hopefully graphs of a particular wikipedia page.
So i can get the data into an array of dates and values, (not key value) array of objects with .date in the format of "d/m/yyyy" and .num as the number for the date.
the dates are mostly continuous, but may miss ...
What I'm looking to do is create an object with unique ID's. To better explain here's an example:
var obj = new Object({
'a': {
'someVariable': 'heh',
'someOtherVariable': 'Stuff'
},
'c': {
'someVariable': 'heh',
'someOtherVariable': 'Stuff'
}
});
Thing is, the object is going to be used...