Janet Weber wrote:
Hi Tobbe
I was wandering if you noticed that the loading.gif graphic dosen't have a
transparent background?
Hm...yes, when you mention it :-)
So how do I make its background transparent?
I'm no good at doing graphics like that.
Cheers, Tobbe
Janet
-Original
I'm having a hard time getting functions to happen in
the order I want them to. Specifically, I need the
html of a div to be rewritten BEFORE it slides back
down. I'm seeing the html change while the div is
sliding up, which isn't what I'm looking for. Is there
any way to force functions to finish
David -
I think the catch was the very last item that was mentioned on the
page: Grouping all inline JS snippets into a single file. That's
what makes the plugin all worth it.
--John
On 3/2/07, David Duymelinck [EMAIL PROTECTED] wrote:
François Zaninotto schreef:
I'm not sure I get you...
Hi all,
have a look:
http://www.riddle.pl/emcalc/
tool for fontsize in em to view in px
--
Viele Grüße, Olaf
---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---
___
jQuery mailing
Torbjorn Tornkvist wrote:
Janet Weber wrote:
Hi Tobbe
I was wandering if you noticed that the loading.gif graphic dosen't have a
transparent background?
Hm...yes, when you mention it :-)
So how do I make its background transparent?
I'm no good at doing graphics like that.
I'm stupid
Yes, that is exactly that. All calls to UJS helpers feed a buffer and the
code doesn't appear directly in the page. But the page includes a JavaScript
file, in which the buffered code is written. Therefore, all code included in
a UJS call is separated from the content, even if, for the developer,
The effect methods in jQuery take an optional callback parameter. The
callback function is called when the animation is complete.
So you can do:
$divTarget = $(divTarget);
$divTarget.slideUp(slow, function() {
$divTarget.children(div.middle).html(stuff);
$divTarget.slideDown(slow);
});
François Zaninotto schreef:
Yes, that is exactly that. All calls to UJS helpers feed a buffer and the
code doesn't appear directly in the page. But the page includes a JavaScript
file, in which the buffered code is written. Therefore, all code included in
a UJS call is separated from the
Kim Johnson schrieb:
I'm having a hard time getting functions to happen in
the order I want them to. Specifically, I need the
html of a div to be rewritten BEFORE it slides back
down. I'm seeing the html change while the div is
sliding up, which isn't what I'm looking for. Is there
any way
Brice Burgess schrieb:
John Resig wrote:
Unfortunately, not in any way that is universally practical.
The div:first query is obviously improvable, but when you get into
queries like [EMAIL PROTECTED] it becomes a lot less clear.
I'll think about improving TAG:first/last - as that seems like
Thanks for valuable info!
But these aren't really attributes, at least in the HTML sense. They're
what I call custom properties, and a central plank of object-oriented
javascript t'boot. I use them all the time, but had no idea they were called
expandos (horrid name), or - more importantly -
Apologies if this has been answered elsewhere, but I couldn't find an answer
by searching.
I suppose this is a newbie question. Is it possible to assign the same
function to multiple elements with different id's with one call?
For example, with the code below, could I assign the onchange
Dan,
You can separate your selectors with a comma. Also you don't need to specify
a context (eg element type) when selecting an id. Eg #time is faster that
select#time.
So try: $(#time, #anotherId).change(function() {});
Cheers,
Chris
___
jQuery
on 2007-3-2 16:19,Olaf Bosch said the following:
Hi all,
have a look:
http://www.riddle.pl/emcalc/
tool for fontsize in em to view in px
Good
A little question:
table.font-size=0.8em
input.font-size=0.7em
then in IE6 tableinput value=test/table
test的size=0.8*0.7=0.56?
style
weide schrieb:
you go so:
style
table{font-size:0.8em;}
table input{font-size:1em;}
input{font-size:0.7em;}
/style
input value=Out table size is 0.8em/input
table
trtdinput value=In table size is 0.8em?/input/td/tr
/table
How to solve this question?
HTH.
ACHTUNG, i not written this tool
Hi all,
I'm using the validation plugin to - well - validate a form, and I fire
a validation event when the element in question is changed to ensure it
contains a valid value. When it does, I change it's class to indicate this.
If someone uses the Google Toolbar's autofill function to fill this
I tested it long time ago and it didnt work, cool then.
I hate IE, and rather Firefox than Opera, I'm building a MMORPG and I'll put
a filter to FF users ;)
On 2/25/07, Mike Alsup [EMAIL PROTECTED] wrote:
$(function() {
// OUTPUT login
var login_options = { target: '#output-login' };
On 02/03/07, harningt [EMAIL PROTECTED] wrote:
Tsz Ming WONG wrote:
maybe
http://astyle.sourceforge.net/ ?
you might need to tweak the settings for javascript.
This seems the ideal tool to me, however it completely screws up when
dealing w/ function creation..
Ex:
/* Desired
Hi everyone,
I have got some trouble getting this snippet of code working in newer
versions of jQuery:
$(document).ready(function(){
$(p).each(function(){
$(this).load(ajax.php, function(context){
$(a,context).click(function(){
33. Accordion Menu setting (itmanager)..
Answer:
Hi Manager dude,
Hi ITguy... my 1st chance to shine and help out :)
Hey check this layout:
http://www.generalmedicine.com/index2.htm
SebDuggan.com supplied me the toggle behavior.
Thought I would email you direct, (I
A friend of mine was asking me if I knew of a tree plugin that loaded in
it's branches/leaves with AJAX. I saw Jorn's plugin (which looks awesome),
but is there a jQuery plugin that does with AJAX?
Andy Matthews
Senior Coldfusion Developer
Office:
Hello All,
I¹m looking to get started with jQuery (finally been lurking for a
while!).
I need to be able to page through a small recordset but because of its small
size, I don¹t need to go back to the server for the data just to
display/hide records for the 3-4 pages of data to display.
Take a look at the plugin below and see if that helps.
http://rikrikrik.com/jquery/pager/
On 3/2/07, Peter Bell [EMAIL PROTECTED] wrote:
Hello All,
I'm looking to get started with jQuery (finally – been lurking for a
while!).
I need to be able to page through a small recordset but because
You might want to avoid using IDs and use a class instead.
Like select class=foo or use an attribute like select bindtome=true
Then $(select.foo). or $(select[bindtome=true]) will bind to multiple.
Additionally, you dont have to bind the actual code there, you could call a
seperate function.
Works perfect thanks a lot I replace the ready function with this one:
jQuery(document).ready(function($){
// Do jQuery stuff using $
$(dd).hide();
$('dt a').click(function(){
Actually, you may want to avoid using custom attributes (expandos), problems
with this were discussed yesterday:
-
Err no, actually *expandos* refers to non-standard attributes that
get added to DOM
Thanks to both of you - all very useful stuff!
Glen Lipka wrote:
You might want to avoid using IDs and use a class instead.
Like select class=foo or use an attribute like select
bindtome=true
Then $(select.foo). or $(select[bindtome=true]) will bind to multiple.
Additionally, you dont
hello!
i'm trying to have jquery fade between 2 colors, but can't get it to work, here
is what i'm trying:
$('#contactForm').animate({left: 400, width: 300, height: 600,
backgroundColor: #617B8C},slow,linear,showContactInfo);
the docs specifies it must be camel cased, which i did .
Hi Alexandre,
The core jQuery .animate() method works only for properties that take
numeric values (although you can use the shortcut strings show,
hide, and toggle as well).
For animation of other CSS properties, or even classes, check out the
Interface plugin suite (and ifx.js in
I think this is due to the fact that no context is passed in to the
.load() callback, in that manner. I think doing something like this
would work:
$(document).ready(function(){
$(p).each(function(){
$(this).load(ajax.php, function(){
Hi all,
I was wondering if somebody would be interested in a hasClass(...)
function for jQuery. I would definitely find it useful, and am
willing to contribute it.
-- Sébastien
___
jQuery mailing list
discuss@jquery.com
Hi Tobbe
I don't know, I tried the following setting inthe thickbox.css file but it
didn't work:
#ImageBoxLoader
{
background-color: transparent;
}
I don't know if the problem is with jQuery or Interface. The loading.gif
does have a transparent background so it should display as such.
You can use:
$(node).is('.className')
Sébastien Pierre wrote:
Hi all,
I was wondering if somebody would be interested in a hasClass(...)
function for jQuery. I would definitely find it useful, and am
willing to contribute it.
-- Sébastien
give this a try:
$(node).is(.class)
--John
On 3/2/07, Sébastien Pierre [EMAIL PROTECTED] wrote:
Hi all,
I was wondering if somebody would be interested in a hasClass(...)
function for jQuery. I would definitely find it useful, and am
willing to contribute it.
-- Sébastien
Sam Collett schrieb:
It's in the works:
http://www.w3.org/TR/selectors-api/
But that will take another few years I think. Until then we're lucky to
have jQuery.
-- Klaus
Knowing how long the W3C takes on recommendations and the lack of
willingness of a certain browser developer to
Hi there,
Is there an auto-complete example using jquery somewhere. For
example, a user types in a few words into a text field and then I get
some ajax content.
I know already how to get the content using jquery's ajax functions.
My question really is how to code the part where the text
I wonder how hard it is to implement? I mean, the parser is already
there for CSS. John, tell us some Mozilla internals ;-)
I know that getElementsByClassName is already in Firefox 3, we'll have
to see if something like CSS selectors does, though.
The problem is that CSS selectors they don't,
I just got to version 1.3 thanks to the feedback generated by this thread.
Daniel Wachsstock sent me his shorter version, which I could easily
integrate.
I fixed some bugs (he cut too much), but it's ok now.
I updated the Metaobjects manual with your words, John :-)
I must admit that I didn't
There's one or more autocomplete plugins listed on the plugins page of
jQuery.com:
http://docs.jquery.com/Plugins
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ricardo Parada
Sent: Friday, March 02, 2007 1:08 PM
To: discuss@jquery.com
Subject: [jQuery]
I'm trying to build a form that needs to show or hide a portion depending on
the user's previous input. I'm trying to use slideUp/slideDown to make the
transition but it's not working - are there any gotchas in trying to
interact with tbody vs div? Is it not possible to use these effects with
Yes, I'm think this function very usefull, but jquery only has an internal
function $.className.has().
Best wishes,
Toby
2007-3-3
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sébastien Pierre
Sent: 2007年3月3日 2:06
To: jQuery Discussion.
Subject:
It should also be noted that the Metaobjects plugin is, fundamentally,
faster than the Metadata plugin as it can quickly search through a DOM
structure for a specific pattern, rather than trying to load the
information on the fly.
I'm unclear about the performance difference between the two
Hi,
I'm having trouble getting xpath selectors to work well, particularly
on XML responses from ajax requests, using FF. Hoping somebody can
help. Here are the steps I'm taking:
1. Perform an ajax request using Prototype's Ajax.request, with an
onComplete callback to my function.
Sorry when I reading John Resig's reply...
-Original Message-
From: Microtoby [mailto:[EMAIL PROTECTED]
Sent: 2007年3月3日 3:44
To: 'jQuery Discussion.'
Subject: RE: [jQuery] $(node).hasClass(...) function
Yes, I'm think this function very usefull, but jquery only has an internal
function
there are problems animating table rows that haven't been solved yet, from
what I understand. Table rows need to be display: table-row and the
animations need to be display: block, hence there's an inherent mismatch.
You can toggle tbody's though - this is an example I worked out:
I've been trying to use Interface to animate various elements, specifically
using the slide functions. What I would like to do is have a div slide out
of the center of the top screen, but the styling I have in place to center
the div isn't active during the animation, only after the animation is
The speed difference between the script tag technique and the
object/param technique is negligible (or, will be, once I fix the
script tag technique in the Metadata plugin to be more pro-active).
The primary difference between those two techniques and the
classname and data attribute techniques
Just tried this in IE7 (WinXPSP2) and the overlay is solid black. Some of
the CSS positioning is also a little out of kilter, but everything works!
Looking forward to this one Klaus :)
Luke
Klaus Hartl wrote:
Sean O schrieb:
Klaus,
Nice job, everything looks great in Firefox 2 IE 7
I'm new to jQuery. I'm trying to bind a function to a group of radio buttons.
For example,
$([EMAIL PROTECTED]).bind(click,
function() {
alert ('radio button clicked');
}
);
should run the function anytime a radio button named 'rb' is clicked
but isn't working. Am
Try:
$(input:[EMAIL PROTECTED]).click(function() {
alert('radio button clicked');
});
I ran into the same problem - you have to include the radio selector or it
won't work.
Also you don't need to use bind, you can directly bind the click function
using the syntax above.
-- Josh
-
Brad,
Looks like you need to use the .each function to iterate through each radio
button.
Here's some demo code:
http://www.bennadel.com/blog/534-The-Beauty-Of-The-jQuery-Each-Method.htm
Docs:
http://jquery.bassistance.de/api-browser/#eachFunction
SEAN O
http://www.sean-o.com/
Code for your example (just tested):
$([EMAIL PROTECTED]).each(
// For each button, run this code. The i is the loop
iteration index on
the current element
function( i ){
// Bind the onclick event to alert the iteration index
Josh and Sean,
Thanks for the help. Both solutions appear to work.
Part of my problem was that I was initially performing the bind in
$(document).ready(...). At first neither of your suggestions worked.
Then I realized that the radio buttons I want to bind to are in a
table that appear in the
Hi,
I have a DIV whose ID I know. Within that DIV is a table with a table cell
which either has a class beginning with the word title and followed by an
integer. I would like to reference the text within that table cell. What is
the easiest way to get a reference to this cell?
Thanks, -
You can reference any attribute using the following notation:
[EMAIL PROTECTED] Starts with
[EMAIL PROTECTED] Ends with
[EMAIL PROTECTED] equals
[EMAIL PROTECTED] contains
So for your problem...
$([EMAIL PROTECTED])
Hope this helps,
- jake
On 3/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
If I return your examples with the AJAX content the bind works. Is
there a better way to do that?
AFAIK that's the only way to do it, if your radio buttons only appear after
an AJAX call. But, I am a noob myself, so don't take my word for it!
-- Josh
---Original Message---
From: Jake McGraw [EMAIL PROTECTED]
Subject: Re: [jQuery] how to find an item when you only know part of the
class name
Sent: Mar 02 '07 22:46
You can reference any attribute using the following notation:
[EMAIL PROTECTED] Starts with
[EMAIL
Looks great many thanks.
Best Wishes,
Peter
On 3/2/07 11:00 AM, Benjamin Sterling [EMAIL PROTECTED]
wrote:
Take a look at the plugin below and see if that helps.
http://rikrikrik.com/jquery/pager/
On 3/2/07, Peter Bell [EMAIL PROTECTED] wrote:
Hello All,
I'm looking to get started
---Original Message---
From: Jake McGraw [EMAIL PROTECTED]
Subject: Re: [jQuery] how to find an item when you only know part of the
class name
Sent: Mar 02 '07 23:19
Not sure if the source is like this too, but you haven't closed this
element (insert a /a):
a
Not sure if the source is like this too, but you haven't closed this element
(insert a /a):
a href='#' class=toggleStrikeRemove/a/td
Maybe, that'll help?
- jake
On 3/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
---Original Message---
From: Jake McGraw [EMAIL PROTECTED]
I want to get all the Heading element up to 5 (ex h2,h3,h4,h5
) inside a div like #main_content
something like this, but inside the #main_content
var toBeTOCced = getElementsByTagNames('h2,h3,h4,h5');
How i can do that with jquery?
thanks
Sebastián
var main_content = $(#main_content);
var toBeTOCced = $(h2,h3,h4,h5, main_content); // there it is
-blair
sebastianw wurtz wrote:
I want to get all the Heading element up to 5 (ex |h2,h3,h4,h5| )
inside a div like #main_content
something like this, but inside the #main_content
|var
Josh,
After further testing this doesn't appear to work with IE6 (or Safari).
Your technique for binding the radio buttons works in the main page,
but it appears that any javascript returned via the ajax call is
ignored by IE6 (and also by Safari).
BTW, my AJAX stuff is really AJAH (returning
If I recall correctly, to get it in order you need to take all elements
and then filter manually or do it hierarchically.
One way:
$('*',main_content).each(function() {
if (this.tagName.toLowerCase() == 'h1')
// ...
else if (this.tagName.toLowerCase() == 'h2')
// ...
//
Hi, Carlos...
I'm working on replicating your accordion menu on
the left side of www.generalmedicine.com/index2.htm
and was wondering what your css looks like for
removing the link border from around your graphics.
Could I have a look at that? Is it this referenced file: sideNavs.css ?
Hi Brad,
This was hotly debated on another list I'm on - whether it's possible to
execute javascript that's been inserted by an AJAX (or AJAH) call. Since
you're doing it after the $(document).ready has been fired, it doesn't know
to bind the click method. Like I said I'm a noob too so don't
Or does using .click() twice on the same element overwrite the first binding?
--
View this message in context:
http://www.nabble.com/Can-multiple-functions-be-attached-to-the-same-event--tf3336878.html#a9280393
Sent from the JQuery mailing list archive at Nabble.com.
You can do this with the taconite plugin, which allows you to pass HTML back
from the server and insert it into another element on the page. After
you've done all your updates, if you include an eval block at the end you
can put your script there rebind everything.
Wow! Great idea for add and remove elements! A question for everyone: do you
know any example about how to use this idea for add or remove elements for
input in forms?
Looks like:
Enter contacts: (an input field text for contact's name) - Add
If user clicks in Add link another inpout field
('h2,h3,h4,h5');|
How i can do that with jquery?
thanks
Sebastián
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
__ NOD32 2090 (20070302) Information __
This message was checked by NOD32 antivirus
Thanks for the tip. That looks promising.
Brad
On 3/2/07, Daemach [EMAIL PROTECTED] wrote:
You can do this with the taconite plugin, which allows you to pass HTML back
from the server and insert it into another element on the page. After
you've done all your updates, if you include an eval
Hi, all.
I've been working on imitating Carlos Sanz' menu
at http://www.generalmedicine.com/index2.htm.
I've been successful except for one thing:
When one of the images in my version of the menu at
http://www.whitestonemedia.com/accordion_menu/accordion_menu.html
is clicked so that it closes,
Upgrade your jQuery to 1.1.2. The problem was resolved.
On 3/2/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Hi, all…
I've been working on imitating Carlos Sanz' menu
at
*http://www.generalmedicine.com/index2.htm*http://www.generalmedicine.com/index2.htm
.
I've been successful except for
This is more philosophical than anything, but I was just looking over the
metadata, metaobjects and validation plugin and I keep coming back to a
question of what is the least of all the evils.
-- If I add metadata to a class attribute, I risk messing with CSS -
classes are for styles.
-- If I
Hi, Matt.
Before I started this little project, I downloaded the latest
version from the jquery.com website.
I went back just a moment ago, and did the same thing.
I'm assuming that the download on the homepage is the
latest, 1.1.2?
Rick
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
To make sure that I had 1.1.2, I went to a previous message
on the list that had a link to 1.1.2.
http://jquery.com/src/jquery-1.1.2.js
.and downloaded jquery again.
I noticed in the Carlos source that he's using 1.1.1.
I tried his version and that caused the graphics to jump
on the slide
76 matches
Mail list logo