[jQuery] Re: response handler scope

2007-04-06 Thread Ralf S. Engelschall
On Sat, Apr 07, 2007, Diego A. wrote: > It works, but I think that is a terrible idea. > You'll have to edit the jQuery source every-time there is new release. > I take a different approach: > 1. Load jQuery source. > 2. Make changes to suit my application. > [...] You don't really have to repea

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Aaron Heimlich
On 4/6/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote: Just curious, what changes about the server's behavior when the x-Method is specified as Ajax? By itself, it doesn't do anything. But in your server-side code, you can look for this (or more accurately, look for an HTTP header named "X-Re

[jQuery] Re: problems with the starterkit

2007-04-06 Thread Klaus Hartl
Mike Alsup schrieb: $("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) Huh? The reset event is not bound by jQuery. Are you thinking of submit? No, starting with jQuery 1.1 element events are also triggered. The followin

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Klaus Hartl
Diego A. schrieb: I ended up changing my server application to look for the header "x-Method = Ajax" and it works just fine. Oh well, jQuery already adds a custom header to each Ajax request: "X-Requested-With: XmlHttpRequest" -- Klaus

[jQuery] Re: Traversing the dom selecting ever other dom

2007-04-06 Thread Jeffrey Kretz
D'oh. I shoulda known that :-/ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Friday, April 06, 2007 7:34 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Traversing the dom selecting ever other dom This should do it: $("div:even").ad

[jQuery] Re: Traversing the dom selecting ever other dom

2007-04-06 Thread Aaron Heimlich
This should do it: $("div:even").addClass("superCoolClass"); On 4/6/07, Jeffrey Kretz <[EMAIL PROTECTED]> wrote: I'm not 100% sure I follow your question, but you could do this: $('div').each(function(i) { if (i%2) { $(this).add

[jQuery] Re: Traversing the dom selecting ever other dom

2007-04-06 Thread Jeffrey Kretz
I'm not 100% sure I follow your question, but you could do this: $('div').each(function(i) { if (i%2) { $(this).addClass('newClass'); } }); "i" is a variable passed by the each method that starts at 0 and inc

[jQuery] Traversing the dom selecting ever other dom

2007-04-06 Thread Tom Shafer
I was wondering how I can traverse through the dom and start at a div and then select every other div until i want it to stop so that I may add a class to it. Any Ideas? Thanks Tom

[jQuery] Re: IE XML parsing problem

2007-04-06 Thread Ariel Jakobovits
Did you contribute this back to the Metadata community? - Original Message From: Diego A. <[EMAIL PROTECTED]> To: jquery-en@googlegroups.com Sent: Friday, April 6, 2007 3:54:52 PM Subject: [jQuery] Re: IE XML parsing problem I've been fighting with this bug too and I believe I've foun

[jQuery] Re: inserting a DIV in alphabetical order

2007-04-06 Thread Giant Jam Sandwich
JavaScript arrays support a simple sort() method for this task. This will give you a lexicographically (dictionary) sort from A-Z. $(function(){ arrStudents = new Array(); $(".student").each(function(i){ arrStudents[i] = $(this).text(); }); arrStudents = arrStudents.sort(); $

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Ariel Jakobovits
Just curious, what changes about the server's behavior when the x-Method is specified as Ajax? - Original Message From: Diego A. <[EMAIL PROTECTED]> To: jquery-en@googlegroups.com Sent: Friday, April 6, 2007 5:48:20 PM Subject: [jQuery] Re: Unique parameter in Ajax Thanks for the qui

[jQuery] Re: response handler scope

2007-04-06 Thread lagos . tout
thanks a bunch guys! lagos.tout On Apr 6, 6:00 pm, "Diego A." <[EMAIL PROTECTED]> wrote: > It works, but I think that is a terrible idea. > You'll have to edit the jQuery source every-time there is new release. > I take a different approach: > 1. Load jQuery source. > 2. Make changes to suit my a

[jQuery] Re: Truncate Plugin v.2.0

2007-04-06 Thread Giant Jam Sandwich
The issue becomes the character count. If I pull the string as HTML, and use the max length provided, then I would have to use a regular expression to skip html tags in the count. That part would not be so hard, but if the truncate needs to happen in the middle of a child tag, I would have to pull

[jQuery] Re: response handler scope

2007-04-06 Thread Diego A.
It works, but I think that is a terrible idea. You'll have to edit the jQuery source every-time there is new release. I take a different approach: 1. Load jQuery source. 2. Make changes to suit my application. I think the best way to handle ajax responses is to add another function layer: $.exte

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Diego A.
Thanks for the quick response guys. This message had been pending for a few days and I've since managed to work around the problem, but I think this might be a bug. By doing this... $.ajaxSetup({ global:true, data:{'ajax':'y'} }); ... jQuery should: 1. add 'ajax = y' to the data submitted when I

[jQuery] Re: Using hoever() to highlight TR, but not thead? Works in FF but not IE.

2007-04-06 Thread Seth
The reason this happens is that is not a replacement for . s are supposed to contain s. See: http://www.w3schools.com/tags/tag_thead.asp > "Note: The must have a tag inside! > > Note: If you use the thead, tfoot and tbody elements, you must use every > element. > They should appear in this o

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Mike Alsup
I did! Thanks, Klaus. :-) I think you meant: http://groups.google.com/group/jquery-en/browse_thread/thread/68592545316c1e4a/3dcffd978d8d77d5#3dcffd978d8d77d5 ;-)

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Klaus Hartl
Mike Alsup schrieb: Oops, wrong thread, sorry. Klaus had a nice post on this one: http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0 I think you meant: http://groups.google.com/group/jquery-en/browse_thread/thread/68592545316c1e4

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Mike Alsup
Oops, wrong thread, sorry. Klaus had a nice post on this one: http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0 On 4/6/07, Mike Alsup <[EMAIL PROTECTED]> wrote: Ariel and Jörn posted some good ideas on this thread: http://groups.

[jQuery] Re: Unique parameter in Ajax

2007-04-06 Thread Mike Alsup
Ariel and Jörn posted some good ideas on this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0 I'd like to add a unique parameter to every ajax call jquery makes. I need this to happen on get and post commands (ie.: form s

[jQuery] Unique parameter in Ajax

2007-04-06 Thread Diego A.
I'd like to add a unique parameter to every ajax call jquery makes. I need this to happen on get and post commands (ie.: form submits too). Does anyone have an idea of how to do this? -- View this message in context: http://www.nabble.com/Unique-parameter-in-Ajax-tf3440508s15494.html#a9593357

[jQuery] IE XML Bug

2007-04-06 Thread Diego A.
Has anyone else had problems fetching elements on a XML document in IE? Anyone solved it? -- View this message in context: http://www.nabble.com/IE-XML-Bug-tf3525509s15494.html#a9835861 Sent from the jQuery Developers mailing list archive at Nabble.com.

[jQuery] Re: IE XML parsing problem

2007-04-06 Thread Diego A.
I've been fighting with this bug too and I believe I've found the fix. I can't be 100% sure, but I believe the problem was in the jquery.metaData plugin. The fix has worked for me and 2 other people so far... Here is the fix I posted on my blog, hope it helps. And if it does work for you, then t

[jQuery] Re: inserting a DIV in alphabetical order

2007-04-06 Thread Glen Lipka
Sounds hard. Have you seen this? Looks like a sort plugin. http://dev.jquery.com/browser/jquery/sort/sort.js?rev=1 Maybe append and then immediately sort? Glen On 4/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I have a DIV (id = "classList") witih many smaller DIVs, each of clas

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-06 Thread Christian Bach
I checked in a new version that takes care of all the problems. I based my test case on your example, located here: http://lovepeacenukes.com/jquery/tests/tablesorter-mixed-data-types.html /christian 2007/4/6, Kim Johnson <[EMAIL PROTECTED]>: Err... I take that back. -the only way for the

[jQuery] Re: Body Browser Classes

2007-04-06 Thread Glen Lipka
I think the alternative is for people who want to keep their classes together even if some of them are browser specific. For example, in the app I am working on the CSS is enormous. (dont ask) And the whole thing is changing pretty rapidly. And I am going to want to change certain things se

[jQuery] inserting a DIV in alphabetical order

2007-04-06 Thread [EMAIL PROTECTED]
Hi, I have a DIV (id = "classList") witih many smaller DIVs, each of class "student". The smaller DIV only contains text. If I want to add a new student DIV to the list, but add it in alphabetical order, is there a simple, tried and true jQuery way of doing this? Thanks, - Dave

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Smith, Allex
Thanks, I don't know why I tried to switch and use attr(). Previously I had been using css() Everything is perfect now. Allex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, April 06, 2007 2:56 PM To: jQuery (E

[jQuery] Re: Body Browser Classes

2007-04-06 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: There is an easier way that is not jQuery-or-Javascript-dependent, since mostly we just want to know is the browser IE or not. Use conditional comments around the BODY tag. See http://www.puidokas.com/updating-my-css-for-ie7/ . I use : Dan

[jQuery] Re: I'm going nutz...

2007-04-06 Thread d . wachss
No, IE doesn't treat styles as simple text, the way FF does (just like $(' h1 {color: black}') works in FF but not in IE. The style object is read-only and you can only set its members. You should use $(...).css(...) Danny Wachsstock On Apr 6, 3:27 pm, "Smith, Allex" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Andy Matthews
Hrm...not a bad idea. I'll look into that. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kristinn Sigmundsson Sent: Friday, April 06, 2007 4:24 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Stop pending AJAX processes? hmm how about then making a si

[jQuery] Re: Small Interface website update

2007-04-06 Thread Yehuda Katz
Now all we need is a hierarchical D&D tree and resizable layouts (with content panes), and Interface beats Ext any day of the week in my book. -- Yehuda On 4/6/07, Yehuda Katz <[EMAIL PROTECTED]> wrote: Hey! Props to you guys; I've been waiting for this for the longest time; it definitely mak

[jQuery] Re: Small Interface website update

2007-04-06 Thread Yehuda Katz
Hey! Props to you guys; I've been waiting for this for the longest time; it definitely makes Interface development easier. -- Yehuda On 4/6/07, Marshall Salinger <[EMAIL PROTECTED]> wrote: Rey Bango wrote: > > Agreed. Interface is EXTREMELY important to the jQuery project. More > so than any

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Kristinn Sigmundsson
hmm how about then making a single ajaxcall when opening a accordation menu and splitting the returning result (using xml, json or whatever) and then put it on the right place? That would make the request quite few and still make the initial page load fast. //Kristinn On 4/6/07, Andy Matthews

[jQuery] Re: Body Browser Classes

2007-04-06 Thread d . wachss
On Apr 4, 10:48 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Feedback desired: > > Lately, I have been developing CSS and HTML for a deep Web 2.0 complex app. > Usually, I avoid CSS hacks like the plague. But recently, I have had to > resort to the Holly Hack or the StarHTML Hack. But then i

[jQuery] Re: Bizarre IE Troubles

2007-04-06 Thread Alex Ezell
I got rid of the password hoping someone might be able to help. I'm thinking maybe it's some conflict between Google Maps and jQuery, but because of the IE weirdness, I can't even see the page to see if there is an error. Thanks! /alex On Apr 4, 2:11 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote:

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Smith, Allex
Sorry... fat fingered your name Glen. Allex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Smith, Allex Sent: Friday, April 06, 2007 12:19 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: I'm going

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Smith, Allex
It's not applying the style... I'm using the dump() plugin as well as simply alerting it to the screen. Allex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 06, 2007 12:25 PM To:

[jQuery] help with resetting a slider (Interface plugin)

2007-04-06 Thread [EMAIL PROTECTED]
I'm working on a page that uses the Slider from interface.eyecon.ro. Works perfectly the first time Slider is initialized. However, re-initializing the slider *without a page load* is problematic. Here's what I'm currently using (it works): // get rid of any existing indicators and reset

[jQuery] Re: Permission denied to call method XMLHttpRequest.open

2007-04-06 Thread Ⓙⓐⓚⓔ
#!/usr/bin/perl use LWP::UserAgent; use CGI; $ua = LWP::UserAgent->new; $ua->agent("NuBrowser/10.7 "); $res = $ua->request(HTTP::Request->new(GET => $ENV{QUERY_STRING}; $q = CGI->new; print $q->header($res->headers->{'Content-Type'}),$res->content; does it for me! real simple, classic perl cgi,

[jQuery] Re: Getting all labels

2007-04-06 Thread Buzzterrier
Thanks to you both. Both approaches work. I appreciate the tips. On Apr 6, 12:33 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Make that: > > $(document).ready( function() { > > var myArr = []; > alert(myArr); > $('label').each( function() { > myArr.pus

[jQuery] Re: Getting all labels

2007-04-06 Thread Andy Matthews
Make that: $(document).ready( function() { var myArr = []; alert(myArr); $('label').each( function() { myArr.push($(this).attr('for')); }); alert(myArr); }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTE

[jQuery] Re: Getting all labels

2007-04-06 Thread Andy Matthews
Maybe Var myArr = []; $('label').each( myArr.push($(this).attr('for')); ); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Buzzterrier Sent: Friday, April 06, 2007 2:13 PM To: jQuery (English) Subject: [jQuery] Getting all labels I w

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Andy Matthews
Are you talking about viewing source in IE vs FF? Because if you perform an action with jQuery, then view source in IE, you'll NEVER see the changes in the code. However, using the "View Generated Source" option in FF's developer toolbar allows you to see changes made using javascript. Or are yo

[jQuery] Re: Getting all labels

2007-04-06 Thread Roman Weich
Buzzterrier schrieb: I want to get all labels in a form, and then access their "for" attribute to link it to the field. I thought that $("label") would give me an array of all label elements that I could loop through and get the "for" value. But this does not work and I know I am missing someth

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Smith, Allex
Thanks Glin... I'll give it a whirl. Allex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Friday, April 06, 2007 12:07 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: I'm going

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Glen Lipka
On 4/6/07, Steve Blades <[EMAIL PROTECTED]> wrote: I thought it was $('#mytest').css({width:"200px"}); to set a style attribute? The curly braces depend on if you want to set an array or a single one. Check in www.jquery.com/api under CSS. Its got a bunch of good examples. Glen

[jQuery] Getting all labels

2007-04-06 Thread Buzzterrier
I want to get all labels in a form, and then access their "for" attribute to link it to the field. I thought that $("label") would give me an array of all label elements that I could loop through and get the "for" value. But this does not work and I know I am missing something fundamental to Jque

[jQuery] Re: checking for multiple selects with the same value

2007-04-06 Thread Roman Weich
Roman Weich schrieb: RwL schrieb: maybe something like this: $('select').change(function(){ if ( $('[EMAIL PROTECTED]' + this.value + ']').not(this).length ) { $('.formTip').show(); } else { $('.formTip').hide();

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Steve Blades
I thought it was $('#mytest').css({width:"200px"}); to set a style attribute? -- Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com --- The Past is a Memory The Future a Dre

[jQuery] I'm going nutz...

2007-04-06 Thread Smith, Allex
Test $('#mytest').attr({style:"width:200px;"}); returns Test in FF2 Test in IE6 I must be going mad. Any suggestions as to where I might be going wrong?

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Glen Lipka
On 4/6/07, Smith, Allex <[EMAIL PROTECTED]> wrote: Test $('#mytest').attr({style:"width:200px;"}); returns Test in FF2 Test in IE6 I must be going mad. Any suggestions as to where I might be going wrong? or if you need multiple: $("#mytest'").css({ color: "red", width: "200px" });

[jQuery] Re: I'm going nutz...

2007-04-06 Thread Glen Lipka
On 4/6/07, Smith, Allex <[EMAIL PROTECTED]> wrote: Test $('#mytest').attr({style:"width:200px;"}); returns Test in FF2 Test in IE6 I must be going mad. Any suggestions as to where I might be going wrong? Why not do $("#mytest").css("width","200px"); Glen

[jQuery] Re: checking for multiple selects with the same value

2007-04-06 Thread Roman Weich
RwL schrieb: maybe something like this: $('select').change(function(){ if ( $('[EMAIL PROTECTED]' + this.value + ']').not(this).length ) { $('.formTip').show(); } else { $('.formTip').hide(); } }); Just to make

[jQuery] Re: checking for multiple selects with the same value

2007-04-06 Thread RwL
> maybe something like this: > > $('select').change(function(){ > if ( $('[EMAIL PROTECTED]' + this.value + ']').not(this).length ) > { > $('.formTip').show(); > } > else > { > $('.formTip').hide(); > } > > }); Just

[jQuery] Re: checking for multiple selects with the same value

2007-04-06 Thread RwL
Thanks, Roman, this seems to do exactly what I need it to -- that's twice in two days you've saved me from banging my head against a wall. :) On Apr 6, 1:29 pm, Roman Weich <[EMAIL PROTECTED]> wrote: > RwL schrieb: > > > I'd like to extend this simple function but don't know what to do > > ne

[jQuery] Re: checking for multiple selects with the same value

2007-04-06 Thread Roman Weich
RwL schrieb: I'd like to extend this simple function but don't know what to do next: $('select').change(function(){ $('.formTip').show(); }); What I really want this to do, is: On the change event, check to see if any value of any element on the page matches the value of any other o

[jQuery] Re: Small Interface website update

2007-04-06 Thread Marshall Salinger
Rey Bango wrote: Agreed. Interface is EXTREMELY important to the jQuery project. More so than any 3rd party library. Keep up the great work Stefan & Paul! Rey... Jeffrey Kretz wrote: This is FANTASTIC! I was worried that with Ext you might not want to continue development. I personally

[jQuery] Re: Small Interface website update

2007-04-06 Thread Rey Bango
Agreed. Interface is EXTREMELY important to the jQuery project. More so than any 3rd party library. Keep up the great work Stefan & Paul! Rey... Jeffrey Kretz wrote: This is FANTASTIC! I was worried that with Ext you might not want to continue development. I personally prefer Interface, an

[jQuery] Re: jquery form plugin

2007-04-06 Thread Buzzterrier
Hi Mike, Still new to all of this, but I used this: $('#myAnchor').click(function() { ('#myForm').submit(); }); With the thought that the anchor would now fire the form's submit event, which should be no different than a submit button. This seems to work fine, but I am not an expert. On Fe

[jQuery] Re: Permission denied to call method XMLHttpRequest.open

2007-04-06 Thread listreader
SnapShot wrote: More important... is there a way around it that is transparent to the reader of the site? If you have access to server-side java/cgi/php whatever, you can proxy the URL you want to load. Look up "ajax proxy" for a rundown of the issue. -- paulw

[jQuery] table paging and sorting together

2007-04-06 Thread Paul
I'm using this table sorter plugin: http://motherrussia.polyester.se/docs/tablesorter/. I'm curious how you all handle paged tabular data that also needs to be sortable. I would typically rely on ajax to retrieve next 25 / previous 25 rows, but if the user can sort any column they want they

[jQuery] checking for multiple selects with the same value

2007-04-06 Thread RwL
I'd like to extend this simple function but don't know what to do next: $('select').change(function(){ $('.formTip').show(); }); What I really want this to do, is: On the change event, check to see if any value of any element on the page matches the value of any other on the page -- i

[jQuery] Re: ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-06 Thread Glen Lipka
Congratulatgions Karl! I am pre-ordering. (All the cool kids are doing it.) 500 Pages! I hope there are alot of pictures. :) Exciting times. Glen On 4/6/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: Thanks for the plug, Rey! :-) As you might have gathered from the URL ( http://www.packtp

[jQuery] Re: ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-06 Thread Karl Swedberg
Thanks for the plug, Rey! :-) As you might have gathered from the URL (http://www.packtpub.com/ jQuery/book), the book is being published by PACKT Publishing, based in Manchester, UK. They're a relative newcomer to the publishing world, but already they've managed to put together a pretty

[jQuery] Re: ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-06 Thread Aaron Heimlich
Sweet! Do you know if there's gonna be an eBook version available? On 4/6/07, Rey Bango <[EMAIL PROTECTED]> wrote: I'm VERY proud to announce that the first jQuery book, Learning jQuery, is now available for pre-order! jQuery Project Team member Karl Swedberg & Jonathan Chaffer have produced a

[jQuery] Re: toggle radio sets with a checkbox

2007-04-06 Thread phplord
thanks Glen,it works great On Apr 6, 9:30 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > On 4/6/07, phpLord <[EMAIL PROTECTED]> wrote: > > > > > Hi; > > > I have been trying to enable/disable 4 group of radio sets by checking > > and unchecking a checkbox. > > As a general rule of thumb, if you ha

[jQuery] Permission denied to call method XMLHttpRequest.open

2007-04-06 Thread SnapShot
The exception 'Permission denied to call method XMLHttpRequest.open' apparently gets thrown if you attempt to load content from JavaScript from another domain. Is this correct? I'm trying to write a simple script to load an RSS feed to display on my web site. What I thought would be a 5 minute

[jQuery] Iterating over returned XML

2007-04-06 Thread Paul Caton
I wonder if someone can point me to a tutorial or some examples that show me how to do the following. I am querying an XML db with a jQuery form (copied from the official form plugin). The form data goes to a PHP handler which then sends a POST method request to the db; the db returns an XML

[jQuery] Re: toggle radio sets with a checkbox

2007-04-06 Thread Glen Lipka
On 4/6/07, phpLord <[EMAIL PROTECTED]> wrote: Hi; I have been trying to enable/disable 4 group of radio sets by checking and unchecking a checkbox. As a general rule of thumb, if you have a "for" loop, then you probably could find those things with a selector. Like $("[EMAIL PROTECTED],[E

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread Dan G. Switzer, II
phutte, >Thanks Dan and Kristinn, happy coding. >$.post acts like ajax? $.ajax the same way like $.post, but for XML? >I only want to post it, and i thought i could have the message 'Remote >call in progress...', only cause it looks nice. But OK, i have to >settle for submitting not through jQuer

[jQuery] Re: Small Interface website update

2007-04-06 Thread Jeffrey Kretz
This is FANTASTIC! I was worried that with Ext you might not want to continue development. I personally prefer Interface, and my project would suffer greatly without it. Thanks for your continued work on this project. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAI

[jQuery] Re: dragging from an iframe?

2007-04-06 Thread Jeffrey Kretz
You are going to have problems with Internet Explorer on this one. There are security issues with creating an element under one context and moving it to another one. Prior to 1.1.3, the following code would fail in IE: $('Hello world').appendTo(iframe.contentWindow.document.body); This is due

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread phutte
Thanks Dan and Kristinn, happy coding. $.post acts like ajax? $.ajax the same way like $.post, but for XML? I only want to post it, and i thought i could have the message 'Remote call in progress...', only cause it looks nice. But OK, i have to settle for submitting not through jQuery. This was mo

[jQuery] toggle radio sets with a checkbox

2007-04-06 Thread phpLord
Hi; I have been trying to enable/disable 4 group of radio sets by checking and unchecking a checkbox. My function is like below, what's wrong with that, or any suggestions for this? var points=new Array("creativity","composition","aesthetic","technic"); for (j in points ) {

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread Dan G. Switzer, II
phutte, >A little testsite for any interested: >http://socken.se/temporary.jquery.googlegroups/ >the files index.php + ./myexlauncher/secretmenu.php is probably the >files of interest. There is no folders hidden in this temporary >version, and no security what-so-ever, so please handle with care.

[jQuery] Re: ***DHSPAM*** [jQuery] Re: is child of...

2007-04-06 Thread Karl Swedberg
On Apr 6, 2007, at 8:53 AM, bmckenzie wrote: $("#someParent").children().index(someElement) != -1 ; Cool, Bruce! you could also come at it from the other direction: if ( $('#someChild').parent('someElement').length ) { //do something }; --Karl _ Karl Swedberg www.eng

[jQuery] ANNOUNCE: New jQuery Book Available for Pre-Order!!

2007-04-06 Thread Rey Bango
I'm VERY proud to announce that the first jQuery book, Learning jQuery, is now available for pre-order! jQuery Project Team member Karl Swedberg & Jonathan Chaffer have produced a solid book that will get you up and running with jQuery in no time. To quote: "This book begins with a tutorial

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread Kristinn Sigmundsson
What I did on a page I was working on was just simply make a page refresh after the ajax was finished, didn't really go with the whole update thing, but the ajax call was still great so the page doesnt need refreshing if I input a faulty password. If this is ok then you could just do a function(

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Andy Matthews
Kristinn... I was already planning on checking to make sure the hidden div wasn't empty. That's def on the list...no need to do the call twice. And thanks for mentioning the parent() thing. I hate doing that, but I tried a few other things like directly referencing a specific parent and it didn

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Andy Matthews
Dan... The catch is that I'm not loading "all" of the info at once. It's technically still an on demand process. The user is initiating it by opening an accordion section. There's quite a lot of code coming back and the whole enchilada might take longer than we would like. So I think this is a go

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Kristinn Sigmundsson
I think I've seen something like this for stopping ajax calls: var ajaxcall = $.ajax() ajaxcall.abort(); As I said, I _think_ I've seen it, could be worth testing if it works. As for calling all the ajax calls, maybe a .each() might do the work? and btw, I noticed that you are making the ca

[jQuery] Re: UNfocus() ?

2007-04-06 Thread Kenneth
On 4/6/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: I was only suggesting a small simplification of your code. Ok, I gotcha now. Thanks Jörn!

[jQuery] Re: Stop pending AJAX processes?

2007-04-06 Thread Dan G. Switzer, II
Andy, If you want all the information to just be there, then include it in the original HTML and just hide it. The core benefit you gain by loading content "on demand" is you only send the data that's necessary. If you ended up doing a bunch of AJAX calls to load all the data, all you've done i

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread phutte
..also, it looks like shit in Internet Explorer, please favor Firefox!

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread phutte
A little testsite for any interested: http://socken.se/temporary.jquery.googlegroups/ the files index.php + ./myexlauncher/secretmenu.php is probably the files of interest. There is no folders hidden in this temporary version, and no security what-so-ever, so please handle with care. Click on the

[jQuery] Re: xpath question

2007-04-06 Thread Benjamin Sterling
Thanks Jörn. On 4/6/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Benjamin Sterling schrieb: > right now I am doing something like: > > $('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')') > > And that is working, should I change that to something like: > > $('/modules/

[jQuery] Re: xpath question

2007-04-06 Thread Jörn Zaefferer
Benjamin Sterling schrieb: right now I am doing something like: $('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')') And that is working, should I change that to something like: $('/modules/module:nth-child('+currentModule+')/groups/group:nth-child('+currentGroup+')')

[jQuery] Re: UNfocus() ?

2007-04-06 Thread Jörn Zaefferer
Kenneth schrieb: I don't think I understand. The code I originally posted will indeed add the .focus class to the element(s), however once focus is lost the .focus class remains. I was only suggesting a small simplification of your code. $inputs.focus(function(){ $(this).addClass('foc

[jQuery] Re: problems with the starterkit

2007-04-06 Thread Jörn Zaefferer
John Resig schrieb: $("#form").reset() should work if it is a correct form. (We attempt to trigger the default event wherever possible.) O wow, I just opened up the starterfile zip - it uses a version of jQuery that's pre-dates jQuery 1.0! Yikes. No wonder the code was acting strange f

[jQuery] Re: Small Interface website update

2007-04-06 Thread Rey Bango
Excellent work Stefan! This was a much needed feature and extremely helpful. I can't wait to see how Interface 2 turns out! I'm sure its going to be awesome and I especially like the fact that we continue to have a nice, tight & lightweight library for our effects and UI controls. Excellent!

[jQuery] Re: Using hoever() to highlight TR, but not thead? Works in FF but not IE.

2007-04-06 Thread Andy Matthews
That did the trick and only added two code elements. Thanks MichaL! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of MichaL Sanger Sent: Friday, April 06, 2007 8:44 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Using hoever() to highlight TR, but not the

[jQuery] Re: xpath question

2007-04-06 Thread Benjamin Sterling
right now I am doing something like: $('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')') And that is working, should I change that to something like: $('/modules/module:nth-child('+currentModule+')/groups/group:nth-child('+currentGroup+')') What would be the difference

[jQuery] Re: Using hoever() to highlight TR, but not thead? Works in FF but not IE.

2007-04-06 Thread Andy Matthews
Oh...can you do that? That would make perfect sense. I just didn't want to have to add a class to each TR unnecessarily. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of MichaL Sanger Sent: Friday, April 06, 2007 8:44 AM To: jquery-en@googlegroups.com Subject: [jQ

[jQuery] Re: UNfocus() ?

2007-04-06 Thread Kenneth
On 4/6/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Kenneth schrieb: > Excuse me while I talk to myselfit looks like I could just use > .blur(fn)nothing to see here, move along ;) You don't even need that each call, focus does that for you. -- Jörn Zaefferer http://bassistance.de

[jQuery] Re: jQuery post with blockUI-plugin, no refresh...

2007-04-06 Thread phutte
Dan the man! If i understand you right, i have to 'DIV' the whole BODY so that the whole page is updated? If i submit it without jQuery $.post, just submitting it to the 'index.php?dir=hastbilder' (also the same location where i'm at when submitting) as i have always submitted forms before, and gr

[jQuery] Stop pending AJAX processes?

2007-04-06 Thread Andy Matthews
First a small walk-through of what I've got now: http://www.commadelimited.com/uploads/psychic Right now, if you click any of the black images, it triggers an AJAX call which places it's response in a hidden div. That's easy enough and already works. In an effort to make this work as speedily as

[jQuery] dragging from an iframe?

2007-04-06 Thread [EMAIL PROTECTED]
Hi, How would I go about dragging a DIV from an iframe on my page to the main page itself? If anyone has any examples of how this is done, I am most grateful. Thanks, - Dave

[jQuery] Re: Using hoever() to highlight TR, but not thead? Works in FF but not IE.

2007-04-06 Thread MichaL Sanger
What about add tbody tag around table rows that are not in thead and then make this selector: $('#myTable tbody tr') MichaL 2007/4/6, Andy Matthews <[EMAIL PROTECTED]>: I've got a table which looks like this: Name Position Salary Seniority aaron systems 40,077 4 months

[jQuery] Re: Changing hidden form value based on select

2007-04-06 Thread Dan G. Switzer, II
Opus, >I have a form that I'm building in Drupal, that takes user input and >crafts a support request email. I'm using a drop down box to list >types of software that a client would need support with. I'd like to >pull the result of the select and put it into a hidden text field so I >can tailor

  1   2   >