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 u
Nevermind. D'oh!
On Jun 5, 4:59 pm, infoaddicted 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 wrote:
>
> >http://blog.jquery.com/
>
> > "this week in jQuery
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 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?
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 java
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 yo
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 experimentation.
It would be helpful if you posted snippets of your HTML along with the
JQuery code.
On May 16, 12:26 pm, jayarjo 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 transparent div. I
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 t
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 wrote:
> Hi,
>
> I need to transform all characters entered in an input field to
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 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
> sl
How about this? It's only called when the user leaves the field. The
replace uses a regular expression, the part between the forward
slashes. The \s means "space", the + means one or more of the
preceding, and the $ means match only at the end of the string.
$(document).ready(function(){
Post your code
On May 7, 8:58 pm, Henrik Bechmann 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 html is rendered
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 that
rowser. Ex:http://jsbin.com/usazu
>
> On Wed, May 6, 2009 at 01:08, infoaddicted wrote:
>
> > I have some HTML:
>
> > Link One
> > Link Two
> > Link Three
>
> > And the following JQuery JS to test the "onclick" handler
>
>
I have some HTML:
Link One
Link Two
Link Three
And the following JQuery JS to test the "onclick" handler
$(".links").click(function(){
alert(
"this.text -> " + this.text + "\n" +
//above returns "undefined" in IE 6
15 matches
Mail list logo