wasseem's answer looks good, I'd just like to off a little friendly
advice on coding style, advice meant to make revisiting
your own code in the future easier as well as making it under-
standable to others.
in a block like:
{
var a= $(this).attr('alt');
...
}
consider
There is, AFAIK, no more robust onload function. The shorthand
for it is quite easy: instead of:
$(document).ready(function () {
...
you only have to do
$(function() {
...
Make sure that you're not confusing the template if() block, which
would be server side, with
This Week in jQuery, vol. 6 -
http://blog.jquery.com/2009/05/01/this-week-in-jquery-vol-6/
?
On Jun 5, 2:15 pm, MorningZ morni...@gmail.com wrote:
http://blog.jquery.com/
this week in jQuery-s last entry: May 1st :-(
Nothing new for the jQuery peeps to note in 5 weeks?
Nevermind. D'oh!
On Jun 5, 4:59 pm, infoaddicted jack.lapla...@gmail.com wrote:
This Week in jQuery, vol. 6
-http://blog.jquery.com/2009/05/01/this-week-in-jquery-vol-6/
?
On Jun 5, 2:15 pm, MorningZ morni...@gmail.com wrote:
http://blog.jquery.com/
this week in jQuery-s last entry
You have a LOT of non-jquery code in here. My advice? Don't expect
the community to solve this for you. Take a step back and read the
jQuery documentation. When you need to have community input, narrow
your code down to what works, then add features until it breaks.
The first documentation
According to the documentation, the body of your ready function will
execute when the DOM has loaded and is ready to traverse. The last two
scripts manipulate the DOM, so I would put the ready function
afterward so I could be more confident in the results.
This is a good area for
It would be helpful if you posted snippets of your HTML along with the
JQuery code.
On May 16, 12:26 pm, jayarjo jaya...@gmail.com wrote:
I've got several map tags with custom areas defined and corresponding
images with usemap attributes. The problem is that those images are
covered with
ok, one more shorter try: it works!
$(document).ready(function(){
$(#couponCode).blur(function(){
$(#couponCode).val($(this).val().toUpperCase().replace(/\s+
$/,''));
});
});
On May 13, 12:53 pm, jckos johncar...@gmail.com wrote:
Hi,
I need to transform all characters entered in an
This calls for a function, where you can hide the gory details. Use a
selector to gather up the a elements, and pass that as the argument
to the function.
pseudocode:
var linksToChange = JQuery Selector;
function changeLinks( linksToChange ){
either:
a for loop to step through the
FYI: The discussion group software put a premature line break at the
end of line 4 of the code.
On May 14, 7:35 pm, infoaddicted jack.lapla...@gmail.com wrote:
How about this? It's only called when the user leaves the field. The
replace uses a regular expression, the part between the forward
Post your code
On May 7, 8:58 pm, Henrik Bechmann hbechm...@gmail.com wrote:
I have this problem:
I hook a javascript function to 'ready' using javascript. This
function creates and inserts a lot of html code.
The trouble is that in IE7 the page renders twice: once before the
inserted
On Wed, May 6, 2009 at 01:08, infoaddicted jack.lapla...@gmail.com wrote:
I have some HTML:
a href=# class=linksLink One/abr /
a href=# class=linksLink Two/abr /
a href=# class=linksLink Three/abr /
And the following JQuery JS to test the onclick handler
$(.links
Hi Dan
The first impression I got (viewing on FF3/linux) is that you have a
nice looking design. The second impression was that the random
scrolling was distracting and annoying. I think the randomness and
non-user directed action is the annoying part. There's something
about quick motion
I have some HTML:
a href=# class=linksLink One/abr /
a href=# class=linksLink Two/abr /
a href=# class=linksLink Three/abr /
And the following JQuery JS to test the onclick handler
$(.links).click(function(){
alert(
this.text - +
14 matches
Mail list logo