In theory if you add a tabindex=0 to the elements you want keyboard
focus for you should be able to tab to them and they will get key
events.
Karl Rudd
On 3/23/07, Dan Eastwell [EMAIL PROTECTED] wrote:
That's a nice hack Karl, and after reading the W3C spec, I'm inclined
to agree that browser
XMLHttpRequest instead. You can then
select which parts of the page need to be updated instead of updating
the whole page.
Karl Rudd
On 3/26/07, Agrawal, Ritesh [EMAIL PROTECTED] wrote:
Hi,
I am not sure whether this is the right place for putting this question.
However, since it is concerned
Have read of this page:
http://docs.jquery.com/Selectors#CSS_Selectors
Especially E:nth-child(n)
Karl Rudd
On 3/24/07, MARIO MOURA [EMAIL PROTECTED] wrote:
Hi
I am newbie
How can I get a second children element?
In firebug I have
---DIV
--FIELD
--FIELD
--FIELD
-browser/#StringElementjQuery
Also make sure you're using the latest version of jQuery.
Karl Rudd
On 3/24/07, Shelane Enos [EMAIL PROTECTED] wrote:
With plain javascript I can do this from a child window:
opener.document.getElementById(resumemessage).innerHTML = Resume uploaded
+ filename;
What
was added for firing click on enter.
You'll just have to add in the hack yourself, like this:
$(p).keyup( function(e) {
if ( e.keyCode == 13 ) {
alert(Hello);
return false;
}
return true;
});
Karl Rudd
On 3/22/07, Dan Eastwell [EMAIL PROTECTED] wrote:
Using the file below, I'm trying
Right. In a CSS file you escape the . with a \.
So to reference:
div id=item.x/div
You would write:
#item\.x { background-color: red; }
Karl Rudd
On 3/22/07, Olaf Bosch [EMAIL PROTECTED] wrote:
Marc Jansen schrieb:
#item.x { background-color: red; }
this select
Try:
http://www.schillmania.com/projects/soundmanager2/
It's not jQuery based but seems to do that job. It uses a connection
to a small Flash 8 file.
Karl Rudd
On 3/23/07, Joan Piedra [EMAIL PROTECTED] wrote:
I think you can do this using flash and some external interface to connect
js
\: in a JavaScript string would
just result in #item:x.
Karl Rudd
On 3/22/07, Marc Jansen [EMAIL PROTECTED] wrote:
Hi Adriano,
This is very, very interesting! At first sight (and with
http://www.w3.org/TR/html401/types.html#type-id in mind) this seems to
be a bug. List: Correct me, if I'm wrong
Something like this will work:
var newDiv = $('div/').appendTo( this.parentNode ).append( 'img/' );
Karl
On 3/20/07, Allan Mullan [EMAIL PROTECTED] wrote:
Hey :-)
Just trying to work out how in jQuery you would do something like
(inside a function):
var newDiv =
CF is not something I'm familiar with but the FORM for your page
doesn't have an action attribute. It should be something like:
action=trial_field_validation.cfm
I know that some browsers are fine with a blank action but no
action... Not sure how it's supposed to react to that.
Karl Rudd
On 3
There's no need to use eval in this case. The selector is a string,
you can just + it all together.
Karl Rudd
On 3/15/07, Graham Churchley [EMAIL PROTECTED] wrote:
I want to hide the all table rows that have a specific value for the custom
'grp' attibute.
This code works:
$('table.grouped
of the raw text nodes inside the
.selectable the target will be the .selectable.
Karl Rudd
On 3/13/07, John Cotton [EMAIL PROTECTED] wrote:
Thanks Karl.
However, that doesn't give me what I'm after...:)
A little more explanation. This is my pseudo-HTML
li class=selectable
content
-scripts-tf1913101.html#a5237431
Karl Rudd
On 3/14/07, bruce [EMAIL PROTECTED] wrote:
Hi Renato..
The app I'm considering can't use a proxy server on the 'current' domain.
The issue I'm trying to solve is similar to the 'passport' app from
microsoft awhile ago.
I'm considering how to allow
to convert it to
one.
So we ! it first and that converts it to a boolean, though if it was
a true value it's now false, and vice-versa. So we ! it again
and it comes out the correct way.
Karl Rudd
On 3/14/07, Daemach [EMAIL PROTECTED] wrote:
What does the !! do?
Dan G. Switzer, II wrote:
Please
Looks like it could be a bug.
In the mean time use:
var t = $(#myTable)[0];
t.innerHTML = colgroup/colgroup + t.innerHTML;
Hmmm not sure this will work in IE.
Karl Rudd
On 3/14/07, Daemach [EMAIL PROTECTED] wrote:
I'm not having any luck with the following 2 commands - is this a bug
You don't actually need the * at the start of the selector, it's
implicitly there.
In the click function, to work out what has been clicked, you can do:
var tag = this.nodeName.toLowerCase();
Tag should be the tag name.
Karl Rudd
On 3/13/07, John Cotton [EMAIL PROTECTED] wrote:
Sorry
let's try to keep things calm and civil.
Your debug console idea is definately something that is useful and it
would work quite well as a plugin (which is also what I believe Brice
is saying).
Karl Rudd
On 3/13/07, Daemach [EMAIL PROTECTED] wrote:
Thanks for the beatdown Brice! I'm glad you're
Cool. There's an error though, Firebug reports:
$.bH has no properties
http://www.antaeusflowers.com.au/scripts/antaeus.js
Line 7
Karl Rudd
On 3/10/07, Joel Birch [EMAIL PROTECTED] wrote:
On 11/01/2007, at 7:56 AM, Rey Bango wrote:
Please keep sending links as we want to have a nice list
Looking very cool.
One thing I noticed though, when I use the Next/Prev links to move
to a different picture and then click on that picture to see the full
sized version, I get the right full sized image. I get the image that
was first loaded into the litebox.
Karl Rudd
On 3/10/07, Daniel
I'd like to use it as well, unfortunately the licensing ( ie
non-commercial http://creativecommons.org/licenses/by-nc/2.5/ ) is
prohibitive. Why not MIT and/or GPL?
Karl Rudd
On 3/9/07, Rey Bango [EMAIL PROTECTED] wrote:
Daniel,
This is badass! I love it man.
I was thinking after I saw
the background color
It's not quite like using with, but it's pretty close.
Karl rudd
On 3/9/07, Rob Wilkerson [EMAIL PROTECTED] wrote:
I knew about each(), but since I had only one element it seemed...I
don't know...almost like overkill. I was hoping there would be
something like:
$('myele').do
Eexcellent.
Karl Rudd
On 3/9/07, Daniel MacDonald [EMAIL PROTECTED] wrote:
Oops, sorry! I had copied the header from an old project. I am glad that some
people actually pay attention to these things. jQuery Litebox is now
GPL/MIT. Use and abuse.
D
This is because currently the animated functions change the element's
display CSS attribute to block while animating. I believe that
currently this can't be worked around (at least with jQuery core).
Someone correct me if I'm wrong.
Karl Rudd
On 3/8/07, agent2026 [EMAIL PROTECTED] wrote:
Hi
Actually, I had a bit more of a think about it and you can do this:
$(table td)
.filter(:nth-child(4),:nth-child(5),:nth-child(8))
.css('background-color', 'red');
Slightly more compact, especially if you have a few more columns.
Karl Rudd
On 3/8/07, rolfsf [EMAIL PROTECTED] wrote
- Open Firebug.
- Make sure the Console tab is selected.
- Down the bottom there is a small text area the has at the start of it.
- Enter JavaScript you want to run in there and hit Enter.
Karl Rudd
On 3/8/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Thanks, Jorn...
I'll check on the element
To test to see whether there is multiple elements with an id ==
Something, use this:
$('[EMAIL PROTECTED]')
When you use $('#Something') the getElementById() function is used and
that will only return one element (or none).
Karl Rudd
On 3/8/07, Rick Faircloth [EMAIL PROTECTED] wrote
the scripts twice. :P The code approach is
starting to look more palatable.
Karl Rudd
On 3/6/07, Karl Rudd [EMAIL PROTECTED] wrote:
Err scratch that, last reponse of mine. That will hide it from every
non-IE browser as well as IE 6.
Karl Rudd
On 3/6/07, Karl Rudd [EMAIL PROTECTED] wrote
About the only reason is that the bind() function allows you to pass
a block of data into the handler function. The shortcut functions only
allow you to pass in a function.
For more info take a look at:
http://jquery.bassistance.de/api-browser/#bindStringObjectFunction
Karl Rudd
On 3/6/07
The click, blur, keyup, etc functions are just shortcuts. So instead of:
$(...).bind( 'click', function...
you can write:
$(...).click( function...
Karl Rudd
On 3/6/07, Daemach [EMAIL PROTECTED] wrote:
--
View this message in context:
http://www.nabble.com/What-is-the-difference
the rest of your code didn't crash if
jQuery was not present, which you could do like the jQuery library
does with the above condition.
Or you could wrap all the scripts using the conditional comments as
suggest before.
Karl Rudd
On 3/6/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Oliver Boermans schrieb
Try:
!--[if gte IE 6]
script type=text/javascript src=jquery.js/script
![endif]--
Karl Rudd
On 3/6/07, Oliver Boermans [EMAIL PROTECTED] wrote:
As is IE 7.
If I remove -- it my JavaScript is also hidden from Firefox and friends :/
On 06/03/07, Oliver Boermans [EMAIL PROTECTED] wrote:
IE
Err scratch that, last reponse of mine. That will hide it from every
non-IE browser as well as IE 6.
Karl Rudd
On 3/6/07, Karl Rudd [EMAIL PROTECTED] wrote:
Try:
!--[if gte IE 6]
script type=text/javascript src=jquery.js/script
![endif]--
Karl Rudd
On 3/6/07, Oliver Boermans [EMAIL
I believe so. As I said an expando attribute is basically any
non-standard attribute that gets added to an element (doesn't matter
how).
As Klaus notes, the memory leakage is only a problem in IE when the
attribute references other DOM elements (directly, or indirectly via
closures).
Karl Rudd
You almost have it. The each function actually returns the raw DOM
element so to use jQuery you'll need to enclose this.
Just replace the core with:
var $this = $(this);
$this.html( $this.html().replace(/index.cfm?a=wikitag=/gi, ) );
Karl Rudd
On 2/28/07, Yansky [EMAIL PROTECTED] wrote:
I
wasn't able
to check the wiki as the site went down for maintainence while I was
reading.
Karl Rudd
On 2/28/07, Yansky [EMAIL PROTECTED] wrote:
Hi, thanks for the reply.
I tried your code inside the function but it didn't work unfortunately.
This is the actual site with the links I'm trying
Unfortunately you can't just assign a function that runs on the
server to JavaScript (running on the client). The best you could do
would be to POST the content back via AJAX.
Karl Rudd
On 3/1/07, Mark [EMAIL PROTECTED] wrote:
oke.. i fixed the issue now.
incase you want to know the solution i
() {
$(table.simple).each(function() {
$('th',this).each(function(i) {
if ( this.is('.asc') )
alert(i);
});
});
});
Karl Rudd
On 3/1/07, Jonathan Freeman [EMAIL PROTECTED] wrote:
I'm trying to get my head around
That's because jQuery doesn't support the ~= selector.
http://docs.jquery.com/DOM/Traversing/Selectors#CSS_Selectors
Karl Rudd
On 3/1/07, Petruzzi, Tony [EMAIL PROTECTED] wrote:
I figured it out. There was nothing wrong with my code. Seems that I might
have discovered a bug. Seems that using
they can cause memory leak problems
under Internet Explorer if they refer to other DOM elements.
More info here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/expando.asp
Karl Rudd
On 3/1/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
Fil, did you ever get a definition of DOM 0
This is in Firefox I assume? If so then it's one of the long standing
bugs in Firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=262354
Karl Rudd
On 2/27/07, Javier Infante [EMAIL PROTECTED] wrote:
Hi,
I have a little problem using interface's tooltip when i have a swf in
the same html
').click( function() {
var infoSpan = $(this).prev('span.info');
// do whatever with the span
// show it
infoSpan.show();
// test if it's a particular class
if ( infoSpan.is('.email-info') ) {
// do something
}
});
});
Karl Rudd
On 2/27/07, Timothy Bowler
In JavaScript class is a reserved word. Perhaps that's the problem?
If not then it'd be best to post a URL to an example page so we can
have a look at it.
Karl Rudd
On 2/27/07, Richard Thomas [EMAIL PROTECTED] wrote:
I am trying to pass a value to addClass, If I hardcode 'green' it works
if I
Sidenote: If you do need to use class as an attribute / property
name you could access it via:
json['class']
Karl Rudd
On 2/27/07, Richard Thomas [EMAIL PROTECTED] wrote:
I am trying to pass a value to addClass, If I hardcode 'green' it works
if I do var = green
addClass(var)
It works
Make sure the element you're trying to move (the div in this case)
has either position: relative or position: absolute.
Karl Rudd
On 2/27/07, David [EMAIL PROTECTED] wrote:
Hi,
I'm trying to understand how the animate function works, but I'm not
finding the documentation very helpful
You'll probably need to provide a bit more detail before someone can
help. Do you have a publicly accessible example of the page?
It sounds like a CSS positioning issue to me.
Karl Rudd
On 2/26/07, Jack Killpatrick [EMAIL PROTECTED] wrote:
Hi,
I'm having a problem with blockUI in IE7
Under IE you can use createStyleSheet() and cssText:
var s = document.createStyleSheet().cssText = '.something { color: red }';
More info can be found here:
http://www.quirksmode.org/dom/changess.html
Karl
On 2/23/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
well, you can append to the
The ready function does that. It works on the page (for most
browsers) before the page is displayed.
Karl Rudd
On 2/21/07, Gorkfu [EMAIL PROTECTED] wrote:
I understand the ready function and have looked over the documentation. Maybe
I wasn't clear enough in my last post and I'm sorry
();
}
$(:checkbox)
.click(visibleCheck)
.each(visibleCheck);
});
Karl Rudd
On 2/21/07, Gorkfu [EMAIL PROTECTED] wrote:
Ok I finnally got this to work, lol. I came accross filter and it helps hide
checked checkboxes on page load. =)
Such as (top one for clicks
I stand corrected. :) I did a quick search and couldn't find a
normal string in jQuery core so I assumed it would just default to
hide/show. I now see that normal defaults to using the fade-shrink /
fade-expand animation. Much smoother than the raw hide / show.
Karl Rudd
On 2/22/07, Karl
' +
'table cellpadding=0 cellspacing=0 border=0 width=100%' +
'tr' +
etc...
Karl Rudd
On 2/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
If, after the document has fully loaded, I want to append a DIV to the end of
another DIV with id = todoList, what is the easiest way to do
$(this).parents('div#inner')
Note that parents() returns _all_ the ancestors of the element (in
order of parent, grandparent, great-granparent, etc) so you need to
add that filter of 'div#inner' to it so that it will only return the
one.
Karl Rudd
On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED
the test page it will crash.
I'm speculating here but perhaps Safari is having problems switching
JavaScript contexts with the setTimeout()s.
Karl Rudd
On 2/21/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Lee Hinde schrieb:
It crashes for me after completing test 18-24 ( I can get to 18, but
never
$(document).ready( function() {
/* Stuff to do when the page has loaded */
});
You might like to take a quick look over the documentation for jQuery.
A good place to start is:
http://docs.jquery.com/How_jQuery_Works
It'll make your jQuery life a lot easier :).
Karl Rudd
On 2/21/07
:
input type=image src=paper.jpg onmouseover=srcCh(this)
Karl Rudd
On 2/16/07, Brice Burgess [EMAIL PROTECTED] wrote:
Regarding; input type=image src=a.gif /
Using Firebug's (FF 2) net monitoring, I noticed that every time I
switched the src of an input image it would request the new src image
Check out the animate method:
http://docs.jquery.com/Effects
You use it something like this:
$('#theDiv').animate( { height: 200 }, 500 );
Karl Rudd
On 2/14/07, howard chen [EMAIL PROTECTED] wrote:
seems this is a basic effect which didn't cover in the jquery effect methods?
thx
Or Visual jQuery:
http://www.visualjquery.com/
Karl Rudd
On 2/13/07, Daemach [EMAIL PROTECTED] wrote:
Hmm - I haven't seen a selector used like that before - where do I find more
information on how that works?
Thanks again - I figured there was an elegant solution.
Karl Rudd wrote
You almost had it :). There's a handy function called wrap that you can use.
$('div.box').children('span.heading').wrap('tabletrtd/td/tr/table');
More documentation here:
http://docs.jquery.com/DOM/Manipulation#wrap.28_elem_.29
Karl Rudd
On 2/13/07, Agrawal, Ritesh [EMAIL PROTECTED
was a bit messed up, it didn't have a
head or body, the script tags where inside the body, and the jquery.js
file wasn't actually present (404 error). I assume it's just some copy
paste errors.
Karl Rudd
On 2/14/07, Nathan Young -X (natyoung - Artizen at Cisco)
[EMAIL PROTECTED] wrote:
I posted my
Sam just released an update to his select box manipulation plugin that
should help you out. It has an ajaxAddOption method.
http://www.texotela.co.uk/code/jquery/select/
Karl Rudd
On 2/14/07, Dominik Hahn [EMAIL PROTECTED] wrote:
Hello there!
I've already searched for a plugin but I'm
different from the onload event in that it
doesn't have to wait for images, etc to load before running.
See the following page for more details:
http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready
Karl Rudd
On 2/14/07, Nathan Young -X (natyoung - Artizen at Cisco)
[EMAIL
It's a bug in the (internal) pushStack() function. Look at the
following for a fix:
http://www.nabble.com/Bug-in-$()-in-jQuery-v1.1.1--t3144910.html#nabble.i8718421
Karl Rudd
On 2/13/07, petersom3000 [EMAIL PROTECTED] wrote:
I'm using the autocomplete mod from
http://www.pengoworks.com
You could try something like this (untested):
var photo = $('.Photo');
photo.before('tabletrtd/tdtd
class=content/tdtd/td/tr/table')
.prev().find('td.content').append( photo );
Karl Rudd
On 2/13/07, Ryan Doom [EMAIL PROTECTED] wrote:
Hey guys, does Jquery not get along with complex HTML table
If you just want an array of selected options:
$('#theSelect option:selected')
You could use the form plugin if you wanted to do something more:
http://www.malsup.com/jquery/form/
Karl Rudd
On 2/13/07, Daemach [EMAIL PROTECTED] wrote:
I know I can loop over all the options
Unfortunately web browsers don't expose that sort of information to
JavaScript, at least not in a cross-browser manner. So no, jQuery
doesn't.
Karl Rudd
On 2/13/07, Ram Peters [EMAIL PROTECTED] wrote:
Does jQuery support File Size Check before uploading? Lets say only
max 2MB upload size
Technically two lines.
var list = [];
$('#theSelect option:selected').each( function() { list.push(
this.value ) } );
Note that each option should have a value attribute for this to work.
Karl Rudd
On 2/13/07, Daemach [EMAIL PROTECTED] wrote:
I'm actually after an array of the values
$('#theSelect').bind( 'change', function() {
var list = [];
$('option:selected', this).each( function() { list.push( this.value ) } );
// do something with 'list' here
});
Karl Rudd
On 2/13/07, Daemach [EMAIL PROTECTED] wrote:
OK that makes sense. Now how do I bind that function
accessed via
VBScript. For Mozilla based browsers there's some other arcane
incantations. I'm sure both platforms allow you to get file size
through similar methods.
Karl Rudd
On 2/13/07, Aaron Heimlich [EMAIL PROTECTED] wrote:
As Karl said, it's practically impossible for JavaScript to obtain
Quite nice. Though the scrollbars don't return after you dismiss the window.
Karl Rudd
On 2/5/07, Lquid [EMAIL PROTECTED] wrote:
preI am working on my first jQuery Plugin, jAssistant.
It is an floating pane like the one found in IPB but it looks way better and
supports themes( 4 are working
Technically font-weight can be a number, like 100 or 800, but
practically speaking browsers only implement either normal or bold.
Animate takes either a number or one of hide, show, or toggle.
So your bold won't work.
In theory you could set the font-weight to a number then pass in a
number to
?
Karl Rudd
On 1/31/07, Stéphane Nahmani [EMAIL PROTECTED] wrote:
Hello folks,
I seem to have a problem with a selector, which i have turned every
way i could think of with no results, so i'm asking for your advice. I
had this html (pared down):
div id=rapide class=res
img src
Ummm perhaps you left it out of the email but where in
getActiveUsers() do you return ActiveUsers;?
Karl Rudd
On 1/30/07, Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
I have an ajax call that upon success has a variable 'result' that
contains a JSON encoded string. I eval
Looks like a bit of an unwanted feature (from idrag.js):
if (window.ActiveXObject) {
this.onselectstart = function(){return false;};
this.ondragstart = function(){return false;};
}
I'd file a bug against it.
Karl Rudd
On 1/26/07, Su [EMAIL PROTECTED] wrote:
Anyone?
I don't
My guess is that IE doesn't like you changing the type of the INPUT
element from submit to image. I'd advise doing something along
this line (untested code):
$(':submit')
.attr('disable','true')
.hide()
.before( $('input src=images/button_submit.png type=image') );
Karl Rudd
On 1/25/07
Bah. I missed a closing bracket.
$(':submit')
.attr('disable','true')
.hide()
.before( $('input src=images/button_submit.png type=image') );
Karl Rudd
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Try adding an action attribute to the form. Try first with an empty
one: action=
In theory the form won't submit without an action.
Karl Rudd
On 1/25/07, Massimiliano Marini [EMAIL PROTECTED] wrote:
Hi all,
I want to save data typed into a form in to a simple file
with a script file write
Yes Steve an element can have two classes. :) The class attribute
of an element contains a list of space seperated words. Think of
them more has tags rather than actual OO programming classes.
Karl Rudd
On 1/21/07, Steve Jones [EMAIL PROTECTED] wrote:
A question about toggleClass... everything
It's a known problem. http://jquery.com/dev/bugs/bug/804/
Karl Rudd
On 1/19/07, Leftie Friele [EMAIL PROTECTED] wrote:
In 1.0.* releases the following query worked just fine, but in 1.1 it's
broken:
var jq = $(.treeNodeItem.treeNodeTitle,jqNode);
The HTML for the jqNode is like this:
li
Try $(#login).submit(); or $(form#login).submit();
$(form #login) tries to find an element with an ID of login INSIDE a
form, rather than the form itself.
Karl Rudd
On 1/17/07, Mungbeans [EMAIL PROTECTED] wrote:
I'm posting this in the hope that the mere act will help me work out what
(
$('span', $('div') ),
$('span', $('div')[0] )
);
In jQuery 1.0.x they both (correctly) return [span], under 1.1 the
first returns [span, span] while the second returns [span].
I believe this indicates that $() is not detecting the jQuery object
as a context.
Karl Rudd
Hmmm that's all well and good but can someone please post a patch so
that $/jQuery will work with a jQuery object as the context? That's
how it's worked in the past and that's how the API reference says it
works...
Karl Rudd
On 1/15/07, limodou [EMAIL PROTECTED] wrote:
Yeah, I also encountered
If you want the parent as a jQuery object:
$('#something').parents('div').eq(0)
If you want it as a raw DOM element:
$('#something').parents('div')[0]
Note that parent() only returns the parent object, not the parent,
grandparent, great-grandparent, etc objects.
Karl Rudd
On 1/16/07
that the context is a DOM Element
if ( context !context.nodeType )
context = null;
Karl Rudd
On 1/16/07, John Resig [EMAIL PROTECTED] wrote:
Yeah, this is a bug. We should have a fix posted (aka 1.1.1) by this
next weekend.
--John
On 1/15/07, Karl Rudd
Chris,
Either Yehuda or my solution will work for you.
Take a look at
http://docs.jquery.com/DOM/Traversing/Selectors#Custom_Selectors_2
for more info about the :first selector.
To use your example:
$('#foo').parents('tr:first')
or
$('#foo').parents('tr').eq(0)
Karl Rudd
On 1/16/07
Or try
$(function() {
$('#second_field_to_enter,#first_field_to_enter')[0].focus();
});
Karl Rudd
On 1/16/07, Gerry Danen [EMAIL PROTECTED] wrote:
In this piece of code (common to a number of pages) I want to set
focus to a second input field if there is one.
$(function
focus() function.
Hope that makes things clear.
Karl Rudd
On 1/16/07, Gerry Danen [EMAIL PROTECTED] wrote:
That works too, Karl.
Can you explain how it works?
An interesting thing I just noticed in IE7 is that on
http://test.danen.org/secure/register.htm the first, second, and
fourth fields
jQuery objects are collections of objects and quack* (act) like
Array objects. So you could do this:
$(document).ready(function() {
if ( $(#save-search div.error-message).length == 0 )
$(#save-search).hide();
});
Karl Rudd
* A slightly obscure reference to Duck Typing -
http://en.wikipedia.org
This is a bit of a long shot but have you tried quoting the hash keys?
As in instead of:
no_html:1
Try:
no_html:1
In theory you should do always so that so as not to get into problems
with keys that are also defined elsewhere.
Karl Rudd
On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote
It looks likes screenshot gallery on the Mass Effect site is using
Cody's Thickbox.
http://masseffect.bioware.com/gallery/
While it seems to be a case of jQuery tagging along for the ride,
it's still nice to see it in use on more and more sites.
Karl Rudd
That should work. You'll need to show us code that is a little more specific.
Karl Rudd
On 12/12/06, dmoshal [EMAIL PROTECTED] wrote:
Hi,
Firstly - wow, what an amazing piece of work - Kudos!
I've been more productive with jQuery in a day than I've been with YUI, and
GWT in weeks
Try this:
$('#iNodeID').change( function() {
if ( this.selectedIndex -1 )
$('#sLinkText').val( this.options[ this.selectedIndex
].text );
});
Karl Rudd
On 12/6/06, Bruce MacKay [EMAIL PROTECTED] wrote:
Hello again,
I've taken one
You need to add a mousedown handler to the span and return false.
This will cancel the propagation of the event from the span to it's
parent (the list item), thereby stopping the item from getting the
mousedown and starting the drag.
Karl Rudd
On 12/6/06, tony rasmus [EMAIL PROTECTED] wrote
;';
(window.execScript || self.eval)( s ); // IE, Mozilla
//eval.call( window, s ); // Opera, Mozilla
// window.setTimeout(s,0); // blah() fails in all
})();
alert(local);
blah();
Karl Rudd
On 11/23/06, Paul McLanahan [EMAIL PROTECTED] wrote
92 matches
Mail list logo