I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
On May 23, 6:39 am, Klaus Hartl [EMAIL PROTECTED] wrote:
Daemach wrote:
You should definitely consider using a classname
I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
On May 23, 6:39 am, Klaus Hartl [EMAIL PROTECTED] wrote:
Daemach wrote:
You should definitely consider using a classname
Thank you for reply.
Now, the validation plugin run fine. The Ajax Call run too, because
the record I intend to save, is in my DB correctly, but..
It returns this error: uncaught exception: [object Object]
This is my complete js code, included in commenti.js (I also include
jquery.js and
I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
On May 23, 6:39 am, Klaus Hartl [EMAIL PROTECTED] wrote:
Daemach wrote:
You should definitely consider using a classname
I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
On May 23, 6:39 am, Klaus Hartl [EMAIL PROTECTED] wrote:
Daemach wrote:
You should definitely consider using a classname
I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
On May 23, 6:39 am, Klaus Hartl [EMAIL PROTECTED] wrote:
Daemach wrote:
You should definitely consider using a classname
Gordon wrote:
I don't know why either, but when I did switch to class names the
result was a big speed increase. I guess attribute selecting is a lot
trickier to do than class matching.
Ah, this is what I overlooked. Class selecting can just use the
className property, whereas attribute
I'm in the same boat. Lots of people are. What can we do?
On Wednesday 25 April 2007 12:19:12 am ke han wrote:
I have been trying to unsubscribe to the email feed for this group
with no success.
I have setup a google groups account with this receiving address.
However, although google
Bradley,
It looks like the tab divs must be in the same container as the navigation
ul, plus you're not actually ever setting up the tabs.
Try replacing your function with this:
$(document).ready(function() {
$('#menu').tabs();
});
And move the contents of div #content into div
Rob Desbois wrote:
Bradley,
It looks like the tab divs must be in the same container as the
navigation ul, plus you're not actually ever setting up the tabs.
Try replacing your function with this:
$(document).ready(function() {
$('#menu').tabs();
});
And move the contents of
I need to be able to do a number of animation effects on a page, but
the various classes have to occur one after the other, not all at
once. For example:
$('.hidden).show ('slow');
$('shown').hide ('slow');
is no good.
I tried firing one as a callback to the other, which worked fairly
well
On May 23, 1:29 am, Gordon [EMAIL PROTECTED] wrote:
I am writing a script that scans a list of items that each contain
form fields and doing something based on the value of the field in
each item. I came up with the following code, which does seem to work
as intended, but execution can
Gordon schrieb:
but this had a problem, in that if nothing matches .hidden, then the
show animation never gets executed.
What try to select here?
$('shown').hide ('slow');
This? shown/shown
$('p.shown').hide ('slow'); is the right way.
--
Viele Grüße, Olaf
RobG wrote:
If myElem is the ID of the form, that will containt all the child
nodes, you will then iterate over all of them. To get just the
controls with the same name:
var controls = $('myElem').elements;
This is completely Prototype syntax. In jQuery it looks like:
var controls =
That was just a type. Should have been '.shown' rather than 'shown'.
On May 23, 10:20 am, Olaf Bosch [EMAIL PROTECTED] wrote:
Gordon schrieb:
but this had a problem, in that if nothing matches .hidden, then the
show animation never gets executed.
What try to select here?
John Resig wrote:
Any luck with the latest 1.1.3a build?
--John
I don't dare to try one day before launch!
Was more curious if it's fixed eventually because a colleague who uses
Konqueror doesn't stop complaining ;-)
-- Klaus
Point taken :-)
I was about to suggest that perhaps this requirement was a bit backwards and
could it be changed in future...but thinking about it I won't!
Bradley - the layout of your menu and content divs makes sense only for a
true menu-type layout, i.e. separating everything. For a tabbed
Stef,
On May 22, 2007, at 10:40 AM, stef wrote:
when a radio button is clicked, show its
value. i have the code below, which i dont think is the best way to go
about it. it always alerts undefined. my reasoning is: when the
document has loaded, and an input element in the div with id 'test'
Hi Jorn,
I want to be able to customize the error messages upon form submit. For
example, for a particular field my error message should be -
Please fill in an appropriate + phoneNum + number.
the phoneNum variable could be either mobile, office phone, residence
based on a drop down value.
Rob,
I work at a university (in Australia) doing what can be best described
as web front-end construction. Most of our work is for government
and/or educational groups so there are certain guidelines and
regulations that we need to follow.
A submit button is needed because most of the sites we
$('p').not('.thisClass')
From the doc:
$(p).not( $(div p.selected) )
Before
divpHello/pp class=selectedHello Again/p/div
Result:
[ pHello/p ]
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon
Sent: mercredi 23 mai 2007 12:35
Oh, sorry, I think I just had a blonde moment. :) I found the not
( el ) docs and it sounded like it wasn't what I wanted, failed to
notice the other two nots listed under it.
On May 23, 1:39 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
$('p').not('.thisClass')
From the doc:
$(p).not(
Oh, sorry, I think I just had a blonde moment. :) I found the not
( el ) docs and it sounded like it wasn't what I wanted, failed to
notice the other two nots listed under it.
On May 23, 1:39 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
$('p').not('.thisClass')
From the doc:
$(p).not(
I have this code:
div id=teaser style=display: none;/div
And this javascript code:
function teaserHide() {
jQuery('#teaser').fadeOut(1000);
}
function teaserShow() {
jQuery('#teaser').fadeIn(1000);
}
/**
* Initialize page
*/
jQuery(document).ready(function() {
//
I've been working on consolidating and refactoring my media plugins.
The result is a single plugin that handles virtually any media type.
Supported Media Players:
- Flash
- Quicktime
- Real Player
- Silverlight
- Windows Media Player
- iframe
Supported Media Formats:
Any types
Awesome Mike. This is really slick!
--Erik
On 5/23/07, Mike Alsup [EMAIL PROTECTED] wrote:
I've been working on consolidating and refactoring my media plugins.
The result is a single plugin that handles virtually any media type.
Supported Media Players:
- Flash
- Quicktime
- Real
If myElem is the ID of the form, that will containt all the child
nodes, you will then iterate over all of them. To get just the
controls with the same name:
var controls = $('myElem').elements;
This is completely Prototype syntax. In jQuery it looks like:
var controls =
Mike, this is really impressive. Bravo!
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike
Alsup
Sent: mercredi 23 mai 2007 12:58
To: jQuery Discussion
Subject: [jQuery] [ANN] jQuery Media Plugin
I've been working on consolidating and
Nice work mike!
Nice work mike!
Mike,
I've been working on consolidating and refactoring my media plugins.
The result is a single plugin that handles virtually any media type.
Supported Media Players:
- Flash
- Quicktime
- Real Player
- Silverlight
- Windows Media Player
- iframe
Supported Media Formats:
Background: My usual server-side languages are ASP (not .NET) and MS
SQL...
I've manually constructed JSON strings server-side. Worth the effort
because JavaScript picks them apart naturally, no special library
required.
In the other direction, I've relied on hacks. Usually CSV or
semicolon
Alexandre,
i have a page quite heavy in content: it's a summary page in a CMS, so i
cannot really reduce anymore the dom (like splitting or paging content), so
i would like to introduce some page transition, like a loading screen,
for instance, or an intermediary screen giving some kind of
This isn't really jQuery-related-since most of the code you're using to
reload content isn't jQuery driven.
However, the problem you're having is a common AJAX-related issue. You're
attaching a behavior to those links when the page loads, but you're not
re-applying the behavior once your
Or better even, a link to the media plugin installation page °-] like
http://www.adobe.com/getflashplayer
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: mercredi 23 mai 2007 13:59
To: jquery-en@googlegroups.com
Thank you Dan, i'll try your suggestion. Although i think that the way you
construct it will have people without javascript not see the content but
that's easily corrected :)
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
On 5/21/07, Daemach [EMAIL PROTECTED] wrote:
The tabs plugin uses the fadein/out effects - I'll bet it has
something to do with a bug I just found. It's hard to describe - I'm
just glad I could replicate it. Test case below.
http://ideamill.synaptrixgroup.com/jquery/test/113fxbug.htm
The key to this working properly is to ensure that the server is
returning its response with an XML mime type.
In PHP do this:
?php header('Content-type: text/xml'); ?
In JSP do this:
[EMAIL PROTECTED] contentType=text/xml%
In CF do this:
cfheader name=Content-Type value=text/xml
Things get quirky on a page if .show() and.hide() are running
simultaneously on different blocks. I've implemented a callback to
queue things up serially. It seems to run a little smoother now.
Is there an integrated queueing system in jQuery that will relieve me
of the burden of serializing
Hey Sean,
Thanks for the suggestion. Unfortunately it didn't work but my DNS
resolution is much improved!! :)
The odd thing that I discovered last night is that my notebook PC (same
specs as above), which connects to my network wirelessly, can pull down
the repo with no problems. It seems
Greetings all,
Does anyone know if there is a countdown plugin made all ready? If
not, how difficult would it be to create one?
What I intend to do is to have a countdown (counting in seconds) to
add to my site to show visitors how many seconds it left until the
site opens.
Now I am a beginner
Hi,
I am trying to create a new div with the Jeditable callback function
and have that new div also be editable in-line. i.e. I want to do
something like this:
$(document).ready(function(){
$(.editemail).editable(save1.php, {
cancel:
Hello!
I'm trying to use $.post, in order to send along parameters via POST.
I have figured out how to do this properly (like: {title: some item,
author: some author}, etc.). However, my list if parameters changes
based on one variable: type. So if the type = b, then let's say
we'll use the
Mike Alsup wrote:
I've been working on consolidating and refactoring my media plugins.
The result is a single plugin that handles virtually any media type.
Supported Media Players:
- Flash
- Quicktime
- Real Player
- Silverlight
- Windows Media Player
- iframe
Supported Media
All set. If anyone else is having trouble unsubscribing, just send a
note to the list and we'll remove you manually.
I'm in the same boat. Lots of people are. What can we do?
I have exact the same problem. Did you ever find out what the problem
was?
On Apr 5, 11:17 am, mike [EMAIL PROTECTED] wrote:
Many thanks guys. Great you have all come back with no delays. Have
been ripping my IE apart: cache emptied; add-ons disabled; tool bars
uninstalled and finally
I posted about this earlier today, I'd really like to be able to queue
up animations without having to make one the callback of the previous
too, because I'm doing multiple animations in succession, but there
are cases where the jQuery selector might return 0 elements for some
steps in the chain.
I've found something that I can't get around; in IE6, these selectors
won't do anything for me;
1. $(#admin-jobs #discipline_client_row).hide();
2. $(#admin-jobs #discipline_client_row).hide();
whereas this works fine (as you'd expect);
3. $(#discipline_client_row).hide();
In IE, number 1
I am trying to update a checkBox... using:
jQuery(#HSFCO_1)[0].checked= true
where
input type='checkBox' class='HSFCO' id='HSFCO_1' checked='false
However... the view is not update! Any suggestion?
It is a bug and it is fixed in the latest SVN/jquery 1.1.3.
http://dev.jquery.com/ticket/986
--
Brandon Aaron
On 5/23/07, Luc Pestille [EMAIL PROTECTED] wrote:
I've found something that I can't get around; in IE6, these selectors
won't do anything for me;
1. $(#admin-jobs
Anyone know (preferably, actively use) an XML-RPC Library written for
JavaScript. I googled it, got a couple of hits, but I'd like to know if
anyone has experience with a particular library or has a home grown
solution.
- jake
checked=false is not valid HTML. For the checked state you should
use checked=checked whereas for the unchecked state you should omit
the attribute entirely. Also, I believe the type attribute should be
entirely in lower case and you should use double quotes rather than
single.
Try changing
This one's probably blindingly obvious to anyone with any significant
programming experience in javascript, but it's an easy one to forget
too.
Consider this code:
function fast ()
{
var myDivItems = $('#myDiv').children();
for (x = 0; x 1000; x++)
{
On 5/23/07, tlob [EMAIL PROTECTED] wrote:
[code]
$(document).ready(function(){
$(#linkDetail1).click(function(){
$(#detail1).slideToggle(slow);
return false;
});
I'm pretty new to jQuery and JS in general. I managed to
build something. I learned a lot! THX jQuery guys. When you
look into my code, could it be shorter, smarter, sharper?
especially this part:
[code]
$(document).ready(function(){
tlob wrote:
Hy there.
I'm pretty new to jQuery and JS in general. I managed to build
something. I learned a lot! THX jQuery guys. When you look into my
code, could it be shorter, smarter, sharper? especially this part:
[code]
$(document).ready(function(){
Absolutely, no loop should call a determinate function with the same
argument(s) on every iteration.
In other words, if a function is called in a loop and it will return the
same value for each iteration take it OUT of the loop.
Also Gordon, remember that no more memory is used here - in the
Jorn,
I have been trying (unsuccessfully) to use the plugin to achieve my desired
user experience.
Example of how I would like it to work:
http://www.commadot.com/jquery/inlineError/
Things I can't figure out:
-how to make the required errors compile into a number. (You missed 3
fields...etc)
@Dan: That's a very good idea. Thanks for the suggestion!
@Alexandre: The plugin adds codebase and pluginspage attrs to the
object/embed elements so I think that's covered.
@Rob: I'm not sure if there is a benefit to satay or not . The
referenced article is specific to Flash but I'm
I think the param list is just an associative array. I google some pages
for ya:
http://blog.persistent.info/2004/08/javascript-associative-arrays.html
http://ajaxian.com/archives/javascript-associative-arrays-considered-harmful
So, you should just calculate the array into a single variable,
I am new to jQuery and have several questions:
1. To access a form element, I use: document.forms[frmname]
[elementname]
What is the jQuery equivalent?
Will there be any significant speed difference between the
old and jQuery way?
2. This is basically the same as #1. I am
It is one of those blindingly obvious things but also easy to forget.
I suppose the tip should be if you find £ in a loop, find a way to
cache it.
On May 23, 4:43 pm, Rob Desbois [EMAIL PROTECTED] wrote:
Absolutely, no loop should call a determinate function with the same
argument(s) on every
I see, thanks guys.
I guess I can't do it without making server side changes.
O well!
Dan
On 5/23/07, Mike Alsup [EMAIL PROTECTED] wrote:
The key to this working properly is to ensure that the server is
returning its response with an XML mime type.
In PHP do this:
?php
It is one of those blindingly obvious things but also easy to forget.
I suppose the tip should be if you find $ in a loop, find a way to
cache it.
On May 23, 4:43 pm, Rob Desbois [EMAIL PROTECTED] wrote:
Absolutely, no loop should call a determinate function with the same
argument(s) on every
Awesome. Thanks! I'm just a JS newb in general, and it's good to see
people actually help us newbies out.
~ Tom
On May 23, 11:52 am, Daniel Hollocher [EMAIL PROTECTED]
wrote:
I think the param list is just an associative array. I google some pages
for ya:
Awesome. Thanks! I'm just a JS newb in general, and it's good to see
people actually help us newbies out.
~ Tom
On May 23, 11:52 am, Daniel Hollocher [EMAIL PROTECTED]
wrote:
I think the param list is just an associative array. I google some pages
for ya:
To access a form element by name:
$('[EMAIL PROTECTED])
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cliff
Sent: Wednesday, May 23, 2007 10:52 AM
To: jQuery (English)
Subject: [jQuery] Conventional JS/DOM to jQuery conversion help
I am new
re: the second part.
Do you mean something like:
$(input).next().remove();
or
$(input).siblings(div.error).remove();
You can see different ways of achieving the same goal depending on your
structure and circumstances.
Glen
On 5/23/07, cliff [EMAIL PROTECTED] wrote:
I am new to jQuery and
Jorn?
On 5/23/07, Mandy Singh [EMAIL PROTECTED] wrote:
Okay I tried the following and that seems to work -
If I assign the validate class to suppose temp
then i can do -
if (mobile) {
temp.settings.messages['phone'] = mobile;
}
if (home) {
temp.settings.messages['phone'] = home;
}
I write this simple code. I check it by using firefox and firebug and
firebug gives me that the request is successful. But I don't see the
box ok!??? So what is the problem?
$.ajax({
type: GET,
url: feed.xml,
dataType: json,
success: function(msg){
alert(ok!);
}
});
That's great news. Thanks for the feedback Rey.
~Sean
Hi,
Anybody know a good way in jQuery to round the corners
of photo images?
thanks for any pointers,
paul w
I don't know if you've found these yet, but here are two great sources
of information - reading the examples in the api browser will really
help you get your head around the jquery methodology. I'm from a DOM
background too, and this is how I got up to speed
I don't know if you've found these yet, but here are two great sources
of information - reading the examples in the api browser will really
help you get your head around the jquery methodology. I'm from a DOM
background too, and this is how I got up to speed
Rey Bango wrote on 5/23/2007 9:21 AM:
Well, I figured it out and it was Kasperky AV.
A sign of the times when AV products cause more harm than the actual viruses:
The update of Norton's virus database on Friday has caused millions of PCs and
computers to crash, a heavy blow to people's
For that u can apply the PNG OVERLAY tech
u make a corner border with inside invisible and put this above the img =D
On 5/23/07, paul wisehart [EMAIL PROTECTED] wrote:
Hi,
Anybody know a good way in jQuery to round the corners
of photo images?
thanks for any pointers,
paul w
--
[]´s
Why not send the data back as JSON, and then parse through it server
side. There are probably some small scripts that already do this for
ASP.
~Sean
I've got some multiple dropdowns that I'm trying to conditionalize. Our
designers can select one (or both) of two sets of code. I'd like to
conditionalize my jQuery code so that if the redline dropdowns exist, I can
run that code, or if the inventory dropdowns exist, I can run THAT code.
Is
var redlineExists = ($('#redlineSelect').size())
On May 23, 10:31 am, Andy Matthews [EMAIL PROTECTED]
wrote:
I've got some multiple dropdowns that I'm trying to conditionalize. Our
designers can select one (or both) of two sets of code. I'd like to
conditionalize my jQuery code so that if the
That's it, just $('[EMAIL PROTECTED]) I don't need form or input in
front of it?
Do you mean something like:
$(input).next().remove();
or
$(input).siblings(div.error).remove();
Interesting. Either of these would be a start. But I'd still need to
loop over next to remove all siblings or
var redlineExists = ($('#redlineSelect').size() 0) if you want a
true boolean, I guess...
On May 23, 10:31 am, Andy Matthews [EMAIL PROTECTED]
wrote:
I've got some multiple dropdowns that I'm trying to conditionalize. Our
designers can select one (or both) of two sets of code. I'd like to
Thanks. I think I'm going to try a different tack. Ideally, I'd like to
check to see if an object exists AND store a reference to that object at the
same time. So I'll do this:
var redline = $('#redline');
if (!redline.size()) {
// do some stuff here
}
Thanks for the point to size()
Assume I have two form elements, both of which are identical in every way
(contents and all) except for their IDs. One named redlineSelect, and the
other named inventorySelect.
form id=redlineSelect or inventorySelect
select id=make
some options here
/select
select id=model
Thanx a lot Chris, I've already found that topic but can't do it
myself.
So I did it but it blinks more and more according to the clicks
made.
My js code is this one
$(document).ready(function(){
var loadContent = function(){
$('.research .toolbox li a, .research
I have an input and I want to detect if the user drags a value into it or if
they right-click and then click paste.
Is there an event that fires in these cases?
Thanks,
Glen
Looks like I answered my own question. Doesn't appear that this is possible.
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, May 23, 2007 1:01 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Question about the context attribute
I would say yes.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
Although .size() has very little overhead, .length is a bit better in terms
of performance.
I just ran 100,000 iterations of .size() vs length, and .length is about 3
times faster.
So:
var redline = $('#redline');
if (!redline.length)
// do some stuff here.
JK
-Original
As others have mentioned, plugins are the main form of reusable code.
This is not very different from creating a carefully constructed
Object in a OO language. In fact I find most OO languages to not have
very reusable code, the only languages that support re-usability in my
opinion, are
Hi folks
I'm looking for a handy way to pan across an image; my theory is that if
you set the image as the background to a div and then, on mouse move,
change the background position, this would work pretty sweetly.
Is this possible with JQuery, and if so, does anyone have the
code/syntax
Congrats to the FeedBurner team:
http://www.techcrunch.com/2007/05/23/100-million-payday-for-feedburner-this-deal-is-confirmed/
Rey
--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com
Glen Lipka wrote on 5/23/2007 11:11 AM:
I have an input and I want to detect if the user drags a value into it
or if
they right-click and then click paste.
Is there an event that fires in these cases?
Tom Deater mentioned adding some code to his plug-in to detect it:
I have to made a Calendar for my sys and wanna make some like the
Google Calendar
but my real doubt is How the best way to make the cells (days/events)
div in a tables? divs with display: table-cell ?? I wanna know the
best way to do this with a rounded box in background =D
ps: the rounded box
When I use the success function, the plugin start to validate hidden fields.
:(
$(form).validate({
focusInvalid: true,
event: keyup,
success: function(label) {
label.text().addClass(campoValido);
},
errorClass: campoErro,
errorContainer:
I could be wrong on this, but you have json as the dataType and your are
passing xml, so, although firebug says it sees the file correctly, jquery is
not successfully getting json, it's getting xml.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
On Wednesday, May 23, 2007 11:39 AM Jean Nascimento said:
I have to made a Calendar for my sys and wanna make some like the
Google Calendar
but my real doubt is How the best way to make the cells (days/events)
div in a tables? divs with display: table-cell ?? I wanna know the
best way to
I think you can use a selector in a context attribute, but there isn't
much point in this situation. If all of your ID's are unique (and
they should be), $('#make') is enough. You don't need a context.
When you use the #, it's the same as doing document.getElementByID();
On May 23, 11:19 am,
How can i send ISO charset with .post function
this is making me crazy
On 5/23/07, Tom McGuire [EMAIL PROTECTED] wrote:
Awesome. Thanks! I'm just a JS newb in general, and it's good to see
people actually help us newbies out.
~ Tom
On May 23, 11:52 am, Daniel Hollocher [EMAIL PROTECTED]
Jörn, that works great. Thanks.
Klaus Hartl wrote:
[EMAIL PROTECTED] wrote:
Hi,
I noticed when I create my JQuery tabs, the onShow callback function
is automatically invoked.
$('#container').tabs(tab_id, {
remote: true,
fxFade: true,
fxSpeed:
1 - 100 of 157 matches
Mail list logo