[jQuery] Re: newbie - need help finding element

2007-12-13 Thread Marc Jansen
Hi, try this: (untested) $( document ).ready( function (){ $('#gallery ul li').click( function () { // resetting other images $( '#gallery ul li' ) .removeClass('selected') .removeClass('thumb-hover') .find('img').fadeOut('slow'); //

[jQuery] Animation glitch in Innerfade

2007-12-13 Thread withoutwax
Hi All, I have created a fading rotating section on my new travel site which is designed to cycle through a number of special offers. When the page loads it created 3 ul which innerfade works on perfectly. Visitors to the site are able to view more info on hotels which removes the special

[jQuery] Re: Jaiku's jQuery plugs (http://jaiku.com/js/core.js)

2007-12-13 Thread Klaus Hartl
On 13 Dez., 07:29, John Resig [EMAIL PROTECTED] wrote: Good find - some real interesting code in there. --John Extra cool, I'm using Jaiku (= carhartl to whoever may be interested) and like it pretty much. Even better it uses jQuery... --Klaus

[jQuery] Re: using :contains() selector with $(this)

2007-12-13 Thread Wizzud
As with anything else there are a number of ways of going about this, and which one you use depends a lot on what you want to do with the result. One thing to point out with your $(this:contains(...)) example is that 'this' is usually an object variable and ':contains(...)' is a string and you

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Vincent Majer
thanks, nice work and useful ! Jason Levine a écrit : This is my first JQuery plugin in awhile. I needed to put up a series of Add To Digg-style links on the http://www.ShootingForACause.com/2008/ Shooting For A Cause website. After collecting the images and links, I realized that this

[jQuery] Re: Returning a new collection from a method

2007-12-13 Thread Wizzud
pushStack() should return its argument as a jQuery object. So if you give it an array of elements it should come back as a jQuery 'collection' of those elements. $([]) gives an empty jQuery object. On Dec 12, 7:49 pm, McLars [EMAIL PROTECTED] wrote: I could not get the first example to work.

[jQuery] Share my trick to debugger Jquery with FireBug

2007-12-13 Thread Mario Moura
Hi I would like to share my trick to debugger Jquery with FireBug. It isnt advanced but could be useful to start debugg Jquery Code. So your page load and now you will start a lot of functions and in the middle of ones you want do, $(#mytarget).append($(something)); (or more complicate tasks)

[jQuery] Re: Share my trick to debugger Jquery with FireBug

2007-12-13 Thread Jörn Zaefferer
Hi Mario, you can also create a new watch expression and enter there whatever you want to watch, eg. $(#mytarget). That avoids the need to modify your code. Another interesting approach to avoid creating variables while using logging as a debug plugin, something like this: $.fn.debug =

[jQuery] Shared variables, events, and namespaces...

2007-12-13 Thread Micky Hulse
Just wondering what would be the best way to handle shared variable(s) between different events... for example: var ele = '#foo'; $(document).ready(function() { $(ele). // ... Do something with 'ele'... }); $(window).load(function () { $(ele). // ... Do something with 'ele'...

[jQuery] Need some help to solve this problem - A jquery Newbie

2007-12-13 Thread Jason
Here is the source. This is a navigation . when the mouse over Menu1 , the items will show up. It will work well in most case. But what if there are so many items that will exceed the bottom of the client window. The scrollbar will show up in the web browser .What I want is to add a new item or

[jQuery] Re: is there a way use jquery.validate filter special characters?

2007-12-13 Thread Jörn Zaefferer
phpprogrammer.cn schrieb: is there a way use jquery.validate filter special characters? like some one want to input *^% as username, is there a way to solve it? You can add your own validation method and apply that to your username field. Give this a try:

[jQuery] jQuery + idTabs + Prototype

2007-12-13 Thread rem
Hello, I have a Wordpress theme which has few plugins based on jQuery also works with an indispensable Wordpress plugin which is based on Prototype. I used the jQuery non conflict mode call and managed to avoid the conflict for most of all but the idTabs plugin. As long as Prototype is loaded,

[jQuery] Re: UI Tabs / Tabs 3

2007-12-13 Thread Richard W
Ahh yes i can see the logic in that. Thank you Klaus On Dec 13, 3:18 am, Klaus Hartl [EMAIL PROTECTED] wrote: On 12 Dez., 11:26, Richard W [EMAIL PROTECTED] wrote: I was wondering if there is any way of making the tabs still retain their original link after you have click on a tab. IE

[jQuery] Fade-in on page load... Best technique?

2007-12-13 Thread Micky Hulse
Hey all. I just wanted to fade-in an ele on page load... What would you suggest for a technique? I found a thread on this list that suggested using: CSS: .js .col { display:none; } JS: $(document) .addClass('js') .ready(function() { $('.col').fadeIn('slow'); ... ... or, do this: $(document)

[jQuery] is there a way use jquery.validate filter special characters?

2007-12-13 Thread phpprogrammer.cn
is there a way use jquery.validate filter special characters? like some one want to input *^% as username, is there a way to solve it? thanks

[jQuery] Re: JCarousel: flexi height images in vertical carousel

2007-12-13 Thread theneemies
Any thoughts folks?

[jQuery] .end()

2007-12-13 Thread KidsKilla .grin! wuz here
Couple times I've seen jQuery examples, where used .end() function: http://docs.jquery.com/Tutorials:How_jQuery_Works (Chainability) Is there any reason to paste .end() as the last function of chain? -- Максим Игоревич Гришаев, AstroStar.ru

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-13 Thread Andy Matthews
Ah look at that. I could have sworn I did a search on his demo page for that version. Thanks for pointing it out! Can't wait to use it. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Shank Sent: Wednesday, December 12, 2007 11:27 PM To:

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Andy Matthews
Mind you, I'm not deriding the plugin itself, which seems to work just dandy. I'm just wondering why you chose to do it via JS vs straight code. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, December 13, 2007 8:09

[jQuery] Re: .end()

2007-12-13 Thread John Resig
If it's the last function, and you're not chaining anything after it, then no. I tend to do that simply so that I can remember to end my chains properly, but it's not required. --John On Dec 13, 2007 8:58 AM, KidsKilla .grin! wuz here [EMAIL PROTECTED] wrote: Couple times I've seen jQuery

[jQuery] Re: tablesorter onafer feature?

2007-12-13 Thread tlphipps
The tablesorter actually has a built-in widget that does the zebra striping that you describe. You might want to look at tablesorter.com for info on that widget. On Dec 12, 3:32 pm, [EMAIL PROTECTED] wrote: Something like this should do the trick: $(.tablesorter tr).mouseover(function() {$

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Jason Levine
I just added some features to JAddTo. You can now add custom entries. To accommodate this, I changed the IncludeSites option from a comma-delimited string to an array of strings/objects. If the entry is a string, it uses the pre-defined list like before. If, however, the entry is an object,

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-13 Thread Andy Matthews
Awesome! Thank you!! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danny Sent: Wednesday, December 12, 2007 11:26 PM To: jQuery (English) Subject: [jQuery] Re: LavaLamp for jQuery 1.2.x? I modified it to run under 1.2, with the most recent

[jQuery] Re: cf ajax example

2007-12-13 Thread Steve Clason
interarnett wrote: I have created a simple app screen based off of the example/tutorial on jquery website for coldfusion and ajax. snip There is a parameter for success in ajax call. Success never happens it only comes back and says that there is an error but do not know how to trap for

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Andy Matthews
No offense, but why should this be done via Javascript? All it appears to be is a series of icons linked to their respective websites. Wouldn't it just be easier to have this as a server side include, or something like that? I don't see anything in this plugin that should require client-side

[jQuery] Re: ui.datepicker causes IE operation aborted

2007-12-13 Thread KidsKilla .grin! wuz here
omg. is there any reason to use jquery from iframe? whatever, if you have access to the parent window from iframe, you should use smt like this: $(myParentWin.document).ready() not just $(document).ready() or maybe i missed smt... 2007/12/13, R. Rajesh Jeba Anbiah [EMAIL PROTECTED]: On Dec

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Jason Levine
Mind you, I'm not deriding the plugin itself, which seems to work just dandy. I'm just wondering why you chose to do it via JS vs straight code. Well, part of it was the nature of the site I needed it for. It was to appear on a CafePress shop site and while CafePress gives some good options

[jQuery] Re: [PLUGIN] JAddTo

2007-12-13 Thread Andy Matthews
That's a perfect example of why to make it a plugin. For those people who might not have access to server side programming, your JS is a perfect solution. Well done, and in fact I might use it on a site I'M building. andy -Original Message- From: jquery-en@googlegroups.com

[jQuery] wrap() issue

2007-12-13 Thread Alexandre Plennevaux
hi! i'm trying to create a menu on the fly, by parsing selectors and creating a unordered list, but i must be getting the wrap(() function wrong as that bit does not get generated: $('ul id=mainmenu_level2 class=mycarousel mainmenu jcarousel-skin-labau').appendTo('#header'); $('#dsViewport

[jQuery] General question regarding AJAX and callbacks

2007-12-13 Thread Rémi Prévost
Hello, I've got the following code: function validateServer(value) { var valid; $.get(validate.php, { value : value }, function(data) { valid = (parseInt(data) === 1) ? true : false; } return valid; } As you may have noticed, it doesn't work because the return valid

[jQuery] Re: this:contains selector

2007-12-13 Thread Glen Lipka
Something like this might work...not tested. $(this).is(:contains(matchingText)) Glen On Dec 12, 2007 4:55 PM, Van [EMAIL PROTECTED] wrote: The contains selector works fine with tags (a:contains()) etc. but doesn't seem to work with $(this). What is the best way to use contains with this??

[jQuery] Re: Need some help to solve this problem - A jquery Newbie

2007-12-13 Thread Glen Lipka
It might help to see an example online. It sounds like you want to scroll the window based on a specific scenerio. You may need the following plugins: http://www.freewebs.com/flesler/jQuery.LocalScroll/ OR http://www.freewebs.com/flesler/jQuery.ScrollTo/ AND

[jQuery] Re: jQuery + idTabs + Prototype

2007-12-13 Thread Glen Lipka
Have you tried the 1.2.1 version? I didnt realize the noconflict stuff worked in 1.1 Glen On Dec 13, 2007 2:36 AM, rem [EMAIL PROTECTED] wrote: Hello, I have a Wordpress theme which has few plugins based on jQuery also works with an indispensable Wordpress plugin which is based on

[jQuery] Re: .end()

2007-12-13 Thread KidsKilla .grin! wuz here
ok, thanx, John! 13.12.07, John Resig[EMAIL PROTECTED] написал(а): If it's the last function, and you're not chaining anything after it, then no. I tend to do that simply so that I can remember to end my chains properly, but it's not required. --John On Dec 13, 2007 8:58 AM, KidsKilla

[jQuery] JQuery Intellisense support in Visual Studio 2008

2007-12-13 Thread bartender
Hello everybody, does anyone know if a JQuery version exists that is compatible with visual studio 2008, so that developer can use the new intellisense support? Thank you in advance

[jQuery] height() and width() returning incorrect values in Opera

2007-12-13 Thread Action
I'm using height() and width() to find the dimensions of some inline images in the html. FF and IE work fine, but Opera is returning incorrect values. For example, it returns 92px as the width of an image that is actually 160px wide. How can I fix this?

[jQuery] Re: General question regarding AJAX and callbacks

2007-12-13 Thread Rémi Prévost
Oh, and I meant, with an asynchronous request. Sorry, On 13 déc, 09:52, Rémi Prévost [EMAIL PROTECTED] wrote: Hello, I've got the following code: function validateServer(value) { var valid; $.get(validate.php, { value : value }, function(data) { valid =

[jQuery] Drag and Resize

2007-12-13 Thread John
Hi All, Does anyone know how I can move a div to the mouse position onMouseDown and resize the div until onMouseUp? Any help would be appreciated. John.

[jQuery] Re: height() and width() returning incorrect values in Opera

2007-12-13 Thread Action
.css('height') also returns the same incorrect values. Also, there is no height or width attribute defined in the image tag. It has to be able to pull this dynamically. FF and IE don't have any problem with this, just Opera. On Dec 13, 10:25 am, Action [EMAIL PROTECTED] wrote: I'm using

[jQuery] jquery.flash plugin with parameter and variables.

2007-12-13 Thread starepod
Hello everyone, I'm a little out of my depth and am looking for a some help. I am attempting to use the a href=http://www.jeroenwijering.com/? item=JW_FLV_PlayerJW FLV Player/a with the a href=http:// jquery.lukelutman.com/plugins/flash/jQuery Flash Plugin/a by Luke Lutman. The issue I am

[jQuery] scrolling browserwindow while dragging elements

2007-12-13 Thread Niels
Currently I'm using Interface (http://interface.eyecon.ro) for dragging and dropping elements. I have adjusted the autoscroller a bit so that it now works with all browsers, but Interface needs JQuery 1.1.2 for support. I would actually like to update to the latest version of JQuery and if

[jQuery] Re: Fade-in on page load... Best technique?

2007-12-13 Thread Glen Lipka
Maybe put a piece of JS at the beginning of the page before anything else, that adds the display:none dynamically. It SHOULD avoid a page blinking and hide the contents before they load. If JS is off, then the cols would be visible. Then once everything is loaded use the fadeOn(slow) function.

[jQuery] Re: No border on div when there should be?

2007-12-13 Thread Suni
You're missing bottom border style: .css('border-bottom-style', 'solid')

[jQuery] Jquery Forms - On the Fly

2007-12-13 Thread Mario Moura
Hi I want create a AJAX Forms on the fly. $(#mychild).ajaxForm({ success: function(data) { $(#target).append($('#OnTheFly').clone().attr({ style: display: })); $(#Myid).val(data); // Here I get the reponse of this Ajax }

[jQuery] scrolling browserwindow while dragging elements

2007-12-13 Thread Niels
Hmmm, where did my previous post go? (hope this won't be a double post) Currently I'm using Interface (http://interface.eyecon.ro) for dragging and dropping elements. I have adjusted the autoscroller a bit so that it now works with all browsers, but Interface needs JQuery 1.1.2 for support. I

[jQuery] slideToggle causes links to disappear

2007-12-13 Thread Ange
On this page... http://www.circleatseven.com/PROJECTS/mockup/home.php ...in the right sidebar, the links in the Campus Guide menu don't show up in IE7 after the containing div's visibility is toggled. I'm assuming it's the same issue in the drop-down main menu causing those links not to show in

[jQuery] Re: wrap() issue

2007-12-13 Thread Karl Swedberg
Hi Alexandre, I think an element needs to be inserted in the DOM before it can be wrapped. Try it this way: $('ul id=mainmenu_level2 class=mycarousel mainmenu jcarousel-skin- labau/ul').appendTo('#header'); $('#dsViewport h3').each(function(index){ var $this =

[jQuery] Re: this:contains selector

2007-12-13 Thread Josh Nathanson
Or the underutilized second argument of jQuery, the context: $(:contains('whatever'), this) -- Josh - Original Message - From: Glen Lipka To: jquery-en@googlegroups.com Sent: Thursday, December 13, 2007 7:49 AM Subject: [jQuery] Re: this:contains selector Something

[jQuery] Re: Creating plugins

2007-12-13 Thread Eridius
Yea, i guess your right. jQuery has grown on me the past few month and know I would why I wanted to use mootools instead. Dan G. Switzer, II wrote: guess) it a pain. the javascript class code structure it also very akword to be coming from a C++ background. Amen, and i had the same

[jQuery] Re: Creating an empty jQuery collection

2007-12-13 Thread McLars
Perfect! Thank you! On Dec 12, 11:05 pm, Aaron Heimlich [EMAIL PROTECTED] wrote: var emptyJQueryCollection = jQuery([]);

[jQuery] Re: Need some help to solve this problem - A jquery Newbie

2007-12-13 Thread Jason
ok. I will try it Thank U On Dec 13, 11:57 pm, Glen Lipka [EMAIL PROTECTED] wrote: It might help to see an example online. It sounds like you want to scroll the window based on a specific scenerio. You may need the following plugins:

[jQuery] Re: jquery.flash plugin with parameter and variables.

2007-12-13 Thread starepod
So, i looked at the plugin and found this line: * @desc The default set of options for the object or embed tag. and added the following lines: allowscriptaccess: 'always', allowfullscreen: 'true' and that did the trick. Although, I may still play with a method that does not

[jQuery] Re: this:contains selector

2007-12-13 Thread Van
Glen that gave me an error, but perhaps I did it wrong. It's a little confusing when learning jQuery when to use .is, .filter, .find, etc. So Wizzud helped me with this post: http://groups.google.com/group/jquery-en/msg/017fc4129992dd94 I went with: $('ul.list a:contains(' + toMatch + ')')

[jQuery] Re: using :contains() selector with $(this)

2007-12-13 Thread Van
Wizzud, Thank you for the great response... $('ul.list a:contains(' + toMatch+ ')') .each(function(){ }); fits what I am doing perfectly. I was so close in my attempts but never could get the syntax exactly correct with contains. Your post helped very much. Thank you On Dec 13,

[jQuery] Re: General question regarding AJAX and callbacks

2007-12-13 Thread David Decraene
You could make a synchronous ajax call instead, but it will lock the browser until a response is received: something roughly along these lines: $.ajax({ type: GET, url: validate.php, data: {value: somevalue} async: false, dataType: somedatatype, success: function(data){...} }); or maybe try and

[jQuery] Re: Jquery Forms - On the Fly

2007-12-13 Thread Mario Moura
Ok A lot of people are looking for this so I will share the solution. So the Solution is very easy: $(#mychild).ajaxForm({ success: function(data) { $(#target).append($('#OnTheFly').clone().attr({ style: display: })); $(#Myid).val(data); //

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread Bernd Matzner
Hi Benjamin, any progress on your xml loading problem in IE locally? I'll be fiddling with it some more tonight, so I'll let you know anything I find out. Bernd

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread Benjamin Sterling
Sadly we can't convert to json because the site is already built out and all the code is using xpath. I am sure there is an easy way to convert the xml doc to json and then make the changes to the code, but I don't think I can get that cleared without putting on a song and dance. On 12/12/07,

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread Benjamin Sterling
Not yet, I think I am going to have to check to see if it is IE and use IE specific code. I'll let you know what I come up with. On 12/13/07, Bernd Matzner [EMAIL PROTECTED] wrote: Hi Benjamin, any progress on your xml loading problem in IE locally? I'll be fiddling with it some more

[jQuery] jQuery + call PHP function

2007-12-13 Thread uraz
I'm wondering how can I asynchronously call the php function which is placed in the same file as the js code and html (just on the top of it, before the html). Something that 'xajax' do. Thanks for replies

[jQuery] Operation Aborted - error on IE 6 + 7

2007-12-13 Thread BarakLevy
Hello all, I build a website using some jquery script it works fine on FF but on the IE i get error: Operation Aborted the site is: http://www.tween-id.com/develop/pitsou/index.shtml you need to go into projects - selected projects and click on one of the projects, like:

[jQuery] find and replace text in a variable

2007-12-13 Thread Marcelo Wolfgang
Hi all, I've a form with a numeric drop down ( from 1 to 10 ) and when the user select a number from it, I want to add the corresponding number of textfields in my code, but I need to change the input name and I can't figure out how to do that this is what I have right now

[jQuery] Re: height() and width() returning incorrect values in Opera

2007-12-13 Thread Action
Looks like it's a bug with Opera: http://dev.opera.com/articles/view/jquery-write-less-do-more/#gotcha On Dec 13, 11:09 am, Action [EMAIL PROTECTED] wrote: .css('height') also returns the same incorrect values. Also, there is no height or width attribute defined in the image tag. It has to

[jQuery] Re: Fade-in on page load... Best technique?

2007-12-13 Thread polyrhythmic
Hello Micky, I've solved a similar problem: I use a technique to cover up my pages in Internet Explorer until the PNGs can be fixed, and then I fade out the cover. On Dec 12, 11:25 pm, Micky Hulse [EMAIL PROTECTED] wrote: I would like to avoid hiding my ele in the CSS... Because, if JS is

[jQuery] Re: jQuery + call PHP function

2007-12-13 Thread Jake McGraw
This would call the PHP script that originally produced the page (stored in window.location.toString()) using AJAX: $.get(window.location.toString(),{/* Put $_GET variables here */},function(data){ /* Do something with data here */ }); - jake On Dec 13, 2007 2:35 PM, uraz [EMAIL PROTECTED]

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread David Serduke
I think the problem is when loading from a local file the Content-Type isn't set to text/xml so IE doesn't bother to parse it. One possible work around is to load it as text in IE and then parse it yourself like: $.ajax({ url: data.xml, async: false,

[jQuery] using grep with a list rather than an array

2007-12-13 Thread cfdvlpr
Is it possible to use grep on a list or only on an array? If not possible with a list, how do you convert a list to an array?

[jQuery] [SITE SUBMISSION] BigCarrot.com

2007-12-13 Thread Jake McGraw
Hey Everyone: I'd like to submit the site I've been working on for 5 months or so: www.bigcarrot.com Think crowd-sourced inducement prizes (give yourself a high five if any of that makes sense to you). We're using jQuery (little Ajax, site wide fixes for IE forms) and jqModal throughout the

[jQuery] Re: [SITE SUBMISSION] BigCarrot.com

2007-12-13 Thread Josh Nathanson
Jake, that looks really cool, and a great idea. My one beef: I hate when link colors are the same as the regular text. IMHO links should be set off from the regular text in some way so it is immediately evident what is clickable. -- Josh - Original Message - From: Jake McGraw

[jQuery] Re: find and replace text in a variable

2007-12-13 Thread Wizzud
for(var i = 1; i = materias_num; i++){ $(#fd_opcoes).append(loop.replace(/1/g,''+i)); } On Dec 13, 7:18 pm, Marcelo Wolfgang [EMAIL PROTECTED] wrote: Hi all, I've a form with a numeric drop down ( from 1 to 10 ) and when the user select a number from it, I

[jQuery] how to trigger a functionality when 2 fields are filled

2007-12-13 Thread pixeline
hello! in a complex form i'm working on, there are 2 textfields allowing to specify a startdate and an enddate. I need to display an additional form UI ( spanning the weeks in between the two dates) WHEN the two fields are filled in. I have absolutely no idea on how to make such an event. I

[jQuery] operation aborted error - please help

2007-12-13 Thread BarakLevy
Hello, I programmed a site using a fade effect in the image gallery: http://www.tween-id.com/develop/pitsou/EinVeredHouse1.shtml On the FF is works fine but on the IE I sometimes get error Can you help me? The home page of this site is: http://www.tween-id.com/develop/pitsou/index.shtml Go

[jQuery] element array

2007-12-13 Thread Goon
how would you create an array of all visible elements? (exclude hidden elements)

[jQuery] jQuery sendEvent('stop')

2007-12-13 Thread Ange
Does anyone know how to have a jQuery click function sendEvent('stop') to a JW Media Player (http://jeroenwijering.com/)? I can do it w/ a text link: a href=javascript:sendEvent('stop')Stop loading and playing/a But I need to have it on a jQuery click with default disabled. Anyone?

[jQuery] array of elements

2007-12-13 Thread Goon
how would you create an array of all visible elements (excluding hidden elements)?

[jQuery] Re: Inline Ui-Datepicker mindate not working as expected

2007-12-13 Thread Sudrien
Marc replied - the now-working code is: $(document).ready(function() { $('#deliveryDate').val($.datepicker.formatDate('mm/dd/yy', new Date())); $('#cali').datepicker({ onSelect: function(date) { $('#deliveryDate').val(date); }, changeFirstDay: false, minDate: new

[jQuery] Re: element array

2007-12-13 Thread Josh Nathanson
$(:visible) -- Josh - Original Message - From: Goon [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, December 13, 2007 2:35 PM Subject: [jQuery] element array how would you create an array of all visible elements? (exclude hidden elements)

[jQuery] Re: [SITE SUBMISSION] BigCarrot.com

2007-12-13 Thread Jake McGraw
Thanks for the feedback guys, Josh, Mike: thanks for getting it, we figure that's half the battle in getting people to use our site. It's incredibly refreshing to get some positive feedback. I 3 the jQuery community. - jake On Dec 13, 2007 6:18 PM, Mike Alsup [EMAIL PROTECTED] wrote: Great

[jQuery] Re: tablesorter onafer feature?

2007-12-13 Thread Christian Bach
Hi, there is a new undocumented features for this type of behaviour take a look at: http://tablesorter.com/docs/example-triggers.html /christian 2007/12/12, Arturo [EMAIL PROTECTED]: I use a code to bgcolor odd table rows in my tables. Something like: code

[jQuery] Re: Fade-in on page load... Best technique?

2007-12-13 Thread Micky Hulse
Hi Glen and Charles, many many thanks for your help. Great advice and tips. :) This list is great! I can not wait until I can start helping others with questions. Anyway, both of you have helped emensley. Much appreciated. Have a great day/night. Cheers, Micky (Btw, nice sites Charles, very

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-13 Thread Andy Matthews
FYI Danny... I put your change in place, downloaded the most recent versions of both jQuery (jquery-1.2.1.pack.js), and Easing (jquery.easing.1.3.js) and now each time I mouseover a button I get about 100 js errors, all saying: E.easing[this.options.easing || (E.easing.swing ? swing : linear)]

[jQuery] Re: array of elements

2007-12-13 Thread Karl Swedberg
Hmmm. If you have a fairly complex page, this could be slow, but here's one idea: An array-like jQuery object of all visible elements: $(':visible'); An actual array of all visible elements: $.makeArray( $(':visible') ); --Karl _ Karl Swedberg www.englishrules.com

[jQuery] Re: how to trigger a functionality when 2 fields are filled

2007-12-13 Thread Karl Swedberg
Hi Alexandre, Could you just use the .change() method and use an if statement? pseudo-code: $('input1, input2').change(function() { if ( input1.value input2.value ) { // do your thing. } I might be misunderstanding the question, so please clarify if I've got it all wrong. :-)

[jQuery] Re: Shared variables, events, and namespaces...

2007-12-13 Thread Micky Hulse
Hmmm, would it be standard procedure to put $(window).load() within $ (document).ready()? Also, anyone know of any basic class examples for jQuery? Thanks! :) Cheers, Micky On Dec 13, 12:14 am, Micky Hulse [EMAIL PROTECTED] wrote: Just wondering what would be the best way to handle shared

[jQuery] Re: Simple Table Filter

2007-12-13 Thread Bryan Blakey
Have you figured out a solution for this problem yet? If not, you can use a function similar to this: function filterTable(pstrValue) { if( pstrValue == 'none' ){ $('#my_table tbody tr').show(); } else { $('#my_table tbody

[jQuery] Re: Shared variables, events, and namespaces...

2007-12-13 Thread Erik Beeson
If you're just looking to keep from polluting the global namespace, you can wrap all of your code in a closure. Lots of info here: http://www.google.com/search?q=javascript+closures For example (untested): (function() { var ele = '#foo'; $(document).ready(function() { $(ele). // ...

[jQuery] Re: Shared variables, events, and namespaces...

2007-12-13 Thread Micky Hulse
Erik, OMG, thanks!!! That is exactly what I was looking for... Also, thanks for the extra tips, that makes perfect sense! Woot! jQuery rocks! Much appreciated. Have a great day/night. ;) Cheers, Micky On Dec 13, 7:47 pm, Erik Beeson [EMAIL PROTECTED] wrote: If you're just looking to keep

[jQuery] preloading images with jquery in IE

2007-12-13 Thread ekallevig
I'm having some issues preloading images with jquery in IE. I tried just creating the image in memory with the appropriate source like this: $(' ').attr('src',iBuildThePathHere); But only Firefox will preload the image that way. The only way I've been able to successfully achieve the

[jQuery] jQuery select option with errors for IE 6

2007-12-13 Thread vasten
Hi: It seems that the following code snippet works for IE 7 and FireFox but not for IE6: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; head title/title meta

[jQuery] Re: Shared variables, events, and namespaces...

2007-12-13 Thread Klaus Hartl
On 14 Dez., 04:47, Erik Beeson [EMAIL PROTECTED] wrote: Then ele will just be available for the scope of your closure. Also, if you really are doing something like your example, you might as well cache the jQuery object instead of the selector to save having to look it up twice. A good

[jQuery] Re: Shared variables, events, and namespaces...

2007-12-13 Thread Klaus Hartl
On 14 Dez., 08:55, Klaus Hartl [EMAIL PROTECTED] wrote: On 14 Dez., 04:47, Erik Beeson [EMAIL PROTECTED] wrote: Try: (function() { var $ele; $(document).ready(function() { $ele = $('#foo'); $ele. // ... Do something with 'ele'... }); $(window).load(function () {