[jQuery] Re: Slow selector

2007-05-23 Thread Gordon
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

[jQuery] Re: Slow selector

2007-05-23 Thread Gordon
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

[jQuery] Re: jquery.validation and ajax

2007-05-23 Thread daweb
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

[jQuery] Re: Slow selector

2007-05-23 Thread Gordon
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

[jQuery] Re: Slow selector

2007-05-23 Thread Gordon
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

[jQuery] Re: Slow selector

2007-05-23 Thread Gordon
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

[jQuery] Re: Slow selector

2007-05-23 Thread Klaus Hartl
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

[jQuery] Re: cannot unsubscribe to jquery-en google group

2007-05-23 Thread Dave Cohen
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

[jQuery] Re: jQuery and Tabs plug-in

2007-05-23 Thread Rob Desbois
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

[jQuery] Re: jQuery and Tabs plug-in

2007-05-23 Thread Klaus Hartl
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

[jQuery] Queueing animation effects

2007-05-23 Thread Gordon
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

[jQuery] Re: Slow selector

2007-05-23 Thread RobG
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

[jQuery] Re: Queueing animation effects

2007-05-23 Thread Olaf Bosch
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

[jQuery] Re: Slow selector

2007-05-23 Thread Klaus Hartl
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 =

[jQuery] Re: Queueing animation effects

2007-05-23 Thread Gordon
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?

[jQuery] Re: show fails in Konqueror with jQuery 1.1.2

2007-05-23 Thread Klaus Hartl
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

[jQuery] Re: jQuery and Tabs plug-in

2007-05-23 Thread Rob Desbois
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

[jQuery] Re: alerting the value of radio button onfocus

2007-05-23 Thread Roger Roelofs
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'

[jQuery] Form Validate Plugin Question

2007-05-23 Thread Mandy Singh
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.

[jQuery] Re: Text Button

2007-05-23 Thread Karl Rudd
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

[jQuery] Re: opposite of filter()

2007-05-23 Thread Alexandre Plennevaux
$('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

[jQuery] Re: opposite of filter()

2007-05-23 Thread Gordon
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(

[jQuery] Re: opposite of filter()

2007-05-23 Thread Gordon
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(

[jQuery] animate broken (e.g. fadeIn(), fadeOut())

2007-05-23 Thread Gilles (Webunity)
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() { //

[jQuery] [ANN] jQuery Media Plugin

2007-05-23 Thread Mike Alsup
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

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Erik Beeson
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

[jQuery] Re: Slow selector

2007-05-23 Thread Dan G. Switzer, II
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 =

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Alexandre Plennevaux
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

[jQuery] Re: jQuery Media Plugin

2007-05-23 Thread Gilles (Webunity)
Nice work mike!

[jQuery] Re: jQuery Media Plugin

2007-05-23 Thread Gilles (Webunity)
Nice work mike!

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Dan G. Switzer, II
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:

[jQuery] Hacker wants to format Ajax Data elegantly

2007-05-23 Thread SamCKayak
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

[jQuery] Re: improving page apparition

2007-05-23 Thread Dan G. Switzer, II
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

[jQuery] Re: jQuery help

2007-05-23 Thread Dan G. Switzer, II
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

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Alexandre Plennevaux
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

[jQuery] Re: improving page apparition

2007-05-23 Thread Alexandre Plennevaux
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

[jQuery] Re: Help Test jQuery 1.1.3

2007-05-23 Thread Brandon Aaron
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

[jQuery] Re: problem with ajax

2007-05-23 Thread Mike Alsup
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

[jQuery] Queueing multiple .show() and .hide()

2007-05-23 Thread SamCKayak
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

[jQuery] Re: Google Code SVN Issue - The Saga Continues

2007-05-23 Thread Rey Bango
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

[jQuery] Countdown plugin?

2007-05-23 Thread RedAlert
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

[jQuery] Creating DIV with JEditable Callback Function

2007-05-23 Thread Jimmy Lee
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:

[jQuery] Switching params in $.post()

2007-05-23 Thread Tom McGuire
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

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Robert O'Rourke
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

[jQuery] Re: cannot unsubscribe to jquery-en google group

2007-05-23 Thread Mike Alsup
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?

[jQuery] Re: 15 second delay with IE

2007-05-23 Thread kitafe
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

[jQuery] Re: Queueing multiple .show() and .hide()

2007-05-23 Thread Gordon
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.

[jQuery] IE selector bug/error?

2007-05-23 Thread Luc Pestille
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

[jQuery] update check Box

2007-05-23 Thread oscar esp
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?

[jQuery] Re: IE selector bug/error?

2007-05-23 Thread Brandon Aaron
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

[jQuery] JavaScript XML-RPC Solution?

2007-05-23 Thread Jake McGraw
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

[jQuery] Re: update check Box

2007-05-23 Thread Gordon
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

[jQuery] Performance tip

2007-05-23 Thread Gordon
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++) {

[jQuery] Re: improve my working code

2007-05-23 Thread Richard D. Worth
On 5/23/07, tlob [EMAIL PROTECTED] wrote: [code] $(document).ready(function(){ $(#linkDetail1).click(function(){ $(#detail1).slideToggle(slow); return false; });

[jQuery] Re: improve my working code

2007-05-23 Thread Michael Geary
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(){

[jQuery] Re: improve my working code

2007-05-23 Thread Scott Sauyet
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(){

[jQuery] Re: Performance tip

2007-05-23 Thread Rob Desbois
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

[jQuery] Re: Good news, everyone!

2007-05-23 Thread Glen Lipka
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)

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Mike Alsup
@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

[jQuery] Re: Switching params in $.post()

2007-05-23 Thread Daniel Hollocher
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,

[jQuery] Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread cliff
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

[jQuery] Re: Performance tip

2007-05-23 Thread Gordon
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

[jQuery] Re: problem with ajax

2007-05-23 Thread Daniel Hollocher
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

[jQuery] Re: Performance tip

2007-05-23 Thread Gordon
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

[jQuery] Re: Switching params in $.post()

2007-05-23 Thread Tom McGuire
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:

[jQuery] Re: Switching params in $.post()

2007-05-23 Thread Tom McGuire
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:

[jQuery] Re: Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread Andy Matthews
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

[jQuery] Re: Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread Glen Lipka
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

[jQuery] Re: Form Validate Plugin Question

2007-05-23 Thread Mandy Singh
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; }

[jQuery] Ajax Problem?

2007-05-23 Thread [EMAIL PROTECTED]
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!); } });

[jQuery] Re: Google Code SVN Issue - PROBLEM RESOLVED

2007-05-23 Thread Sean Catchpole
That's great news. Thanks for the feedback Rey. ~Sean

[jQuery] rounded-corners in images (photos) ?

2007-05-23 Thread paul wisehart
Hi, Anybody know a good way in jQuery to round the corners of photo images? thanks for any pointers, paul w

[jQuery] Re: Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread Daemach
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

[jQuery] Re: Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread Daemach
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

[jQuery] Re: Google Code SVN Issue - PROBLEM RESOLVED

2007-05-23 Thread Bil Corry
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

[jQuery] Re: rounded-corners in images (photos) ?

2007-05-23 Thread Jean Nascimento
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

[jQuery] Re: Hacker wants to format Ajax Data elegantly

2007-05-23 Thread Sean Catchpole
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

[jQuery] Boolean value for if an element exists

2007-05-23 Thread Andy Matthews
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

[jQuery] Re: Boolean value for if an element exists

2007-05-23 Thread Daemach
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

[jQuery] Re: Conventional JS/DOM to jQuery conversion help

2007-05-23 Thread cliff
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

[jQuery] Re: Boolean value for if an element exists

2007-05-23 Thread Daemach
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

[jQuery] Re: Boolean value for if an element exists

2007-05-23 Thread Andy Matthews
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()

[jQuery] Question about the context attribute of a jQuery call

2007-05-23 Thread Andy Matthews
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

[jQuery] Re: Dispatch events into dynamically loaded content

2007-05-23 Thread [EMAIL PROTECTED]
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

[jQuery] Detecting Mouse Paste

2007-05-23 Thread Glen Lipka
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

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Andy Matthews
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

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Benjamin Sterling
I would say yes. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: Boolean value for if an element exists

2007-05-23 Thread Jeffrey Kretz
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

[jQuery] Re: NEWS: jQuery Mentioned on MrBool.com

2007-05-23 Thread Sean Catchpole
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

[jQuery] background-position

2007-05-23 Thread Liam Byrne
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

[jQuery] NEWS: jQuery-Powered FeedBurner to be Acquired for $100M

2007-05-23 Thread Rey Bango
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

[jQuery] Re: Detecting Mouse Paste

2007-05-23 Thread Bil Corry
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:

[jQuery] Like Google Calendar

2007-05-23 Thread Jean Nascimento
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

[jQuery] Re: Good news, everyone!

2007-05-23 Thread Leonardo K
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:

[jQuery] Re: Ajax Problem?

2007-05-23 Thread Benjamin Sterling
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

[jQuery] Re: Like Google Calendar

2007-05-23 Thread Chris W. Parker
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

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Daemach
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,

[jQuery] Re: Switching params in $.post()

2007-05-23 Thread Jean Nascimento
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]

[jQuery] Re: Color Label on Form Validation Error

2007-05-23 Thread Scott Moore
Jörn, that works great. Thanks.

[jQuery] Re: jquery tabs: creating tabs without triggering onShow action

2007-05-23 Thread Klaus Hartl
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   2   >