[jQuery] Re: Why plugin repository dont have a search?
Jean wrote: > Always when i come to find some plugin i have to click to browse by > name and use the search of Firefox to find what i want, so why dont > have any search field? > The wiki's search might work...? Alternatively use the "All Plugins" (under Browse Plugins on the left) then use Ctrl + F to get your browser in-page search feature ;)
[jQuery] Re: Scriptdoc-file for jQuery 1.2.1
Brandon Aaron wrote: > jQuery 1.2 has removed the scriptdoc from the source in favor of > managing documentation via the wiki (http://docs.jquery.com/). > Shame, it would have been nice to have it in Aptana Studio - I was wondering why I wasn't getting code hints, etc.
[jQuery] Re: jqModal re-binding
If found this entry on another forum: http://www.nabble.com/jqModal-ajax-question-t4664038s27240.html I implemented the following which works for me: Click Me Please wait... var infoWindow_url = false; $().ready( function() { $('#detail_window').jqm( { onShow: function(hash) { hash.w.load(infoWindow_url); hash.w.show(); }, ajax:false }); } ); function loadUrl(id) { infoWindow_url = 'location_detail.php?id=' + id; $('#detail_window').jqm().jqmShow(); } I am sure there is a way to make this prettier, but I havent the time at the moment. Hope this helps. J On Nov 12, 12:49 am, raptor <[EMAIL PROTECTED]> wrote: > hi, > I have let say an element which I use as for dialog's let say : > > > then i use : > > $('#dialog').jqm({ ajax: url, target: '#content' }); > > so far ok.. it works. But now I want to reuse this dialog. > But if I try to bind again with different url2: > > $('#dialog').jqm({ ajax: url2, target: '#content' }); > > It still uses the old url for ajax fetch ?? > How can I change this behavior, so I can pass different urls ? > > Opps forgot the most important thing, I'm using jqModal ;)
[jQuery] When using blogUI and setTimeout in firefox , a strange behavior
Hi all: When i using blogUI in firefox(ie 6.x and ie7.0 are ok), there is a strange behavior. To avoid the call-stack issue in ie 7.0 , i cant' just write: $().ajaxStart($.blockUI).ajaxStop($.unblockUI); I must write : $().ajaxStart(function(){ setTimeout($.blockUI,0); }); but...the default message(should be "please wait" ) will become some integer(maybe 36...). It looks like: http://crazylion.files.wordpress.com/2007/11/1.png otherwise, if i write: $().ajaxStart(function(){ setTimeout(function(){$.blockUI();},0); }); it can work correctly now . like http://crazylion.files.wordpress.com/2007/11/2.png i have no idea about this. Does setTimeout do something i dont know? Thanks a lot :) --CrazyLion
[jQuery] Re: What causes the speed bottleneck in Javascript?
I just randomly came across this Ajaxian podcast episode from a while back that answers the very question I posed. http://ajaxian.com/archives/audible-ajax-episode-20-project-tamarin Interestingly, Adobe open-sourced their JIT implementation of Javascript after a 3 year complete rewrite, and that's what Mozilla, Adobe, and others are collaborating on for the Tamerin Project. Some say it can increase speeds up 1ox. While Tamarin won't be in Firefox 3, it will be a later addition, likely Firefox 4 sometime in late '08. In typical Microsoft fashion, they are currently rewriting their own Javascript engine (JScript) and they intend to match, or exceed Tamarin's speed. Why doesn't MS just use Tamarin as well since it is open-source? Here's one instance where I'm glad MS is sticking to their own sandbox cause it just means more competition. If they can't beat Tamarin when they can look at Tamarin's code as much as they want, that's pretty sad. So, to completely answer my question, it looks as if the interpreter is the current bottleneck, but one interviewee said the bottleneck for most AJAX apps will be network speed in the near future. On 10/2/07, Robert Koberg <[EMAIL PROTECTED] > wrote: > > > On Tue, 2007-10-02 at 11:26 -0500, Derek Gathright wrote: > > Thanks for the link, interesting stuff. > > > > After looking through info on Rhino, I was left with the question... > > why build the JS core engine in Java and not a non-interpreted > > language? > > You can compile them to byte code and create classes (I am guessing that > is why rhino performs much better in the 'real world' test cases). I use > them for a webapp in a servlet container. > > best, > -Rob > >
[jQuery] Re: modifying a label when radio input selected
While you didn't give me the answer I was looking for, you inspired me to mover forward in the right direction. I finally got the result I was after. Here's the script I ended with (anyone wants to tighten this please I'd be more than welcome!) $(document).ready(function() { var $inputId = $('div.searchInputs input[selected="selected"]'); $('div#searchLabels label[for="$inputId"]').addClass("selected"); $('div#searchLabels input').each(function(index) { var $thisInput = $(this); $thisInput.addClass('buttonInputs'); }); $('div#searchLabels label').each(function(index) { var $thisLabel = $(this); $thisLabel.addClass('buttonLabels'); }); $('div#searchLabels label#labelEntireSite').click(function() { $(this).addClass("selected"); $('div#searchLabels label#labelRecipesCat').removeClass("selected"); }); $('div#searchLabels label#labelRecipesCat').click(function() { $(this).addClass("selected"); $('div#searchLabels label#labelEntireSite').removeClass("selected"); }); }); On Nov 14, 10:26 am, whutevr <[EMAIL PROTECTED]> wrote: > You could do something like this: > $('div#searchLabels label#labelRecipesCat').click(function() { >if (this.checked ){ > $(''div#searchLabels > label#labelRecipesCat'').addClass('selected'); > $(''div#searchLabels > label#labelEntireSite').removeClass('selected'); > }; > > }); > > On Nov 13, 10:01 pm, sperks <[EMAIL PROTECTED]> wrote: > > > Apologies, if this comes through to the list twice (I waited a few > > hours before pushing again). > > > Update. Here's the beautiful hunk of script that I have at the moment, > > but I'm wanting to add the class to the label based on whether it's > > associated input element is selected. > > > $(document).ready(function() { > > $('div#searchLabels input').each(function(index) { > > var $thisLink = $(this); > > $thisLink.attr({ > > 'class': 'buttonInputs' > > }); > > }); > > $('div#searchLabels label').each(function(index) { > > var $thisLink = $(this); > > $thisLink.attr({ > > 'class': 'buttonLabels' > > }); > > }); > > $('div#searchLabels label#labelEntireSite').addClass("selected"); > > $('div#searchLabels label#labelEntireSite').click(function() { > > $(this).addClass("selected"); > > $('div#searchLabels > > label#labelRecipesCat').removeClass("selected"); > > }); > > $('div#searchLabels label#labelRecipesCat').click(function() { > > $(this).addClass("selected"); > > $('div#searchLabels > > label#labelEntireSite').removeClass("selected"); > > }); > > > }); > > > On Nov 13, 12:57 pm, sperks <[EMAIL PROTECTED]> wrote: > > > > I have some formatting I want to add to a couple of radio buttons. > > > > I'm wanting to hide the actual radio buttons and only show the labels > > > which I want to format differently depending on whether they're > > > related radio button is selected or not. > > > > HTML: > > > > > > > > name="cat"> > > > > > id="labelEntireSite">Entire > > > Site > > > > > > Recipes > > > > > > > If I click on the recipes label (id="recipesCat") I want to change > > > it's class. I've been thinking along the lines of associating it via > > > it's corresponding input element becoming selected > > > ([EMAIL PROTECTED]"selected"]), but I'm pretty new to jQuery and any > > > help getting me in the right direction would be great. > > > > Thanks > > > Steve
[jQuery] Re: jquery.ifixpng.js IE 7 Transparency is Black instead of transparent
cfdvlpr wrote: > I'm just trying this nice jquery plugin and it works great to solve > some of my IE 6 PNG image problems. But, in IE 7, the images are > black. Has anyone else seen this and found a fix for it? Is this a > problem specifically with PNG 24 alpha transparency? > IE7 natively supports PNG images - so make sure the plugin detects IE7 and doesn't run. We used a conditional comment around the script tag to prevent IE7 processing it...
[jQuery] Re: clueTip > 'rounded' theme issue with showTitle: false
Hi t1shopper, The new version 0.9.3 is now on the project page: http://jquery.com/plugins/project/cluetip Check out the first rounded-corners example here: http://plugins.learningjquery.com/cluetip/demo/ I'm hoping that is what you're looking for. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 7:49 PM, Karl Swedberg wrote: On Nov 14, 2007, at 2:57 PM, t1shopper wrote: Unfortunately, changing the value of the margin-top property of the .cluetip-rounded #cluetip-inner class doesn't fix it. If I make it any bigger than margin: -12px -12px 0 0;, it makes a white stripe across the clueTip. I tried playing with some of the other classes and didn;t get much better. sorry to hear that. I thought I had it working on a test page. I'd be happy with any fix you could suggest. I'm going to spend an hour or so working on it tonight. If I manage to put something together that I'm happy with, I'll bundle it and release it on the project page tonight as well. Can I get you anything on your Amazon list? :-) Why, sure! Anything at all. :-) thanks! --Karl
[jQuery] Safari Ajax and tablesorter
Hello, I am building a table with xml I am retrieving with $.ajax and once the table is appended to the page I am using tablesorter on it. It is working fine in IE7,ie6, Firefox 2 (mac and pc) but will not work on Safari 3. Tablesorter works fine in safari on tables not added to the dom after page load. Anybody else had this problem?
[jQuery] Re: [OT] WYSIWYG for Safari
The YUI framework has a Rich Text Editor (RTE) that supports Safari, I'm not sure which version tho. On 11/13/07, Jake McGraw <[EMAIL PROTECTED]> wrote: > > Hey all, sorry for the off topic post, but I must be going insane. > > I read that TinyMCE and FCKeditor now support Safari, but when I > download the demos for both neither works when trying to use Safari > 2.0.4. I'm looking for a VERY limited selection of functionality, > specifically, Bold, Italic, Ordered List and Links. Can anyone > recommend a JavaScript WYSIWYG that will work in IE7, IE6, Firefox AND > Safari 2? > > - jake > -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Truncate plugin and jquery 1.1.4
I notice that the jquery.truncate.js plugin supports jquery 1.1.3.1 -- are there any known issues with jquery 1.1.4 or later? I'm starting my upgrade process to 1.2... http://www.reindel.com/truncate/ Thanks! -- View this message in context: http://www.nabble.com/Truncate-plugin-and-jquery-1.1.4-tf4809065s27240.html#a13759855 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: css("...",function(){ return ...;})
$('#page').css('paddingTop',function(){ return '50px'; }); works perfectly for me! (v1.2.1) (btw borderTop is not a particularly good example to choose because it's a shorthand group of 3 other properties and, depending on the browser being used, it may/may not have any affect) On Nov 14, 1:57 pm, XASD <[EMAIL PROTECTED]> wrote: > It's expected behavior,look > athttp://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/ > : > > You can now pass in a function as a value for an attribute or a css > property. The function is executed and its return value is set as the > value for the property. > > By the way,function is invoked(simple insert "alert" inside) but > returned value is not used. > > On Nov 13, 7:26 pm, XASD <[EMAIL PROTECTED]> wrote: > > > functionin place of value for property dosen't work. > > > Thanks.
[jQuery] Re: css("...",function(){ return ...;})
Hey, that's really great news! For some reason, I had it stuck in my head that only .attr() and .filter() could take functions. If I had only looked at my own book (jQuery Reference Guide), I would have seen that .css() can do the same. D'oh! A musician I know sometimes forgets the lyrics to his own songs when he's performing live, so maybe I shouldn't feel like an idiot. But I do. :s --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 8:20 PM, Wizzud wrote: $('#page').css('paddingTop',function(){ return '50px'; }); works perfectly for me! (v1.2.1) (btw borderTop is not a particularly good example to choose because it's a shorthand group of 3 other properties and, depending on the browser being used, it may/may not have any affect) On Nov 14, 1:57 pm, XASD <[EMAIL PROTECTED]> wrote: It's expected behavior,look athttp://jquery.com/blog/2007/01/14/ jquery-birthday-11-new-site-new-docs/ : You can now pass in a function as a value for an attribute or a css property. The function is executed and its return value is set as the value for the property. By the way,function is invoked(simple insert "alert" inside) but returned value is not used. On Nov 13, 7:26 pm, XASD <[EMAIL PROTECTED]> wrote: functionin place of value for property dosen't work. Thanks.
[jQuery] Re: offset() causes error in IE
Make sure that IE is actually selecting the checkbox. Otherwise it would seem as though IE doesn't implement getBoundingClientRect for checkboxes even though they claim it does. Would you mind filing a ticket for this: http://dev.jquery.com/newticket In the mean time ... try wrapping the input with a span. -- Brandon Aaron On Nov 14, 5:49 pm, Bernd Matzner <[EMAIL PROTECTED]> wrote: > Hi, > > I have a page in which I'm trying to use offset() on a checkbox (using > jQuery 1.2.1) > In FF, everything works fine, but I'm getting an "Object doesn't > support this property or method" in IE6 and IE7. > The debugger indicates that the error occurs where jQuery tries to do > "box=elem.getBoundingClientRect()". > The page is valid XHTML, and the checkbox is located in a table row. > Sorry, I don't have a test page I could post. Any hints? > > THanks, > Bernd
[jQuery] Re: clueTip > 'rounded' theme issue with showTitle: false
On Nov 14, 2007, at 2:57 PM, t1shopper wrote: Unfortunately, changing the value of the margin-top property of the .cluetip-rounded #cluetip-inner class doesn't fix it. If I make it any bigger than margin: -12px -12px 0 0;, it makes a white stripe across the clueTip. I tried playing with some of the other classes and didn;t get much better. sorry to hear that. I thought I had it working on a test page. I'd be happy with any fix you could suggest. I'm going to spend an hour or so working on it tonight. If I manage to put something together that I'm happy with, I'll bundle it and release it on the project page tonight as well. Can I get you anything on your Amazon list? :-) Why, sure! Anything at all. :-) thanks! --Karl
[jQuery] offset() causes error in IE
Hi, I have a page in which I'm trying to use offset() on a checkbox (using jQuery 1.2.1) In FF, everything works fine, but I'm getting an "Object doesn't support this property or method" in IE6 and IE7. The debugger indicates that the error occurs where jQuery tries to do "box=elem.getBoundingClientRect()". The page is valid XHTML, and the checkbox is located in a table row. Sorry, I don't have a test page I could post. Any hints? THanks, Bernd
[jQuery] Re: How to speed up jQuery
Can you make a model of your situation ? that could help. What do you want to do exactly? to show/hide many tds when a checkbox is clicked? and changeBg(), that's for creating a zebra-like striping of the cells ? First of all, if you want to show ALL the cells in a table, or a row, you can just toggle the table or the row. That's surely faster. Maybe this helps... function myToggleShow( checkbox, targets ){ targets = $(targets); $(checkbox).click( function() { if ( this.checked ){ targets.show('slow'); changeBg(); //is really neccesary to call this EVERY time you click the checkbox? } else { targets.hide('slow'); } }).triggerHandler('click'); } myToggleDisplay('#myCheckboxID', 'td.areaToShow'); Ariel Flesler On 14 nov, 13:54, Snook <[EMAIL PROTECTED]> wrote: > Dear developers, > > I have a function which is called several times, when my page is > loaded. This is VERY slow under IE, because I have a lot of checkbox. > > Did someone can explain me this difference between FF and IE ? And > maybe how to improve this function : > > function myToggleShow(checkboxElem, showHideElem){ > var showHide = $(showHideElem); > var checkbox = $(checkboxElem); > checkbox.click( function() { > if (checkbox.is(":checked")) { > showHide.show('slow'); > > // Change the background for "even" lignes > changeBg() > } else { > showHide.hide('slow'); > } > }); > > // check the checkbox status when the form is loaded > if (checkbox.is(":checked")) { > showHide.show('slow'); > } > > } > > myToggleDisplay('#myCheckboxID', 'td.areaToShow'); > > FYI, I cannot use the toggle function, which didn't work with > checkbox !!! > > Thanks, > > Damien
[jQuery] Re: Select box (selectedIndex) problems in Internet Explorer (ie) on refresh and back buttons
You should explain HOW do you worked around hiding the option in IE. What do you need to do exactly? I had the opposite problem some time ago, I was all cursing Firefox, for not respecting the selected="selected" on refreshes. You could force the selectedIndex to 0 (or something else) on start, or use a cookie to remember the last selected option and force it to be the selected one. If this is not enough.. then explain a bit what do you want IE to do.. Ariel Flesler On 14 nov, 12:56, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Anyone? I could really use some insight into this problem.
[jQuery] Re: Move of namespace
That's not possible. Functions and objects are passed by reference, do you have that example online so I can see ? Ariel Flesler On 14 nov, 01:40, howa <[EMAIL PROTECTED]> wrote: > It is possible to completely move a particular plugin namespace into > other one? > > e.g. > > if (typeof Company == "undefined") { > var Company = {}; > > } > > Company.form = {}; > Company.form.validator = jQuery.validator; // Assume already loaded > > // Now I want to modify some of its internal value > Company.form.validator.messages.required= "My Required"; > > // However, it is different from > alert( $.validator.messages.required ); // Show the original value, > seems only a copy of validator is assigned to Company.form.validator, > but not pass its reference
[jQuery] Re: jQuery.LocalScroll 1.1.2
Thanks! jQuery.LocalScroll uses jQuery.ScrollTo (http://jquery.com/plugins/ project/ScrollTo) to manage the scrolling. That plugin accepts a 'easing' option, that must be the name of the equation you want. Check the example of jQuery.ScrollTo to see some easing. Ariel Flesler On 14 nov, 12:41, Jean <[EMAIL PROTECTED]> wrote: > Very nice, and some about easing?? > > On Nov 12, 2007 8:41 PM, Flesler <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, I've released version 1.1.2 of this plugin. > > > Changes are: > > - The default settings have been exposed for modification. > > - The plugin can still work for dynamically added anchors, using the > > setting 'persistent'. > > - The trigger event can be something else than click. > > - It's possible to make the anchors alter the hash in the address bar > > (the default behavior). > > > This is the project page:http://jquery.com/plugins/project/LocalScroll > > And the demo:http://www.freewebs.com/flesler/jQuery.LocalScroll/ > > > Hope it'll be useful for someone. > > > Ariel Flesler > > -- > > []´s Jeanwww.suissa.info > >Ethereal Agencywww.etherealagency.com- Ocultar texto de la cita - > > - Mostrar texto de la cita -
[jQuery] Re: Scriptdoc-file for jQuery 1.2.1
jQuery 1.2 has removed the scriptdoc from the source in favor of managing documentation via the wiki (http://docs.jquery.com/). -- Brandon Aaron On Nov 14, 7:35 am, dehneg <[EMAIL PROTECTED]> wrote: > Hi all, > > I am looking for the scriptdoc file (http://www.scriptdoc.org/) for > jQuery 1.2.1. > Any one knows where I can download it ? > > Thanks, > Alex
[jQuery] Re: Scripts at the bottom of the page
Brandon Aaron wrote on 11/14/2007 9:11 AM: Actually, it isn't outside the scope of jQuery and it is now fixed in Rev 3822. Thanks! - Bil
[jQuery] Re: gradient plugin - wont work on td's?
Try: $('.gradient').wrapInner('').find('> span').gradient(); On Nov 14, 1:29 pm, bdee1 <[EMAIL PROTECTED]> wrote: > currently i am matching the td's based on a gradient class. so like this: > $('.gradient').gradient(); > > how that work? > > > > Brandon Aaron wrote: > > > Try wrapping the contents of the td with a span first and then > > applying the gradient to the span. Something like this: > > > $('td').wrapInner('').find('> span').gradient(); > > > -- > > Brandon Aaron > > > On Nov 14, 12:13 pm, bdee1 <[EMAIL PROTECTED]> wrote: > >> anyone have an idea on this? > > >> bdee1 wrote: > > >> > i am trying to programatically add gradients to table header cells and > >> i > >> > came across the gradient plugin > >> > (http://jquery.com/plugins/project/gradient). it seems that this > >> plugin > >> > works well for creatign gradients in divs but when i try and apply it > >> to a > >> > td, it seems to work in ie but in firefox, it puts the gradient at the > >> top > >> > of the page rather than in the td. > > >> > can anyone think of a possible workaround for this? > > >> -- > >> View this message in > >> context:http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf480594... > >> Sent from the jQuery General Discussion mailing list archive at > >> Nabble.com. > > -- > View this message in > context:http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf480594... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?
So far I've got this: $('h3').click(function() { $(this).next().toggle("fast"); $(this).toggleClass('down').toggleClass('right'); $(this).next('.details').find('input:checkbox').not(':checked').parent() .hide(); }); Which is getting closer. Upon page load - I see everything - then I check some items and if I click the H3 topic header - my div collapses and if I re-open - I only see the checked ones. Now I think I can maybe insert another checkbox at the end of the collapsed list: Topic x item 1 x item 4 0 view unchecked items And when they click on that - see everything again... Jim > -Original Message- > From: trevorp [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 14, 2007 2:41 PM > To: jQuery (English) > Subject: [jQuery] Re: how to loop over checkboxes and hide > the UNchecked ones? > > > Not necessarily elegant, but it works: > [using your previous code starting with $(this).next() and going from > there.] > > $('h3').click(function() { > $ > (this).next().children('div').children(':checkbox').not(':chec > ked').parent('div').toggle("fast"); > }); > > This assumes you have the following structure: > > > Heading 1 > > > > > cbcb1 > > > > cbcb2 > > > > > Heading 2 > > > > > cbcb1 > > > > cbcb2 > > > > cbcb3 > > > > the ids are entirely not necessary, just a habit. > > -Trevor > > On Nov 14, 12:38 pm, "Priest, James (NIH/NIEHS) [C]" > <[EMAIL PROTECTED]> wrote: > > Well I've got this: > > > > $('h3').click(function() { > > //$(this).next().toggle("fast"); > > $(this).toggleClass('down').toggleClass('right'); > > > > $("input:checkbox").not(":checked").parent().next().hide(); > > }); > > > > And that hides the checkbox - but I need to hide the > associated label as > > well. The parent().next() doesn't work above - I get one extra > > (unchecked) item in each group... :( > > > > Jim > > > > > -Original Message- > > > From: tlphipps [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, November 14, 2007 12:05 PM > > > To: jQuery (English) > > > Subject: [jQuery] Re: how to loop over checkboxes and hide > > > the UNchecked ones? > > > > > You might try this instead of using .each() > > > UNTESTED: > > > $("input:checkbox").not(":checked").hide(); > > > > > On Nov 14, 10:16 am, "Priest, James (NIH/NIEHS) [C]" > > > <[EMAIL PROTECTED]> wrote: > > > > I've got a series of topics - each with a list of checkboxes. > > > > > > Topic > > > > 0 item 1 > > > > 0 item 2 > > > > 0 item 3 > > > > > > When the user clicks the topic - I have the checklist > > > show/hide using > > > > toggle(). What I'd like is when the list closes - the > > > 'checked' items > > > > remain visible. > > > > > > Topic > > > > X item 2 > > > > X item 3 > > > > > > I'm struggling with how to loop through the list of > checkboxes?? My > > > > attempt to use .each() isn't working?? > > > > > > $('h3').click(function() { > > > > // $(this).next().toggle("fast"); > > > > // > $(this).toggleClass('down').toggleClass('right'); > > > > > > $('input:checkbox').each( function() { > > > > var checked_status = this.checked; > > > > if (!checked_status) > > > > { > > > > $(this).hide(); > > > > } > > > > }); > > > > }); > > > > > > Thanks, > > > > Jim > >
[jQuery] Re: hiding checkbox AND label?
Hi Jim, Forgive me if you've already posted it, but would you mind showing us the HTML? Labels can wrap around an input, but they don't have to, so seeing what the relationship is between the label and the input (checkbox) would help tremendously. Thanks, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 1:56 PM, Priest, James (NIH/NIEHS) [C] wrote: Argh - I'm close - but so far I can't seem to hide BOTH the checkbox and label: $('h3').click(function() { $(this).next('.details').find("input:checkbox").not(":checked").hide (); }); OR $('h3').click(function() { $('input:checkbox').each(function() { if (!this.checked) { $(this).next().hide(); } }); }); Both hide the checkbox only. The label remains!! I've tried a few things with parent().next() but either I can remove the checkbox OR the label but never both?? I'm sure I'm missing something simple here Thanks, Jim
[jQuery] Re: History Plugin initial state
Thanks for the quick reply, but my lack of knowledge means I stil don't get it I am trying $(function() { $('a.remote').remote('#chapter', function() { if (window.console && window.console.info) { console.info('content loaded'); } }); $('a.history:eq(0)').history(function() { $('#show-hide').hide(); }); $('a.history:eq(1)').history(function() { $('#show-hide').show(); }); $.ajaxHistory.initialize(function(){ load("hometext.html"); }); }); But this does not do it. Any chance you could post code that's a bit more specific or a link to a site that does this so I can look at the code. Thanks Again
[jQuery] Re: clueTip > 'rounded' theme issue with showTitle: false
Unfortunately, changing the value of the margin-top property of the .cluetip-rounded #cluetip-inner class doesn't fix it. If I make it any bigger than margin: -12px -12px 0 0;, it makes a white stripe across the clueTip. I tried playing with some of the other classes and didn;t get much better. I'd be happy with any fix you could suggest. Can I get you anything on your Amazon list? :-)
[jQuery] Re: clueTip > Examples
Thanks Karl, you guys are really amazing, all this great code, I'm very thankful.
[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?
Not necessarily elegant, but it works: [using your previous code starting with $(this).next() and going from there.] $('h3').click(function() { $ (this).next().children('div').children(':checkbox').not(':checked').parent('div').toggle("fast"); }); This assumes you have the following structure: Heading 1 cbcb1 cbcb2 Heading 2 cbcb1 cbcb2 cbcb3 the ids are entirely not necessary, just a habit. -Trevor On Nov 14, 12:38 pm, "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> wrote: > Well I've got this: > > $('h3').click(function() { > //$(this).next().toggle("fast"); > $(this).toggleClass('down').toggleClass('right'); > > $("input:checkbox").not(":checked").parent().next().hide(); > }); > > And that hides the checkbox - but I need to hide the associated label as > well. The parent().next() doesn't work above - I get one extra > (unchecked) item in each group... :( > > Jim > > > -Original Message- > > From: tlphipps [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 14, 2007 12:05 PM > > To: jQuery (English) > > Subject: [jQuery] Re: how to loop over checkboxes and hide > > the UNchecked ones? > > > You might try this instead of using .each() > > UNTESTED: > > $("input:checkbox").not(":checked").hide(); > > > On Nov 14, 10:16 am, "Priest, James (NIH/NIEHS) [C]" > > <[EMAIL PROTECTED]> wrote: > > > I've got a series of topics - each with a list of checkboxes. > > > > Topic > > > 0 item 1 > > > 0 item 2 > > > 0 item 3 > > > > When the user clicks the topic - I have the checklist > > show/hide using > > > toggle(). What I'd like is when the list closes - the > > 'checked' items > > > remain visible. > > > > Topic > > > X item 2 > > > X item 3 > > > > I'm struggling with how to loop through the list of checkboxes?? My > > > attempt to use .each() isn't working?? > > > > $('h3').click(function() { > > > // $(this).next().toggle("fast"); > > > // $(this).toggleClass('down').toggleClass('right'); > > > > $('input:checkbox').each( function() { > > > var checked_status = this.checked; > > > if (!checked_status) > > > { > > > $(this).hide(); > > > } > > > }); > > > }); > > > > Thanks, > > > Jim
[jQuery] Re: hiding checkbox AND label?
Try this $('h3').click(function() { $(this).next('.details').find("input:checkbox").not(":checked").parent().hide(); }); Feijó - Original Message - From: "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 14, 2007 4:56 PM Subject: [jQuery] hiding checkbox AND label? Argh - I'm close - but so far I can't seem to hide BOTH the checkbox and label: $('h3').click(function() { $(this).next('.details').find("input:checkbox").not(":checked").hide(); }); OR $('h3').click(function() { $('input:checkbox').each(function() { if (!this.checked) { $(this).next().hide(); } }); }); Both hide the checkbox only. The label remains!! I've tried a few things with parent().next() but either I can remove the checkbox OR the label but never both?? I'm sure I'm missing something simple here Thanks, Jim
[jQuery] Re: clueTip > 'rounded' theme issue with showTitle: false
yeah. unfortunately, you have to show the heading area for the rounded theme. But you can compensate for that by changing the margin- top property of .cluetip-rounded #cluetip-inner to something like -18px. So instead of margin: 0 -12px 0 0; it would be margin: -18px -12px 0 0; Not ideal, I know, but maybe it'll help until I improve the plugin. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 2:28 PM, t1shopper wrote: If you change the first 'rounded' example to showTitle: false as shown below you can see there's an issue with the lineup of the edging in the upper right corner of the clueTip. $('ol.rounded a:eq(0)').cluetip({titleAttribute:'title', splitTitle: '|', showTitle: false,dropShadow: false, cluetipClass: 'rounded'});
[jQuery] Re: problem with ifixpng background position
IE 7 images are black and I'm using the ifixpng. Has anyone else seen this and found a fix for it?
[jQuery] Re: clueTip > Examples
Thanks a lot for the feedback! Point well taken. I already updated the demo to show one with the "splitTitle" option first. But I'll add another that shows how to do it without something in the clueTip's heading. Also, haven't released it yet, but I spent some time this weekend refactoring the code to allow arrows to be shown for all clueTips, no matter what style they're using. I'll post that soon. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 1:51 PM, t1shopper wrote: User "daveg" suggested adding the below example at the link below. I second that. I spent 3 hours figuring out how to remove the title from the clueTip and have it contain simple text. Most the examples use AJAX - which is great if you want to use that method - but I think the bulk of the users just want the simple "text out of the link" example. I think you'll help a wider audience by giving a few more simple examples. Thanks Jquery and clueTip people for making the web a better place! Keep up the great work!! 2] Next demo you might add is a hint with no title. http://"; title="|my hint">abc jQuery('#e') .cluetip({ titleAttribute:'title', splitTitle:'|', showTitle: false; }); http://groups.google.com/group/jquery-en/browse_thread/thread/ 2dca133d95ffa8e7/e515f9270a3c4c7d?lnk=gst&q=cluetip#e515f9270a3c4c7d http://www.t1shopper.com/
[jQuery] Re: gradient plugin - wont work on td's?
currently i am matching the td's based on a gradient class. so like this: $('.gradient').gradient(); how that work? Brandon Aaron wrote: > > > Try wrapping the contents of the td with a span first and then > applying the gradient to the span. Something like this: > > $('td').wrapInner('').find('> span').gradient(); > > -- > Brandon Aaron > > On Nov 14, 12:13 pm, bdee1 <[EMAIL PROTECTED]> wrote: >> anyone have an idea on this? >> >> bdee1 wrote: >> >> > i am trying to programatically add gradients to table header cells and >> i >> > came across the gradient plugin >> > (http://jquery.com/plugins/project/gradient). it seems that this >> plugin >> > works well for creatign gradients in divs but when i try and apply it >> to a >> > td, it seems to work in ie but in firefox, it puts the gradient at the >> top >> > of the page rather than in the td. >> >> > can anyone think of a possible workaround for this? >> >> -- >> View this message in >> context:http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf480594... >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. > > > -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13754529 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] clueTip > 'rounded' theme issue with showTitle: false
If you change the first 'rounded' example to showTitle: false as shown below you can see there's an issue with the lineup of the edging in the upper right corner of the clueTip. $('ol.rounded a:eq(0)').cluetip({titleAttribute:'title', splitTitle: '|', showTitle: false,dropShadow: false, cluetipClass: 'rounded'});
[jQuery] jquery.ifixpng.js IE 7 Transparency is Black instead of transparent
I'm just trying this nice jquery plugin and it works great to solve some of my IE 6 PNG image problems. But, in IE 7, the images are black. Has anyone else seen this and found a fix for it? Is this a problem specifically with PNG 24 alpha transparency?
[jQuery] Re: History Plugin initial state
On Nov 14, 12:15 pm, dandanthesushiman <[EMAIL PROTECTED]> wrote: > Hi > > I hope someone can help, I am just getting stated with jQuery so I may > be asking a question that is obvious to most of you but I'm stuck. > > I have implemented the History/Remote plugin in on my site. I found > the files onhttp://stilbuero.de/jquery/history/#Chapter_1. It works > really well except I would like to have a default setting so that when > the page is initially loaded the Ajax Div is populated with content > and becomes part of the history. The tabs > pluginhttp://stilbuero.de/jquery/tabs/index.html > does exactly this (you load index.html the first tab is active by > default with content beneath it, clicking the other tabs changes the > content and you can use the back/forwards buttons to navigate. If you > navigate back to index.html the content is still visible beneath the > tab). In my effort although I have placed the "default" content > between the div tags which means it shows up on page load if I then > move around the site when I navigate back to the initial page the ajax > is not loading the initial content. Can anyone suggest a fix. > > TIA The plugin's initialize method takes an optional argument - a function that is used to restore the state of the page in case the user navigates to a point in history where there is no hash in the URL: $.ajaxHistory.initialize(function() { // restore certain page state here }); --Klaus
[jQuery] Re: gradient plugin - wont work on td's?
Try wrapping the contents of the td with a span first and then applying the gradient to the span. Something like this: $('td').wrapInner('').find('> span').gradient(); -- Brandon Aaron On Nov 14, 12:13 pm, bdee1 <[EMAIL PROTECTED]> wrote: > anyone have an idea on this? > > bdee1 wrote: > > > i am trying to programatically add gradients to table header cells and i > > came across the gradient plugin > > (http://jquery.com/plugins/project/gradient). it seems that this plugin > > works well for creatign gradients in divs but when i try and apply it to a > > td, it seems to work in ie but in firefox, it puts the gradient at the top > > of the page rather than in the td. > > > can anyone think of a possible workaround for this? > > -- > View this message in > context:http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf480594... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] clueTip > Examples
User "daveg" suggested adding the below example at the link below. I second that. I spent 3 hours figuring out how to remove the title from the clueTip and have it contain simple text. Most the examples use AJAX - which is great if you want to use that method - but I think the bulk of the users just want the simple "text out of the link" example. I think you'll help a wider audience by giving a few more simple examples. Thanks Jquery and clueTip people for making the web a better place! Keep up the great work!! 2] Next demo you might add is a hint with no title. http://"; title="|my hint">abc jQuery('#e') .cluetip({ titleAttribute:'title', splitTitle:'|', showTitle: false; }); http://groups.google.com/group/jquery-en/browse_thread/thread/2dca133d95ffa8e7/e515f9270a3c4c7d?lnk=gst&q=cluetip#e515f9270a3c4c7d http://www.t1shopper.com/
[jQuery] Re: Zoomimage
Stoyan wrote: Bah, the alert on IE6 appears when I press any key. That's valid for the official demo too: http://www.eyecon.ro/zoomimage/ -- Best regards, Stoyan mailto:[EMAIL PROTECTED] Sorry for this. I will fix it in 3 hours.
[jQuery] hiding checkbox AND label?
Argh - I'm close - but so far I can't seem to hide BOTH the checkbox and label: $('h3').click(function() { $(this).next('.details').find("input:checkbox").not(":checked").hide(); }); OR $('h3').click(function() { $('input:checkbox').each(function() { if (!this.checked) { $(this).next().hide(); } }); }); Both hide the checkbox only. The label remains!! I've tried a few things with parent().next() but either I can remove the checkbox OR the label but never both?? I'm sure I'm missing something simple here Thanks, Jim
[jQuery] Re: gradient plugin - wont work on td's?
anyone have an idea on this? bdee1 wrote: > > i am trying to programatically add gradients to table header cells and i > came across the gradient plugin > (http://jquery.com/plugins/project/gradient). it seems that this plugin > works well for creatign gradients in divs but when i try and apply it to a > td, it seems to work in ie but in firefox, it puts the gradient at the top > of the page rather than in the td. > > can anyone think of a possible workaround for this? > -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13753105 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] How to speed up jQuery
Dear developers, I have a function which is called several times, when my page is loaded. This is VERY slow under IE, because I have a lot of checkbox. Did someone can explain me this difference between FF and IE ? And maybe how to improve this function : function myToggleShow(checkboxElem, showHideElem){ var showHide = $(showHideElem); var checkbox = $(checkboxElem); checkbox.click( function() { if (checkbox.is(":checked")) { showHide.show('slow'); // Change the background for "even" lignes changeBg() } else { showHide.hide('slow'); } }); // check the checkbox status when the form is loaded if (checkbox.is(":checked")) { showHide.show('slow'); } } myToggleDisplay('#myCheckboxID', 'td.areaToShow'); FYI, I cannot use the toggle function, which didn't work with checkbox !!! Thanks, Damien
[jQuery] help in WYMedito plugin
how can i get the value in the WYMeditor plugin??? +++ +++ code: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> WYMeditor jQuery(function() { jQuery(".wymeditor").wymeditor(); }); +++ +++ eventhough i put a "name" attribute in the textarea and get the value of the textarea in PHP via $_POST[''], i don't get the value typed in the textarea. please help
[jQuery] issue with .append
I have a bit of code that uses .append: $(pObject).append(whatToAdd); pObject is a div, with an unique id, in this case "#divTxt" whatToAdd is a string containing a tag and two tags. The HTML is: Add My problem is that both ie6 & ie7 insist on placing the first element outside of the tag contained in whatToAdd, which since I use the unique id of the tag to remove the appended content later, constitutes a problem. Anyone else ever have a similar issue? or am I just being a noob to jquery and there is some semantic I don't understand.
[jQuery] jCarousel - IE6 issue, carousel overlapping a nested nav
Hi, Please check out the following url where im using jcarousel to act as an image slideshow. to the left of the clip container i have a nested navigation list that is showing underneath the clip container in IE6. the nested navigation toggles on above the clip container just fine in other modern browsers but i can't seem to figure out why its acting up in IE6. when the page loads in IE6, i can see that the navigation appears before the clip container appears. but in firefox the clip container loads first then everything else. any ideas? Is this an issue with document ready or window ready? I have also tried to set the z-index of the navigation above that of the clip container, but its not fixing the issue. Thanks for your time. newwinter.tnvacation.com
[jQuery] Re: Scriptdoc-file for jQuery 1.2.1
aptana 1.0 build-in? On Nov 14, 9:35 pm, dehneg <[EMAIL PROTECTED]> wrote: > Hi all, > > I am looking for the scriptdoc file (http://www.scriptdoc.org/) for > jQuery 1.2.1. > Any one knows where I can download it ? > > Thanks, > Alex
[jQuery] Re: Problems with multiple animations and timeouts
David, Thanks, that did actually work (although I've made that change to an earlier version of my script; wrapping the code in a jQuery extension seemed to introduce other problems, and I haven't got the time right now to investigate why; since I've got the thing working, I might just have to leave it there for now!) Clearly I need to understand a little more about variable scope in JS : ( serializer On 13 Nov, 21:05, David Serduke <[EMAIL PROTECTED]> wrote: > I'm not positive this is the problem but try putting a var in front of > the nextTarget assignment. Right now it looks like a global variable > in the code fragment you posted. > > var nextTarget = targetItem.next(); > > David > > On Nov 13, 8:18 am, serializer <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I've set up a simple extension for an image rotator. It looks like > > this: > > > jQuery.fn.imageRotate = function(delay,speed) { > > // Converted s into ms > > delay = delay * 1000; > > // Get all child items of the list > > var targetItems = $(this).children(); > > // Hide all except first item (and store the first item as > > targetItem) > > var targetItem = targetItems.hide().slice(0,1).show(); > > // Set a JS timeout for next rotation > > setTimeout(function(){ > > $(this).imageRotateNext(targetItem,delay,speed); > > },delay); > > }; > > > jQuery.fn.imageRotateNext = function(targetItem,delay,speed) { > > nextTarget = targetItem.next(); > > if (!nextTarget.is("li")) { > > // Get first child of the list by slicing first > > element of > > collection > > nextTarget = $(this).children().slice(0,1); > > // Move it to the end of the list > > $(this).append(nextTarget); > > } > > nextTarget.fadeIn(speed,function(){ > > // Previous item will be hidden on fade completion > > targetItem.hide(); > > }); > > setTimeout(function(){$ > > (this).imageRotateNext(nextTarget,delay,speed)},delay); > > > }; > > > The HTML markup is a plain unordered list, with each list item > > containing one image. If you call $ > > ("ul#myList1").imageRotate(2,"fast") the extension hides all except > > the first image, then starts fading each one in over the top after the > > specified number of seconds (delay). > > > It works beautifully when just one image is rotating. Once I get more > > than one on the page at once, however, images start intermittently > > disappearing. > > > It seems like it's being caused by the *other* list; meaning, when an > > image from the *second* list fades in, the current image in the > > *first* list gets hidden. > > > I conclude that the targetItem.hide() which gets called on completion > > of fadeIn is causing the problem. It should be hiding the image in the > > second list, but by the time the callback is performed, targetItem is > > now referring to the targetItem from the *first* list, so that gets > > hidden instead. > > > I hope this is clear so far ! > > > So really, I think I understand the problem, I'd just like to know > > other people's recommendations for how to solve this type of problem, > > namely Javascript variable scope within callback functions. How do I > > set up a callback that will have a reference to the object this > > variable holds *now*, rather than the reference it points to *when* > > the callback is raised? I've come up against this issue a few times, > > so I think understanding this solution might help me in quite a few > > places. > > > Thank you kindly, > > Pete Hurst
[jQuery] Re: Superfish not working on PHP page
Can I just clarify what you've said? You mean, explicitly define the width of the navigation div and then make sure that width plus padding equals the first ul element? There are a couple of issues with width that may all be related actually. If you take a look at this page: http://www.clinicnine.com/fine-lines-and-wrinkles.php in FF and IE you'll notice that FF behaves perfectly but IE has a number of problems. "Pop" is one, as is the width of the hover on the submenus. On Oct 11, 2:23 am, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Make sure that the anchor elements have an explicit width and that > their width plus horizontal padding adds up to the width of the > submenu ul element width. > > Joel Birch.
[jQuery] Re: modifying a label when radio input selected
You could do something like this: $('div#searchLabels label#labelRecipesCat').click(function() { if (this.checked ){ $(''div#searchLabels label#labelRecipesCat'').addClass('selected'); $(''div#searchLabels label#labelEntireSite').removeClass('selected'); }; }); On Nov 13, 10:01 pm, sperks <[EMAIL PROTECTED]> wrote: > Apologies, if this comes through to the list twice (I waited a few > hours before pushing again). > > Update. Here's the beautiful hunk of script that I have at the moment, > but I'm wanting to add the class to the label based on whether it's > associated input element is selected. > > $(document).ready(function() { > $('div#searchLabels input').each(function(index) { > var $thisLink = $(this); > $thisLink.attr({ > 'class': 'buttonInputs' > }); > }); > $('div#searchLabels label').each(function(index) { > var $thisLink = $(this); > $thisLink.attr({ > 'class': 'buttonLabels' > }); > }); > $('div#searchLabels label#labelEntireSite').addClass("selected"); > $('div#searchLabels label#labelEntireSite').click(function() { > $(this).addClass("selected"); > $('div#searchLabels > label#labelRecipesCat').removeClass("selected"); > }); > $('div#searchLabels label#labelRecipesCat').click(function() { > $(this).addClass("selected"); > $('div#searchLabels > label#labelEntireSite').removeClass("selected"); > }); > > }); > > On Nov 13, 12:57 pm, sperks <[EMAIL PROTECTED]> wrote: > > > I have some formatting I want to add to a couple of radio buttons. > > > I'm wanting to hide the actual radio buttons and only show the labels > > which I want to format differently depending on whether they're > > related radio button is selected or not. > > > HTML: > > > > > name="cat"> > > Entire > > Site > > > > Recipes > > > > > If I click on the recipes label (id="recipesCat") I want to change > > it's class. I've been thinking along the lines of associating it via > > it's corresponding input element becoming selected > > ([EMAIL PROTECTED]"selected"]), but I'm pretty new to jQuery and any > > help getting me in the right direction would be great. > > > Thanks > > Steve
[jQuery] Re: OT: Somebody's spam filter is doing me wrong
Looking at the information you posted, it looks like the email address is listed in the BlackList. "USER_IN_BLACKLIST " You need to remove the user from the blacklist so that Mdaemon will allow the message to be delivered. On Nov 13, 2:31 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Sorry to have to post this to the whole list, but I'm not sure how > else to deal with this. > > Every time I post to this list, I get an auto-reply[1] from > [EMAIL PROTECTED] telling me "MDaemon has identified your message > as spam. It will not be delivered." > > Could whoever belongs to that domain (or maybe from > [EMAIL PROTECTED]) please help me out by getting MDaemon to stop > identifying my messages as spam? I'd really appreciate it. Or, if > someone else has an idea of how I can stop this, that would be great. > It's starting to make me reluctant to post anything here. > > Thanks, > > --Karl > > [1] here is the full message body: > > MDaemon has identified your message as spam. It will not be delivered. > > From : [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject : [***SPAM*** Score/Req: 95.3/7.0] [jQuery] Re: [BUG-1.2.1] > css("...",function(){ return ...;}) > Message-ID: <[EMAIL PROTECTED]> > > Yes, score=95.3 required=7.0 tests=BAYES_00,USER_IN_BLACKLIST > autolearn=no version=3.1.5 > ** > * 100 USER_IN_BLACKLIST From: address is in the blacklist * -4.7 > BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: > 0.] > > : Message contains [1] file attachments > > > === > The information contained in this email is private & confidential. It > is intended only for the use of the person(s) named. If you are not > the intended recipient, you are notified that any dissemination or > copying of this communication is prohibited and kindly requested to > notify the sender and then to delete the message. JRG gives no > representation or guarantee with respect to the integrity of any > emails or attached files and the recipient should check the integrity > of and scan this email and any attached files for viruses prior to > opening. > > ===
[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?
Well I've got this: $('h3').click(function() { //$(this).next().toggle("fast"); $(this).toggleClass('down').toggleClass('right'); $("input:checkbox").not(":checked").parent().next().hide(); }); And that hides the checkbox - but I need to hide the associated label as well. The parent().next() doesn't work above - I get one extra (unchecked) item in each group... :( Jim > -Original Message- > From: tlphipps [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 14, 2007 12:05 PM > To: jQuery (English) > Subject: [jQuery] Re: how to loop over checkboxes and hide > the UNchecked ones? > > > You might try this instead of using .each() > UNTESTED: > $("input:checkbox").not(":checked").hide(); > > On Nov 14, 10:16 am, "Priest, James (NIH/NIEHS) [C]" > <[EMAIL PROTECTED]> wrote: > > I've got a series of topics - each with a list of checkboxes. > > > > Topic > > 0 item 1 > > 0 item 2 > > 0 item 3 > > > > When the user clicks the topic - I have the checklist > show/hide using > > toggle(). What I'd like is when the list closes - the > 'checked' items > > remain visible. > > > > Topic > > X item 2 > > X item 3 > > > > I'm struggling with how to loop through the list of checkboxes?? My > > attempt to use .each() isn't working?? > > > > $('h3').click(function() { > > // $(this).next().toggle("fast"); > > // $(this).toggleClass('down').toggleClass('right'); > > > > $('input:checkbox').each( function() { > > var checked_status = this.checked; > > if (!checked_status) > > { > > $(this).hide(); > > } > > }); > > }); > > > > Thanks, > > Jim > >
[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?
Sweet - that DOES work! One step closer!! Thanks, Jim > -Original Message- > From: tlphipps [mailto:[EMAIL PROTECTED] > You might try this instead of using .each() > UNTESTED: > $("input:checkbox").not(":checked").hide();
[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?
You might try this instead of using .each() UNTESTED: $("input:checkbox").not(":checked").hide(); On Nov 14, 10:16 am, "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> wrote: > I've got a series of topics - each with a list of checkboxes. > > Topic > 0 item 1 > 0 item 2 > 0 item 3 > > When the user clicks the topic - I have the checklist show/hide using > toggle(). What I'd like is when the list closes - the 'checked' items > remain visible. > > Topic > X item 2 > X item 3 > > I'm struggling with how to loop through the list of checkboxes?? My > attempt to use .each() isn't working?? > > $('h3').click(function() { > // $(this).next().toggle("fast"); > // $(this).toggleClass('down').toggleClass('right'); > > $('input:checkbox').each( function() { > var checked_status = this.checked; > if (!checked_status) > { > $(this).hide(); > } > }); > }); > > Thanks, > Jim
[jQuery] Re: jqGrid update
Oww thanks, i missed this. On Nov 14, 2007 1:36 PM, Tony <[EMAIL PROTECTED]> wrote: > > Jean, > There is a client side sorting. Please check the demo page. > Regards > Tony > > On 14 Ноем, 17:30, Jean <[EMAIL PROTECTED]> wrote: > > and the client side sorter? > > > > > On Nov 13, 2007 11:10 AM, Tony <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > Ryura, > > > Yes there is solution for this. Please check the JSON SubGrid example > > > - you can pass parameters from master grid. > > > Regards > > > Tony > > > > > On 13 Ноем, 01:51, Ryura <[EMAIL PROTECTED]> wrote: > > > > Wonderful, these client side editing features will be incredibly > > > > helpful. > > > > > > Any status on the subgrid suggestion I made (allow you to compare any > > > > two columns instead of just id=)? > > > > > > On Nov 12, 3:43 pm, Steve Brownlee <[EMAIL PROTECTED]> wrote: > > > > > > > Fantastic job, Tony. I already know where I can use this. > > > > > > > On Nov 12, 5:59 am, Tony <[EMAIL PROTECTED]> wrote: > > > > > > > > Just now I have updated the jqGrid. > > > > > > The news are: > > > > > > - Row editing > > > > > > - From now jqGrid can accept XML and JSON data with arbitrary > > > > > > structure using a xmlReader and jsonReader. > > > > > > > > Demo at:http://trirand.com/jqgrid/jqgrid.html > > > > > > > > Just now I will work hard on documentation. > > > > > > Enjoy > > > > > > Tony > > > > -- > > > > [] s Jeanwww.suissa.info > > > >Ethereal Agencywww.etherealagency.com > > -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Re: jqGrid update
Jean, There is a client side sorting. Please check the demo page. Regards Tony On 14 Ноем, 17:30, Jean <[EMAIL PROTECTED]> wrote: > and the client side sorter? > > On Nov 13, 2007 11:10 AM, Tony <[EMAIL PROTECTED]> wrote: > > > > > > > Ryura, > > Yes there is solution for this. Please check the JSON SubGrid example > > - you can pass parameters from master grid. > > Regards > > Tony > > > On 13 Ноем, 01:51, Ryura <[EMAIL PROTECTED]> wrote: > > > Wonderful, these client side editing features will be incredibly > > > helpful. > > > > Any status on the subgrid suggestion I made (allow you to compare any > > > two columns instead of just id=)? > > > > On Nov 12, 3:43 pm, Steve Brownlee <[EMAIL PROTECTED]> wrote: > > > > > Fantastic job, Tony. I already know where I can use this. > > > > > On Nov 12, 5:59 am, Tony <[EMAIL PROTECTED]> wrote: > > > > > > Just now I have updated the jqGrid. > > > > > The news are: > > > > > - Row editing > > > > > - From now jqGrid can accept XML and JSON data with arbitrary > > > > > structure using a xmlReader and jsonReader. > > > > > > Demo at:http://trirand.com/jqgrid/jqgrid.html > > > > > > Just now I will work hard on documentation. > > > > > Enjoy > > > > > Tony > > -- > > [] s Jeanwww.suissa.info > >Ethereal Agencywww.etherealagency.com
[jQuery] how to loop over checkboxes and hide the UNchecked ones?
I've got a series of topics - each with a list of checkboxes. Topic 0 item 1 0 item 2 0 item 3 When the user clicks the topic - I have the checklist show/hide using toggle(). What I'd like is when the list closes - the 'checked' items remain visible. Topic X item 2 X item 3 I'm struggling with how to loop through the list of checkboxes?? My attempt to use .each() isn't working?? $('h3').click(function() { // $(this).next().toggle("fast"); // $(this).toggleClass('down').toggleClass('right'); $('input:checkbox').each( function() { var checked_status = this.checked; if (!checked_status) { $(this).hide(); } }); }); Thanks, Jim
[jQuery] Re: Select box (selectedIndex) problems in Internet Explorer (ie) on refresh and back buttons
Anyone? I could really use some insight into this problem.
[jQuery] Zoomimage
Bah, the alert on IE6 appears when I press any key. That's valid for the official demo too: http://www.eyecon.ro/zoomimage/ -- Best regards, Stoyan mailto:[EMAIL PROTECTED]
[jQuery] Zoomimage
Very nice plugin Stefan ! I implemented it on production site already. However on IE6 there is a strange flickering/vibrating of the image while resizing: http://newland-bg.com/eng_Balchik-Sunny-Dream Annother odd thing. Prezz ctrl on IE6 - an alert appears. -- Best regards, Stoyan mailto:[EMAIL PROTECTED]
[jQuery] Re: .load appending content in IE7 only
After playing about for a while, my code mysteriously starting working fine in IE. I suspect the problem may have been to do with something being cached, even though I'd cleared it. Thanks for the suggestion though, I never knew there was a .empty() function before! Chris -- From: "jseller" <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2007 4:56 AM To: "jQuery (English)" Subject: [jQuery] Re: .load appending content in IE7 only // You could empty the element before loading it: // say loading some xhtml file in a node id 'content' var filename = "somefile.xhtml"; // or any URI $("#content").empty().load(filename); // - or another way $.get(filename,{}, function(data) { $('#content').empty().append(data); } ); On Nov 6, 8:28 am, munchiez <[EMAIL PROTECTED]> wrote: I'm creating a basic email system and I'm having a problem with IE7 when using .load to replace the content of a div when a new message is selected. With earlier versions of IE and all other browsers the div content is replaced, but for some reason, IE7 is appending the content instead. Here's the code I'm using: function loadMail(mailID) { $('#mail-message').load('inc_message_ajax.asp?MailID='+mailID+''); } <.a href="default.asp?MailID=123" onclick="loadMail(123); return false;">message subject<./a> Any help would be really appreciated, this is driving me absolutely mad! Chris -- View this message in context:http://www.nabble.com/.load-appending-content-in-IE7-only-tf4757827s2... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] gradient plugin - wont work on td's?
i am trying to programatically add gradients to table header cells and i came across the gradient plugin (http://jquery.com/plugins/project/gradient). it seems that this plugin works well for creatign gradients in divs but when i try and apply it to a td, it seems to work in ie but in firefox, it puts the gradient at the top of the page rather than in the td. can anyone think of a possible workaround for this? -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13749147 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery.LocalScroll 1.1.2
Very nice, and some about easing?? On Nov 12, 2007 8:41 PM, Flesler <[EMAIL PROTECTED]> wrote: > > Hi, I've released version 1.1.2 of this plugin. > > Changes are: > - The default settings have been exposed for modification. > - The plugin can still work for dynamically added anchors, using the > setting 'persistent'. > - The trigger event can be something else than click. > - It's possible to make the anchors alter the hash in the address bar > (the default behavior). > > This is the project page: http://jquery.com/plugins/project/LocalScroll > And the demo: http://www.freewebs.com/flesler/jQuery.LocalScroll/ > > Hope it'll be useful for someone. > > Ariel Flesler > > -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Re: jqGrid update
and the client side sorter? On Nov 13, 2007 11:10 AM, Tony <[EMAIL PROTECTED]> wrote: > > Ryura, > Yes there is solution for this. Please check the JSON SubGrid example > - you can pass parameters from master grid. > Regards > Tony > > > On 13 Ноем, 01:51, Ryura <[EMAIL PROTECTED]> wrote: > > Wonderful, these client side editing features will be incredibly > > helpful. > > > > Any status on the subgrid suggestion I made (allow you to compare any > > two columns instead of just id=)? > > > > On Nov 12, 3:43 pm, Steve Brownlee <[EMAIL PROTECTED]> wrote: > > > > > Fantastic job, Tony. I already know where I can use this. > > > > > On Nov 12, 5:59 am, Tony <[EMAIL PROTECTED]> wrote: > > > > > > Just now I have updated the jqGrid. > > > > The news are: > > > > - Row editing > > > > - From now jqGrid can accept XML and JSON data with arbitrary > > > > structure using a xmlReader and jsonReader. > > > > > > Demo at:http://trirand.com/jqgrid/jqgrid.html > > > > > > Just now I will work hard on documentation. > > > > Enjoy > > > > Tony > > -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Re: Scripts at the bottom of the page
Actually, it isn't outside the scope of jQuery and it is now fixed in Rev 3822. -- Brandon Aaron On Nov 13, 10:34 pm, Brandon Aaron <[EMAIL PROTECTED]> wrote: > This is pretty much outside the scope of jQuery :/. You should bind > events that have the potential to be triggered before the page is > loaded within $(window).bind('load', fn). This will insure that the > page is ready to accept your events ... otherwise the browser just > isn't ready for you to interact with the page. > > -- > Brandon Aaron > > On Nov 9, 4:55 pm, mike503 <[EMAIL PROTECTED]> wrote: > > > > Yes, please do. > > >http://dev.jquery.com/ticket/1911 > > > Hopefully it will get the right eyes looking at it now :)
[jQuery] Re: slideUp weirdness when div content is a SWF file in FF
The CSS that defines the 3 divs #top{ display: block; height: 40px; width: 910px; margin: 0px; padding: 0px; } #slidebar { padding: 0px; height: 200px; width: 910px; margin:0px, } #slidebartrigger { background: url("images/slidetab.gif ") no-repeat right top; display: block; padding: 0px; height: 14px; } On Nov 13, 8:59 pm, somnamblst <[EMAIL PROTECTED]> wrote: > My slide down & up occur seamlessly in all browsers when the Div > content is an image file, smoothest is a CSS background image applied > to empty divs. When I substituted Flash generated object code in the > formerly empty divs, in FF the slidebar toggle div slides up under the > slidebar, while slidebar slides up suddenly after the slidebar trigger > has disappeared. I am also seeing a sudden partial popping open of > slidebar at the end of slideUp in IE. I have all divs defined as 0 > padding. > > > $(document).ready(function() { > initSlideboxes(); > function initSlideboxes() > { > > $('#slidebar').slideDown(1000); > setTimeout(function() > { > $('#slidebar').slideUp(3000); > > }, 5000); > > $('#slidebartrigger').click(function(){$ > ('#slidebar').slideToggle(); }); > > }; > }); > > > > > > > Flash file in this div > > > Flash file in this div > > a Gif image defined by a CSS background > image >
[jQuery] row clone and calculation
Hi, I have a table with input fields (array of them)...i can add new rows through clone...the problem is that i would like to calculate the numbers in the fields and display the sum at the end (both row sum and final sum) and i don't know how. Here's what i got: function calc(){ var price = $("[EMAIL PROTECTED]'price[]']").val(); var qty = $("[EMAIL PROTECTED]'qty[]']").val(); res = price * qty; $("[EMAIL PROTECTED]'row_sum[]']").val(res); var sum = $("input:disabled").sum(); $(".sum").text(sum); } The function is called on input keyup. Row sum is shown in the disabled input... Obviously this doesn't work when i add a row...it only works for the first row which is hardcoded... Thanks in advance!
[jQuery] Re: combo boxes disappear during blockui (only IE)
I'm just guessing here, but it probably has to do with elements otherwise "popping through" any other element in IE 6, regardless of z-index. There are a couple of ways to deal with that problem. One way is to layer an iframe on top of the select elements, but that might not work in this case (again, just guessing). The other is to just hide the select elements. Do the selects "reappear" when the area is unblocked? If they do, then I suspect the disappearance is intended behavior. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 7:21 AM, aknuth wrote: Just have a closer look at http://www.malsup.com/jquery/block/ #element. Blocking the div let the combos in IE disappear. Any ideas about that ?
[jQuery] Re: css("...",function(){ return ...;})
It's expected behavior,look at http://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/ : You can now pass in a function as a value for an attribute or a css property. The function is executed and its return value is set as the value for the property. By the way,function is invoked(simple insert "alert" inside) but returned value is not used. On Nov 13, 7:26 pm, XASD <[EMAIL PROTECTED]> wrote: > functionin place of value for property dosen't work. > > Thanks.
[jQuery] combo boxes disappear during blockui (only IE)
Just have a closer look at http://www.malsup.com/jquery/block/#element. Blocking the div let the combos in IE disappear. Any ideas about that ?
[jQuery] Scriptdoc-file for jQuery 1.2.1
Hi all, I am looking for the scriptdoc file (http://www.scriptdoc.org/) for jQuery 1.2.1. Any one knows where I can download it ? Thanks, Alex
[jQuery] Re: Issue with
Hi Adrien, Have you tried this : onclick="$('#c_right_content').getScript('./act/add.cfm'); hope this can help
[jQuery] Re: Horizontal Scroll Content Help
There are a number of plugins that do this sort of thing, each with its own style/functionality: jqGalView: http://benjaminsterling.com/?s=jqgalview jCarousel: http://sorgalla.com/jcarousel/ jCoursel Lite: http://www.gmarwaha.com/jquery/jcarousellite/index.php Hope that helps --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 14, 2007, at 5:07 AM, Limit-Studios wrote: I have this code:- How can I scroll the content of the 400px div by hovering over the arrows left or right. And how can I make it so when you click the arrow left/right it takes you straigh to a section ie. Click right arrow you get taken from id="t1" to id="t2" Click left arrow you get taken back to id="t1" Mouseover right arrow all the content in the DIV scrolls right Mouseover left arrow all the content in the DIV scrolls left Any help on this would be great as I'm having no luck getting this too work like that and every code i've tried doesn't quite do this.
[jQuery] Re: cluetip events
Hi amircx, You need to set the sticky option to true. I think that should do it for you. Also, for other options where you're just using the default (such as activation: hover), you don't need to define them in your options map. --Karl On Nov 14, 2007, at 6:21 AM, amircx wrote: 3 of that functions not working i think here is my code $(document).ready(function(){ $('#textfieldEIP').cluetip({ dropShadow:false, cluezIndex: 97, width:'90', height: '30', // The height of the clueTip. more info below [1] positionBy: 'bottomTop', // Sets the type of positioning. more info below [2] local:true,// Whether to use content from the same page (using ID) for the clueTip's body hideLocal:true, // If local option is set to true, this determines whether local content showTitle:false, // show title bar of the clueTip, even if title attribute not set cluetipClass: 'jtip', // class added to outermost clueTip div in the form of 'cluetip-' + clueTipClass. more info below [6] waitImage:false, // whether to show a "loading" img, which is set in jquery.cluetip.css arrows: false,// if true, sets background- position of cluetip div more info below [7] sticky: false,// keep visible until manually closed mouseOutClose:true,// close when clueTip is moused out activation: 'hover', // set to 'click' to force user to click to show clueTip closePosition:'title',// location of close text for sticky cluetips; can be 'top' or 'bottom' or 'title' }); rel="#textfieldToolbar"/> tools.jpg what im trying to achive is following to do that the tooltip will appear near textfield but the user will be able to click on elements in the tooltip so it will function like edit in place , user wants to edit textfield and once he on the textfield he gets menu of options that pops up hope you got me right amircx wrote: hey im trying to do a input's that once they are get mouseover it will open a tooltip with options like edit and stuff (icons) my question is in cluetip how can i hide/show a tip via javascript command instad of the "close " button? and also, is there a flag that i can check is the tooltip is currently shown or not? -- View this message in context: http://www.nabble.com/cluetip-events- tf4785879s27240.html#a13744518 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Why plugin repository dont have a search?
Always when i come to find some plugin i have to click to browse by name and use the search of Firefox to find what i want, so why dont have any search field? sorry the bad english -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] Horizontal Scroll Content Help
I have this code:- How can I scroll the content of the 400px div by hovering over the arrows left or right. And how can I make it so when you click the arrow left/right it takes you straigh to a section ie. Click right arrow you get taken from id="t1" to id="t2" Click left arrow you get taken back to id="t1" Mouseover right arrow all the content in the DIV scrolls right Mouseover left arrow all the content in the DIV scrolls left Any help on this would be great as I'm having no luck getting this too work like that and every code i've tried doesn't quite do this.
[jQuery] The hour glass do not disappear after unblocking the page until the mouse movement is performed
hello members, I am using jquery plugin. I am blocking the entire page. But I saw that the hour glass don't get disappear until I perform some mouse movement. This behaviour can also be seen in the jquery site, where demo of different page blocking is shown. Can someone help me to get this resolved. thanks in advance. thanks romesh
[jQuery] History Plugin initial state
Hi I hope someone can help, I am just getting stated with jQuery so I may be asking a question that is obvious to most of you but I'm stuck. I have implemented the History/Remote plugin in on my site. I found the files on http://stilbuero.de/jquery/history/#Chapter_1. It works really well except I would like to have a default setting so that when the page is initially loaded the Ajax Div is populated with content and becomes part of the history. The tabs plugin http://stilbuero.de/jquery/tabs/index.html does exactly this (you load index.html the first tab is active by default with content beneath it, clicking the other tabs changes the content and you can use the back/forwards buttons to navigate. If you navigate back to index.html the content is still visible beneath the tab). In my effort although I have placed the "default" content between the div tags which means it shows up on page load if I then move around the site when I navigate back to the initial page the ajax is not loading the initial content. Can anyone suggest a fix. TIA
[jQuery] Re: HOVER Over Image Enlarge Image
Hi, Do you mean something like : $(document).ready(function() { overThumbnailZoom = 2 ; $(".classOfEachThumbnail").hover(function(){ $(this).height( Math.ceil($(this).height() * overThumbnailZoom)) ; $(this).width( Math.ceil( $(this).width() * overThumbnailZoom)) ; },function(){ $(this).height( Math.floor($(this).height() / overThumbnailZoom)) ; $(this).width( Math.floor($(this).width() / overThumbnailZoom)) ; } ); }); or an image from a different src ? Alex On Nov 13, 5:48 am, troymasters <[EMAIL PROTECTED]> wrote: > Are there any jquerys that would allow this functionit is used > most frequently on Ask.com...when you hover over an image with the > cursor a much enlarged image of the thumbnail appears in the browser > on top of the page. > > any script solutions would be appreciated.
[jQuery] Re: Fix for BlockUI slowness
All good points, Matt. Thanks for the feedback. > Another things I noticed - when blocking an element, it appends the > blocking layer to the element itself. > > So, when I call block() before load() and the response comes back, the > innerHTML is over-written and the blocking layer is removed. > Unfortunately, this happens before the complete function for my load() > call is fired, so if I'm putting any logic in there or wanting to do > other things before I un-block, I'm out of luck. > > Perhaps the blocking layer could be appended as a sibling to the > object being blocked? I was going to go in and make the changes, but I > decided that for my immediate use it wasn't that big of a deal. > > Also, the 'install' method is very long and complex. It would be much > nicer if it were broken down into sub-functions that perform specific > parts of the logic. That way if I need to change some functionality I > could just override a single function rather than duplicating the > entire install method and opening myself up to problems with later > releases. It would be a good practice for all plugins to break their > logic into small pieces for this reason, IMO. With browser scripting, > you can never be certain that you have considered everything a user > may want to do. Making it easier to override specific pieces of logic > is a good thing. > > Thanks, > > Matt Kruse > >
[jQuery] Re: cluetip events
3 of that functions not working i think here is my code $(document).ready(function(){ $('#textfieldEIP').cluetip({ dropShadow:false, cluezIndex: 97, width:'90', height: '30', // The height of the clueTip. more info below [1] positionBy: 'bottomTop', // Sets the type of positioning. more info below [2] local:true,// Whether to use content from the same page (using ID) for the clueTip's body hideLocal:true, // If local option is set to true, this determines whether local content showTitle:false, // show title bar of the clueTip, even if title attribute not set cluetipClass: 'jtip', // class added to outermost clueTip div in the form of 'cluetip-' + clueTipClass. more info below [6] waitImage:false, // whether to show a "loading" img, which is set in jquery.cluetip.css arrows: false,// if true, sets background-position of cluetip div more info below [7] sticky: false,// keep visible until manually closed mouseOutClose:true,// close when clueTip is moused out activation: 'hover', // set to 'click' to force user to click to show clueTip closePosition:'title',// location of close text for sticky cluetips; can be 'top' or 'bottom' or 'title' }); tools.jpg what im trying to achive is following to do that the tooltip will appear near textfield but the user will be able to click on elements in the tooltip so it will function like edit in place , user wants to edit textfield and once he on the textfield he gets menu of options that pops up hope you got me right amircx wrote: > > hey > im trying to do a input's that once they are get mouseover it will open a > tooltip with options like edit and stuff (icons) > my question is in cluetip how can i hide/show a tip via javascript command > instad of the "close " button? > and also, is there a flag that i can check is the tooltip is currently > shown or not? > > > -- View this message in context: http://www.nabble.com/cluetip-events-tf4785879s27240.html#a13744518 Sent from the jQuery General Discussion mailing list archive at Nabble.com.