[jQuery] show/hide with embed

2009-10-16 Thread ngreenwood6
Ok so I found an issue with using embed code and jquery's show()/hide () method. I am using embed code inside of a div. so it looks something like this: div id=test embed whatever here /embed /div now on that I want a user to be able to click a button to show/hide the content. so i create a

[jQuery] Re: show/hide with embed

2009-10-16 Thread Evgeny Bobovik
Try to use this method: script type=text/javascript function showEmbed(){ if($(#test).css('display') == 'block'){ $(#test).css('display','none'); } else { $(#test).css('display', 'block'); } } /script Gk___ 2009/10/16 ngreenwood6 ngreenwo...@gmail.com:

[jQuery] Re: HELP!!! css content filters

2009-10-16 Thread Evgeny Bobovik
try to use this function script function test(){ var ind = 0; $('ul').find('li').each(function(){ if (ind == 2){ $(this).css('test_css'); ind = 0; }else{ ind++; } }); } /script Gk___ Sent from Minsk, Belarus 2009/10/16 huntspointer2009

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Thanks a lot, Karl. Your code dit it. Now are several events (like key strokes and checkbox changes) for which the same code must be run. So, I would like to retrieve the siblings from within a function. The problem I encounter with the code below is how to retrieve in jQuery the caller

[jQuery] Re: jquery preload images

2009-10-16 Thread kknaru
nobody? :(

[jQuery] When mouse over then Fade transition Pause, Please help

2009-10-16 Thread Tan
Hi, I have see a plugin : Fade transition plugin for jQuery Please see demo: http://www.robpoyntz.com/blog/?m=200905 I want when i mouse over then Fade transition stop and when i mouse out then it start. I create a code: $(.container).mouseover (function() { $(this).stop(); }); but it's not

[jQuery] Re: jquery preload images

2009-10-16 Thread Leonardo K
the callback of load function is called when the ajax request is complete (this not include waiting images to load). You have to use some plugin to preload images. On Fri, Oct 16, 2009 at 08:26, kknaru isai...@gmail.com wrote: nobody? :(

[jQuery] Re: calculating value based on two sliders

2009-10-16 Thread Richard D. Worth
Something like this perhaps: http://jsbin.com/enuxu source code: http://jsbin.com/enuxu/edit - Richard On Wed, Oct 14, 2009 at 2:28 PM, DekiR roncevic.de...@gmail.com wrote: HI, I am new to jquery and I am trying to calculate a value based on two sliders. Can somebody help me or point

[jQuery] Re: calculating value based on two sliders

2009-10-16 Thread Richard D. Worth
Oh, and if you have any future questions about jQuery UI plugins, note there's a separate list for those: http://groups.google.com/group/jquery-ui http://groups.google.com/group/jquery-ui- Richard On Fri, Oct 16, 2009 at 8:28 AM, Richard D. Worth rdwo...@gmail.com wrote: Something like this

[jQuery] Re: show/hide with embed

2009-10-16 Thread ngreenwood6
I tried doing that as well and it still does the same thing. It must be changing the display that makes it reload. To test all you have to do is create a div with embed code and call show/hide on it and you will see. On Oct 16, 3:02 am, Evgeny Bobovik bobo...@gmail.com wrote: Try to use this

[jQuery] Re: HELP!!! css content filters

2009-10-16 Thread Liam Byrne
You have an unnecessary n in your code. var test_css = {'background':'#000'}; $(ul li:nth-child(3n)).css(test_css); should be $(ul li:nth-child(3)).css(test_css); Liam huntspointer2009 wrote: - Can someone please help me solve the following issue? - How can I select and apply a

[jQuery] Re: show/hide with embed

2009-10-16 Thread rupak mandal
if the problem is reload then add return false at the end or the function On Fri, Oct 16, 2009 at 6:02 PM, ngreenwood6 ngreenwo...@gmail.com wrote: I tried doing that as well and it still does the same thing. It must be changing the display that makes it reload. To test all you have to do is

[jQuery] Vlidation

2009-10-16 Thread Nagella
How to validate the form fields written in php file(for this file i applied php templet)

[jQuery] superfish xml again

2009-10-16 Thread n0yes
I'm having install superfish problems, says the xml is missing. I found this post: I'm a newbie and can't install the zipfile superfish 1.4.8 using the joomla install function. I keep getting an error message stating that the xml.is missing. Do you have any suggestions how I might be able

[jQuery] Re: HELP!!! css content filters

2009-10-16 Thread Bi Jing
Please try this $(ul li).each(function(i){this.addClass(['','','test_css','test_css'][i%4])}) OR..you can try to use another one: $(li:even:odd, li:odd:odd).addClass(test_css); On Fri, Oct 16, 2009 at 3:07 PM, Evgeny Bobovik bobo...@gmail.com wrote: try to use this function script

[jQuery] Re: slideUp(), XHTML IE8 - margin-top breaking, known issue?

2009-10-16 Thread bvdp
Hi, I'm experiencing somewhat the same issues (http://groups.google.com/ group/jquery-dev/browse_thread/thread/14fd5703aeb8653d) Did you already make progression on this? Could you let me know please? Thanks a lot!! On 19 aug, 11:49, ryan.j ryan.joyce...@googlemail.com wrote: Apologies for

[jQuery] Re: show/hide with embed

2009-10-16 Thread Bi Jing
You should use *$(#test).is(:visible)* to confirm whether the div is shown or hidden. Best, BeCoDeR. On Fri, Oct 16, 2009 at 3:02 PM, Evgeny Bobovik bobo...@gmail.com wrote: Try to use this method: script type=text/javascript function showEmbed(){ if($(#test).css('display') ==

[jQuery] Re: Show images with delay...

2009-10-16 Thread 立伟 马
On 10月16日, 上午5时29分, James james.gp@gmail.com wrote: You use setInterval in Javascript to execute a callback function every so milliseconds: window.setInterval(doSomething, 1000); // 1000ms = 1sec function doSomething() {   // code to change images } On Oct 15, 11:25 am, -e-train

[jQuery] Re: Script for tabs?

2009-10-16 Thread Bi Jing
Firstly, define a new css class , selected_tab , as following: //Style code .selected_tab{ background-color:#ccc; color:#000; } //Script code //$(.tab) indicate all of your tab elements. $(.tab).click(function(){ $(.selected_tab).removeClass(selected_tab); // clear current select tab style

[jQuery] Simple Modal Close Event

2009-10-16 Thread biggerandbetterkah...@googlemail.com
I'm using the simpleModal plugin to display dialog windows. I have a callback on the onclose event which fires another event. Is it correct that the $.modal.close() does not fire the onclose callback. If this is correct is there a way i could workaround this?

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Karl Swedberg
Hi Julien, May I propose a different way? $('input:checkbox, input:text').bind('change focus', function(event) { if (event.type == 'change' || this.type == 'text') { $(this).parent().nextAll().find('input:text').doSomething(); } }); This selects all checkboxes and text inputs and binds

[jQuery] Re: jquery preload images

2009-10-16 Thread kknaru
can you give me some good references? i'm trying to understand the process so i don;t want to use a plugin

[jQuery] Re: Jquery for show / hide item in list

2009-10-16 Thread Charlie
the code that you used will take UL's with more than 10 list items(li's) and hide items greater than 10 it seems from your html you are wanting to do something different since you are hiding complete lists(UL's) already here's an example of the exact same code working fine BUT with minor

[jQuery] Re: When mouse over then Fade transition Pause, Please help

2009-10-16 Thread Tan
Anybody ?Please On Oct 16, 5:32 pm, Tan it_qn2...@yahoo.com wrote: Hi, I have see a plugin : Fade transition plugin for jQuery Please see demo:http://www.robpoyntz.com/blog/?m=200905 I want when i mouse over then Fade transition stop and when i mouse out then it start. I create a code:

[jQuery] Re: superfish xml again

2009-10-16 Thread Charlie
superfish is jQuery( _javascript_) and CSS that performs on html markup. Any xml related to it would be part of Joomla and have nothing to do with superfish script or the superfish css. Suggest researching this on joomla forums as it's totally non related to anything jQuery or to do with

[jQuery] Re: jquery preload images

2009-10-16 Thread Leonardo K
http://jqueryfordesigners.com/image-loading/ On Fri, Oct 16, 2009 at 10:48, kknaru isai...@gmail.com wrote: can you give me some good references? i'm trying to understand the process so i don;t want to use a plugin

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Hi Karl, Thanks for your interesting alternative approach. On my side I was trying to set a jQuery variable using the argument that was passed to the function. But something seems broken if we don't use jQuery from the very beginning for the selection. $.tmp = caller; alert($.tmp);//

[jQuery] Validation: Server side generated errorLabelContainer

2009-10-16 Thread Bjorn
Hi, to double check the user input I also do a server side validation. The result of that validation is represented as an errorLabelContainer that is generated by the validation plugin: an ul-container with li- label children. My problem is that when the inputs are updated by the user the

[jQuery] Re: jeditable - setting a different url

2009-10-16 Thread brian ally
On Thu, Oct 15, 2009 at 4:44 PM, pixeline aplennev...@gmail.com wrote: Hi! I'm trying to use the jeditable plugin to update a lot of different strings coming from various part of the database. I would like to set it like this: $(span.editInPlace).editable($(this).attr('rel'), {        

[jQuery] Re: When mouse over then Fade transition Pause, Please help

2009-10-16 Thread Evgeny Bobovik
Try to use this code for mouse events processing $(.container).bind(mouseenter,function(){ Trans.pause(); }).bind(mouseleave,function(){ Trans.pause(); }); ... and replace your plugin code on this code: (function ($) { $.fn.fadeTransition = function(options) { var

[jQuery] Re: Script for tabs?

2009-10-16 Thread lukas
Thank you for your quick response! In the meantime I tried something similar, I thought there is a solution which doesn't require that much code. (Imagine you have 10 tabs!) On Oct 16, 3:57 am, Bi Jing beco...@gmail.com wrote: Firstly, define a new css class , selected_tab , as following:

[jQuery] new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread George
I have developed the autosuggestion plug-in. Looks pretty cool (for me). I actually made is like it's done on Facebook. (code is 100% mine). Please take a look and leave me comments/feedback. Only list of names are working as autosuggestion. Other fields on the form are just for example. Also

[jQuery] Re: Script for tabs?

2009-10-16 Thread Richard D. Worth
I imagine you wouldn't need any more code than Bi Jing has given you to handle even 100 tabs, since it uses classes, not IDs. - Richard On Fri, Oct 16, 2009 at 10:53 AM, lukas animod...@gmail.com wrote: Thank you for your quick response! In the meantime I tried something similar, I thought

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Karl, I choose to keep my original approach as it was better for code clarity in my case. From within my function, I could select the text input passed as argument with variable $currentField. I could also get the list of other text inputs located after it. $afterFields.length correctly counts

[jQuery] Re: When mouse over then Fade transition Pause, Please help

2009-10-16 Thread Tan
Hi, Evgeny Bobovik. Thanks you . I have modify files js to: (function ($) { $.fn.fadeTransition = function(options) { var options = $.extend({pauseTime: 5000, transitionTime: 2000}, options); Trans = function(obj) { var timer = null; var current = 0; var pause = 1;

[jQuery] Re: Script for tabs?

2009-10-16 Thread lukas
Thank you! But how do you memorize the state of the tabs? When you click a tab it will work until the refresh of the page is finished and the original mark-up is effective again. On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote: I imagine you wouldn't need any more code than Bi

[jQuery] Re: Script for tabs?

2009-10-16 Thread lukas
Thank you! But how do you memorize the state of the tabs? When you click a tab it will work until the refresh of the page is finished and the original mark-up is effective again. On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote: I imagine you wouldn't need any more code than Bi

[jQuery] Re: show/hide with embed

2009-10-16 Thread ngreenwood6
So if I add return false it won't reload the data? On Oct 16, 8:37 am, rupak mandal rupakn...@gmail.com wrote: if the problem is reload then add return false at the end or the function On Fri, Oct 16, 2009 at 6:02 PM, ngreenwood6 ngreenwo...@gmail.com wrote: I tried doing that as well

[jQuery] Re: Script for tabs?

2009-10-16 Thread lukas
Thank you! But how do you memorize the state of the tabs? When you click a tab it will work until the refresh of the page is finished and the original mark-up is effective again. On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote: I imagine you wouldn't need any more code than Bi

[jQuery] Re: Script for tabs?

2009-10-16 Thread Richard D. Worth
Sounds like you may want to look into using a tabs plugin, if you don't want to implement this all yourself. For example: http://jqueryui.com/demos/tabs/ http://jqueryui.com/demos/tabs/- Richard On Fri, Oct 16, 2009 at 12:58 PM, lukas animod...@gmail.com wrote: Thank you! But how do you

[jQuery] Re: Script for tabs?

2009-10-16 Thread lukas
I wanted to avoid loading another plug-in. I helped myself with setting cookies but this makes the code a bit long. I hoped there was a simple trick memorizing the state of the tabs. Thanks again! On Oct 16, 1:10 pm, Richard D. Worth rdwo...@gmail.com wrote: Sounds like you may want to look

[jQuery] Why no color animation built in?

2009-10-16 Thread Sam
I was just wondering, why doesn't jQuery have color animations built- in to the library? JavaScript has hexadecimal number literals (0xaabbcc), so it could be the way to define colors in the params argument object. An array literal could also be used to set colors. Why is it that jQuery hasn't

[jQuery] Re: Why no color animation built in?

2009-10-16 Thread Charlie
jQueryUi has color animations http://jqueryui.com/demos/animate/ Sam wrote: I was just wondering, why doesn't jQuery have color animations built- in to the library? _javascript_ has hexadecimal number literals (0xaabbcc), so it could be the way to define colors in the params argument

[jQuery] jQuery and Ajax conflicting only on macintosh?

2009-10-16 Thread wogahnct
I have a very simple script that fails on macintosh only (works on PC browsers) when I include the ajax.js file. I am not even using it (not in my simple script anyway, shown below). When I include that file, the drag and drop no longer works on a mac. Any help is greatly appreciated You can

[jQuery] treeview

2009-10-16 Thread Indraneel
I have a xml file which has the data to be loaded in the treeview. First of all, I would be really glad if treeview can read any xml. Then I can convert my xml to that sort. Secondly, if I have to provide an unordered list, which I can generate from the xml; what will be the way of dynamically

[jQuery] Re: new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread Rick Faircloth
Very responsive, George! I'll definitely take a look at this. I have been wanting to implement autocomplete, but just haven't gotten around to it. Thanks for sharing! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of George Sent:

[jQuery] Re: Why no color animation built in?

2009-10-16 Thread Sam
Well why don't they bundle this in with the jQuery standard library? On Oct 16, 11:21 am, Charlie charlie...@gmail.com wrote: jQueryUi has color animationshttp://jqueryui.com/demos/animate/ Sam wrote:I was just wondering, why doesn't jQuery have color animations built- in to the library?

[jQuery] Re: new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread George
Well, it does not support AJAX yet. the list comes from Javascript array already in the page. So responsiveness probably has something to do with it. I just like the way how it looks. I would actually call it tokenizer and not the autosuggestion. George. On Oct 16, 2:53 pm, Rick Faircloth

[jQuery] Re: new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread George
It's fairly easy to add. I will do that later this week. I just wanted to iron out all visual/appearance bugs. So you can check this link next week. George. On Oct 16, 3:23 pm, Rick Faircloth r...@whitestonemedia.com wrote: Thanks for letting me know.  I would definitely need ajax support.

[jQuery] Re: Why no color animation built in?

2009-10-16 Thread Richard D. Worth
Because filesize is at a premium, and not enough people (80-95%) need this feature almost every time they use jQuery (80-95%). That's the point of plugins. I wrote something on the subject some time ago, and I think it sums it up well. See

[jQuery] Re: jQuery and Ajax conflicting only on macintosh?

2009-10-16 Thread George
Looks like you have an extra there see this line: UL id=listB class=connectedSortable Might be a problem On Oct 16, 10:10 am, wogahnct cheryl.jo...@yale.edu wrote: I have a very simple script that fails on macintosh only (works on PC browsers) when I include the ajax.js file.  I am not

[jQuery] Re: jQuery UI Tabs - Select Tab?

2009-10-16 Thread Collectonian
We tried that as well, and still no go. On Oct 15, 1:01 pm, MorningZ morni...@gmail.com wrote: $(#tabs).tabs(select, idx); where idx is the numeric index of the tab to select On Oct 15, 11:53 am, Collectonian collecton...@eclectic-world.com wrote: We are using the jQuery UI's tabs

[jQuery] Using values.jquery to switch values of fields

2009-10-16 Thread johnHoysa
Looking at the example for the values.jquery plugin I would think that I would not only be able to copy values from one id to an other but that I would also be able to switch the values as well. Here is the working example - http://jquery-values.googlecode.com/svn/trunk/jquery.values.htm

[jQuery] Re: jQuery and Ajax conflicting only on macintosh?

2009-10-16 Thread Johns, Cheryl
Thanks, good catch. I actually found that I also needed to update the file I was using for ajax.js. Once I updated to version 1.6.1 from www. Prototypejs.org, the problem went away! Go figure! Thanks George! -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread Rick Faircloth
Thanks for letting me know. I would definitely need ajax support. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of George Sent: Friday, October 16, 2009 3:09 PM To: jQuery (English) Subject: [jQuery] Re: new autosuggestion

[jQuery] Re: new autosuggestion plug-in. need comments/feedback

2009-10-16 Thread Rick Faircloth
Thanks...let us know on the list when the ajax is done! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of George Sent: Friday, October 16, 2009 3:26 PM To: jQuery (English) Subject: [jQuery] Re: new autosuggestion plug-in. need

[jQuery] Re: jQuery UI Tabs - Select Tab?

2009-10-16 Thread Collectonian
Found it! It needs to be: $('#tabs').tabs().tabs('select', 1); // = 0 with the extra tabs(). :- D Got it working now! Thanks, Summer S. Wilson Collectonian on Yahoo! Messenger ~ Facebook (http://www.facebook.com/ Collectonian) An Eclectic World (http://eclectic-world.com) ~ LiveJournal

[jQuery] Re: password strength meter

2009-10-16 Thread factoringcompare.com
Anybody got an idea with this one . On Oct 15, 10:44 am, factoringcompare.com firstfacto...@googlemail.com wrote: Hi, I’m using jQuery: form wizard plugin (http://home.aland.net/sundman/) with a password strength meter plugin  

[jQuery] [validate] How to skip validation on fields which are hidden

2009-10-16 Thread buntu
Hi, I've an input field in the form which is displayed based on the user selection. Initially it is set to 'display:none' and I do have a validation rule for that field. How do I skip validation on this hidden input field and only validate when its displayed on the page. Thanks for the help!

[jQuery] Re: How to skip validation on fields which are hidden

2009-10-16 Thread James
I would think something similar to this (untested): myFieldName: { required: function() { return !$(this).is(':hidden'); } } Not sure if $(this) actually references the field. Might want to test that out. On Oct 16, 10:18 am, buntu buntu.w...@gmail.com wrote: Hi, I've an

[jQuery] Re: $(document).ready firing before Google Maps scripts are fully loaded

2009-10-16 Thread George V. Reilly
Over in http://groups.google.com/group/google-maps-api/, I got a suggestion that seems to work consistently: use Google's Ajax loader to load the Maps API code asynchronously. script type=text/javascript src=http://www.google.com/jsapi? key=MY_API_KEY/script script type=text/javascript

[jQuery] Re: jquery preload images

2009-10-16 Thread kknaru
thanks for your help, that is a very good article

[jQuery] Re: Problems with load() in IIS?

2009-10-16 Thread Scogle
To be honest, I'm not entirely sure what's going on here. I'm trying to figure out someone else's code, so I'm just going on a hunch about what the problem might be. I have some data stored in an html file that represents locations on a map. When the script tries to load the file, I get a 405

[jQuery] Add value to Link. How can I do this?

2009-10-16 Thread shapper
Hello, I have the following anchor: a href=http://www.example.com/files/map.pdf; onClick=javascript: pageTracker._trackPageview('/downloads/map'); How can I add onClick=javascript: pageTracker._trackPageview('/downloads/ map'); To all anchors of CSS class Download using JQuery? Thanks,

[jQuery] Re: Add value to Link. How can I do this?

2009-10-16 Thread James
$(.Download).click(function() { pageTracker._trackPageview('/downloads/map'); }); On Oct 16, 11:51 am, shapper mdmo...@gmail.com wrote: Hello, I have the following anchor: a href=http://www.example.com/files/map.pdf; onClick=javascript: pageTracker._trackPageview('/downloads/map');

[jQuery] Re: show/hide with embed

2009-10-16 Thread ngreenwood6
I tried adding in return false at the end of my function, however that did not fix the issue. Any other suggestions? On Oct 16, 8:37 am, rupak mandal rupakn...@gmail.com wrote: if the problem is reload then add return false at the end or the function On Fri, Oct 16, 2009 at 6:02 PM,

[jQuery] Re: Best way to construct DOM objects

2009-10-16 Thread Frederic Laruelle
Tks Dave and Karl, it helped! Fred~ On Thu, Oct 15, 2009 at 7:05 PM, Dave Methvin dave.meth...@gmail.comwrote: There are a lot of ways to accomplish this. Karl's post demonstrated one way to create larger fragments directly with jQuery. In addition to .append() you can look at using the

[jQuery] How to obtain Object (key) names?

2009-10-16 Thread Frederic Laruelle
Hi, I;m looking for a way to obtain key names from a JSON object: eg options: [ {Option1 : [Value1, Value2]}, {Option2 : [Value3, Value4]}, {Option3 : [Value5, Value6]} ] so, i'd like to consume this JSON in a way similar to this:

[jQuery] Re: Add value to Link. How can I do this?

2009-10-16 Thread Jason
$(.Download).each(function(){ $(this).attr('onClick', javascript: pageTracker._trackPageview('/ downloads/map');); }); On Oct 16, 5:51 pm, shapper mdmo...@gmail.com wrote: Hello, I have the following anchor: a href=http://www.example.com/files/map.pdf; onClick=javascript:

[jQuery] Index, .load issues

2009-10-16 Thread Jason
Hi Gang, I've been wasting time trying to figure this out to no avail. Here's my function: //Toggle $(#type_new).hide(); toggle = function(){ $(a.toggle).unbind('click').click(function(){ var aIndex = $(a#type).index(this);

[jQuery] How to change method of revealing div content when using slide?

2009-10-16 Thread sharq
Hi. I have hidden div, that i want to show by sliding it in from top border. The problem is that i don't know how to make it slide in instead of wipe in. I want it all to move with it's content instead of showing more and more of it. Regards

[jQuery] Re: Block access to the page but unblock certains divs

2009-10-16 Thread rtelep
Expose: http://flowplayer.org/tools/demos/expose/index.html

[jQuery] safari flashes hidden text from hide()

2009-10-16 Thread derek allard
Hello. I'm relatively new to jQuery and wrote a simple script that hides a block of text and displays a read more link that when clicked shows the hidden text. Everything works fine except in Safari where the hidden text is initially displayed for a second or so before being hidden. I did some

[jQuery] Re: How to change method of revealing div content when using slide?

2009-10-16 Thread Charlie
give the div absolute position that is above the page ( something like .top:-1000px), then use var pixelsFromTop= 100; var displayTime=1000; $("#yourdiv").animate({"top": pixelsFromTop},displayTime) if you are using jQueryUI already in page can also do this with $switchClass which can

[jQuery] Re: Index, .load issues

2009-10-16 Thread Charlie
this line threw me for a loop. var aIndex = $("a#type").index(this); reason: ID's have to be unique so indexing $("a#type") can only return 0 as there can only be one of them therein lies a big part of your problem, your select and a tag use same ID didn't look a lot further

[jQuery] Re: Using values.jquery to switch values of fields

2009-10-16 Thread Nathan Bubna
you could even make it a mini-plugin: ;(function($) { $.fn.valueswap = function(selection, opts) { var hold = $(selection).values(opts), On Fri, Oct 16, 2009 at 2:16 PM, johnHoysa johnho...@gmail.com wrote: Figured it out, only tested on FF. $('.toleft').click(function() {      

[jQuery] Re: Using values.jquery to switch values of fields

2009-10-16 Thread Nathan Bubna
oops. hit send too early: ;(function($) { $.fn.valueswap = function(selection, opts) { var $right = $(selection) r = $right.values(opts), l = this.values(opts); $right.values(l, opts); this.values(r, opts); return this; };

[jQuery] Re: safari flashes hidden text from hide()

2009-10-16 Thread Karl Swedberg
This has served me well: http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 16, 2009, at 4:53 PM, derek allard wrote: Hello. I'm relatively new to jQuery and wrote a