At work, we use jQuery. Shortly after we started using it, I saw that a couple developers were adding functions to a file jquery-extensions.js. Inside, I found a whole bunch of methods added to $ that essentially amount to static methods on jQuery. Here's a few:
$.formatString(str, args) {
...
}
$.objectToArray(obj) {
...
}
E...
I have a form
<form>
<input id="input" type="number">
<input type="submit">
</form>
I want to be able to input a number into the number and click the submit button and javascript displays a number based on the number submitted.
(My Guess is that this question is very basic but I am pretty knew to javascript.)
...
I wish to have a similar effect to jQuery slidedown but without using jQuery or any other libary. I know it's "possible" as anything in jQuery can be done in plain JavaScript. Just harder.
I cannot use jQuery as everything has to be written in my own code without any libaries used.
Has anyone done something like this or any effects jus...
I often see the terms explicitly & implicitly used in JavaScript and I'm still not sure I know what they mean i.e the following text from the MDC site describing the object model.
The constructor function explicitly
sets the value of the projects
property, and implicitly sets the
value of the internal __proto__
property to th...
Is there a plugin for jQuery or generally a method to have a textarea containing CSS code of the currently open web page which will be automatically updated during edit (without page reload)?
...
Hi Guys,
If I want to set width of a div containing some text and I want to set the width of that div to 0 in IE6 (I have not checked in IE7) does not work!!!
Please check the HTML below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/...
I found this site/tutorial/demo from another question here on SO.
Very nice and clean code. However I am having problems with it when running from localhost where I test all changes to my sites. I am running pretty much the exact same code (I have all mine in /lib not /js).
I've stepped through the code in FireBug and inspected the gen...
Hi
What method would you choose for retrieving tweets from Twitter, for example?
Using json with jQuery (like http://juitter.com/), where client does the request.
using PHP, for eg. CURL, where server does the request
What are the advantages/disadvantages of both?
...
Given this website: link text
How would one find an element and remove any class=selected and add it to the correct link?
That way when history, models, and the like links will look become selected when clicked upon.
...
Hi,
I have an Array of CSS selectors
I want to find if an Element has at least one of the CSS selectors
Example:
var selectors = ['green', 'red', 'yellow']
<div id="elem1" class="red purple yellow white"></div>
<div id="elem2" class="black white"></div>
my function should return true on elem1 and false on elem2
I use prototypejs ...
filter -n ""function(file) { return file.owner == "john"; }""
should be parsed into the following array:
[ 'filter',
'-n',
'function(file) { return file.owner == "john"; }' ]
...
Let's say I have some text as follows:
do this, do that,
then this, then that
I use CSS to add a drop shadow.
I can also use CSS to add a yellow glow behind "do this", as described here:
http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/
What I want is a repeating animation:
1 secon...
Hey everyone,
Our team is currently working on completely redesigning our school's website and one of our projects currently underway is a lightweight photo slideshow which you can find here.
Right now, when the user enters the space between two thumbnails, they all fade. What is the best way to organize them so that they all "unfade" ...
Yes, otherwise I just starting make my wrapper in CSS so it covers 770px or 990 px etc..
It should be like scaling after window size/resolution.
Are their any way to make it adjustable for every single computer using Javascript/jQuery?
...
Image tag (<img src="" alt="" />), line break tags (<br />), or horizontal rule tags (<hr />) have the slashes at the end to indicate itself as self-closing tags. However, when these objects are created by javascript, and I look into the source, they don't have the slashes, making them invalid by W3C standards.
How can I get over this p...
hi my Dear Friends :
I Have A DocMenu That is working with jquery...
one of it's item is like this :
<a class="dock-item" href="#">
<img src="JQueryDocMenu/Images/1.png" alt="Test" /><span>Test</span></a>
i am using Telerik Rad Windiws For pop up Windows...
when i am using a button or something like that , so ev...
I wonder if it is possible to get values of certain preferences set in about:config using javascript?
Incentive is to get value of preferences set in firefox addon i've created when user lands on addon front end. Basically, I'm trying to identify users landing on FE without asking them to login explicitly.
...
I have a paragraph, which I would like to edit using javascript prompt function.
All work ok while I didn't enter < or >. They looks good in html, but when I would like to edit them again, I see ugly > and <
The issues can be easy reproduced via following scenario:
press Edit-button,
Enter string <<<>>>.
press Edit-button again....
I am implementing a web client and want to overload something to receive touches from the features on the web page. If possible, are there any good examples??
...
Hey All,
Not sure what's going on but the Jquery.js is dying on me with "d is not null". This came out of no where. I can't seem to figure out how to fix it it.
Screenshot of firebug:
From this drupal link link Michelle (3rd comment) claims this is Collapsible forum containers issue? (Which as far as I know I am not using?) but it...