On Oct 18, 2009, at 2:05 AM, Michael Geary wrote:
$('div',this) is simply a confusing way of writing $
(this).find('div'). The only reason it exists at all is for
"historical reasons": it was added to jQuery before the .find()
method existed.
Never use $('div',this) in your code. Always us
Hi there,
Would you mind posting this question to the jquery-ui google group if
you haven't done so already? That group is dedicated to questions such
as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks!
--Karl
Karl Swe
ts of an element with id="myid"
-- two arguments.
One way to include "this" in the selection would be to use .add(). For
example:
$(this).add('div');
-- select this and all div elements.
Hope that helps.
--Karl
Karl Swedberg
www.englishrules.com
www.l
This has served me well:
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 16, 2009, at 4:53 PM, derek allard wrote:
Hello. I'm relatively new to jQuery and wr
s selects all checkboxes and text inputs and binds both a change
and a focus handler to them. The doSomething() method will fire on
change regardless of the input type (event.type == 'change') and on
focus for text inputs only (this.type == 'text')
--Karl
K
ed to keep the append chain, you'd have to add a
traversal method in between:
$('#result').append('').find('table').append('>').find('tr').append('')
( you could use .children() instead of .find() )
That seems like quite a bit of work, though.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
OM traversal to match the others as well.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 15, 2009, at 12:07 PM, Julien wrote:
Hi again,
My question was probably too long as I got no answer...
When a change occurs is one of the following text fields,
,
thanks in advance for any help.
One thing that often helps in these cases is to set wmode=transparent
in the object's params
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
Wow, easy there Karl. I was just showing you working examples of the
issue I was experiencing.
easy there? I was just trying to help. You showed examples that didn't
include my suggestions, after we had already established that your
first attempts were not going to work.
Your
code does no
Try this ...
var pageCounter = 0;
var pagesTotal = $('.pages').length;
$(".page").fadeTo(fadeSpeed,0,function() {
if (++pageCounter == pagesTotal) {
alert("test");
}
});
I'm assuming you have declared a variable for fa
ile the
query is running)
- http://meded.ucsd.edu/testStatic.cfm
(does work as expected, shows the loading message while the images are
loading)
Josh
On Oct 12, 5:30 pm, Karl Swedberg wrote:
You've lost me there. If you're trying to block the page based on
some
user interaction,
Would you mind posting this question to the jquery-ui google group if
you haven't done so already? That group is dedicated to questions such
as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks!
--Karl
Karl Swe
resented:
http://test.learningjquery.com/blockui.html
Note that I added a setTimeout inside the $(window).load() function to
simulate a heavy page.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 12, 2009, at 4:59 PM, sdtacoma wrote:
Thanks for you hel
('a[href=somthing.html]') .
For more information about getting Intellisense working with Visual
Studio, see this article:
http://www.learningjquery.com/2009/07/setting-up-visual-studio-intellisense-for-jquery
--Karl
Karl Swedberg
www.englishrules.com
www.learningjque
t('/path/to/file/', formData, function() {
// do something when post is successful.
});
return false;
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
You have a space between form and [name=...] . In CSS a space is a
descendant selector, so it's expecting some descendant of the form to
have a name equal to formName. Remove the space and you should be fine.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquer
acked") version of jQuery
anymore. You'll almost certainly get better performance by using the
minified version and having it gzipped on the server side. The
minified version is available from the jQuery homepage ( http://jquery.com/
).
--Karl
____
Karl Swed
Well, all you have to do to see for yourself is to set an element's
height and width with CSS while setting its display property to inline
and see what you get.
this is a test
then try it without display: inline;
--Karl
Karl Swedberg
www.englishrule
it:
$('#something img').fadeOut(400, function() {
$(this).remove();
});
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
ution for about 3 hours,
nothing works.
Cheers.
I wouldn't rely on JavaScript for handling user input. Why not just do
it with your server-side code when the form is handled (before the
input is stored in the database or sent by mail)?
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
I think you'll have more success getting an answer if you post the
question to the jquery-ui group. That group is dedicated to questions
such as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks!
--Karl
Karl Swe
This looks like it's going to cause a problem. What happens if someone
clicks #check1 but then changes her mind? She can't click #check2
anymore, because it's disabled.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 10, 2009, at 11:5
$_GET['name'] will be "John" and $_GET['time'] will
be "2pm"
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
x27;#uiblocker').hide();
});
So, that /should/ work. For IE6 support, you'll need to either
simulate position: fixed with a css expression or change it to
position: absolute and hope for the best.
Hope that helps.
--Karl
Karl Swedberg
www.englishrules.com
www.learnin
load file into the
DOM first and then run the JS that is expecting the loaded html. For
example:
$('#someID').load('/path/to/file',
function() {
// run the JS here, now that the ajax loaded content is available
});
--Karl
Karl Swedberg
www.englishru
xtAll('.clear') instead of .next(.'clear') . If it isn't, maybe
you could paste a snippet of your html so that we can see the
relationship between the elements?
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
doing this, but one way is to
use a regex replace:
var someFormattedNumber = '15,000';
+someFormattedNumber.replace(/\D/g,'')
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 4, 2009, at 9:42 PM, Macsig wrote:
Thanks Karl,
it does exactly what I was looking for.
Is there a parameter to set in order to avoid the automatically pause
on mouseenter and resume it on mouseleave? I
e) {
$(document).trigger('pauseCarousel');
} else {
$(document).trigger('resumeCarousel');
}
Hope that helps.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 4, 2009, at 3:32 PM, Macsig wrote:
Any ideas at all?
I'm really stuck on this
On Oct 3, 2009, at 1:21 AM, runrunforest wrote:
I see it is used in many plugins. I try to find document about it but
no help.
It's a JavaScript function:
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call
--Karl
Karl Swe
On Oct 2, 2009, at 3:02 PM, Julien wrote:
Here the way to enable/disable several text inputs depending on the
state of checkboxes located just after each one.
$(':text~:checkbox').change(
function(){
$(this).prev()[0].disabled = !(this.checked);
}
);
Hope this can help others.
ah, t
On Oct 2, 2009, at 12:11 PM, Jack Killpatrick wrote:
Hmm, I gave this a try. Setting height stretches the table rows out
vertically if there are less records than the height. I tried
putting a fixed height div around the table and not setting a height
on the tbody, but then the tbody overfl
ialize('MDEExportedList').hash is all about,
but the replace() function should work.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
have you tried overflow-y: auto; ?
more information:
https://developer.mozilla.org/en/CSS/overflow-x
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 1, 2009, at 8:25 PM, Jack Killpatrick wrote:
bump... anyone know? If there's no nice css way, ma
and then just add a class to the td elements. Whether you do that
server-side or in the success callback is up to you.
Also, you ought to append table rows to a , not to a .
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 1, 2009, at 11:52 AM, Charlie wrot
x27;background-color','yellow')
[0].disabled = true;
}
}
);
You could also replace [0].disabled = true with .attr('disabled', true)
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 1, 2009, at 11:31 AM, Julien wrote:
Hi,
their parent.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 1, 2009, at 11:19 AM, Dave Maharaj :: WidePixels.com wrote:
I am trying to add a class to the first item each time it
appears inside set_list
$('.set_list').each(function(){
$('dl.set
ith them here
I added 'div' to the initial selector, since it looks like all of your
top-level widgets are divs. It's going to be quite a bit faster if you
limit the selector to a specific tag name rather than inspecting every
single element for a particular attribute.
Let me
I try your code, the result is: [object Object]
On Sep 30, 8:05 pm, Karl Swedberg wrote:
On Sep 30, 2009, at 1:00 AM, Poloman wrote:
Can I get value and text of an option and put them into an array
object?
britney
jackson
I'd like to have something like
ike this ...
var arrayob = {};
$('option').each(function() {
arrayob[this.value] = $(this).text();
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
try the Cycle plugin. Lots and lots of transition effects:
http://malsup.com/jquery/cycle/
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 29, 2009, at 4:49 PM, koolkat wrote:
I am looking for the best way to rotate the displayed text . Text
should
t
are descendants of "this" in the DOM tree.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
uery("#tab").mouseenter(function() {
if (!$panel.is(':animated')) {
$panel.slideDown("slow");
}
});
// Collapse Panel
jQuery("#toppanel").mouseleave(function() {
if (!$panel.is(':animated')) {
$panel.slideUp(&
Hmmm. I just searched through all jquery-en members and couldn't find
r...@localhost listed. Maybe one of the other admins already deleted it?
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 26, 2009, at 4:38 PM, Scott Haneda wrote:
I believe
ill toggle
between checked and unchecked to match the state of the parent. Here
is the code I used:
$(document).ready(function() {
$('#city-id-120').click(function() {
$('.child-checkboxes').attr('checked', this.checked);
});
}
If you have a very thick skin and can look past the ranting of
arrogant know-it-alls, the comp.lang.javascript Usenet group can be a
great resource. You can access it through Google Groups, too: http://groups.google.com/group/comp.lang.javascript/topics
--Karl
Karl Swedberg
On Sep 25, 2009, at 11:56 AM, Bertilo Wennergren wrote:
Karl Swedberg wrote:
Internally, jQuery determines whether to use document.createElement
by checking the string against a regular expression:
rsingleTag = /^<(\w+)\s*\/?>$/
Unless I'm missing something, allowing for bo
checking the string against a regular expression:
rsingleTag = /^<(\w+)\s*\/?>$/
Unless I'm missing something, allowing for both syntaxes would be
trivial. Just change the regex to something like this (untested):
rsingleTag = /^<(\w+)\s*\/?>(<\/\w+&
Hi Vitto,
Add these declarations to your ul#mainNav rule (main.css, line 149)
position: relative;
z-index: 50;
For IE, you'll probably also need to add these to div#content
(main.css, line 26)
position: relative;
z-index: 1;
--Karl
Karl Swedberg
www.englishrule
Hi Nalum,
It's pretty straightforward. Instead of doing this:
$.fn.pluginname = function(args) {
};
You can do this:
$.pluginname = function(args) {
}:
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 24, 2009, at 10:59 AM, Nalum wrote:
find('p'); // Actual paragraphs
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 24, 2009, at 8:01 AM, Grimace of Despair wrote:
Working on WinXP in FireFox 3.0.14 with JQuery 1.3.2, I'm trying the
following code:
$.ajax({
url: "http://foo.ba
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 24, 2009, at 2:11 PM, rob wrote:
Having some trouble with this plugin. I've tried in both IE8 and FF3,
but it doesn't seem to work.
Basically the background position isn't moving...
the function toArray(s
Nice one! Thanks for posting this. Chances are good that if you ran
into the problem, someone else has, too.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 25, 2009, at 2:38 AM, boermans wrote:
We noticed an issue with the jquery.linkselect plugin
default' : 'url(hand.cur), default';
$(this).css({cursor: myCursor});
});
Hope that helps.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 25, 2009, at 1:48 AM, David .Wu wrote:
event mousedown and mouseup an
course). If that isn't the
case, please let me know and I'll ping John Resig or someone on the
infrastructure team about it.
thanks,
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 22, 2009, at 7:39 PM, a1anm wrote:
Is it possible to rotate text so that is displays vertically using
jQuery?
Thanks!
You might find this article useful:
http://snook.ca/archives/html_and_css/css-text-rotation
--Karl
Karl Swedberg
www.englishrules.com
I'd use a filter function. Something like this maybe:
$('#MyTable tr').filter(function() {
return /^(Row(?!Header)|Line(?!Empty))/.test(this.id);
})
It's a kind of crazy regular expression, with negative lookaheads, but
it works (as of JavaScript 1.5).
--Karl
__
mouseenter or mouseleave) for the element
that matches the selector represented by id.
// So, when the user's mouse enters ,
it will trigger mouseenter for .
//And we've already bound mouseenter and mouseleave for those divs, so
we're all set.
$(id).trigger(event.type);
oundColor: '#404040'}, 500);
});
$navigation.find('a')
.bind('mouseenter mouseleave', function(event) {
if (this.id.indexOf('nav') === 0) {
var id = '#' + this.id.replace(/^nav/,'');
$(id).trigger(event.type);
}
... is now faster than this:
for (var i=0; i < 250; i++) {
$('ul').append('some thing');
}
cf. http://www.slideshare.net/jeresig/recent-changes-to-jquerys-internals
(slide 35)
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Se
);
(you don't need position: 'auto' since that's the default.)
I grabbed your markup and created a demo page for you to look at:
http://plugins.learningjquery.com/cluetip/demo-more/hidden-divs.html
Hope that helps,
--Karl
Karl Swedberg
www.englishrules.com
That's really odd. I don't recall having run across that problem before.
I just tested it out and had no problem:
http://plugins.learningjquery.com/cluetip/demo-more/temp.html
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 18, 2009, at 8:37
Someone correct me if I'm wrong, but I think jQuery UI Dialog allows
for multiple dialogs open at a time. You might be able to get these to
work the way you want.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 17, 2009, at 11:49 AM, rvdb
etter';
$("input[name=" + foo + "]")
Hope that helps explain.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 17, 2009, at 12:22 PM, Charlie Griefer wrote:
Hi Karl:
Hate to hijack the thread, but hopefully it's somewhat relevant to
Since you're talking about modifying the core jQuery file itself, you
might want to pose the question on the jquery-dev Google Group instead.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 17, 2009, at 9:49 AM, Nico wrote:
I just try a l
Try this:
$(document).ready(function() {
alert( $("input[name=bar]").val() );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
click(function() {
if (!$(this).is(':animated')) {
$
(this).fadeOut('fast').fadeIn('fast').fadeOut('fast').fadeIn('fast');
}
});
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 16, 2009, a
On Sep 16, 2009, at 3:37 PM, moiramethot45250 wrote:
For jquery-en group members. HD tube adult movies. Sorted by rating of
millions users...
Sorry that one slipped through. User is now banned.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
m is
submitted, user agents are not required to treat it as a successful
control.
There are a couple other caveats that I didn't paste here. For the
full deal, follow this link:
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2
--Karl
Karl Swedberg
www.englishr
Hi Pedro,
That sounds like a great question for the jQuery UI Google Group.
Would you mind posting it there?
http://groups.google.com/group/jquery-ui/
Thanks,
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 15, 2009, at 4:04 PM, Pedro wrote:
Hi
Would you mind posting this question to the jquery-ui google group if
you haven't done so already? That group is dedicated to questions such
as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks,
--Karl
Karl Swe
I'm not sure what's going on there, but you may have better luck at
the Shadowbox forum: http://www.shadowbox-js.com/forum.html
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 13, 2009, at 8:17 PM, Duncan wrote:
Hi All,
We have an issue i
Not sure why you're having this problem, but take a look at the very
simple test case here: http://test.learningjquery.com/alt-rows.html
It seems to work fine. Maybe something else is going on in your code
or markup? Hard to tell from that snippet.
--Karl
Karl Swe
Would you mind posting this question to the jquery-ui google group if
you haven't done so already? That group is dedicated to questions such
as yours that are specifically related to jQuery UI.
http://groups.google.com/group/jquery-ui/
Thanks!
--Karl
Karl Swe
elect method to your datepicker options: http://jqueryui.com/demos/datepicker/#event-onSelect
That way, the validation thing will be triggered when the user
clicks or tabs out of the field after that point.
Hope that helps.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjque
from a container element via jQuery?
not really. you might be able to get away with using click, but no
guarantees.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
I was having ajax problems with a certain combination of Firefox 3.5.x
and Firebug. Can't remember which versions exactly, but I do recall
that unchecking the "Show XMLHttpRequests" option in the Console tab
made the problem go away.
--Karl
On Sep 8, 2009, at 2:41 PM, Mike McNally wrote:
ct/text.html#h-9.3.1
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 7, 2009, at 11:35 AM, TSAI wrote:
I have the following source code:
**
A not-so-pretty way would be to set body { overflow-y: scroll; } in
your stylesheet.
I suppose another would be to set a min-height on the body. For IE6,
you could just set the body's height, since it treats height as min-
height.
--Karl
Karl Swedberg
www.englishrule
with animate and
scrollTop?
Yes. Set the element's position and bottom properties in CSS.
See here for details:
http://www.learningjquery.com/2009/02/slide-elements-in-different-directions
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
e scrollTop property is part of IE's DHTML object model, not a
w3c spec. Gecko and Webkit seem to implement it, so you should be
relatively safe, but your mileage may vary on obscure browsers.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 1, 2
/jquery-en/
. Then click the "Unsubscribe" button on the page that appears.
To unsubscribe via email, send an email to
jquery-en+unsubscr...@googlegroups.com
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 27, 2009, at 8:49 AM, Justin Dearing wrote:
Hello,
I was editing some javascript code yesterday that happened to use
jquery. Part of the code selected two elements via jquery. Then the
original author used nodeIndex to determine the position of each of
these nodes in their parents. I co
a couple ideas.
1. add "var" so you're not creating a global variable (unrelated to
your question, but a good practice, nonetheless):
var anc_pv = $('.pv_act').attr("pv");
2. put another alert right after the var anc_pv = $
('.pv_act').attr("pv");
var anc_pv = $('.pv_act').
9.aspx#oATTable
http://msdn.microsoft.com/en-us/library/ms536945%28VS.85%29.aspx#oATTable
An alternative approach might be to convert the select element to
something prettier:
http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/
--Karl
__
);
$("#login a").hide("slide", null, 500, loginCallback);
});
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 26, 2009, at 1:20 AM, shenry wrote:
I have an anchor tag that, when clicked, reveals a login form.
Hi Brett, this should do it.
$(':checkbox').each(function() {
this.disabled = +this.value > diff;
});
:-)
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 26, 2009, at 3:42 PM, Brett DeWoody wrote:
I have a function which is exec
This FAQ topic should answer your question:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F
If you still have problems after reading through it and trying one of
the many solutions, let us know.
--Karl
Karl Swedberg
Go for it. It's a wiki, so you just have to sign up with username/
password. There is a 24-hour waiting period before you can post
something after you've registered (to help reduce spam).
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 20,
"out of the box." You could turn arrows off and
then put your own within the #cluetip div. Shouldn't be too hard with
a little CSS
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
ll, so no guarantees. But it might at least give you a head start
if you need to hack it some more yourself. If you want to try it, you
can find it here:
http://plugins.learningjquery.com/jquery.minmax.js
Let me know how it goes.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learn
matter. It will take 2000ms trying to do it. Then it will fade
the element back in.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 11, 2009, at 7:31 PM, webhead81 wrote:
My apologies is this is a double post - It seems Google Groups just
dropped my l
y: 'toggle'}, speed, easing, callback);
};
$(document).ready(function() {
$('p.a, p.b, p.c').hide();
var hash = {'one': 'a', 'two': 'b', 'three': 'c'}
$('.one, .two, .three').hover(function() {
$('a
deafoundry.info/jquery . Contact information is at http://ideafoundry.info/contact
. Also, feel free to contact me off list if you have any questions.
Cheers,
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
haha, you got me! so, yeah, it would be a bit more work. point
taken! :-p
--Karl
On Aug 9, 2009, at 1:55 PM, Michael Geary wrote:
That would work for you and for me, but would it work for everyone?
alert( isUpperCase('JÖRN') ? 'good' : 'bad' ); // ;
you
store the result of the regex test in a variable and use that variable
as the condition. But that part is irrelevant to what I was saying to
Michael.
Am I missing something, or have we interpreted the OP's request
differently?
--Karl
Karl Swedberg
www.englishrules.com
www
or
lower case letter from a to z.
The OP wanted to disallow numbers, so this should do it:
if ( !(/\d/).test("string") ) {
return 'valid';
} else {
return 'not valid';
}
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
n't be too much work. Wouldn't this do it?
function isUpperCase( string ) {
return /^[A-Z]+$/.test(string);
}
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
e and set the global
(g) flag:
var test = searchval.replace(/ /g,'+')
But that isn't much better. What you really ought to use is
encodeURIComponent:
var test = encodeURIComponent(searchval);
see how that works.
--Karl
Karl Swedberg
www.englis
() method
does not currently support the following event types: submit, change,
focus, blur, mouseenter, and mouseleave.
--Karl
____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 5, 2009, at 4:44 AM, Jaggi wrote:
I have two snippets of code:
This one doesn&
101 - 200 of 1928 matches
Mail list logo