I have a very basic question. If I use addClass, will it overwrite a
css property.
Say for example I use
$(.div1).click(funtion(){
$(this).addClass(div_active)
});
The div1 had css property background-color set to white and in the
class div_active background property is black.
Will the
Ariel Jakobovits schrieb:
What I meant to ask before I submit hastily was whether all the feature
requests we, I included, are sending to the plugin developers are bloating the
plugins?
(sorry for 2 emails)
Yes, they do. I'm experiencing exactly the same with Tabs and especially
with
Karl Swedberg schrieb:
Hey, if you're impressed by that, you should see my Tabs plugin!
Cool! I'm using it all of the time ;-)
-- Klaus
well, my suggestion is a plugin framework to accomodate plugins for plugins.
i want to build one. but i want to research the issue with you all.
I have been building a website based on events and listeners subscribing to
them. I am thinking that a similar framework for plugins, where all
joomlafreak wrote:
I have a very basic question. If I use addClass, will it overwrite a
css property.
Say for example I use
$(.div1).click(funtion(){
$(this).addClass(div_active)
});
The div1 had css property background-color set to white and in the
class div_active background property is
Ariel Jakobovits wrote:
well, my suggestion is a plugin framework to accomodate plugins for plugins.
i want to build one. but i want to research the issue with you all.
I have been building a website based on events and listeners subscribing to
them. I am thinking that a similar framework
can you explain what JSAN does?
- Original Message
From: Dave Cardwell [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Friday, April 27, 2007 12:14:29 AM
Subject: [jQuery] Re: plugin sizes, part 2
Ariel Jakobovits wrote:
well, my suggestion is a plugin
You were on dot Sir,
Thanks
I changed the order and t works as I dream.
Thanks again
Have a nice day.
People like you inspire everyone to help others.
On Apr 27, 3:11 am, Dave Cardwell [EMAIL PROTECTED] wrote:
joomlafreak wrote:
I have a very basic question. If I use addClass, will it
My suggestion would be to set the title attribute of those options to equal
the text. Then, when you hover over the whole text will be shown.
Not entirely sure how you'd select the ones which are longer though -
probably some checking of widths would achieve that.
On 4/26/07, Ⓙⓐⓚⓔ [EMAIL
Hi Sean,
You're on the right track. To only show one at a time, simply store
the last one open in a variable and close it before opening the new
one, here's an example:
Thank you for your help, your suggest have inspired me and I've writed
this code, I don't know if have sense or not, but
Ariel Jakobovits wrote:
can you explain what JSAN does?
- Original Message
From: Dave Cardwell [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Friday, April 27, 2007 12:14:29 AM
Subject: [jQuery] Re: plugin sizes, part 2
Ariel Jakobovits wrote:
well, my
Massimiliano Marini wrote:
Hi Sean,
You're on the right track. To only show one at a time, simply store
the last one open in a variable and close it before opening the new
one, here's an example:
Thank you for your help, your suggest have inspired me and I've writed
this code, I don't know
hello,
i'm trying to test a condition whether a link has a given class, and have it
return true or false.
if ($(this).attr(class)=='refresh') {
alert(changing page);
return true;
}
else
{
return false;
}
but it does not work, any idea how to do that best ?
thank you !!
alex
Alexandre Plennevaux wrote:
hello,
i'm trying to test a condition whether a link has a given class, and
have it return true or false.
if ($(this).attr(class)=='refresh') {
alert(changing page);
return true;
}
else
{
return false;
}
Try, from memory:
if ($(this).is(.CLASSNAME))
This issue is now fixed.
http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
Mike
On 4/26/07, Mike Alsup [EMAIL PROTECTED] wrote:
Ugh, that's nasty. Yes, this is a layout issue with IE due to its
whacky hasLayout notion. The plugin should force that property to
hi Michael,
i just did :
if ($(this).filter(.selected)) {
return true;
}
else
{
and it worked !
On Apr 27, 10:44 am, Michael Price [EMAIL PROTECTED] wrote:
Alexandre Plennevaux wrote:
hello,
i'm trying to test
pixeline wrote:
hi Michael,
i just did :
if ($(this).filter(.selected)) {
return true;
}
else
{
and it worked !
That's not quite right. .filter() returns a jQuery object, which will
always evaluate to true. To
Hello
I'd like to get started with jquery and I was wondering whether
somebody could give me a little hand or point me into the right
direction.
How would I properly convert something like the following to jquery:
var Multi = new Class ({
options: {
Andy,
Thanks for your comments - the same thing has been happening to me - I
will need to examine the order I call the fade() and $.ajax functions.
On Apr 26, 2:51 pm, Andy Matthews [EMAIL PROTECTED] wrote:
Okay...
I played around with the site for a few minutes and it works really well.
hello!
i would like to know if there is a way to have jquery tell you what is the DOM
path to an element. For example:
$(this).click(function(){
alert($(this).getPath();
});
which would output
html body div.col ul.menu li a.selected
??
thank you!!
alex
Alexandre
My cropping image function works just after loading the image but not
during window resizing. The problem is if there's a width=100%
somewhere in the page but no height=100%, enlarging vertical only
adds white space instead of cropping larger. Any size calculation
based on actual values fails so
On Apr 27, 6:22 am, Ariel Jakobovits [EMAIL PROTECTED] wrote:
Is anyone else concerned by the fact that the datepicker plugin, which I love
and appreciate, is 32K? unpacked, of course, but that's half the size of
jQuery itself.
What figures are people shooting for for the size of their
Thank you my preciousss, it is very useful to debug !!
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave
Cardwell
Sent: vendredi 27 avril 2007 13:13
To: jQuery (English)
Subject: [jQuery] Re: path and selectors
Alexandre Plennevaux
I'm confused. Which example are you referring to?
I would like to see for each text value selected in a multiple, the
associated pk in the db table associated in a delimited list, e.g.,
Item1,Item2, Item3
pk1,pk2,pk3
so that when we process the form input, we can reference by position.
Does
Oh ok. Thanks for checking in! Definitely looking forward to the next
release.
On Apr 26, 9:07 pm, Ariel Jakobovits [EMAIL PROTECTED] wrote:
just wondering, why not call it jquery 2.0? what's with all this 1.0, 1.1,
1.1.3?
- Original Message
From: John Resig [EMAIL PROTECTED]
To:
Fabyo Guimaraes schrieb:
I did not like, and of bug
Pardon? What do you mean and what exactly are you refering to?
-- Klaus
PragueExpat wrote:
I am wondering when external css styles are applied to the DOM elements.
My external style sheet has a display:none for element A. With JQ on
document.ready, I call the show() method on the element. (this is so people
w/out javascript enabled will not see the element)
Is
Fabyo Guimaraes schrieb:
It tries to select a text, dumb it of pagina this not is good
it uses the effect only on of the border and not of the document all
I'm sorry, I really don't know what you're talking of...
-- Klaus
its example not this functionary, is not practises
**
2007/4/27, Klaus Hartl [EMAIL PROTECTED]:
Fabyo Guimaraes schrieb:
It tries to select a text, dumb it of pagina this not is good
it uses the effect only on of the border and not of the document all
I'm sorry, I really don't know
Will do. I should have the link shortly.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, April 27, 2007 10:00 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Cascading Stylesheets presentation tonight
I
Jörn Zaefferer schrieb:
I wanted to use Interface's bounce effect for a fixed positioned
element - an element that gets moved into view from the top and than
bounces a little at the end (like it was falling down).
Should I commit my fix?
I'd find that quite useful.
I've committed the fix
http://stilbuero.de/jquery/tabs/mouseover.html
if to select the text tab 2 change active tab1 etc...
2007/4/27, Fabyo Guimaraes [EMAIL PROTECTED]:
its example not this functionary, is not practises
**
2007/4/27, Klaus Hartl [EMAIL PROTECTED]:
Fabyo Guimaraes schrieb:
It tries to
I was only introduced to jQuery at a Lasso Summit the beginning of
March and I have already been able to do so much with it. I have been
able to solve some long standing problems I had with user interface
elements requiring greater javascript and ajax manipulation that my
skills had previously
Took me awhile to fined the “lable” error!
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Alexandre Plennevaux
Sent: Friday, April 27, 2007 12:03 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] interface / tooltip / Demo error
Just would like to inform the
Fabyo Guimaraes schrieb:
http://stilbuero.de/jquery/tabs/mouseover.html
if to select the text tab 2 change active tab1 etc...
Ah, now I see. As I wrote a few mails before, this is *intended*:
In that demo, after mouseout and a delay of one second the 1st tab is
activated again (because
Hello. (excuse me for my bad english ^^)
I started using jQuery a few days ago and it looks pretty powerful :) I then
discovered the form plugin and it's doing exactly what i was looking for.
But i have an issue with a feature i would like to create. I would like to
submit a pretty heavy form
On Apr 27, 3:57 pm, Fabyo Guimaraes [EMAIL PROTECTED] wrote:
Use jquery = )
$(document).ready(function() {
$(#news).newsTicker();}
);
function showdiv() {
$(#news).css(display, block);
}
function hidediv() {
$(#news).css(display, none);
}
function replacecontents() {
Shelane,
So far I only have one example complete although there are more to
come.
http://education.llnl.gov/jquery/ajax.html
You might not like this answer, but why not just use an iframe? :)
You'll be able to load a complete example that runs w/in it's own context. I
personally feel sometimes
I could. However, that would not solve another page problem I have outside
of this example where that really isn't a a possibility due to a complexly
structured web app.
On 4/27/07 8:59 AM, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
Shelane,
So far I only have one example complete
The easiest way to handle this is to define a function that does what
you need and then call that function when appropriate. For example:
function bindForm() {
var opts = {
// form options here
target: '#myTarget',
success: bindForm // rebind form on success
};
On Thursday, April 26, 2007 2:19 PM Starbow said:
I was just watching the video of John Resig at Yahoo, and in one slide
he talked about behaviors...
Are you talking about this?
Advancing Javascript with Libraries
http://video.yahoo.com/video/play?vid=410472
Thanks,
Chris.
I've updated my news ticker plugin with some bug fixes and added a few
more examples of how to use it:
http://www.texotela.co.uk/code/jquery/newsticker/
Hello,
I want to add a default javascript function to all my internal links
that DON'T already have a behaviour.
If i do :
jQuery([EMAIL PROTECTED]/]).bind(click,function(){
//jQuery(#main).empty().append(Loading...).load (/test);
jQuery(#main).load
Could you see this possibly being built directly into the browser or
becoming part of the JavaScript/DOM standard?
-js
On 4/26/07, John Resig [EMAIL PROTECTED] wrote:
.behavior() does not exist - but it could (without too much effort)
the current solution with jQuery is shown in the
Hi all,
I'm having problem with the upload form and I don't understan where
I'm in error, I'm trying to reproduce the example of Mike Alsup.
I explain what I've done
file index.html
html
head
titleTitle/title
script type=text/javascript src=js/jquery-latest.pack.js/script
script
My quickie one-liner:
$.fn.getPath = function(){
return $.map (this.add(this.parents()), function(el) {
return el.tagName + (el.className ? '.'+el.className : '');
}).reverse().join(' ');
}
On Apr 27, 6:59 am, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
hello!
i would like to know
Massimiliano,
That code wasn't meant to serve as an example. It had a bunch of
extra stuff in there so that I could display the responses, etc.
You neglected to indicate what it not working for you. Are you
getting an error? There is nothing special that you need to do to
take advantage of
Hi Folks
My DOM is something like this
select id=edit-taxonomy-1 class=form-select name=taxonomy[1]
option value=0none/option
option selected=selected value=1820services/option
option value=1839Products/option
I am trying find the option that have selected=selected of course is very
random in
I've done my first AJAX call but since the documentation isn't clear
about how parameter passing is done, it's not working on the first
try. My code
=
var files = new Array();
$.getJSON (getfiles.php,
{basedir: gallery},
function (data){
Mario Moura wrote:
select id=edit-taxonomy-1 class=form-select name=taxonomy[1]
option value=0none/option
option selected=selected value=1820services/option
option value=1839Products/option
I am trying find the option that have selected=selected of course is
very random in many inputs.
This
This is a tricky one, you use the contextual selector:
$(option:selected,#edit-taxonomy-1)
This is like saying find the selected option in the context of element id
edit-taxonomy-1.
Give that a shot.
-- Josh
- Original Message -
From: Mario Moura
To:
This is not a terribly elegant way to do it, but it does work.
$('whatever_elements').each(function(i)
{
var hasclick = false;
if (this.$events this.$events['click'])
{
for (j in this.$events['click'])
Okay, I found a way to do what I want to do, but ran into something
else. Using the jQuery Form plugin, I've managed to serialize the
form inputs and, via ajax, post the values to a page which returns a
JSON result:
$('[EMAIL PROTECTED]/run.png]').click (
function ( e ) {
Glad to see this is still alive Sam, excellent plugin.
~Sean
The problem is that formSerialize() doesn't properly encode checkbox
values. Given a set of checkbox options with the same name, normal
form encoding passes the values as a comma-delimited list.
N, that's not true at all. Normal, and proper, serialization
would take the following
I've also just tried it out but where is upload.php?
As with any form processing, there must be a server component that
handles the data. upload.php is just the action target for
Massimiliano's form.
Mike
On 27 Apr., 20:38, Mike Alsup [EMAIL PROTECTED] wrote:
I've also just tried it out but where is upload.php?
As with any form processing, there must be a server component that
handles the data. upload.php is just the action target for
Massimiliano's form.
Oh, I though it would be nice to
Correct. And although I haven't tried this on PHP servers, on a .NET server,
the following form data passed:
cb=1cb=2cb=3
Would be interpred on the server side:
Request.Form[cb] == 1,2,3;
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Oh, I though it would be nice to have some small sample code. All I'm
interested is how the POST parameter input name=file type=file
is accessed. Just as an ordinary $_POST['file'] variable in PHP?
You'll use $_FILES.
http://us2.php.net/features.file-upload
Mike
You can look at the spec here: http://www.w3.org/TR/html401/interact/forms.html
Hmmm. I hadn't read the spec. I'm used to dealing with these things
on the server side and never really had to think about how they were
handled. PHP doesn't seem to be handling it the same way ColdFusion
and,
http://www.php.net/manual/en/faq.html.php#faq.html.arrays
This should point you in the right direction
On 4/27/07, Rob Wilkerson [EMAIL PROTECTED] wrote:
You can look at the spec here:
http://www.w3.org/TR/html401/interact/forms.html
Hmmm. I hadn't read the spec. I'm used to dealing with
Correct. And although I haven't tried this on PHP servers, on a .NET server,
the following form data passed:
cb=1cb=2cb=3
Would be interpred on the server side:
Request.Form[cb] == 1,2,3;
In PHP you'd need to name the inputs cb[] to achieve the same.
Apologies for my ignorance. I've been away from PHP for a long time
and guess I forgot that I had to name my checkbox fields with array
notation (e.g. input type=checkbox ... name=mycheckbox[] /).
Once I did that and used implode() on the server side I got what I
needed.
Thanks.
On 4/27/07,
thats cool. But what if an element has no id or is not the only sibliing with
that class? you need to add its position within the parent in that case, which
is actually more useful.
but, this is only only worth it if jQuery supports td:1 vs td:first which I'm
not sure it does.
- Original
here's my suggestion:
instead of embedding the $(document).ready code in your pages, create
Javascript classes for each page that receive as an argument a container DIV
that after they make the AJAX call for the page they are responsible for, they
put their content into.
Then, when that's
I'm going to admit that this is a bit over my head. I'm not really
sure what's going on in each of these sections. I'm not sure where
'#mydiv' is supposed to go. Does the url have to hard coded?
Currently the menu is built and reads the value of the href to
determine the page to load. Where
Hi folks,
I'm wondering where folks are getting their loading images for ajax purposes.
I've tried ajaxload.info, but after several experiments, those only seem to look
good when specifying the background color. When using a transparent background
color, they seem to be... well, less than
Ariel Jakobovits wrote:
instead of embedding the $(document).ready code in your pages, create
Javascript classes for each page that receive as an argument a container DIV
that after they make the AJAX call for the page they are responsible for, they
put their content into.
Then, when that's
Wow absolutely fantastic!
I played around with the previous version on a travel website I was
developing but found it just wasn't quite right. But this new version
looks awesome.
It works perfectly in IE7 - any news on backwards compatability with
IE6 for example?
Also - how difficult would it
Oooh..that's a much harder problem than the one originally presented.
jQuery supports the :nth-child() selector; you want a string that
uniquely selects 'this' . The following ought to work:
(function ($){
function toString(el){
console.log (el);
var ret = el.tagName.toLowerCase();
So we have a situation where we need to clone all of an elements childNodes
(including whitespace text nodes). The code below is an attempt to add a
childNodes() function that behaves similar to children() except for it
includes the childNodes.
Comments/houghts/suggestions/feedback?
Hi.
The original link I sent:
http://codinginparadise.org/projects/dhtml_history/README.html
Had callbacks as well. In other words, your application would log
history waypoints where each waypoint represented a state change in
the application. These waypoints would consist of a name for the
If you wanted to do it right, you'd want to do something like this:
jQuery.fn.childNodes = function() {
return this.pushStack( jQuery.map( this,
jQuery.makeArray(a.childNodes) ) );
};
HUGE WARNING! (this is why we don't include this method in jQuery
right now) jQuery does not expect itself
I have not attempted to make any of Ariel's changes. Scott, I would
say that yes that would be the goal. The only thing I haven't done
for that is to include the jQuery src file on the subsequent pages.
That would be my intent to check if jQuery isn't there, to load it.
Meanwhile, I have these
I've used this code with xml returned from ajax ... it may work for Jon.
John, how would you make this code better?
$.fn.xml = function () {return $.xml(this[0])}
$.xml = function(xml) { // dump the xml back to html text
if (!xml) return
var res =
var tag = xml.nodeName
var
I'm relatively new to javascript and REALLY appreciate the jQuery
library. Its made learning how to do thing much easier. That said,
I'm having a fit with an application I'm developing. I'm using Code
Igniter with jQuery and under Firefox 2 (OS X and Win) things work
great. IE however does
Hi Dave,
I think you should be attaching the event to the form submit. Also,
jQuery makes unobtrusive JavaScript really easy, so instead of
attaching a handler in the HTML, you can put it in a separate file.
Try something like this:
$(document).ready(function() {
absolutely.
if Javascript is enabled anyway, your pages can simple create that lone object
and provide the body as the container.
- Original Message
From: Scott Sauyet [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Sent: Friday, April 27, 2007 1:04:14 PM
Subject: [jQuery] Re: jQuery
I'm new to jQuery, and enjoying it very much so far. One issue I'm
having is limited to firefox on mac, but that's my regular browser, so
it's rather painful. I've googled and seen the issue come up before,
but no remedies or suggestions offered.
The problem is that whenever I use any kind of
Hello all, I'm getting used to the excellent jQuery library and I need
some help of more experienced programmers. I have this simple table:
table class=table
tr
tdcontent/td
tdcontent/td
tdcontent/td
/tr
tr
This should do the trick, although there's probably a way to do it
without the .each(), too.
$(document).ready(function() {
$('td').each(function() {
var $this = $(this);
if ($this.html() == 'nbsp;') {
$this.parent().addClass('some-class');
}
});
});
--Karl
Hello-
Thanks for the feedback regarding the new jQuery plugins page. I am
the person who developed the new plugins site, and we are currently
putting the finishing touches on it before announcing it to the entire
community.
One of the issues we are facing is migrating all of the old plugins
I just recently jumped on the JQuery bandwagon. Love it.
I am trying to integrate some JQuery script into my blog, where I use
a version of lightbox that runs off of the Mootools library. However,
when I try to run both at the same time, they start causing conflicts.
I'm assuming its from each
Feed wrote:
Hello all, I'm getting used to the excellent jQuery library and I need
some help of more experienced programmers. I have this simple table:
table class=table
tr
tdcontent/td
tdcontent/td
tdcontent/td
/tr
tr
Building on Karl's example and your new all-td's-must-be-empty
requirement; mark all the TR's with a target class then sweep through
the TD's and get rid of the target class if you find a td that is not
empty. Play around a bit and see what else you can come up with.
Ian
Well my question was rather looking for a dirty hack anyway...
I will use your way and then move to something cleaner, either using a
class or a rel attibute to define what can't be altered.
Thanks,
Xavier
On Apr 27, 8:16 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
This is not a terribly
Thanks Ian, I'll play around with this piece of code! jQuery is really
helping me in my project, it's awesome.
On Apr 28, 1:20 am, Ian Struble [EMAIL PROTECTED] wrote:
Building on Karl's example and your new all-td's-must-be-empty
requirement; mark all the TR's with a target class then sweep
The new page is looking nice. A couple of comments - when you click
one of the categories from the Home page, a horizontal scroll bar
appears and the focus outline is extended out just past the original
size of the fieldset element. Also, if you click into one of the
categories, the Browse
Um, you mean this page:
http://www.jquery.com/plugins/project/Plugins/name
Or if you want just names, you can either theme it or install the Views module
and create your own custom view (list) of project nodes.
(Yes, I'm a Drupal guy. g)
On Friday 27 April 2007, Mike Hostetler wrote:
Hello-
Hello,
I want to have an application that works both with and without ajax.
Eg: without ajax, I get /contentWithMenu and with ajax I .load /
contentonly into #content
jQuery([EMAIL PROTECTED]/]).bind(click,function(){
jQuery(#main).load (/xajax/+this.pathname,{},function()
Thanks Ian, it seem to be working perfectly. I just have one more
question: isn't there a big performance impact using this piece of
code? It looks like the page it taking a while do load, but I guess
you have to choose between the time the page takes to load and the
time you take to do
91 matches
Mail list logo