Olaf Bosch schrieb:
Hi all, here is FaviconLinkMarker Beta3:
http://olaf-bosch.de/bugs/jquery/links3.html
- No IMG-tag, all CSS
- config. Favicon left or right (before/after)
- editable TITLE-tag
- No CSS edit for using
- No CSS overwritten, all what you in CSS given is after JS given
Hi Everyone -
We're nearly ready for the big 1.1 release, this Sunday - but to tie
you over, here's another set of bug fixes to test upon. The jQuery dev
team has been working long-and-hard to fix all the support requests
that've been coming in this week, and we've been pretty successful in
Awesome stuff guys, the couple of issues I had are no longer. :-)
Look forward to having more hands-on with jQuery this year, I've learnt
so much about Javascript from jQuery and hoping I can help where needed.
Allan
John Resig wrote:
Hi Everyone -
We're nearly ready for the big 1.1
I've begun work on a Safari widget pack, that allows you to work with Safari
widgets in a way more jQuery way.
For example:
var y =
$(#scrollArea).makeScrollAreaWithBars({singlepressScrollPixels: 50}, {id:
scrollBar}, {id: horizBar})
.bind(mouseover, function() { y.focus();
Hi,
i built a very small Demosite using CodeIgniter and jQuery.
http://www.konzept-b.net/ci_2/index.php
As you can see there is a strange effect if you click on Kommentar...
on IE first it slides up, and then down.
on FF it jumps up and down.
could anyone help me to let that work smooth?
//
Alexander Petri schrieb:
Hi,
i built a very small Demosite using CodeIgniter and jQuery.
http://www.konzept-b.net/ci_2/index.php
As you can see there is a strange effect if you click on Kommentar...
on IE first it slides up, and then down.
on FF it jumps up and down.
could anyone help
If you could, please provide a description of where jQuery is being used
within the website.
Please reply to this email and I'll begin compiling the list.
Hello,
We are starting to use Jquery inside Thinkedit, a freshly opensourced cms.
We use it for the dropdown menus in the admin
Klaus Hartl schrieb:
Alexander Petri schrieb:
Hi,
i built a very small Demosite using CodeIgniter and jQuery.
http://www.konzept-b.net/ci_2/index.php
As you can see there is a strange effect if you click on Kommentar...
on IE first it slides up, and then down.
on FF it jumps up and down.
Hi,
Yes, I downloaded it short before.
Please, tell me when I can download the fixed version, and I'll test
again
I just have uploaded the current version again. Please try again.
I've just downloaded and tried again but... nothing changed :(
Have you tried the testsuite that I have
hm i updated the site
but that doesnt help for the jumps
Klaus Hartl schrieb:
Klaus Hartl schrieb:
Alexander Petri schrieb:
Hi,
i built a very small Demosite using CodeIgniter and jQuery.
http://www.konzept-b.net/ci_2/index.php
As you can see there is a strange effect if you
Alexander Petri schrieb:
hm i updated the site
but that doesnt help for the jumps
Ah, maybe I know what it is: collapsing margins. Try adding a
border/padding on top of the slided element, so that vertical margins
cannot collapse. Does that help?
-- Klaus
First, Thanks for such a great library. It damn good and fast - and most of
all life saver for new bees like me.
Recently I fall in trouble. I had an element in my HTML that may contains
blank space in its ID. The thing is I am having one asp.net based portal
system where IDs are given by user
Ashish Agrawal schrieb:
First, Thanks for such a great library. It damn good and fast - and most
of all life saver for new bees like me.
Recently I fall in trouble. I had an element in my HTML that may
contains blank space in its ID. The thing is I am having one asp.net
http://asp.net
I just switched to jQuery-1.1b and it's great stuff, but now I get this
error in Firebug: $(this).parent().id is not a function where it worked
perfectly until now. I revised the list of changes but didn't find a
substitute to parent() - the closest this I found was the change from
ancestors() to
That title may not make much sense, so here's the code:
tr id=?= $player['id'] ?
tdinput type=checkbox name=seventeen[apps][?= $player['id'] ?]
class=noneorone //td
tdinput type=checkbox name=seventeen[subs][?= $player['id'] ?]
class=noneorone //td
/tr
I want to be able to select
Abel Tamayo schrieb:
I just switched to jQuery-1.1b and it's great stuff, but now I get this
error in Firebug: $(this).parent().id is not a function where it worked
perfectly until now. I revised the list of changes but didn't find a
substitute to parent() - the closest this I found was the
If I remember correctly there is no id() function any more. Use attr('id')
instead.
Nandi
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abel Tamayo
Sent: Thursday, January 11, 2007 2:14 PM
To: jQuery Discussion.
Subject: [jQuery] What's
d'oh!
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
I want to be able to select _none or one_ of
the checkboxes (note: not using radio-buttons).
Why not radio buttons? They work that way automatically and continue to work
if script is turned off. Just add a None radio to indicate none of the
others.
So I would like to know how to address the
Something like this?
$('input:checkbox').bind('click', function() {
$(this).parents('tr').siblings().find('input.noneorone')
});
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 11, 2007, at 8:14 AM, jazzle wrote:
(sorry for edit)
(I meant to
I was just doing this not a half hour ago:
Assuming that this is the checkbox you clicked,
jQuery(this).parent().siblings().find(input:checkbox).not(this)
Worked great for me! I used the following code to achieve the effect I
believe you're searching for (radio button-like functionality made
I hope you didn't assume that I hadn't considered that.
Adding a 'none' would ruin the GUI design on a few different levels.
NB: This is for an admin section I'm creating in a bespoke CMS, so no-script
is not an issue.
dave.methvin wrote:
...
Why not radio buttons? They work that way
Klaus Hartl schrieb:
The only fix I know for that bug is to give the link white-space: nowrap.
Yes, and is include, works not in IE. This Bug is no new for me, i have
never see a fixing.
is the background-positioning, thus to avoid redundant code:
Ah looks cool, i love short code. Have you
I've made some big changes to the mousehweel plugin. All of these
changes are based on quality feedback from users of the mousehweel
plugin. First, I really simplified the API. The only methods are:
- mousewheel()
- unmousewheel()
The mousewheel() method takes only one function and a second
This is going to be very nice Yehuda. Great work!
--
Brandon Aaron
On 1/11/07, Yehuda Katz [EMAIL PROTECTED] wrote:
I've begun work on a Safari widget pack, that allows you to work with Safari
widgets in a way more jQuery way.
For example:
var y =
On Jan 11, 2007, at 8:44 AM, Karl Swedberg wrote:
Something like this?
$('input:checkbox').bind('click', function() {
$(this).parents('tr').siblings().find('input.noneorone')
});
Ugh. I misread the request. Forget my answer. Use Yehuda's. :)
On Jan 11, 2007, at 8:14 AM, jazzle wrote:
..i have a couple of issues with both jquery 1.1b and the compatibility
plugin.. this is the code from the compatibility plugin:
jQuery.each([id,title,name,href,src,rel], function(i){
jQuery.fn[ i ] = function(h) {
return h == undefined ?
Brandon Aaron schreef:
Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
I tested the page on FF2 and i didn't see the log frame.
In IE7 tests 6 and 7 fail their limitation. They both show movement up
and down.
Nice work. I didn't know it could get the speed of the
Nice Brandon...
IE7 here. Everything seemed to work as promised except test 6 which says
should only do something when the mousewheel is moved down. yet I got a
response in the monitor pane when I moved the mousewheel up. Just FYI.
This works really well, you should be proud of yourself. I can
Olaf Bosch schrieb:
Klaus Hartl schrieb:
The only fix I know for that bug is to give the link white-space: nowrap.
Yes, and is include, works not in IE. This Bug is no new for me, i have
never see a fixing.
is the background-positioning, thus to avoid redundant code:
Ah looks cool,
Olaf Bosch schrieb:
I would make 2 plugs, one with IMG one with CSS.
So, and here is the latest version with IMG:
http://olaf-bosch.de/bugs/jquery/links2.html
- added a SPAN wrap to A and IMG with nowrap
- Opera used Extra-CSS
What about this?
--
Viele Grüße, Olaf
onStop : function() {
$(this).css(z-index,1);
}
On 1/9/07, *Su* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
I've got something I'm building wherein several boxes will be
draggable. What I'd like to do is have a function that can be
called when
It is fixed. :)
--
Brandon Aaron
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
Sorry, that was my fault. Copy and paste from previous test page.
There aren't supposed to be limitations. I'll update the test page
shortly.
--
Brandon Aaron
On 1/11/07, David Duymelinck [EMAIL
David Duymelinck schrieb:
What about this?
With the #text a links your own links don't show the favicon in FF2 and IE7
:) it's a feature, no Favicon with *intern* links, this Script is for
external Links
The last 2 Links are to my domain, for testing,
href=www.my.de and href=../
and
Klaus Hartl schrieb:
Assigning the property with a dynamic name fails here... try:
var dir = place == after ? 'right' : 'left'
good, will later go on
You could handle that as an option: {img: true|false} maybe...
Hahah, wonderfull, there I could also have got on myself ;)
--
Here is one that is complete, I have about three more still in development
and will post when they are out of beta.
http://www.informationexperts.com
Plug in used:
Accordion (modified heavily)
Thickbox (modified slightly)
Flash (modified slightly)
--
View this message in
Hey Olaf,
I believe your markup should use a rel attribute instead of the class
attribute.
Something like this, and make the call with the position as optional.
a href=http://jquery.com; rel=externaljQuery/a
$('[EMAIL PROTECTED]').favicon('External link: ');
Pretty nice plugin you have, good
Hi -
I fixed the compat. plugin bug that you mentioned, in SVN rev 1010.
Can you be more specific about the t.replace bug that you mentioned? I
can't seem to locate it anywhere.
--John
On 1/11/07, spinnach [EMAIL PROTECTED] wrote:
..i have a couple of issues with both jquery 1.1b and the
Hmm.. i read it again, and I understood you have different boxes and they
all have different z-index, right? So if I undestand correctly when you stop
moving one, they all come back to 1, losing the different positions they
had.
I think you could add their old z-index variables somewhere in
hey,
sorry about that, it was my fault, i tried to fix the compatibility
plugin, but obviously changed it wrong so that's what caused the error..
with your fix to the compat. plugin everything works ok...
John Resig wrote:
Hi -
I fixed the compat. plugin bug that you mentioned, in SVN
I think you're going to have to loop through all of your elements to find
the max z-index and then either re-set them or just set the z-index
to max+1.
-js
On 1/11/07, Su [EMAIL PROTECTED] wrote:
No.
The whole problem is that there's a static number in that statement. So
eventually, all the
Here's a starting point... This could be finished out into a plugin...
http://jdsharp.us/code/zIndex/
-js
On 1/11/07, Jonathan Sharp [EMAIL PROTECTED] wrote:
I think you're going to have to loop through all of your elements to find
the max z-index and then either re-set them or just set the
anyone know the difference between these two?
Rich
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Is it compatible with jQuery-1.1b?
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
It is fixed. :)
--
Brandon Aaron
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
Sorry, that was my fault. Copy and paste from previous test page.
There aren't supposed to be limitations. I'll update
Hi folks,
I'm trying to find out if there's a jQuery equivalent to this:
form.ElementName.select();
I want to auto-select (read: highlight) the text in an input element.
I've searched on Nabble to see if this has been covered, but I either
don't know what to search for or it will just take
anyone know the difference between these two?
ajaxStop is triggered when the number of outstanding ajax requests
reaches zero. ajaxComplete is triggered after each response is
received. ajaxComplete is also passed the XHR and the settings
object.
Yes it is.
--
Brandon Aaron
On 1/11/07, Abel Tamayo [EMAIL PROTECTED] wrote:
Is it compatible with jQuery-1.1b?
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
It is fixed. :)
--
Brandon Aaron
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
Sorry, that was my fault.
I'm trying to find out if there's a jQuery equivalent to this:
form.ElementName.select();
Those DOM methods are still available to you:
$('#myInput')[0].select();
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Christopher Jordan schrieb:
Hi folks,
I'm trying to find out if there's a jQuery equivalent to this:
form.ElementName.select();
I want to auto-select (read: highlight) the text in an input element.
I've searched on Nabble to see if this has been covered, but I either
don't know what to
Jonathan Sharp schrieb:
Here's a starting point... This could be finished out into a plugin...
http://jdsharp.us/code/zIndex/
-js
Hey Jonathan,
this is cool! I think you should display some advice on how to test the
functionality.
Nice work!
-- Marc
I found the source of the problem. The interface elements plugin is the
culprit: http://interface.eyecon.ro/about
When its FX functionality is included, .fadeIn() won't restore an element
that has had .fadeOut() applied under IE7. (ALEX: When I published the
example, I removed that script tag
Jörn:
I had not seen that plug-in. I'll take a look. Thanks!
Mike:
Thanks!
You guys rock! :o)
Cheers,
Chris
Mike Alsup wrote:
I'm trying to find out if there's a jQuery equivalent to this:
form.ElementName.select();
Those DOM methods are still available to you:
Oh...yeah that would be a good idea...made sense to me! haha!
I have included some instructions now.
If I get some time I'll try and actually make a plugin of sorts out of it,
or at least mock it up like the other code I have. I still have my updated
menu to post...oh such is life...
-js
On
Sorry but I have no experience with Interface... it broke when I first
tried it many moons ago and I've never gone back... I should give it
another poke... sorry I can't help you here Tony... anyone else?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of
Web Specialist wrote:
Hi all,
anyone have an example using Form Validate plugin
(http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html
http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html)
where submit button appears only after all form fields
I have a feeling there is an obvious answer to this, but it escapes me...
if have some thing like this that is called by document.ready():
function init_top_level() {
$(.top_folder).click(function(i) {
// Do a ton of stuff here
});
}
I not only want to assign
Been on phone all day, but yes, this looks like pretty much exactly what I
was talking about. You rule. I need to sit down and look at the source more
closely later to see about attaching it to the Interface Draggables bit.
On 1/11/07, Jonathan Sharp [EMAIL PROTECTED] wrote:
Oh...yeah that
RhythmFighter schrieb:
I have a feeling there is an obvious answer to this, but it escapes me...
Right. Try this, it should be what you are looking for:
function init_top_level() {
var handler = function(i) {
// Do a ton of stuff here
};
if have some thing like this that is called by document.ready():
function init_top_level() {
$(.top_folder).click(function(i) {
// Do a ton of stuff here
});
}
I not only want to assign the click event to my .top_folder
elements, but assign dblclick as well. I
Thanks for looking at this for me Alex.
I've fixed the problem in interface elements. They overwrote jQuery's fx()
to support their enhancements. Since interface elements hasn't been updated
since Oct '06, their fx() had the same opacity issues that jQuery dealt with
in recent releases. So,
Hi everyone. Jack Slocum, the maker of the YUI-Ext lib, recently posted
some performance benchmarks that compared his new extension, DOMQuery,
to several libraries. jQuery was included in the comparison and in his
tests, jQuery incorrectly appeared to fail or run slower than DomQuery.
So we
Thanks for the assistance. Yes, I was basically trying to assign a click
and dblclick to the same function (to prevent users from double-clicking
and firing the func twice). However, after looking into it a bit more, i
think that the $(p).one(click, fun.is a better fit here.
I don't
I'm not much of a javascripter, but I've been getting into JQuery lately...
I'm wondering if there is there an existing JQuery solution for a
sliding/draggable show/hide sidebar panel that scales to fit the various
viewport heights? I posted a quick diagram of what I'm thinking of
Forgot to add us to the list...
Zvents:
http://www.zvents.com/
This is a Rails site and we completely replaced prototype.js with jQuery and
our own code. We're using thickbox, a homegrown autocompleter, my DOM
plugin, and lots of custom code.
This also puts jQuery on our partner sites:
The
Rolf,
try now to double post your messages.
not sure if this is the best way of going about it, but this is what I did:
script type=text/javascript
!--
$(document).ready(function(){
$(#control).bind(click, function(){leftwide()});
});
function
Oh! Sorry, I didn't realize the earlier post had gone through - I had
cancelled it.
Thanks for the reply - I'll play with that and see what I can learn with it.
Rolf
bmsterling wrote:
Rolf,
try now to double post your messages.
--
View this message in context:
And another one:
http://www.flatline-tignes.com/
Uses jQuery, a modified thickbox, DOM creation plugin, my date picker
and various custom code. Most of the jQuery action is on the flat
details pages and the booking page. I discovered jQuery half way through
building this site so there may be
Klaus is absolutely right.
If you really really really cannot get around this invalid html then seeking
the id as an @attribute seems to work, for
example: $([EMAIL PROTECTED]''])
Note: the inner quotes in the example are two single quotes right next to
eachother to represent an empty string.
Scripting on top of an invalid HTML document won't make your life easier
(obviously). I'd try to replace spaces given by the user to _ in the
backend.
And then do what with underscores given by the user?
--Erik
___
jQuery mailing list
On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote:
Scripting on top of an invalid HTML document won't make your life easier
(obviously). I'd try to replace spaces given by the user to _ in the
backend.
And then do what with underscores given by the user?
Leave them as underscores?
--
Erik Beeson schrieb:
Scripting on top of an invalid HTML document won't make your life easier
(obviously). I'd try to replace spaces given by the user to _ in
the
backend.
And then do what with underscores given by the user?
Come on, that was just an idea. You can leave
It was clear in my head, but I didn't explain it properly :)
I meant, if you replace spaces with underscores, and then you want to
*display* them as spaces, you'll have ambiguity if there was also an
underscore. Not really a big issue.
--Erik
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
I only brought it up because I'm wrestling with it right at the moment. I
have user created tabs where I want to display the name of the tab, and use
the name as its ID.
Nevermind, it wasn't really an issue and certainly wasn't worth anyone's
time. Sorry for the bother :)
--Erik
On 1/11/07,
On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote:
It was clear in my head, but I didn't explain it properly :)
I meant, if you replace spaces with underscores, and then you want to
*display* them as spaces, you'll have ambiguity if there was also an
underscore. Not really a big issue.
I see.
Thanks for the assistance. Yes, I was basically trying to
assign a click and dblclick to the same function (to prevent
users from double-clicking and firing the func twice).
Hmm... If you assigned both click and dblclick to the same function, then
the function *would* be called twice on each
Scripting on top of an invalid HTML document won't make
your life easier (obviously). I'd try to replace spaces given
by the user to _ in the backend.
And then do what with underscores given by the user?
Come on, that was just an idea. You can leave underscores the
way they are for
On 1/11/07, Antonio Collins [EMAIL PROTECTED] wrote:
I 'spose I'll go through their code base and
look for any other overwrites that should be updated.
You should talk to Paul or Stefan before you do because they've been doing
*a lot* of work on Interface lately (though none of it has, to my
That's what we ended up doing.
--Erik
On 1/11/07, Brandon Aaron [EMAIL PROTECTED] wrote:
On 1/11/07, Erik Beeson [EMAIL PROTECTED] wrote:
It was clear in my head, but I didn't explain it properly :)
I meant, if you replace spaces with underscores, and then you want to
*display* them as
I like it when visitors put quote marks and angle brackets
and stuff in these ID fields. It makes for a much more
interactive environment when they can run their own code!
You forgot the smiley, I hope. :)
It brings new meaning to the term dynamic HTML in any case.
Thanks, the $(p).one was just a generic example. I plan to reassign
the click function on the callback from an ajax request. Thus, this
should prevent them from firing a second request while the first is out.
Or, would this be better handled by setting a global var, let's say
ready=1 on page
1. I've put this line at the bottom of the standard jquery.js file not
compressed:
$package('jquery',{});
2. I've wrapped the content of the standard chili.js file inside this:
$using( 'jquery', function() {
...
} );
3. I've changed the default
John told me to post this here, so here it is
I am currently refactoring a large amount of code over to jQuery. Against
better principles, the HTML is rife with onclick=fn(), etc, so I am having
to convert over the functions themselves.
Prototype's $() will take a string or an object, just
You're handling a case where arg1 isn't a string. What is the alternative?
Blair
On 1/12/07, Nate Cavanaugh [EMAIL PROTECTED] wrote:
John told me to post this here, so here it is
I am currently refactoring a large amount of code over to jQuery. Against
better principles, the HTML is
So in my refactoring, I have been doing this:
function test(arg1,arg2){
obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
return obj;
}
At some point you're going to bite the bullet and convert all the
calling functions to include the '#' right? Hope so. Until then you
could just
Well, the $() in prototype only accepts objects and strings (it may take
array's too, but I know that this code isn't utilising arrays).
So, the arg1 is only going to be an object or a string. I could check it's
type as object, but since I know those are the only possibilities being
passed, Im
jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string')
t = '#' + t;
return this._find(t, context);
}
Of course that really limits how you can use jQuery but it may get you
over the hump.
Hey Rey,
Thanks for compiling this list!
Glen Lipka got some jQuery goodness into intuit.com before he went
off to another company. I can't remember which pages other than the
homepage. And the jQuery version of the homepage is served out
randomly to a certain percentage of users (for
Well, I just did this too - though not from Prototype but from my own $()
function that took a string or an object. All I really needed to do was
change my $(str) calls to $('#' + str), which I did via global
search-and-replace - searched for $( and replaced it with $(# - worked
beautifully and I
Maybe this one make more sense:
jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string' document.getElementById(t))
t = '#' + t;
return this._find(t, context);
}
It's sort of a Prototype conversion plugin I suppose. And probably
useful
..also before, the animate function accepted an object as callback (with
step and complete functions), not it only accepts a function, how do you
call a function for each step of an animation now?..
..i may have posted this message before, i apologize if i have,
something weird happened in
Well as long as they don't close up shop on Javascript in Safari
everything should be cool no?
http://www.ilounge.com/index.php/news/comments/apples-jobs-more-
iphone-apps-coming-before-launch/9320
We define everything that is on the phone,” Jobs told the New York
Times. “You don’t
they aren't even committing to javascript on the phone... hard to
believe they wont!
On 1/9/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
Today has been a big day for the mac, and the iphone is about 6 months
away. It runs Safari and a mini version of OS X. And it supports
widgets!
Widgets can be
At the point of doing document.getElementById(t), you might as well just
return that since that's all jQuery is going to do anyways. You might
consider something like (only tested on FF2/win32):
jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string'
I have a form with multiple checkboxes, each with their own unique id.
How do I go about returning the ids of the selected checkboxes into an
array?
Sorry if this is a bit basic, but it has me stumped.
--
View this message in context:
I have a form with multiple checkboxes, each with their own unique id.
How do I go about returning the ids of the selected checkboxes into an
array?
This should do it:
var a[];
$(':checkbox').each(function() {
if (this.id) a.push(this.id);
});
At the point of doing document.getElementById(t), you might as well just
return that since that's all jQuery is going to do anyways.
No, jQuery will validate that the elem is within the given context (if any).
You might consider something like (only tested on FF2/win32):
jQuery.fn._find =
malsup wrote:
var a[];
$(':checkbox').each(function() {
if (this.id) a.push(this.id);
});
I get this error:
missing ; before statement
var a[];
(curse my rudimentary javascript skills!)
--
View this message in context:
You want:
var a = [];
You've been doing too much C and Java :)
--Erik
On 1/11/07, Michael Geary [EMAIL PROTECTED] wrote:
var a[];
$(':checkbox').each(function() {
if (this.id) a.push(this.id);
});
I get this error:
missing ; before statement
var a[];
(curse my
Erik Beeson wrote:
You want:
var a = [];
You've been doing too much C and Java :)
I found this works too:
a = new Array()
$(':checkbox').each(function() {
if (this.checked) {
if (this.id) a.push(this.id);
}
a = new Array()
$(':checkbox').each(function() {
if (this.checked) {
if (this.id) a.push(this.id);
}
});
a = [] equals a = new Array()
but 'var' is used to limited the variable scope.
--
I like python!
1 - 100 of 111 matches
Mail list logo