Hi Kelvin,
using errorPlacement is a really bad workaround, as its called only
once per error. After using errorPlacement to add the error-label to
the DOM, it isn't called again.
A better workaround would use the highlight and unhighlight options.
Could you provide a simple demo that shows
Yes, using the remote method:
http://docs.jquery.com/Plugins/Validation/Methods/remote
Jörn
On Tue, Feb 17, 2009 at 8:13 PM, id404 ttarp...@googlemail.com wrote:
this question is about the jquery validation plugin (http://
bassistance.de/jquery-plugins/jquery-plugin-validation/)
i have
Okay, in this case, the groups-option doesn't help.
You could try the variations of the required method:
http://docs.jquery.com/Plugins/Validation/Methods/required
Or follow the login-form example here, implementing similar
functionality to the forgot-password-link:
Hi,
Taking a second look on your code it's clear why only the first email
address is validated: you have a return statement in your for loop.
try something like:
email: function(value, element) {
if (this.optional(element)) // return true on optional element
(whatever this is for?)
Hi Jörn,
Thanks for the reply :)
I know using the errorPlacement is a bad workaround but I couldn't
figure out another way to do it.
Basically what I would like is for each error to slideDown when it is
shown and to slideUp when it is hidden. When I looked through the
code, it seemed like
Hi,
how do you explode the outer div? Can you share your function with us?
by(e)
Stephan
2009/2/18 Ricardo Tomasi ricardob...@gmail.com:
What do you mean by explode? remove?
On Feb 17, 4:50 pm, webspee...@gmail.com webspee...@gmail.com
wrote:
Hey all.
Exploding a simple div is easy
Yes, it does. And for implementing, it would help a lot to have a
simple demo that has the right layout for the animations to work.
Jörn
On Wed, Feb 18, 2009 at 9:40 AM, Kelvin Luck kelvin.l...@gmail.com wrote:
Hi Jörn,
Thanks for the reply :)
I know using the errorPlacement is a bad
Hi,
Does this help?
http://www.kelvinluck.com/assets/jquery/validate/validate.html
It's a simplified version of the original demo (
http://www.shair.it/sandbox ) - but it is still using errorPlacement
to slideDown the error messages first time they appear,
Here is another version which (I
The following HTML is inside a loop, so it can be repeated many times
over.
table width=600 border=0 cellspacing=0 cellpadding=0
tr
tdtable class=atrtd/td/tr/table/td
td rowspan='2'nbsp;/td
/tr
tr
tdtable class=btrtd/td/tr/table/td
/tr
/table
I have a click function on
Really no ideas ?
On 15 fév, 18:10, phicarre gam...@bluewin.ch wrote:
I have a problem with the jquery form plugin.
I submit a form (to test.php) in which there are text fields and one
file field + enctype='multipart/form-data'.
The html page has a meta which defines the charset to iso
I'm trying to pull my Picasa album JSON feed into my website, but I'm
having problems. It is pulling in the Picasa thumbnails without a
problem, but when I try to pull in the full sized photos (200kb), it
returns nothing, even though I have verified that the links are
valid. Below is the code
I tried to put the links in the tabs definition blank as described
here:
http://pastie.org/392713
Then I tried to initialize them in the document.ready (because I have
to pass 1 parameter to the url that i'm calling);
When i create the tabs via jQuery the first tab is not selected (it is
Could you share a complete code sample, full html and javascript in one
pastie? Thanks.
- Richard
On Wed, Feb 18, 2009 at 6:42 AM, m.ugues m.ug...@gmail.com wrote:
I tried to put the links in the tabs definition blank as described
here:
http://pastie.org/392713
Then I tried to initialize
I created a widget and figured that it can only be called once per element:
$.widget('ui.mywidget', {
_init: function() {
alert('hello');
}
}
$.widget(ui.mywidget, mywidget);
$(#foo).mywidget(); // alerts hello
$(#foo).mywidget(); // doesn't do anything
now I understand this
i suppose the 13 boxes' IDs are generated in order,so go through all the
boxes by id:
var pass=0;
for(var i=1;i=13;i++){
if($(#mybox+i).val() != ') pass+=1;
}
if(pass=0) return false;
and then, put your code in a function and bind it to the submit event of
your form.
(i'm also a starter)
I am also having difficulties trying to get jQuery working with
prototype/Scriptaculous.
I am trying to combine a jQuery Lightbox plug-in with a prototype/
Scriptaculous Carousel plug-in.
I have added the jQuery.noConflict() process but to no avail. The
lightbox process works but the carousel
You can use jquery.validator (http://bassistance.de/jquery-plugins/
jquery-plugin-validation/) with a custom validation method on the age
field. Here's an example:
//custom validation method
$.validator.addMethod(contextualAgeValidation, function(value,
element, params) {
//see if the
This might be a stupid question, but I have to ask ...
What is the reason for not having functions like isString, isNumber,
isBoolean, etc? Is it just because that would create extra function
calls?
Hello Guys,
Fairly noobish here so hoping to learn a little something from this
challenge.
I have a form which contains a bunch of different checkboxes (all the
same name) and a bunch of different button elements. I want to by
default have these buttons disabled unless at least one checkbox is
Hi,
I might have used the wrong terminology here so I will explain what I
want to do. I am currently using the jquery.form plugin to make my
forms 'ajaxable' where needed. However, I would like to add some extra
functionality to the plugin which is specific to my application. In
this
Hello All,
I need to implement this functionality using clueTip (great Karl for
the plugin)
Using OpenLayers if a user clicks on a point:
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control,
{**
},
trigger: function(e)
{
//AJAX call
var url =
just not getting it. How do I go to a specific the slide that needs
to be displayed from the Cycle detail slides (using a 'next/prev' nav)
without pagerAnchorBuilder, and still maintain the navigation of the
Cycle detail slides?
Nick, if you need to start a slideshow on a specific slide
Currently, I have implemented a small image gallery using the jQuery
Cycle plugin. It's working perfectly but I would also like to add
callbacks. How do I successfully do this? I currently have:
jQuery(document).ready(function(){
jQuery('#frame1').cycle({
fx:'fade',
I submit a form (to test.php) in which there are text fields and one
file field + enctype='multipart/form-data'.
The html page has a meta which defines the charset to iso 8859-1
The test.php module begin with header('content-type:text/
html;charset=iso-8859-1');
I read the text fields like
Extra function calls sure - plus there's really no need for those
methods, they're already a part of JavaScript.
typeof FOO === string
typeof FOO === number
typeof FOO === boolean
--John
On Tue, Feb 17, 2009 at 11:53 PM, pbcomm pbc...@gmail.com wrote:
This might be a stupid question, but I
Oh that's great Mike thanks for helping me! I think with the script
loading, I've streamlined it and so now I've linked everything which
can either be linked js files or external CSS files. So hopefully that
will do the trick. It seems to have work with things I have done just
now.
Can you
I might have used the wrong terminology here so I will explain what I
want to do. I am currently using the jquery.form plugin to make my
forms 'ajaxable' where needed. However, I would like to add some extra
functionality to the plugin which is specific to my application. In
this
On Wed, Feb 18, 2009 at 4:47 PM, crungmun...@googlemail.com
crungmun...@googlemail.com wrote:
Hi,
However, I would like to add some extra
functionality to the plugin which is specific to my application. In
this circumstance is it better to write the functionality into the
plugin directly
I want to include an optional set of date setting fields on a form - A
dropdown for day (01 - 31 with a blank value), a dropdown for month
(01 - 31 with a blank value) and a four digit year input field.
The validation is as follows:
* The date is optional, if all fields are blank then assume no
if ($(checkbox[name='my_checkbox']:checked).length == 0) {
//None are checked
}
else {
//At least one is checked
}
Sir Rawlins wrote:
Hello Guys,
Fairly noobish here so hoping to learn a little something from this
challenge.
I have a form which contains a bunch of different
Hello!
I have setup a simple editor site for a image gallery where the user
can visually edit (sort entries, add entries, edit captions) the HTML
of a ul. When finished the content gets saved via PHP. Is there a
simple way to have special characters in image captions converted into
HTML
After looking at the example, I'm afraid I don't know how to work out
what I need to define for the functionality that I need, as I've
looked at the Intermediate Section also. If I have this:
div id=frame1img src= alt= title= /img src= /alt =
title= //div
a id=prev2 href=#Prev/a a id=next2
Since you're saving it with php why not just use the php functions that do
the same?
http://us3.php.net/htmlentities
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-919-517-1568 Tieline: 255-1568
E-mail: mjlaw...@us.ibm.com
'Examine my teachings
Perfect! I'm not exactly good at PHP, so I didn't know about that, but
it seems to be exactly what I am looking for! Thanks!
On Feb 18, 2:19 pm, Michael Lawson mjlaw...@us.ibm.com wrote:
Since you're saving it with php why not just use the php functions that do
the same?
I know they are there and I've used added functions to save on the
code size, which makes a big difference when used a lot. That's why I
wanted to see if there are some other drawbacks I was not aware of.
On Feb 18, 7:57 am, John Resig jere...@gmail.com wrote:
Extra function calls sure - plus
Hello,
On a form how can I Show a fieldset when a checkbox is Selected and
Hide the same fieldset when the same checkbox is unselected?
Thanks,
Miguel
Great!
And if you need any PHP help, feel free to email me directly! I know it
better than I do javascript ;)
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-919-517-1568 Tieline: 255-1568
E-mail: mjlaw...@us.ibm.com
'Examine my teachings critically, as a
Hi,
i have fixed some css issus with IE and made some minor js changes.
Feel free to take a look at the example page which is know in english.
Best regards
Sören
On 17 Feb., 16:49, soeren.kri...@googlemail.com
soeren.kri...@googlemail.com wrote:
Hi,
i have added some (for me) missing
I know they are there and I've used added functions to save on the
code size, which makes a big difference when used a lot.
It doesn't make any difference save for a few characters.
I don't know about Javascript, but a good deal depends on how that
functionality is implemented, and what language you're in. They're not
always the same thing, and shouldn't always be used like they are the same
thing. Again though, they may be in Javascript, i'm not saying they're
not. (I'm
Hi,
i have fixed some css issus with IE and made some minor js changes.
Feel free to take a look at the example page which is now in english.
Best regards
Sören
On 17 Feb., 16:49, soeren.kri...@googlemail.com
soeren.kri...@googlemail.com wrote:
Hi,
i have added some (for me) missing
We'd love to help with this question over on the jQuery UI list, for the
benefit of everyone there:
http://groups.google.com/group/jquery-ui
Thanks.
- Richard
On Wed, Feb 18, 2009 at 4:31 AM, Aleem B ale...@gmail.com wrote:
I created a widget and figured that it can only be called once per
Hi, i don´t think so. Tablesorter performance is the same with 1.2.6
and 1.3.1.
On 17 Feb., 19:57, SteelRing steelr...@gmail.com wrote:
Hi, thanks for the update. I see now you require jquery 1.3.1, is
there any changes that would make it perform faster with 1.3.1?
On Feb 17, 9:49 am,
You need a custom method and a required-dependency, roughly something like this:
$.validator.addMethod(customDate, function(value, element) {
var day = $(#day).val(), month = ...;
return valid(day + month + year);
});
function dateRequired() {
return $(#day)[0].selectedIndex 0
Hi,
I had an issue with the clone() function in that it wasn't copying
over select values. I've added this function to my page
function cloneForm(id, withEvents)
{
var clone = $('#'+id).clone(withEvents);
var selvals = [];
$('#'+id+ select).each(function()
{
Assign the event to the element li and not the image. Because if you display
a text over the image, you will lose the event mouseover.
$(document).ready(function() {
$(li.episode).mouseover(function () {
$(this).addClass(background);
$('div.details').addClass(show);
});
Hi,
I want to validate form and submit it via JavaScript even if it isn't
valid, and don't do it if the submit button is pressed
$(document).ready(function() {
validator = $(#editUserForm).validate(
{
focusInvalid: false,
If you're trying to submit the form even if it doesn't validate...then why
validate in the first place? i'm confused
cheers
Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone: 1-919-517-1568 Tieline: 255-1568
E-mail: mjlaw...@us.ibm.com
'Examine my teachings critically,
Hi Folks,
Wondered if anyone could help on this, I've been stuck on it for quite
some time.
I'm trying to validate a date field using a UK date, here's my code:
$(document).ready(function(){
$('#arrival-arrival-date').datepicker({ minDate: new Date
(),defaultDate: +1,dateFormat:
Hi Folks,
Wondered if anyone could help on this, I've been stuck on it for quite
some time.
I'm trying to validate a date field using a UK date, here's my code:
$(document).ready(function(){
$('#arrival-arrival-date').datepicker({ minDate: new Date
(),defaultDate: +1,dateFormat:
Morningz,
Thank you for this! I made a couple of small changes, like so:
if ($(inp...@name='my_checkbox']:checked).length == 0) {
and it worked a real treat!!
Thank you for your advice, I appreciate it!
Robert
-Original Message-
From: jquery-en@googlegroups.com
Hi Pete,
You don't need to use .hover() with an empty function. You can
use .mouseleave() in jQuery 1.3.x or .bind('mouseleave') in 1.2.6.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 18, 2009, at 12:28 AM, pedalpete wrote:
Ok, actually got
I got this problem
var $tabs = parent.$('#operativitaframe').contents().find
('#tabsContainer').tabs();
alert($tabs);
This prints [object Object];
how can I know if this is the tabs object instead of something else?
If i cycle on it and print all his content I got this
length, 0, prevObject,
Don't use @
well, don't use it if you plan on ever using jQuery over version
1.3... because it's not supported even if you are using an older
version, loose the @, it's not needed
On Feb 18, 10:13 am, Robert Rawlins
robert.rawl...@thinkbluemedia.co.uk wrote:
Morningz,
Thank you for
Get Firebug. Not meaning to sound flippant, but debugging with alerts
is painful and living in the past. Firebug will allow you to see
inside the object by doing console.log($tabs). To save you some
frustration, if you try and log a string plus the object to the
Firebug console you'll get [object
I got this problem
var $tabs = parent.$('#operativitaframe').contents().find
('#tabsContainer').tabs();
alert($tabs);
This prints [object Object];
how can I know if this is the tabs object instead of something else?
$tabs is actually a jQuery object. tabs() may add some additional new
Hi Miguel,
you can use the click trigger of the checkbox:
form
show secret: input id=checkbox type=checkbox/
div id=div
secret field: input type=text /
/div
/from
$(#div).hide();
$(#checkbox).click(function(){
if ( this.checked ) {
$(#div).show();
} else {
On Tuesday 17 February 2009, Alexandre Plennevaux wrote:
i suppose that you change try specifying the dataType as script that
your ajax calls expect:
Taken from: http://docs.jquery.com/Ajax/jQuery.ajax
dataType
The type of data that you're expecting back from the server. If none
is
Regular expressions are read to read, can't spot any obvious error
with that, especially considering that it fails only in Safari.
Here is a custom method for italian dates, not using regex, maybe it helps:
jQuery.validator.addMethod(
dateITA,
function(value, element) {
Thanks for the heads up on that, I've obviously picked that up as a bad
habbit from some examples built on older versions, I'll be sure to get rid
of it! :-)
Thanks
Robert
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MorningZ
Hi,
I was trying to integrate your code on my web application and the
following happens:
I am able to add a theme. But when I try to add a second theme I get
the following error:
[Exception... 'type property can't be changed' when calling method:
[nsIDOMEventListener::handleEvent] nsresult:
You can take a slightly different approach, which might simplify your
markup, css and js. Since you're using absolute positioning, you can
absolutely position your image over your text, then just toggle the
opacity on hover to reveal the text underneath. One advantage with
this approach is you're
Hi,
Here are a couple of ways to tackle this.
First just using parent(). This traverses up to the outer table and
then uses that as the context for selecting table.b :
$(table.a).click(function(){
var parent = $(this).parent().parent().parent();
$('table.b', parent).toggle();
});
Second
Scripts block other assets from downloading, so the most appropriate
place for them (most of the time), is at the close of the body. This
allows your page to render, and then allows you to add behavior as
progressive enhancement. It's generally good practice; Google
progressive
you can use load, you just have to setup the ajaxSetup controlling
your ajax main parameters so you set it to your liking, then you call
the load(). It is built on top of the ajax method to ease its use.
See: http://docs.jquery.com/Ajax/jQuery.ajaxSetup#options
On Wed, Feb 18, 2009 at 5:18 PM,
If you must rely on the markup structure (and you're confident it
won't change), then you could use either suggestion (you might want to
check for speed), with some minor changes: anytime you find yourself
using a selector twice or more ( e.g. .parent().parent().parent() ),
then there's most
hi there,
a quick question: i'm using an object to pass a series of variables.
Sometimes, i test for a specific property, which might not exist.
I can't seem to find the right way, i tried
Obj.sortby = (typeof Obj.sortby == 'undefined' || Obj.sortby==''
||Obj.sortby == null) ? 'time' :
Hi,
I would like to include the script on the head of the document and
using an external JS file.
So I inserted it inside the Document.Ready function. I upload a new
example showing the problem I have:
http://www.27lamps.com/Beta/List/List2.html
In this example I didn't use the external JS
The problem is that I can access any element from the iframe to the
parent iframe (even the tabs).
I can hide tabs div, I can show it, but when i call specific
properties on tabs element something goes wrong.
I made a simple test case explained here.
Yes,
I tried that to but the problem persists. I updated the new version:
http://www.27lamps.com/Beta/List/List2.html
I am able to add 1 theme to the list ...
Then all the other themes I add are not added to the list ...
But I think they are being added to the themes array.
The index also
if you're using the ready function, remove the inner (function($)
{ ... })(jQuery); wrapper
On Feb 18, 9:13 am, shapper mdmo...@gmail.com wrote:
Hi,
I would like to include the script on the head of the document and
using an external JS file.
So I inserted it inside the Document.Ready
The problem is with the version of jQuery you're using. Update to 1.3
(and don't include a space in the URI).
Try your code with the Google js api and it will work (I just did,
even with the duplicate jQuery wrapper functions).
On Feb 18, 9:28 am, shapper mdmo...@gmail.com wrote:
Yes,
I
On Wednesday 18 February 2009, Alexandre Plennevaux wrote:
you can use load, you just have to setup the ajaxSetup controlling
your ajax main parameters so you set it to your liking, then you call
the load(). It is built on top of the ajax method to ease its use.
See:
Thanks guys. I'll test these out. Will post the results soon.
On Feb 18, 11:43 am, mkmanning michaell...@gmail.com wrote:
You can take a slightly different approach, which might simplify your
markup, css and js. Since you're using absolute positioning, you can
absolutely position your image
I find it more practical to use an anonymous function as in (function
($){..}(jQuery) and keep the '$' reference, or do all the work at once
to avoid confusion:
(function($){
$(...)
})( jQuery.noConflict() )
or
jQuery.noConflict()(function($){
$(...)
});
On Jan 7, 4:55 am, seasoup
I have a terms of use agreement on my site and I would like to
provide radio buttons with labels of I Agree and I Disagree. If
the user selects I Disagree then I'd like a message saying something
like Sorry, you must agree to the terms and conditions before
proceeding and if the user selects
Hi, I am trying to implement your horizontal nav bar into a design I
am creating but for some reason it's adding a horizontal scroll bar on
the screen even though the page itself and the nave are much smaller
than the width of the screen. any help would be appreciated!
Hi All,
I'm using Kelvin Luck's brilliant datepicker plugin (http://
www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html) and am
having a strange issue in Safari Version 3.2.1 (5525.27.1).
I'm running a couple simple lines of my own code that are bound to the
calendar's dateSelected
Hi, I am trying to implement your horizontal nav bar into a design I
am creating but for some reason it's adding a horizontal scroll bar on
the screen even though the page itself and the nave are much smaller
than the width of the screen. any help would be appreciated!
Here is a link to the css
I have an index page with 1270 list items being processed by listnav,
and loading the page takes about 15 seconds. Without listnav turned
on, the page loads in less than a second.
Is there a way to speed up the indexing through caching? Or a setting
that would use pre-populated LI classes?
I need to implement a tagging keyword solution for my application in
ColdFusion. I am looking for a tagging solution like the one found in
Drupal that is a type ahead and you can select words and the words are
added in a comma delimited list. Does anyone know where I might find
a solution like
Howdy,
I'm seeing something I never thought I'd see- positioning works
correctly in IE and not in FF (as far as I can tell)!
I'm attempting to use positionBy:'fixed' because I want the tip to
appear in the same position relative to the referring link.The
links are large thumbnails, and I'm
I ran into this myself a couple of times. The jQuery framework leaves
much to be desired in this arena and there is considerable lack of
proper OO inheritance from what I am aware of (I have only been on
jQuery for 2-3 weeks). I recently tried to extend the ui.spinner
JavaScript is no
div id=frame1img src= alt= title= /img src= /alt =
title= //div
a id=prev2 href=#Prev/a a id=next2 href=#Next/a
and I assign each image's alt and/or title, how can I evoke them as
captions below each image after clicking prev/next?
Hmm, should be pretty easy for that setup. Assuming you
I've manged to make it go away in Firefox by adding 'overflow-
x:hidden' too my css but that will not work in IE 6 and later. this is
for a client who as we all know client means IE user(ha) so It's
pretty important I get it to go away. Thanks! If you need more links
let me know.
On Feb 18, 8:33
[jquery-1.1.3.js]
client-side: I have a form with text field and file field.+
iso-8859-1
transmission by ajax to the server
server-side: I have a var_dump($_POST);
First test
I enter in one text field the string rené : the dump gives rené
Second test
I enter in one text
How about just a required checkbox? [ ] I agree to terms of use
Jörn
On Wed, Feb 18, 2009 at 5:51 PM, Gigi gig...@gmail.com wrote:
I have a terms of use agreement on my site and I would like to
provide radio buttons with labels of I Agree and I Disagree. If
the user selects I Disagree then
Currently building a shipping calculator and attempting to add in a
section that checks every shopping cart item's quantity and then
multiplies that quantity by the weight of that item.
The HMTL consists of input fields similar to the example below:
input type=hidden name=quantity1 value=1 /
Your test case is not comparing a raw implementation
You are still using jQuery $ inside the loop, it should be pure
document.getElementById(test);
When you remove the $ from your test case and use native
implementation you will be getting numbers in the following range:
FF
ID Raw: 1 ID
I just together a quick tagger plugin the other day that might help
you. You can check out the demo here:
http://www.virgentech.com/code/tagger
On 2/18/09, murphyhg murph...@gmail.com wrote:
I need to implement a tagging keyword solution for my application in
ColdFusion. I am looking for a
I think this might work, give it a try:
Obj.sortby = Obj.sortby || 'time';
-- Josh
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf
Of Alexandre Plennevaux
Sent: Wednesday, February 18, 2009 9:07 AM
To: Jquery-en
Subject: [jQuery]
I've never had any issues with charset and jquery.
You should probably set your charset (META) on your page to utf-8.
On Feb 18, 8:27 am, phicarre gam...@bluewin.ch wrote:
[jquery-1.1.3.js]
client-side: I have a form with text field and file field. +
iso-8859-1
can you post a test page? it's a lot easier to troubleshoot with a
test page and Firebug.
weight = Number($(input[name=('weight' + (i))]).val());
Why do you have ()'s around the weight part (and the i as well for
that matter)?
weight = Number($(input[name='weight + i']).val());
should work (note to copy and paste that because it's hard to see
difference between single and double
On Feb 18, 7:01 am, Mike Alsup mal...@gmail.com wrote:
I guess it depends what you want to change. Using extend you can
redefine any of the public functions, but the private functions will
remain private.
I've found that many plugins simply aren't that extensible. This is
very bad design,
The issue that I am having with doing it that way is that the hover
action is only triggered when a person mouses over the table. You can
move all around the table, but it won't trigger again until the mouse
is moved off and then back on the table. I need the over to be
triggered for every row.
I've since updated the script by request, it failed if you began with
a single element in the container. It now sorts by any attribute you
want (ids by default) and works with multiple elements both ways.
http://ff6600.org/j/jquery.insertInOrder.js
Examples at:
http://jsbin.com/itofi
Matt,
While it would not affect the results, I believe you can shave a few
ms off by using ===
On Feb 18, 11:26 am, Matt Kruse m...@thekrusefamily.com wrote:
On Feb 18, 6:57 am, John Resig jere...@gmail.com wrote:
typeof FOO === string
typeof FOO === number
typeof FOO === boolean
==
On Feb 18, 2:20 pm, Kean shenan...@gmail.com wrote:
While it would not affect the results, I believe you can shave a few
ms off by using ===
Over 10,000,000 iterations, I see no difference in time between using
== and ===.
If the return type of 'typeof' varied, a difference might be found.
So... a question regarding selector efficiency.
The following snippet of HTML describes attributes associated with a polygon
in an KML. Its basically a table of data, contained as spans in lis in
a ul. Given this snippet, what would be the best (fastest) way to return
the values of MAP_ID and
1 - 100 of 172 matches
Mail list logo