Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-30 Thread Klaus Hartl
Rey Bango schrieb: Dustin has strong ties to the YUI! camp being a former Yahooligan but I think he realizes that YUI! can be daunting for the average developer. I don't think its an ego thing per se as much as I think he's trying to abstract it a bit to make YUI! more attractive. Also, he

[jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Kim Johnson
Hi folks, I apologize if this is a little less Jquery and a little more general AJAX/PHP in nature, but I am completely stuck and was hoping there's tribal knowledge I failed to learn. I have a login panel on each page of my site. The actual authentication takes place in a file called login.php,

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Erik Beeson
I don't know much about your specific problem, but I thought I'd share how I do AJAXified login. First I have a form with action set to the login page so it will work without javascript. Then I hijack the form with ajaxForm() from the form plugin. I have the ajax return JSON and have a callback

Re: [jQuery] Serializing a form to JSON

2007-03-30 Thread ashutosh bijoor
Hi Patrick var json=$.params2json(myFormParams.vars); will return a hash (object). To convert a hash into a string, you will need something like json.js. document.getElementById('json').innerHTML=json.toJSONString(); should give you what you expect. However, if you merely want to submit the json

[jQuery] Why does show(0,callback) not run the callback function?

2007-03-30 Thread George Adamson
Why does show(0,callback) not run the callback function? (Looking in the jQuery 1.1 code I see that is the way it is coded) I ran into this issue because my code chooses an animation speed of zero when the element contains too many items to animate smoothly. I found that the callback only fired

Re: [jQuery] highlight/fade the current table row

2007-03-30 Thread Brunner Adam
Hi! I'm after some assistance (syntax I guess) on how one selects the current row of a table. The context of this query is that I have a table of data in which the last column of each row contains a checkbox which the user checks if the data case is to be deleted. When checked, I want

[jQuery] highlight/fade the current table row

2007-03-30 Thread Bruce MacKay
Hello folks, I'm after some assistance (syntax I guess) on how one selects the current row of a table. The context of this query is that I have a table of data in which the last column of each row contains a checkbox which the user checks if the data case is to be deleted. When checked, I

Re: [jQuery] highlight/fade the current table row

2007-03-30 Thread Bruce MacKay
Thanks Adam, That's certainly closer, but it's not quite there - at least on my page. $(this).parent('tr').highlightFade doesn't fire. On the other hand, $(this).parent('td').highlightFade... does fire on the td within which the checkbox sits. Sorry, but I'm unsure how to go one step

Re: [jQuery] highlight/fade the current table row - solution

2007-03-30 Thread Brunner Adam
Hi! $(this).parent('td').parent('tr').highlightFade(... Is there shorthand syntax for .parent('td').parent('tr')? Sorry, made a typo. So this is the solution for you: $(this).parents('tr').highlightFade(... Cheers, Adam ___ jQuery mailing list

Re: [jQuery] highlight/fade the current table row - solution

2007-03-30 Thread Bruce MacKay
I found a solution $(this).parent('td').parent('tr').highlightFade(... Is there shorthand syntax for .parent('td').parent('tr')? Thanks/Bruce At 12:09 a.m. 31/03/2007, you wrote: Thanks Adam, That's certainly closer, but it's not quite there - at least on my page.

Re: [jQuery] Break out of each loop

2007-03-30 Thread Erik Beeson
Also, what is that ## selector about? --Erik On 3/30/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: This is a question I got from a friend of mine: $(##players tr:gt(0)).each( function() { s = parseFloat($(td:eq(0), this).text()); } ); How do I break out of

[jQuery] Break out of each loop

2007-03-30 Thread Dmitrii 'Mamut' Dimandt
This is a question I got from a friend of mine: $(##players tr:gt(0)).each( function() { s = parseFloat($(td:eq(0), this).text()); } ); How do I break out of this loop? I don't need to go to the very end. ___ jQuery mailing list

Re: [jQuery] Break out of each loop

2007-03-30 Thread Erik Beeson
Venturing a guess, I'd say maybe try returning false? --Erik On 3/30/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: This is a question I got from a friend of mine: $(##players tr:gt(0)).each( function() { s = parseFloat($(td:eq(0), this).text()); } ); How do

Re: [jQuery] How can I get a second children element?

2007-03-30 Thread Mario Moura
Hi $($(E).children().get(1)).hide(); How can I hide all elements 1 so I want hide all E except the first Regards PS : eq works fine too thanks Karl 2007/3/26, Karl Swedberg [EMAIL PROTECTED]: Ah yes, of course. I'm glad you figured it out! I think part of the problem with our solutions

Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-30 Thread Andy Matthews
Just FYI... I meant no insult...it just seems like, if he's so influenced by jQuery, that it would have made more sense to join the jQ team. Especially since we're going to be picking up YUI tools via Jack Slocum. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [jQuery] How can I get a second children element?

2007-03-30 Thread Chris Domigan
You can use gt() and lt() for this (as per the docs). Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] highlight/fade the current table row

2007-03-30 Thread Karl Swedberg
Hi Bruce, Adam's solution was very close, but you'll need an s on the end of parent. $(this).parents('tr').highlightFade... Also, if you have nested tables for some reason, you can put the :first pseudo-class on the tr, like so:

Re: [jQuery] IF contain so click

2007-03-30 Thread Jake McGraw
Could you please rephrase the question, although I think you maybe looking for something like this: JavaScript: $(#edit_upload).click(function(){ if($(#edit_field).val() != 0) { $(form).submit(); } }); HTML: form action=submit.php method=get input type=text id=edit_field

Re: [jQuery] highlight/fade the current table row - solution

2007-03-30 Thread Karl Swedberg
On Mar 30, 2007, at 8:40 AM, Brunner Adam wrote: Hi! $(this).parent('td').parent('tr').highlightFade(... Is there shorthand syntax for .parent('td').parent('tr')? Sorry, made a typo. So this is the solution for you: $(this).parents('tr').highlightFade(... Cheers, Adam argh! Sorry, I

Re: [jQuery] Break out of each loop

2007-03-30 Thread Dmitrii 'Mamut' Dimandt
That's a leftover from ColdFusion :) I didn't test whether your solution works, but I guess it should (from a quick look at jQuery code) Thank you! Erik Beeson wrote: Also, what is that ## selector about? --Erik On 3/30/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: This is a

Re: [jQuery] addons.mozilla.org uses jQuery!

2007-03-30 Thread Jason Levine
I noticed it a couple of days ago (posted it to the Sites using JQuery thread). They're also using Thickbox 2.1 (built on JQuery, obviously) to display extension screenshots. -- View this message in context: http://www.nabble.com/addons.mozilla.org-uses-jQuery%21-tf3486094.html#a9753717 Sent

[jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Rey Bango
Okay, so Pete Cashmore, owner of Mashable was ragging on a new site that generates stripes for that Web 2.0 effect. I actually think the stripe generator is pretty cool so I replied in the comments section about it: http://mashable.com/2007/03/29/stripe-generator/ Read the comments to see how

Re: [jQuery] Collapsing table Columns?

2007-03-30 Thread Baxter
That's exactly what I was thinking of. Thanks! On Mar 29, 1:10 pm, Roman Weich [EMAIL PROTECTED] wrote: Baxter schrieb: Any ideas how one could hide/show table columns, rather than rows? I've made something like this some days ago. Maybe you want to take a

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Jake McGraw
I believe you aren't handling the session correctly, remember, AJAX calls don't automatically attach the session ID to your URL variables, so you have to do it manually (if it's not in the cookie), either by directly attaching to the target url: $.getJSON(target.php?sid=+session id,...,...); or

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Paul Caton
That page with the email animations is awesome! It's like a web Chamber of Horrors :-) I think you won that comments debate. Paul Caton. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] YUI Implementation Focus: Dustin Diaz's DED|Chain. Interview which presents an alternative to jQuery

2007-03-30 Thread Rey Bango
Oh I know you meant no insult Andy. I wanted to give you some feedback though. Rey... Andy Matthews wrote: Just FYI... I meant no insult...it just seems like, if he's so influenced by jQuery, that it would have made more sense to join the jQ team. Especially since we're going to be

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Brian Miller
Gaah! My eyes! Classic! I'm still giggling. - Brian That page with the email animations is awesome! It's like a web Chamber of Horrors :-) I think you won that comments debate. Paul Caton. ___ jQuery mailing list discuss@jquery.com

[jQuery] IE and Javascript in Ajax Content

2007-03-30 Thread Dan Shields
Is there an issue in IE that won't let you put Javascript in content that is pulled in via Ajax. I have a page that has a navigation menu and when you click on any of the links it pulls an HTML page in with Ajax. I am using the *Ajax History http://www.mikage.to/jquery/jquery_history.html

[jQuery] highlightFade for same id

2007-03-30 Thread Web Specialist
How can I display highlightFade for the same id? Using this script below only the first element(Credit Card Flag) with that id looks with highlight. ... script type=text/javascript src=../js/jquery.js/script script type=text/javascript src=../js/jquery.highlightFade.js/script ...

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Rey Bango
haha! He dared me! Paul Caton wrote: That page with the email animations is awesome! It's like a web Chamber of Horrors :-) I think you won that comments debate. Paul Caton. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Converting old solution to jQuery

2007-03-30 Thread Jake McGraw
Well, thats quite a lot to ask, but I'm in a giving mood: Javascript: $(function(){ $([EMAIL PROTECTED]).click(function(){ if(confirm(Are you sure you'd like to delete this photo?)) { var photo_id = $(this).parent().find(input).val();

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Rey Bango
Mike Alsup wrote: Tsk, tsk, Rey. Your code is not very jQuery at all. What's with this verbsoity? $(#icons).corner(); $(#construction).corner(); So how should I have done the code, Masterson! Show the grasshopper your ways! That hurts my eyes as much as the ani

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Klaus Hartl
Brian Miller schrieb: Gaah! My eyes! Classic! I'm still giggling. - Brian Haha, you should also have a look at the 1996 Geocities theme from CSS Zengarden? Be careful... http://csszengarden.com/?cssfile=http://www.brucelawson.co.uk/zen/sample.css -- Klaus

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Joan Piedra
That should work. $('#icons, #construction').corner(); On 3/30/07, Rey Bango [EMAIL PROTECTED] wrote: Mike Alsup wrote: Tsk, tsk, Rey. Your code is not very jQuery at all. What's with this verbsoity? $(#icons).corner(); $(#construction).corner(); So how should I have done the

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread John Resig
$(#icons, #construction).corner(); On 3/30/07, Rey Bango [EMAIL PROTECTED] wrote: Mike Alsup wrote: Tsk, tsk, Rey. Your code is not very jQuery at all. What's with this verbsoity? $(#icons).corner(); $(#construction).corner(); So how should I have done the code, Masterson!

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Rey Bango
Thanks John Joan! Fixed. Hey John, what'd you think of the page?!? Its like retro-Web 2.0 huh? ;o) Rey... John Resig wrote: $(#icons, #construction).corner(); On 3/30/07, Rey Bango [EMAIL PROTECTED] wrote: Mike Alsup wrote: Tsk, tsk, Rey. Your code is not very jQuery at all. What's

Re: [jQuery] Kinda funny way to getting jQuery some exposure

2007-03-30 Thread Brandon Aaron
On 3/30/07, Rey Bango [EMAIL PROTECTED] wrote: Thanks John Joan! Fixed. Hey John, what'd you think of the page?!? Its like retro-Web 2.0 huh? ;o) You mean it is like web 1.996. We've come a long way in the last few thousandths of revisions. :) -- Brandon Aaron

Re: [jQuery] IE and Javascript in Ajax Content

2007-03-30 Thread Marshall Salinger
Dan Shields wrote: Is there an issue in IE that won't let you put Javascript in content that is pulled in via Ajax. I have a page that has a navigation menu and when you click on any of the links it pulls an HTML page in with Ajax. I am using the *Ajax History

Re: [jQuery] highlightFade for same id

2007-03-30 Thread Blair Mitchelmore
Selecting by ID in that syntax only selects the first element. Also, pages should only have one element of the same ID, but if you want to you can search using attribute checks. $([EMAIL PROTECTED]'show_credit_card']).highlightFade({color:'yellow',speed:1000,iterator:'sinusoidal'}); But it

Re: [jQuery] highlightFade for same id

2007-03-30 Thread Web Specialist
Thanks Blair. Works very nice! 2007/3/30, Blair Mitchelmore [EMAIL PROTECTED]: Selecting by ID in that syntax only selects the first element. Also, pages should only have one element of the same ID, but if you want to you can search using attribute checks. $([EMAIL

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Kim Johnson
Thanks to both of you for your responses, I guess I'm still having a hard time wrapping my head around what AJAX is doing with my session vars that make it impossible to use in my existing PHP files. I was under the impression that session vars are just ... around in the browser, so if they are

Re: [jQuery] IE and Javascript in Ajax Content

2007-03-30 Thread spinnach
ie won't execute javascript in the ajax response if there's no text returned along with it.. so simply return some text with it or similar.. or you can wrap it all up in a callback function so you won't need to return any script from the server.. dennis. Dan Shields wrote: Is there an issue

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Aaron Heimlich
On 3/30/07, Kim Johnson [EMAIL PROTECTED] wrote: Should I be recalling session_start? As a general rule, you should call session_start() in *every* PHP script that accesses $_SESSION. Where you call it depends on whether you're using output buffering or not[1], but it must *always* be

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Aaron Heimlich
As a side note, if you (or anyone else, for that matter) are having problems with Tredosoft's MultipleIEs (http://tredosoft.com/Multiple_IE) and PHP sessions, be sure to upgrade to at least the version that was released on 07/11/2006 (November 11, 2006) as versions before that had issues with

[jQuery] validation plugin question

2007-03-30 Thread Gareth Hughes
I'm working with the validation plugin and I'm trying to work out the id of the first form field that causes an error. Hopefully someone will tell me there's a really easy way to do this but I couldn't find it so, as a start, I've added a new function in validate.js: returnList: function() {

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Kim Johnson
I am indeed not using output buffering. I call session_start as the first thing on every page, before the headers are sent. I also call session_start on my login page, first thing. If I use output buffering, do you think that would fix things? I could call session_start() again as a callback

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Aaron Heimlich
Question: is session_start() called on the page where this code is run? var loggedin = ?=$_SESSION['loggedin']?; if (loggedin == true) { $(div#login).hide(); $(div#logout).unhide(); } else { $(div#login).unhide(); $(div#logout).hide(); } On

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Aaron Heimlich
On 3/30/07, Kim Johnson [EMAIL PROTECTED] wrote: called via ajaxsubmit (async set to false). You should *really* avoid doing this as it completely freezes the entire browser until the request is complete (very bad!!). I highly recommend that you check out Mike Alsup's blockUI plugin (

Re: [jQuery] ANNOUNCE: Tabs 2.7

2007-03-30 Thread Rob Wilkerson
I just downloaded this to give it a shot and it looks great, but I have a couple of questions: 1. I have a dark background that the tabs have to sit atop. The background image for tabs appears not to be transparent. 2. The tabs appear to be fixed width - maybe due to the image size? I need to

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Kim Johnson
Ah, it's actually not... here's the breakdown of the included files: index.php (sample normal page which has the login box in it) (included at start of index.php) -page_init.php (included at start of page_init.php) -dbconnect.php //connects database -startsession.php //CALLS

Re: [jQuery] ANNOUNCE: Tabs 2.7

2007-03-30 Thread Klaus Hartl
Rob Wilkerson schrieb: I just downloaded this to give it a shot and it looks great, but I have a couple of questions: 1. I have a dark background that the tabs have to sit atop. The background image for tabs appears not to be transparent. 2. The tabs appear to be fixed width - maybe due

Re: [jQuery] ANNOUNCE: Tabs 2.7

2007-03-30 Thread Rob Wilkerson
Thanks. Just wanted to make sure it wasn't something the plugin did out-of-the-box that I just wasn't seeing. :-) On 3/30/07, Klaus Hartl [EMAIL PROTECTED] wrote: Rob Wilkerson schrieb: I just downloaded this to give it a shot and it looks great, but I have a couple of questions: 1. I

Re: [jQuery] nightly builds

2007-03-30 Thread mmjaeger
mmjaeger wrote: anybody else experiencing problems with the nightly build downloads? anyone able to fix those download links? thank you -- View this message in context: http://www.nabble.com/nightly-builds-tf3488239.html#a9758041 Sent from the JQuery mailing list archive at Nabble.com.

Re: [jQuery] Jquery, AJAX, and php session variables

2007-03-30 Thread Aaron Heimlich
If that code is not executed in the same request as code that calls session_start(), then you will have problems (though that doesn't appear to be the case). Try adding a call to session_start() just before that code is run, see if that helps at all. Is there any chance that you could send me

Re: [jQuery] nightly builds

2007-03-30 Thread Aaron Heimlich
I get something the following whenever I try to access http://jquery.com/src/nightlies/: It redirects to http://code.jquery.com/nightlies/ which produces the following XML: Error CodeNoSuchKey/Code MessageThe specified key does not exist./Message Keynightlies//Key

[jQuery] plugin to set val select part of it... doesn't work. help!!

2007-03-30 Thread Ⓙⓐⓚⓔ
I'm unclear about the different methods of selecting a portion of a text input .. I'm testing with firefox 2 first. Any ideas? jQuery.fn.valSel = function(val,start, end){ var field = this field.val(val) var m = if (field.createTextRange) { var selRange =

Re: [jQuery] New version of jquery and IE6 bugs

2007-03-30 Thread Jeremy Dill
I finally got around to setting up an example for this issue. Try each of these pages in IE6. To see the problem, Refresh the page repeatedly about 5 or 6 times. The 1.0.4 example should work fine. On your 3rd or 4th refresh with the 1.1.2 page, CSS start to get buggy and background images

Re: [jQuery] Collapsing table Columns?

2007-03-30 Thread Roman Weich
Baxter schrieb: That's exactly what I was thinking of. Thanks! On Mar 29, 1:10 pm, Roman Weich [EMAIL PROTECTED] wrote: Baxter schrieb: Any ideas how one could hide/show table columns, rather than rows? I've made something like this some days ago. Maybe you want to take a

Re: [jQuery] New version of jquery and IE6 bugs

2007-03-30 Thread Mike Alsup
Using jquery-1.0.4.js - NO PROBLEMS http://www.dilltree.com/test/jtest104.html Using jquery-latest.pack.js - CSS ISSUES ON REFRESH. http://www.dilltree.com/test/jtest112.html Jeremy, Have you tried an unpacked version of 1.1.2? ___ jQuery mailing

Re: [jQuery] highlight/fade the current table row - solution -thanks

2007-03-30 Thread Bruce MacKay
Thanks both, Bruce At 01:28 a.m. 31/03/2007, you wrote: On Mar 30, 2007, at 8:40 AM, Brunner Adam wrote: Hi! $(this).parent('td').parent('tr').highlightFade(... Is there shorthand syntax for .parent('td').parent('tr')? Sorry, made a typo. So this is the solution for you:

[jQuery] Include order for uncompressed Interface files

2007-03-30 Thread Nate Cavanaugh
Hi All, Interface comes with a nice source package, but what I need is one really big file combined. I have join utilities on my computer, so joining them is not a big deal, but I was curious as to whether or not there is a specific order that they should be included in? Anyone know? Thanks in

Re: [jQuery] New version of jquery and IE6 bugs

2007-03-30 Thread Jeremy Dill
Yes. And 1.1.1. Packed or unpacked, same result. -Original Message- From: Mike Alsup [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 2:23 PM To: [EMAIL PROTECTED]; jQuery Discussion Subject: Re: [jQuery] New version of jquery and IE6 bugs Using jquery-1.0.4.js - NO PROBLEMS

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-03-30 Thread Chris Scott
Here's a link, but please don't anyone feel obligated to add it to the directory since I just did this for fun and to learn yet more about jQuery. http://iamzed.com/tveetter/ That page runs the Twitter public timeline RSS through a (PHP) Swedish Chef converter and outputs the tweets. Bork!

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-03-30 Thread Rey Bango
Added: * [http://iamzed.com/tveetter/ tveetter] * [http://ballofdirt.com/ Ball of Dirt] * [http://tfl.gov.uk/ Transport for London] Thanks for the submissions!! We're at 151 sites listed to date! w00t! Rey... ___ jQuery mailing list