[jQuery] ANNOUCE: idTabs plugin released!

2007-06-16 Thread Sean Catchpole
Phew, I finally finished getting the bugs out, so it's ready for release. What you say? Why it's idTabs of course. =P idTabs: http://www.sunsean.com/idTabs/ I made this plugin because I wanted a lightweight tabs plugin that would allow me to hide and show anything with an id. I opened the desig

[jQuery] Re: Dealing with Non existent nodes

2007-06-16 Thread RobG
On Jun 17, 4:06 pm, RobG <[EMAIL PROTECTED]> wrote: [...] > alert('The document title is: ' + o.title); Of course that should be o.text -- Rob

[jQuery] Re: Dealing with Non existent nodes

2007-06-16 Thread RobG
On Jun 17, 2:52 pm, "Scottus " <[EMAIL PROTECTED]> wrote: > I am using > > var title = document.getElementsByTagName('title').item(0).innerHTML; > > to get the content of a pages title tag. > > But if the page has no title tag I get > > "Error: document.getElementsByTagName("title").item(0) has n

[jQuery] Re: Dealing with Non existent nodes

2007-06-16 Thread Christopher Jordan
Why wouldn't you use something like this: $("title").val(); Chris Scottus wrote: I am using var title = document.getElementsByTagName('title').item(0).innerHTML; to get the content of a pages title tag. But if the page has no title tag I get "Error: document.getElementsByTagName("title")

[jQuery] Dealing with Non existent nodes

2007-06-16 Thread Scottus
I am using var title = document.getElementsByTagName('title').item(0).innerHTML; to get the content of a pages title tag. But if the page has no title tag I get "Error: document.getElementsByTagName("title").item(0) has no properties" and the script craps out. any ideas about how to deal wi

[jQuery] Re: Reading a querystring .... Thanks

2007-06-16 Thread Bruce MacKay
Thanks Eric - just the direction I needed. Cheers/Bruce At 01:26 p.m. 17/06/2007, you wrote: You can access the current URL from javascript via window.location Maybe try parsing window.location.href or window.location.search ? --Erik On 6/16/07, Bruce MacKay <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Form Element Collection

2007-06-16 Thread Ⓙⓐⓚⓔ
I haven't a clue what $F does, but unserialize is the opposite of serialize jQuery.fn.unserialize = function(search){ var items = search.split('&'); for (var i = 0; i < items.length; i++) { var parts = items[i].split(/=/); this.filter('[EMAIL PROTECTED]'+ parts

[jQuery] Re: How is "height" calculated?

2007-06-16 Thread Fred Janon
Great trick! I didn't think that absolute positioning would reset its values! Hopefully that works across browsers! Thanks Klaus and Rick! Fred On 6/17/07, Rick <[EMAIL PROTECTED]> wrote: > > > I think its not calculated, but just the value from css > (elm.style.height). The Dimensions plugin do

[jQuery] Could anyone send me a copy of Catfish Advert Plugin 1.3

2007-06-16 Thread phpletter
Hi there Could anyone send me a copy of Catfish Advert Plugin 1.3. its official site is offline now. thanks in advance. Logan from www.phplette.com

[jQuery] Re: Form Element Collection

2007-06-16 Thread Mike Alsup
John, The form plugin has a method called fieldValue which is a getter and is comparable to $F. Currently the plugin has no complementary setter method. Mike On 6/16/07, John Farrar <[EMAIL PROTECTED]> wrote: Does anyone have a way to pull individual form elements via a common request simu

[jQuery] Re: Form plugin, filling results into the fields

2007-06-16 Thread Mike Alsup
No, the form plugin does not do anything with the server response (other than pass it to your callback). What exactly is it that you need to do? Mike I'm not sure if I understand it right, does the form plugin move the results back into the form fileds after the call succeeds? If yes how has

[jQuery] Re: Form plugin parameter passing

2007-06-16 Thread Mike Alsup
O, You can add parameters using the beforeSubmit callback: $('#myForm').ajaxSubmit({ beforeSubmit: function(a, $f, o) { a.push({name: 'mode', value: '1'}); } }); Mike On 6/16/07, wyo <[EMAIL PROTECTED]> wrote: Is it possible to pass additional parameters to the AJAX call? On m

[jQuery] Re: Reading a querystring to determine an action - possible?

2007-06-16 Thread Erik Beeson
You can access the current URL from javascript via window.location Maybe try parsing window.location.href or window.location.search ? --Erik On 6/16/07, Bruce MacKay <[EMAIL PROTECTED]> wrote: Hi folks, I'm working on a site that, by default, has a RHS sidebar. I want to be able to select

[jQuery] Re: Plugin redesign option

2007-06-16 Thread Rey Bango
Hi Alexandre, I really believe that that depends on how Luke's code fits into your plans. If his code is easy to modify and maintain, then extending it might make sense. Otherwise, it might be best to evaluate what he's done and refactor code that might need improvement. Whether his code is g

[jQuery] Reading a querystring to determine an action - possible?

2007-06-16 Thread Bruce MacKay
Hi folks, I'm working on a site that, by default, has a RHS sidebar. I want to be able to selective hide that sidebar based on the value of a querystring. More specifically, there are times when I need the "whole" page to display a large table, so when I submit a post or call to the server

[jQuery] Plugin redesign option

2007-06-16 Thread Alexandre Plennevaux
Hello friends, i would like to redevelop my jqUploader plugin, rebuilding it around Luke Lutman's jquery Flash plugin. Doing so i guess mine becomes more of an extension than a standalone plugin. Hence, i would like to ask how to best articulate the two: in other words, should i just "use" L

[jQuery] Re: using spin button in a scrolling parent

2007-06-16 Thread orix
Hi George, Thank You for the great plugin, I'm just a happy user! and thank you also to all the jquery team, of course :)) I don't have a live website yet that I can show you, but I put up a simple example at: www.motivus.pt/spin While I was doing this, I noticed also that your plugin won't ac

[jQuery] Form Element Collection

2007-06-16 Thread John Farrar
Does anyone have a way to pull individual form elements via a common request simular to how they use $F() in prototypt? I would like to be able to set/get any form element value via this scope using the element ID. (Currently select boxes don't work the same as an input element to my perception.)

[jQuery] Re: Insert table row next to last row

2007-06-16 Thread Brad Perkins
That was easy! Thanks On Jun 16, 4:44 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > use a tfoot for your table and append to the tbody instead of the table. > > > > > Header 1 > Header 2 > Header 3 >

[jQuery] Re: How is "height" calculated?

2007-06-16 Thread Rick
I think its not calculated, but just the value from css (elm.style.height). The Dimensions plugin does calculate it (innerHeight, outerHeight -> elm.offsetHeight). On 16 jun, 16:49, "Fred Janon" <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to understand how the height of an element is calcula

[jQuery] Re: Insert table row next to last row

2007-06-16 Thread Ⓙⓐⓚⓔ
use a tfoot for your table and append to the tbody instead of the table. Header 1 Header 2 Header 3 ** Footer 1

[jQuery] Insert table row next to last row

2007-06-16 Thread Brad Perkins
I'm hoping this is just a simple selector question. I currently have this code which inserts a row at the end of a table. $('').appendTo("#my_table").html(rowcells); I need to add a footer row to the same table. Is there a simple modification to the the above code so that it would insert a row a

[jQuery] Re: How is "height" calculated?

2007-06-16 Thread Klaus Hartl
Fred Janon wrote: Hi, I am trying to understand how the height of an element is calculated in jQuery. I don't understand how the height can be calculated especially when the element is hidden with display:none. Thanks Fred Fred, if the particular element is hidden, it is absolutely

[jQuery] Re: getting the (computed) background-color

2007-06-16 Thread Rick
I'am not sure, but this one may be faster: // get the background color var current_p = $(this); var bg = "transparent"; while(bg == "transparent") { bg = current_p.parent().css('background-color'); current_p = current_p.parent(); } On 16 jun, 23:10, Fil <[EMAIL PROTECTED]> wrote:

[jQuery] getting the (computed) background-color

2007-06-16 Thread Fil
To retrieve the computed bgcolor of an element I had to do this: var bgcolor = jQuery(this).css('backgroundColor'); if (bgcolor == 'transparent') { jQuery(this) .parents() .each(function(){ var bg = jQuery(this).css('backgroundColor'); if (

[jQuery] Form plugin, filling results into the fields

2007-06-16 Thread wyo
I'm not sure if I understand it right, does the form plugin move the results back into the form fileds after the call succeeds? If yes how has the results look like? If no, what's the best solution? O. Wyss

[jQuery] Form plugin parameter passing

2007-06-16 Thread wyo
Is it possible to pass additional parameters to the AJAX call? On my page I have a get value (e.g. mode=1) which I'd like to pass to the called server function. Or do I have to store the value in a hidden input field so it's passed with the other fields? O. Wyss

[jQuery] Carousel / Sliding Images / Glider

2007-06-16 Thread Arne-Kolja Bachstein
Hi there, does anyone know a plugin that can slide images ltr/rtl as an endless animation? Or does anyone know how to implement this with an animate() call or something like this? I don't get it just using the animate thing. and I have not yet tried to create a plugin, because I do not know how

[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-16 Thread Ⓙⓐⓚⓔ
form plugin uses the same encoding that ajax will use... it's ajax... with the 2 lines to override it should work... I would like to see a live page, I can peek at the headers with firebug to see what is actually being sent (in the headers) but to see what is actually sent you need to add a littl

[jQuery] Re: Safari 3 and onload

2007-06-16 Thread Ⓙⓐⓚⓔ
I've used this a a test to see when things load... quite different loading times!! http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en"> blackout

[jQuery] Re: ANNOUNCE: Please Welcome New jQuery Team Member Glen Lipka

2007-06-16 Thread Glen Lipka
Doing the handshake all on your own? If you do that too often you will go blind. Punchline to a good jQuery joke: "So then the Priest said, "I thought that's what slideDown() was for!!" Glen On 6/16/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Karl Swedberg wrote: > Glen, > > I'm thrilled th

[jQuery] How is "height" calculated?

2007-06-16 Thread Fred Janon
Hi, I am trying to understand how the height of an element is calculated in jQuery. I don't understand how the height can be calculated especially when the element is hidden with display:none. Thanks Fred

[jQuery] Re: Printer Friendly Form Field Replacements

2007-06-16 Thread R. Rajesh Jeba Anbiah
On Jun 16, 2:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Here you go: > > http://rcs-comp.com/code_examples/jquery_form_print/ Code is nice, but I'm wondering--why not doing it with CSS (form fields with flat look) -- Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.bl

[jQuery] jQuery & CakePHP (Was Re: Validate RC2 Preview: Remember The Milk Signup)

2007-06-16 Thread R. Rajesh Jeba Anbiah
On Jun 16, 7:20 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > This is fantastic. A few of us in #cakephp are strong jQuery > advocates and we discussed this very thing as we want 'DRY' > conventions. We were thinking of a helper, but if it can be done as a > helper, or at the core that would be

[jQuery] Re: ANNOUNCE: Please Welcome New jQuery Team Member Glen Lipka

2007-06-16 Thread Klaus Hartl
Karl Swedberg wrote: Glen, I'm thrilled that you've officially joined the cult ... ummm ... I mean ... team. As a member of the welcoming committee, I'm pleased to announce that we have sent you some /fabulous/ membership prizes via carrier pigeon, including an upside-down flower pot, a 10%

[jQuery] Re: ANNOUNCE: Please Welcome New jQuery Team Member Glen Lipka

2007-06-16 Thread Klaus Hartl
Glen Lipka wrote: I want to thank all the little people. (Under 5 ft tall). Seriously, I have been involved in alot of 'communities' in the last decade and every single one was a complete pain in the ass. This is the very first one that I actually enjoy. I think its a testament to how easy

[jQuery] Re: Validate RC2 Preview: Remember The Milk Signup

2007-06-16 Thread Tane Piper
This is fantastic. A few of us in #cakephp are strong jQuery advocates and we discussed this very thing as we want 'DRY' conventions. We were thinking of a helper, but if it can be done as a helper, or at the core that would be fantastic. Can't wait to see this in action. On 6/16/07, R. Rajes

[jQuery] Re: url encoding for GET

2007-06-16 Thread Mike Alsup
Your $.ajax example is not correct. This line: data:"url="+url,num="+num, does not make sense and I'm surprised it's not throwing an error. Try changing it to: data:{url:url,num:num}, Mike On 6/16/07, joomlafreak <[EMAIL PROTECTED]> wrote: I wonder if this is normal I am sending a

[jQuery] Re: @mike: blockUI fix

2007-06-16 Thread Gilles (Webunity)
Cool! I'll be going to try and rebuild my administration site using blockUI (with ajax forms) instead of my own submodal (which is not so widely tested off course). I'll keep you posted Gilles

[jQuery] Re: Validate RC2 Preview: Remember The Milk Signup

2007-06-16 Thread R. Rajesh Jeba Anbiah
On Jun 14, 12:27 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > R.RajeshJebaAnbiahwrote: > > On Jun 13, 9:45 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > >> R.RajeshJebaAnbiahwrote:>FWIW, it's no way related to the plugin, but > >> I have patched CakePHP > > >>> to dump the validation rul

[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-16 Thread oscar esp
I have tested using FORM Plugin. Then It doesn't work by post either get. Sumary: test done with the patch. using ajax call: -works by get -doesn't work by post using ajaxForms: -doesn't work by post -doesn't work by get. Any other suggestion ake? Thanks for your help.

[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-16 Thread R. Rajesh Jeba Anbiah
On Jun 14, 10:17 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Well stated Rey. > These are steps that I believe will help jQuery be adopted by the > mainstream audiences. >1. A plugin repository that is completely coordinated. I have shared my humble suggestion on SVN repo structure lo

[jQuery] Re: encodeURIComponent localized for custom encoding

2007-06-16 Thread oscar esp
I have added but the problem persist using "post" method. :-( On 15 jun, 21:37, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > there is supposed to be a space before the word charset. Not sure if that's > causing the problem... keep testing! > > jQuery.ajaxSetup({contentType: "application/x-www-form-urlenco

[jQuery] Re: ANNOUNCE: Please Welcome New jQuery Team Member Glen Lipka

2007-06-16 Thread Alexandre Plennevaux
indeed, beyond the natural kindness that natures gave to each of us jquerians, the friendliness around this community is in good proportions due to how easy it is to help others, since jquery is not 54657+ commands. Believe me, i know what i'm talking about: in comparison look at flash, from act

[jQuery] url encoding for GET

2007-06-16 Thread joomlafreak
I wonder if this is normal I am sending a url to server in query string. If I use $.get, like this $.get(queryfile,{url:url,num:num},function(output){ ... }); the url is encoded as it is sent. BUT if I use $.ajax({ type:"GET", url:queryfile, data:"url="+url,num="+num, success:function(output){

[jQuery] Re: Safari 3 and onload

2007-06-16 Thread Erik Beeson
$(document).ready(...) is when the dom and scripts are ready. $(window).load(...) is when the layout has been calculated and all images have been loaded. What other events might be useful? --Erik On 6/15/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: very interesting! what is loaded to you? loaded to me

[jQuery] Re: ANNOUNCE: Please Welcome New jQuery Team Member Glen Lipka

2007-06-16 Thread Erik Beeson
On 6/15/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: and a 5-page, 4-color instructional brochure detailing the secret jQuery Team handshake. Which isn't so secret anymore since it was recently leaked onto youtube: http://www.youtube.com/watch?v=vVge3CiE5uU --Erik