[jQuery] Plugin code needs comments and optimization

2008-10-28 Thread Nic Hubbard
Hey everyone, I have a small plugin that I wrote that makes a normal form into an ajax form. I also want the user to be able to pass some ID's to the plugin so that they can return specific content in the server response and place it on the page. But, if the user chooses to leave that blank they

[jQuery] Re: [hacking] animating a div with fuzzy png borders

2008-10-28 Thread Rene Veerman
Well i hacked something into the animate() and custom() functions but actually calling the 'fix-function' during the animation resulted in a flickering animation. I haven't been able to get rid of it, so i'm reverting to std jquery & "hard" borders for elements that i animate, for now.. If i

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread csplrj
Yes I am facing this on real project But should not JQuery handle this issue as JQuery is meant for crossbrowser? CSJakharia

[jQuery] Internal Links Broken

2008-10-28 Thread Rahil
Hi everyone, I'm having a very strange problem and I'm hoping someone can help me. On our website, we have a page that lists events. On that page, there are links to scroll down and view the details of each event. The problem is: When you click the internal link, all content above the anchor is

[jQuery] Galleria Thumbnails not generating in Firefox

2008-10-28 Thread Cosmo Kramer
Can anyone please explain why in FF the thumbnails are displaying as full images and the main image is not displaying at all. Works fine in opera and safari. Link: http://cmphotographer.com.au/category/wedding/

[jQuery] Re: Drag and Drop Question

2008-10-28 Thread Richard D. Worth
Please ask on the jQuery UI list: http://groups.google.com/group/jquery-ui/ - Richard On Tue, Oct 28, 2008 at 11:28 AM, Mazureth <[EMAIL PROTECTED]> wrote: > > im trying to write a cork board type app for a site and im having a > little trouble with the drag and drop. basically there are 2 divs

[jQuery] Re: How do I keep from focusing a readonly field?

2008-10-28 Thread TimW66
Thank you! Of course, it makes sense. I guess I was caught up on the readonly attribute of the input box, not thinking about it as a class for the TD. One minor problem, I had to use ":first" instead of ":first-child" (didn't focus anything). But it works! On Oct 28, 6:26 pm, Ryura <[EMAIL PR

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
Maybe I misunderstood you, but it seems like you're referring to "age- method" as if it already exists? Or are you saying to use "math" and do it that way? On Oct 28, 4:00 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Adding the parent-age-check is just another method. In this case, I'd > add

[jQuery] Re: blockUi and Jquery animate function problem (IE7 of course)

2008-10-28 Thread Mike Alsup
> Recently i decide to use the animate function of jQuery to pop up an > absolute position it window that holds form data. The problem is that > when i use the animate function to pop up the window the blockUi in > Internet explorer 7 cannot handle oppacity and cannot display the > loader. Just wh

[jQuery] Re: jQuery Form Plugin using keyUp() or change() instead of submit

2008-10-28 Thread Mike Alsup
You can bind those events and call ajaxSubmit when appropriate. ajaxForm waits on the submit event. Mike On Oct 27, 6:24 pm, brian mahoney <[EMAIL PROTECTED]> wrote: > > Is there a way to get  the  jQuery Form Plugin to work with a   > > keyUp() or change() instead of having to use a submit but

[jQuery] Re: Using taconite to append javascript and stylesheets

2008-10-28 Thread Mike Alsup
> Is this scenario supported by Taconite or should I rather the > tag for appending stylesheets? Use the eval tag.

[jQuery] Re: How do I keep from focusing a readonly field?

2008-10-28 Thread Ryura
$('tbody>tr:last-child>td:not(.readonly):first- child>input').focus().select(); On Oct 28, 7:07 pm, TimW66 <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a table that I will usually want to focus the first input box > in the first column in the last row.  Something like this: > > >   >

[jQuery] Re: Quick Syntax Error Check

2008-10-28 Thread Ryura
IE hates it for good reason. Proper JSON (and Javascript object declaration) has no trailing comma on the final line. This is one thing IE does right that the other browsers are too giving on. On Oct 28, 5:57 pm, JCQ <[EMAIL PROTECTED]> wrote: > I agree with Tim, that is EXACTLY the problem.  I

[jQuery] .append() variable content rather than text

2008-10-28 Thread citizn
I am fairly new to jquery and javascript, but giving it a fair try because I am interested in learning it. The trouble I am having revolves around my navigation links. I would like each one to show a specific div in a container I have set up. The HTML loads with all of the divs visible, which I t

[jQuery] strange IE behavior with Superfish

2008-10-28 Thread KevinC
I'm using Superfish for the top horizontal drop-downs on http://www.tapestrydirect.com/. It works great in Firefox, but in IE7 the width of the submenus expands an additional 20 pixels or so after initially appearing on hover. Anybody know why this is happening? Thanks

[jQuery] Re: my first plugin

2008-10-28 Thread diego
Hi Microbe, i'm glad that you like my work, today i just finished to develop the basic options about my script,and it works fine with all browsers tested,FF2/3, opera 9,ie6/7,safari(for pc), google chrome, and this is a great result for me. I want to add the next and prev btns, and a space for img

[jQuery] How do I keep from focusing a readonly field?

2008-10-28 Thread TimW66
Hi all, I have a table that I will usually want to focus the first input box in the first column in the last row. Something like this: ... <-- selects this one And I use this to do that part: $('tb

[jQuery] Re: SuperFish with supersubs problem

2008-10-28 Thread Karol Rybak
Great, it worked. Thanks a lot for your help... On 27 Paź, 23:09, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Hello, > > My suggestion is to try putting the Superfish CSS before the script > tags rather than after them in the source code. > > Joel Birch.

[jQuery] Re: Using taconite to append javascript and stylesheets

2008-10-28 Thread ricardobeat
You don't need a plug-in to do that: $('head') .append('') .append('') On Oct 28, 2:29 pm, Bob Schellink <[EMAIL PROTECTED]> wrote: > Hi all, > > I am using the Taconite (http://malsup.com/jquery/taconite/) plugin to > dynamically append external scripts (

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-28 Thread Jörn Zaefferer
Does $("#attendee_editForm") match any elements? A testpage would help. Jörn On Tue, Oct 28, 2008 at 5:38 PM, ryanhavoc <[EMAIL PROTECTED]> wrote: > > I have a script that generates a form. I'm pulling this form into a > dialog box on my main index page via Ajax and trying to attached the > Valid

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Jörn Zaefferer
Adding the parent-age-check is just another method. In this case, I'd add a custom age-method (http://docs.jquery.com/Plugins/Validation/Validator/addMethod), and use that together with date and required. Jörn On Tue, Oct 28, 2008 at 11:49 PM, Validatorian <[EMAIL PROTECTED]> wrote: > > For what

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
For what it's worth, if you can think of a better (read: cleaner) way to do what I'm currently doing, please let me know :) On Oct 28, 11:26 am, Validatorian <[EMAIL PROTECTED]> wrote: > I'm doing something similar to this > example:http://docs.jquery.com/Plugins/Validation/Methods/required#depe

[jQuery] parserError using load()

2008-10-28 Thread HiddenPhoenix
i am using the following code to load dynamic content into a div (mainContentArea) on my webpage. I occasionally get a parserError when loading the content into dom. but sometimes not. what is causing the parserError and how can I fix this? this is my jquery code: $('#mainContentArea').load('co

[jQuery] Re: my first plugin

2008-10-28 Thread Microbe
I should add, this is a great solution to another issue. I use highslide on a website but just loading when the combination is Win2K and IE6 causes a computer to reboot

[jQuery] Re: my first plugin

2008-10-28 Thread Microbe
Nice work, I would like to see the behaviour as follows: When one image is zoomed and you click on another there are 3 options: just close the first one (as it does now) OR close the first one and open the second one (better) OR open the second one as well.

[jQuery] Re: Selecting option of select with different ID using same code

2008-10-28 Thread pedalpete
Not sure if I understand, but you can't add an id to the links? is that correct? Any chance you can have your links read "Select option with Blue text" ? That way you could use the .html() selector to get the value of the clicked item and feed that into your "("#productImg" + optionValueText).show

[jQuery] slideDown with append

2008-10-28 Thread pedalpete
I'm sure this one is super simple for a bunch of people, but I'm a bit stuck. I have a list of items (show listings) and when a user clicks on a show, I want a map to slideDown and display a map of the location of the show. If the user clicks on another show, the map that is being shown slides i

[jQuery] Re: Select an element in an ancestor selector

2008-10-28 Thread tpb976
Try removing the ":first" like this: $("a.confirmar").click(function(){ $ (this).parents("li").next().find("a.apImg").addClass("apImgOn").removeClass("apImg"); }); Also, since the methods are chainable, you do not need to traverse to the item again. You can just call .removeClass() right af

[jQuery] Re: Quick Syntax Error Check

2008-10-28 Thread JCQ
I agree with Tim, that is EXACTLY the problem. IE seems to hate any trailing commas in that json-ish type of data structure, sometimes it's called a syntax error, and once in a while I'll also get a message like "no object detected" or somesuch. Anyway, kill that trailing comma Tim mentioned an

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread ricardobeat
*property, that is. BTW, are you facing this issue on real project? Using jQuery event handlers the 'this' keyword usually suffices. On Oct 28, 4:55 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Ah, now I see it. Actually in IE it doesn't alert at all when hovering > the menu only. > > I think IE

[jQuery] Re: Drag and Drop Question

2008-10-28 Thread JCQ
to me, it looks like the z-index calculation is only happening when the board is set up. What if you put that zmax calculation into its own method, say, calculateZmax(), and then from *both* the ('.dragImage').click() function as well as the drop: function you called calculateZmax() ? Either

[jQuery] Re: Quick Syntax Error Check

2008-10-28 Thread tpb976
The problem might be that there is a "," after the line "email: "Please enter a valid email address"". Try removing the comma and see what happens. -Tim On Oct 28, 1:10 pm, MauiMan2 <[EMAIL PROTECTED]> wrote: > IE7 is telling me the following script has a syntax error and I have > tried to fin

[jQuery] Re: where are the plugin demos?

2008-10-28 Thread JCQ
thanks, Mark. yes, I'm definitely in the right place --- I just did an interesting test. I randomly picked 25 plugins from the "latest plugins" list and only 2 had any demo/documentation attached in the Resources section. So either I'm not looking in the right spot, or maybe everyone is just adva

[jQuery] text after a radio button

2008-10-28 Thread [EMAIL PROTECTED]
Working with Lotus Notes developer - apparently, when building a form with radio buttons elements, Lotus automatically puts the value in text beside the button. He says there is no way to override this. So we get: 1 2 3 4 5 I said maybe we can hide that text with jQuery, but I find that I can t

[jQuery] text after a radio button

2008-10-28 Thread [EMAIL PROTECTED]
Working with Lotus Notes developer - apparently, when building a form with radio buttons elements, Lotus automatically puts the value in text beside the button. He says there is no way to override this. So we get: 1 2 3 4 5 I said maybe we can hide that text with jQuery, but I find that I can t

[jQuery] binding solution

2008-10-28 Thread RyOnLife
I am having a binding issue. I've read enough in the jQuery docs and on this forum to have a cursory understanding. Without many examples to refer to, I am unsure of how to implement Live Query in order fix. I'm calling this refreshLabels() function each time a form checkbox is clicked. On the fi

[jQuery] Selecting option of select with different ID using same code

2008-10-28 Thread Franky
Please take a look on example code: jQuery(document).ready(function() { jQuery("#imageShowcase img").hide(); jQuery("#productImgDefault").show(); jQuery("#colorSelector").change(function() { // Hide all images on slect element change action jQuery("#imageShowc

[jQuery] Quick Syntax Error Check

2008-10-28 Thread MauiMan2
IE7 is telling me the following script has a syntax error and I have tried to find it but haven't located it . . . yet: (function($){ $().ready(function() { // validate the comment form when it is submitted $("#commentForm").validate(); //

[jQuery] .load not always working

2008-10-28 Thread HiddenPhoenix
i have a sidebar menu where users can click to load new data into the main part of the screen. it works most of the time but after a few clicks in the menu, the whole page just freezes and the loader stops working. it doesnt load any more data. its not specific to any page or link. it just stops a

[jQuery] Re: Jquery and AJAX

2008-10-28 Thread Will B.
You might want to see if this is your problem: If you have a set of functions, jQuery or otherwise in the main page, then you reload an inner div with Ajax content, you will very likely find that the new Ajax'ed content can no longer reach the functions in the main page. There is some sort of bi

[jQuery] Select an element in an ancestor selector

2008-10-28 Thread André
Hello guys, I'm in a big trouble trying to create a simple jQuery function, and my boss is "on my neck" asking when I'll be done with this work... I need help!!! My HTML is: ... ...

[jQuery] Re: jQuery Documentation in PDF

2008-10-28 Thread Imaggens
Really an impressive work, as useful as important. It helps me because, for now, I'm temporarily without daily access to the Internet. Congratulations

[jQuery] .load not always working

2008-10-28 Thread HiddenPhoenix
i have a sidebar menu where users can click to load new data into the main part of the screen. it works most of the time but after a few clicks in the menu, the whole page just freezes and the loader stops working. it doesnt load any more data. its not specific to any page or link. it just stops a

[jQuery] Deployment concerns for jquery

2008-10-28 Thread Low Kian Seong
I see a lot of demos for jquery and normally how I do it is I just do a right click and copy the source of the demo right on to my web application. This has however lead to a messy javascript library because I have my pieces of the same code lying around the place. Could someone with experience sh

[jQuery] [validate] Problem with validation on a form pulling in with Ajax

2008-10-28 Thread ryanhavoc
I have a script that generates a form. I'm pulling this form into a dialog box on my main index page via Ajax and trying to attached the Validate plugin to the form. So I've got this: $("a.attendee_add").click(function() { //Get href from link var addURL = $(this).attr("href");

[jQuery] Registering the value of variable instead of the variable itself in a loop

2008-10-28 Thread Ozberk
Hello, I'm new to jQuery and I am currently working on google gadget which has some animations. I have wrote the jQuery code and manage to make it work: $('#itemn').click(function() { if ($("#tabcontentn").is(":hidden")) { if(active == "init") { $(

[jQuery] Drag and Drop Question

2008-10-28 Thread Mazureth
im trying to write a cork board type app for a site and im having a little trouble with the drag and drop. basically there are 2 divs (#picker, #board) that load on the page. the #picker div contains various images that the user can drag and drop onto the #board div. once an image has been droppe

[jQuery] [Taconite] Using taconite to append javascript and stylesheets

2008-10-28 Thread Bob Schellink
Hi all, I am using the Taconite (http://malsup.com/jquery/taconite/) plugin to dynamically append external scripts (

[jQuery] Re: Jquery and AJAX

2008-10-28 Thread Dhana
Looks like what's happening is the update panel (.NET right?) replaces the entire html content with the asynchronous postback. At this point, none of your HTML elements are bound to the event handlers since they were all rewritten. You could prevent this by doing one of 2 things - 1) Event del

[jQuery] problem with Effects/fadeIn in ie

2008-10-28 Thread Ari
when I run the sentence jQuery ( '# divId'). fadeIn ( "slow"); in ie disappears in the backgroud, the background is a PNG image, the style is for ie: background-image: none; filter: progid: DXImageTransform.Microsoft.AlphaImageLoader (src ='../ images2_FR/background.png ', sizingMethod =' scale '

[jQuery] Re: my first plugin

2008-10-28 Thread diego
Hi Andy, tnx for your reply, the animation hover the thumbs it's very simple: $('.img_in li').hover(function() { var img = $(this).attr('title') $('#'+img).stop().animate({ padding:'10px', height : '124px',

[jQuery] Re: my first plugin

2008-10-28 Thread diego
Hi Validatorian,tnx for your reply, the loader it's just there, but maybe it's too dark to see it, i'm going to change it. :) Regards Diego On 28 Ott, 20:43, Validatorian <[EMAIL PROTECTED]> wrote: > Hi Diego, > > I think it's a nice plugin (just tested it, didn't look at code) > > I think it

[jQuery] Binding multiple custom namespaced events not working correctly

2008-10-28 Thread Tim Molendijk
Hello, Run the following code snippet in Firefox and open up Firebug. It fires a custom event upon left or right click. The handlers for 'myclick.left' and 'myclick.right' work as expected. The problem is that 'any click' is only logged to the console in case of a right click, and not in case of

[jQuery] Re: my first plugin

2008-10-28 Thread Validatorian
Hi Diego, I think it's a nice plugin (just tested it, didn't look at code) I think it might be better if you showed some "loading" indicator somehow, while it's waiting to load the large images. Other than than, good job on your first plugin! On Oct 28, 12:04 pm, diego <[EMAIL PROTECTED]> wrot

[jQuery] Re: my first plugin

2008-10-28 Thread Andy Matthews
That's very well done. Good job Diego. I really like the animation when you hover over the thumbnail. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of diego Sent: Tuesday, October 28, 2008 2:04 PM To: jQuery (English) Subject: [jQuery] my first

[jQuery] my first plugin

2008-10-28 Thread diego
Hi all, i'm going to finish my first plugin, i'm not exactly a programmer.. just a webdesigner with aptitude for programming, especially with jquery :) I would like your opinion about this plugin, and some advices to make it work better. here it's a simple demo page.. http://www.pirolab.it/piro_

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread ricardobeat
Ah, now I see it. Actually in IE it doesn't alert at all when hovering the menu only. I think IE doesn't support the "target" attribute. Try this: subMenu = (event.target || event.srcElement).id; On Oct 28, 3:39 am, csplrj <[EMAIL PROTECTED]> wrote: > I am using Firefox 3.0.3 and IE 6.0 > > If

[jQuery] Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
I'm doing something similar to this example: http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-callback I have a date input field, and if you are under 13, it pops up another field for parent's age.But unlike this example,I want the parent to be required to be 18 or older.How

[jQuery] Re: where are the plugin demos?

2008-10-28 Thread mbraybrook
Click the title to view the plugin itself, lookup the Resources section, if a demo is available its listed there, else try the home page for the project. Assuming your on http://plugins.jquery.com? M On Oct 28, 5:30 pm, JCQ <[EMAIL PROTECTED]> wrote: > I was wondering where the plugin demos are

[jQuery] where are the plugin demos?

2008-10-28 Thread JCQ
I was wondering where the plugin demos are? Browsing thru the list of latest plugins, all it seems to list is the name, sometimes a version number and then a link to download the plugin itself Lots of times I don't even understand the plugin description until I see it working and code snippe

[jQuery] Re: Is array empty?

2008-10-28 Thread Klaus Hartl
It's just a standard JS array: var empty = !levels.length; --Klaus On 28 Okt., 17:15, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > I have the folllowing: > >         var levels = []; >         $levels = $('input[name="Levels"]:checked + > label'); >         levels = $levels.map(function()

[jQuery] Re: change speed of animation during runtime

2008-10-28 Thread sissi
hi i have added a ui.slider now that can be used to change the speed. The animation stops when someone drags the slider and continues when the slider is set to a new value. it works in principle but somehow the whole animation is then quite bumpy and not smooth anymore...can't really figure

[jQuery] Is array empty?

2008-10-28 Thread shapper
Hello, I have the folllowing: var levels = []; $levels = $('input[name="Levels"]:checked + label'); levels = $levels.map(function() { return $ (this).text(); }).get(); How can I check if levels array is empty? I tried levels, levels.val(), etc but I was not able to make

[jQuery] Re: Problem with adding EventListener

2008-10-28 Thread Josh Nathanson
jQuery makes it simpler: $("#msg_button").bind("click", show_msg); Or, if you are not reusing the function: $("#msg_button").click( function() { alert('Nice to show you this'); }); -- Josh - Original Message - From: "Jquery-Newbe" <[EMAIL PROTECTED]> To: "jQuery (English)" Sen

[jQuery] [hacking] animating a div with fuzzy png borders

2008-10-28 Thread Rene Veerman
hi. i want to animate a div element that is styled as a jquery dialog. During the animation i need to adjust various widths and heights of the border and background child-divs.. So i got a function to do that, and it works. I can call it after the animation has completed, but not during. How

[jQuery] Re: TreeView Plugin by Jörn Zaefferer (Asynch ronous mode)

2008-10-28 Thread Jörn Zaefferer
Take a look at the toggle-option. Jörn On Tue, Oct 28, 2008 at 12:12 PM, garthos <[EMAIL PROTECTED]> wrote: > > Hi ! > > I need your help ! > > I want to create an asynchronous treeview with the jQuery plugin but > the documentation for asynchrone mode doesn't exist > > My problem is simple

[jQuery] datepicker z-index

2008-10-28 Thread Adam Schmitz
I'm having trouble overriding the default z-index for the datepicker. Here's the code I have (minus some stuff that doesn't apply to this issue): $("#datefield").datepicker({ beforeShow: function() { $(this).css("position", "absolute"); $(this).css("z-i

[jQuery] Re: Custom plugin

2008-10-28 Thread tpb976
Try using this to create the plugin: (function($) { // // plugin definition // $.fn.dockBar = function(options) { // build main options before element iteration var opts = $.extend({}, $.fn.dockBar.defaults, options); // iterate and reformat each matched

[jQuery] Jquery and AJAX

2008-10-28 Thread Byte1234
I have a form with updatePanel. I ahve Jquery inimplemented on this form. Everything works fine, but when a asynchronous postback takes place when I clickc the button inside the updatePanle, all Jquery features goes away. I googled for this and found that, I need to write the Jquery code in Page

[jQuery] Re: jcarousel lite: getting it to work with a grided li display

2008-10-28 Thread tpb976
claudes, I recently modified the jCarouselLite plugin to take in a parameter for how many rows that you want shown when scrolling horizontal or columns when scrolling vertical. I am not sure the easiest way to get you the code so I am just going to paste it here. (function($) {

[jQuery] Re: Selecting an element whose ID is in a variable

2008-10-28 Thread dabear
In this case you might use that solution (if you can gurantee the id won't mess with the selctor), but I would usually just do a $(document.getElementById(var)); that way you don't have to escape "var". imagine you had a then var id=theDiv.attr("id") // id would now be "foo :first-child" so no

[jQuery] Fix relative links script not working

2008-10-28 Thread jbogart
Hi, I have a lot of documents that have a mix of absolute and relative links. I'm using the following code to add the full URL and make the links all absolute. It works for the links that are relative, but it also puts the full URL in front of the links that are already absolute, making them break

[jQuery] Problem with adding EventListener

2008-10-28 Thread Jquery-Newbe
Hi, I have just started using JQuery. And so far, I have gotten some problems with adding events in the loading stage to a button. The following is my code $(function(){ $("#msg_button")[0].addEventListener('click',show_msg,false) }); function show_msg() { alert("Nice to sho

[jQuery] Re: slideToggle content disappears in IE

2008-10-28 Thread Olaf Bosch
flycast schrieb: I have this page at: http://www.hopecc.net/ministries/adult I use slideToggles to show and hide somecontent. The problem is that in IE only any content that is inside tags display properly validate your document first, see: Crown Ministries This is a weekly st

[jQuery] Re: Validate. Can validate plugin do this?

2008-10-28 Thread shapper
On Oct 28, 8:49 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > No idea, I'd need a testpage to look at. jsbin.com is quite useful for that. > > Jörn Hi Jörn, If you don't mind I prefer to upload an example to my server. It is easier because the code is not so simple. http://www.27lamps.com/B

[jQuery] Re: Help with syntax

2008-10-28 Thread Mark Mulder
> You can also get rid of the :not > selection (which may be what's slowing things down) by first hiding > *all* .box rows then just showing the one you want, rather than hiding > after the fact: Thanks a lot for your input! The boxes don't the classes except box, so thanks I'll make id's out of

[jQuery] [tablesorter] nesting tables with zebra striping

2008-10-28 Thread Rainaer
I'm probably pushing tablesorter and treeview beyond what they were originally intended for, but I have nested tablesorter tables using the zebra striping, but the problem I encounter is that if the nested table lies within an "odd" row all of the cells of the nested table are overridden with the

[jQuery] Re: Exists

2008-10-28 Thread joel boonstra
> I have the following: > >   if (subject == '---') { >     if(!$('label[for="Subject",class="Error"]').length) { >       $('#Subject').parent().after(' generated="true" class="Error">Required field'); >     } >   } > > I need to check if a label with for="Subject" and class="Error" > exists: > >

[jQuery] Re: Problem with Lightbox

2008-10-28 Thread Stefan Sturm
Hello, thanks for your help. But it is still not working :-( > I suppose it's: > class="lightbox-enabled" rel="lightbox-myGroup" > not just rel="lightbox-myGroup" > > And maybe "myGroup" instead of just "group"? Now my code looks like this: http://blablabla.jpg";> http://blablabla.jpg"/> Gre

[jQuery] Re: Exists

2008-10-28 Thread Christof Donat
Hi, > if(!$('label[for="Subject",class="Error"]').length) Have you tried $('label[for="Subject"].Error'? Christof

[jQuery] Re: Help with syntax

2008-10-28 Thread joel boonstra
> Hi everyone, I've been playing with jQuery a lot lately but my skills > could use a lot of work. I recently made this small snippet of script > to show and hide tablerows from a link that looks like this: > > 1 > > this will show: > > > etc > > > Javascript: > > $(function(){ >         $('.box

[jQuery] Re: Empty

2008-10-28 Thread joel boonstra
> I have the following on a JQuery Code: > >    $('').appendTo('#Themes') >    .append(subject) >    .append('') >    .append(levels) >    .append('') > > How can I add > >    .append(subject) >    .append('') > > only if subject is not empty and > >    .append(levels) >    .append('') > > only if

[jQuery] Exists

2008-10-28 Thread shapper
Hello, I have the following: if (subject == '---') { if(!$('label[for="Subject",class="Error"]').length) { $('#Subject').parent().after('Required field'); } } I need to check if a label with for="Subject" and class="Error" exists: if(!$('label[for="Subject",class="Error"]').l

[jQuery] Re: Problem with Lightbox

2008-10-28 Thread Geir
Hi! I suppose it's: class="lightbox-enabled" rel="lightbox-myGroup" not just rel="lightbox-myGroup" And maybe "myGroup" instead of just "group"?

[jQuery] Re: Use JSON from .post

2008-10-28 Thread joel boonstra
>  I have an object created using json_encode and via the console.log > entry as suggested, I can see that it is correct.   I have a backend > program that I'm wanting to pass this object to, so that it can do a > json_decode and then process that data.   When I try to pass the > object to it, usi

[jQuery] Re: JQuery selector

2008-10-28 Thread Mauricio (Maujor) Samy Silva
It's preferable correct the invalid markup and use the selector you have chose or ( $(".u li:last-child"). E > F selects all elements F that are descendants of E element. E F selects all elements F that are children (direct descendants) of E element. Mantra: Validate! Validate! and Valid

[jQuery] Re: JQuery selector

2008-10-28 Thread John Resig
> $(".u:last > li:last").addClass("last"); Close. $("ul.u > li:last-child").addClass("last"); You may want to move that child ul inside an li - it's not proper HTML to put a UL inside a UL. --John > On 28 Okt., 13:07, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> Hi everyone, >> >> I ha

[jQuery] Re: JQuery selector

2008-10-28 Thread Mauricio (Maujor) Samy Silva
Because you forgot to close the de first ul element. Mauricio -Mensagem Original- De: <[EMAIL PROTECTED]> Para: "jQuery (English)" Enviada em: terça-feira, 28 de outubro de 2008 10:07 Assunto: [jQuery] JQuery selector Hi everyone, I have a question on JQuery selector. I want to a

[jQuery] Re: JQuery selector

2008-10-28 Thread BB
Try: $(".u:last > li:last").addClass("last"); On 28 Okt., 13:07, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have a question on JQuery selector. I want to add a class, last, > into li elements where have comment next to > it under different ul but have the same class "u"

[jQuery] JQuery selector

2008-10-28 Thread [EMAIL PROTECTED]
Hi everyone, I have a question on JQuery selector. I want to add a class, last, into li elements where have comment next to it under different ul but have the same class "u". This is what I ended up with. However, it only selects "li" final two. $(".u > li:last-child").addClass("last");

[jQuery] TreeView Plugin by Jörn Zaefferer (Asynchro nous mode)

2008-10-28 Thread garthos
Hi ! I need your help ! I want to create an asynchronous treeview with the jQuery plugin but the documentation for asynchrone mode doesn't exist My problem is simple , I just want to call a function when i click on an item of treeview (parent and children) and passed the id to this functio

[jQuery] Empty

2008-10-28 Thread shapper
Hi, I have the following on a JQuery Code: $('').appendTo('#Themes') .append(subject) .append('') .append(levels) .append('') How can I add .append(subject) .append('') only if subject is not empty and .append(levels) .append('') only if levels is not empty? Leve

[jQuery] Re: hide() not working when disabling CSS

2008-10-28 Thread Isaak Malik
noscript is just an element that is displayed when JavaScript has been disabled (99%) in the user's browser or when JavaScript is not supported by it (1% mostly search engines). On Tue, Oct 28, 2008 at 12:48 AM, 5h4rk <[EMAIL PROTECTED]> wrote: > > Thanks! Now I get it. Can you explain the reason

[jQuery] Extending jQuery the OO way

2008-10-28 Thread Santosh
For those interested in extending jQuery the OO way, I have posted an article on this subject here. http://santrajan.blogspot.com/2008/10/what-john-resig-did-not-tell-you.html

[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-10-28 Thread Crazy-Achmet
I'm really lookin forward to the new version!!! It's awesome that you're still workin' on it! ;)

[jQuery] Help with syntax

2008-10-28 Thread Mark Mulder
Hi everyone, I've been playing with jQuery a lot lately but my skills could use a lot of work. I recently made this small snippet of script to show and hide tablerows from a link that looks like this: 1 this will show: etc Javascript: $(function(){ $('.box').hide(); /* hide every tr

[jQuery] Re: Selecting an element whose ID is in a variable

2008-10-28 Thread fredriley
D'OH!! I'd not thought of that, but as you point out, the selector is a string, so it should have occurred to me at some point. Thanks to yourself and Josh for the replies. As it happens, this is a FAQ for a number of programming languages I've used, and I usually end up hunting for an eval() or s

[jQuery] Re: Autocomplete: Show full list before start typing

2008-10-28 Thread Mello
The data came froma webservice (ASP.NET in XML format) function GetData_callback(xml, dest) { var data = new Array(); try { var i = 0; $("anyType", xml).each(function() { data[i] = $(this).text(); i = i + 1; }); } catch (ex) { alert(ex); } finally

[jQuery] Re: Validate. Can validate plugin do this?

2008-10-28 Thread Jörn Zaefferer
No idea, I'd need a testpage to look at. jsbin.com is quite useful for that. Jörn On Tue, Oct 28, 2008 at 12:16 AM, shapper <[EMAIL PROTECTED]> wrote: > > The values of the select, the input and the names of the selected > checkboxes are added to a string and added to the unordered list as: > In

[jQuery] Re: Validate Plugin - On Error?

2008-10-28 Thread Jörn Zaefferer
Use the highlight (and unhighlight) options. Jörn On Tue, Oct 28, 2008 at 7:30 AM, Validatorian <[EMAIL PROTECTED]>wrote: > > I need to perform a custom action when it turns invalid. > > Currently, I have this: > >success: function(label) { > > label.html("good").parent('div').removeClas

  1   2   >