[jQuery] Re: The jQuery Prototype Object and Working with Others' jQuery Plug-Ins
Hey guys, On the topic of namespacing, I have also found 'pollution' of the core a problem. I recently worked for a company that had over 30 plugins and I did run in to conflicting problems, especially with jQuery UI, which is one reason I stay away from it amongst others. If you are interested I've created a way to add namespacing to jQuery whilst still using 'this' as DOM array. Currently, it only goes 1 level deep, but I have found it extremely usefull. Instead of: $('div').dialog('open'); you could go: $('div').dialog().open(); Check the latest of this thread: http://groups.google.com/group/jquery-dev/browse_thread/thread/664cb89b43ccb92c -- Trey On May 8, 10:20 am, chris thatcher thatcher.christop...@gmail.com wrote: blah my keyboard had is heavy and i hit send before i meant to. continuing for roddy inline On Thu, May 7, 2009 at 8:06 PM, chris thatcher thatcher.christop...@gmail.com wrote: roddy, nice to meet you. reponse is inline On Thu, May 7, 2009 at 7:31 PM, kiusau kiu...@mac.com wrote: QUESTION ONE: When is use of the jQuery prototype object appropriate, and when is it not? i am not a jquery core or ui developer so this response must be taken with a grain of salt. it is appropriate for the static jQuery namespace when the function is either 'generally useful' or 'highly reusable in instance context where the context is a dom node' for the latter case ('highly reusable in instance context where the context is a dom node') i am way over-specific; however, the jquery core has basically cornered this market. the core dev team is highly aware of basic issues and most everything you could think of is already there. 'polluting' the core namespace is the responsiblity of plugins. the term 'pollution' is used to mean only that every name you put on the namespace has the probability of conflicting in the future if it doesn't already exist. if you make sure a name doesn't already exist on the jquery namespace, and if you think the new property (which may be a function, object, array, simple type, or a hetergeneous object/array/function jquery-like collection) is useful enough to be in the core library, please feel free to ask the jquery-dev list the chances are they will point to a thread that exists already and/or they will question the concept by usually 1) pointing to an existing solution 2) providing context for why the question is still open 3) ask you to create a ticket to fix it 4) tell you it's a perfect use of the plug-in architecture an point you to a great reernce for how to publish it correctly BACKGROUND: I am still trying very hard to identify the error that is prohibiting me from incorporating a jQuery plug-in into my site in a manner similar to the way that the author of the plug-in has incorporated it into his. Although I have sought consultation with the author, he appears uninterested in working with me. post a link. you did below and i'm just about to look at it; however, it 'should' be the first thing you post. reduce the problem to a simple example and post the url. the community will help you in most cases in just a few minutes. on the other hand if you post something analogous to 'I HAVE A MAJOR PROBLEM!!! CAN YOU HELP??? NOW!!! 2...@#$%!##$%%^%$$*$...@#%257 well chances are no the reason is we need you to help us help you. if you want the most basic question answered please use this list: jquery-ment...@googlegroups.com My still fledgling knowledge of jQuery tells me that the author of the plug-in and my implementation of his plug-in are constructed differently. Whereas I use jQuery's prototype property to reference my method and then assign my method anonymously to my HTML document as follows: $().myJQMethod(). The author of the plug-in does something very different. Please compare the isolated code that I have extracted from the author's plug-in and my implementation of it. Links to the source pages have been included. CONSTRUCT A (The jQ_Impromptu Plug-In): (function($) { $.prompt = function(message, options) { })(jQuery); SOURCE: http://homepage.mac.com/moogoonghwa/Imagine_Prototype/JavaScript/jQ_I... CONSTRUCT B (My implementation of the jQ_Impromptu Plug-In) (function($) { $.fn.getBrowserInformation = function() { })(jQuery); SOURCE: http://homepage.mac.com/moogoonghwa/Imagine_Prototype/JavaScript/jQ_b... QUESTION TWO: Although I am able to implement the author's method, it is not performing as it should. When the alert box appears with focus the hosting HTML page is suppose to show through with dimmed opacity. My implementation does not achieve this effect. Firebug has alerted to me to the following breakpoint, but I am poorly unable to interpret it. jQuery.cache[ id ][ name ] : Could someone help? SOURCE HTML:
[jQuery] Re: jQuery.support -- No direct support for IE6 detection
I think that since user agent and version detection is merely deprecated at this point, it would be safe to use it to detect IE6 given this circumstance, if you absolutely need to. There is no way to tell, but by the time it is pulled out of jQuery, IE6 will be long gone (hopefully). That being said, conditional comments would probably be the best way for a png fix, especially since it doesn't get executed at all in other browsers. I think that all developers should get together and intentionally block out all versions of IE. If we all do it, we can stop M$!! BTW, anyone see: http://saveie6.com? -- Fight the good fight, Trey On Apr 6, 11:18 am, RobG rg...@iinet.net.au wrote: On Apr 5, 2:43 am, Joe joseph.is...@gmail.com wrote: I'm all for migrating to the jQuery.support() utility method, but there is not definitive test available to detect IE6 specifically. Do we have a consensus on this yet? I think conditional comments are the best way to go, there are a number of solutions. Don't try sniffing for IE using the UA string. URL:http://groups.google.com/group/comp.lang.javascript/browse_frm/thread... -- Rob
[jQuery] Re: partial step form validate
Actually, to select all the elements in a specific form, all you need is: $('#your-form :input'); -Trey On Mar 17, 12:43 pm, Led l.r@sapo.pt wrote: See it here http://d61628.tinf28.tuganet.info/132/1.htm On 17 Mar, 01:30, Stephen Sadowski d...@meta-meta.com wrote: Hey, I'd go with $('#form input,select,radio,textarea') to select all standard form elements, but the validation depends on how you're doing validation. -S On Mon, 2009-03-16 at 18:18 -0700, led wrote: Hi need to validate just the form elements in a step. how do i reference the form elements in a div. ex: $(#form).validate().element(elements in the div) thanks in advanve- Ocultar texto citado - - Mostrar texto citado -
[jQuery] Re: partial step form validate
Actually, if it's input elements within a step: $('#the-step-parent-element :input'); -Trey On Mar 18, 8:56 am, tres treshug...@gmail.com wrote: Actually, to select all the elements in a specific form, all you need is: $('#your-form :input'); -Trey On Mar 17, 12:43 pm, Led l.r@sapo.pt wrote: See it here http://d61628.tinf28.tuganet.info/132/1.htm On 17 Mar, 01:30, Stephen Sadowski d...@meta-meta.com wrote: Hey, I'd go with $('#form input,select,radio,textarea') to select all standard form elements, but the validation depends on how you're doing validation. -S On Mon, 2009-03-16 at 18:18 -0700, led wrote: Hi need to validate just the form elements in a step. how do i reference the form elements in a div. ex: $(#form).validate().element(elements in the div) thanks in advanve- Ocultar texto citado - - Mostrar texto citado -
[jQuery] Re: Form inside Form value
The different way would be to remove the nested form and place the fields that were inside the nested form in the parent form. There are ways to post only specific fields. I don't see why this is necessary. Also, this messes up browser functionality; when the nested form is submitted, it submits the parent form instead. -Trey On Feb 28, 12:31 pm, Po01 diogoapa...@gmail.com wrote: Can you give me a different way? I cant believe its impossible to get the value of a field inside a form when both are inside another form. Thanks. On 27 fev, 18:34, tres treshug...@gmail.com wrote: Do it a different way. On Feb 28, 6:20 am, Po01 diogoapa...@gmail.com wrote: Oh, and i know its not under webstandarts but i really need to get the value. Yes the email is the name of the label field. On 27 fev, 16:14, Po01 diogoapa...@gmail.com wrote: Tried the $(form2 field).val(); but remember that form2 is a variable, tried some stuff but it doesnt work. Also tried $(Form2).find('input[name=email]').get(0).val(); and.. cant get the value =( On 27 fev, 06:43, saifullah hanif saifullah...@gmail.com wrote: http://tinyurl.com/cyecufhttp://tinyurl.com/ahvxzc http://tinyurl.com/8rwmkr http://tinyurl.com/7wbm8o On 2/27/09, Po01 diogoapa...@gmail.com wrote: Hi, i have a HTML like that: form 1 form 2 field /form 2 /form 1 Supposing the field name is email, how can i get its value using Javascript/JQuery? I tried some stuff.. without success.. The form 2 name Im getting as a variable, like: function values(id) { var ID = id; var Form2 = #form2_ + ID; ... } So i need a code that use this Form2 to get the email field value inside it. Tried some stuff but dunno how to do that when Form2 is inside Form1. Thanks.
[jQuery] Re: Form inside Form value
Do it a different way. On Feb 28, 6:20 am, Po01 diogoapa...@gmail.com wrote: Oh, and i know its not under webstandarts but i really need to get the value. Yes the email is the name of the label field. On 27 fev, 16:14, Po01 diogoapa...@gmail.com wrote: Tried the $(form2 field).val(); but remember that form2 is a variable, tried some stuff but it doesnt work. Also tried $(Form2).find('input[name=email]').get(0).val(); and.. cant get the value =( On 27 fev, 06:43, saifullah hanif saifullah...@gmail.com wrote: http://tinyurl.com/cyecufhttp://tinyurl.com/ahvxzc http://tinyurl.com/8rwmkr http://tinyurl.com/7wbm8o On 2/27/09, Po01 diogoapa...@gmail.com wrote: Hi, i have a HTML like that: form 1 form 2 field /form 2 /form 1 Supposing the field name is email, how can i get its value using Javascript/JQuery? I tried some stuff.. without success.. The form 2 name Im getting as a variable, like: function values(id) { var ID = id; var Form2 = #form2_ + ID; ... } So i need a code that use this Form2 to get the email field value inside it. Tried some stuff but dunno how to do that when Form2 is inside Form1. Thanks.
[jQuery] Re: A question for John Resig
Thanks for clearing that up John. -Trey On Feb 19, 10:07 am, John Resig jere...@gmail.com wrote: Why implement jQuery.isFunction when you can also just go typeof variable == 'function'? You can see some of the cases that we handle that normal typeof can't, here:http://dev.jquery.com/browser/trunk/jquery/test/unit/core.js#L176 --John
[jQuery] Re: A question for John Resig
Why implement jQuery.isFunction when you can also just go typeof variable == 'function'? -T On Feb 19, 7:54 am, Kean shenan...@gmail.com wrote: Seems like my hunch is incorrect, thanks for correcting. On Feb 18, 12:43 pm, Matt Kruse m...@thekrusefamily.com wrote: On Feb 18, 2:20 pm, Kean shenan...@gmail.com wrote: While it would not affect the results, I believe you can shave a few ms off by using === Over 10,000,000 iterations, I see no difference in time between using == and ===. If the return type of 'typeof' varied, a difference might be found. It's just a minor quibble anyway. It's similar to lines like this in the jquery source: if ( typeof text !== object text != null ) Fixing things like this would tighten and improve the code a bit, IMO. Matt Kruse
[jQuery] Re: Lightbox working local not live?
Works for me. Tested in IE7, FF3, Safari 3, Chrome. Assuming Opera 9. -Trey On Feb 15, 4:04 am, Gavin gechterli...@gmail.com wrote: Hello, I'm currently working on my own website and I got everything to work perfect locally, but when I upload live, lightbox fails to work. My jFlow still works, it's just lightbox. As far as I can see it should be working, but I'm not super familiar with javascript, so I could have something wrong. Any help is much appreciated, thanks in advance, Gavin. http://gedesignz.com/photog.html
[jQuery] Re: Lightbox/ThickBox Accessibility
Oh, ok. I thought you just meant user-friendly and extensible. Don't know why :\. You mentioned that you were using the .focus() event trigger. This will only work on elements that can receive the focus event, but when used on the correct elements should direct screen readers to the changed content. The article, http://juicystudio.com/article/making-ajax-work-with-screen-readers.php, might be of use to you. -Trey On Feb 13, 8:22 pm, WC webt...@wigan.gov.uk wrote: Well basically, we have duty to ensure our site is accessible to all, as does everyone, and when you load a lightbox/thickbox with content we have the issue that you cursor position doesn't change to the lightbox/thickbox, so those using assistive technology such as a screen reader will just carry on from where the trigger was. we need to make sure that the user is aware there's new content on the page and switch there focus to there. On Feb 12, 11:23 pm, tres treshug...@gmail.com wrote: I've created a lightbox plugin called Darkbox. If it's more for content, I also have a Window plugin for dialog windows that might fit the bill. There are many plugins in the jQuery plugin repository in this area. Perhaps you could elaborate on your situation. -Trey On Feb 12, 8:39 pm, WC webt...@wigan.gov.uk wrote: HAs anyone come accross a lightbox/thickbox plugin for jquery, that they would class as accessible? Using perhaps ARIA, i have tried using .focus() but i am having no luck with my testing to ensure it does move the user to the lightboxed content. Thanks John
[jQuery] Re: Only show 5 list item, hide the rest?
I'll install multiple IE's and get back to you. -Trey On Feb 12, 7:05 pm, mofle mofl...@gmail.com wrote: Thanks, you're a genius. But it didn't work in IE6, where I need it. Any solution? On Feb 12, 12:32 am, tres treshug...@gmail.com wrote: Oh and also Safari 3.1.2 Windows. -Trey
[jQuery] Re: Only show 5 list item, hide the rest?
After installing IE6, I didn't have any problems. It works just like it should. I have noticed differences in the multiple IEs and the actual IE, but those differences we're only when viewing the About Internet Explorer in the Help menu and when printing. Are you using ie6 in a VM, in it's original state on XP, or with multiple IE's? Another question would be, which version of jQuery are you using and have you cleared the ie6 cache? Sorry that didn't work for you. -Trey On Feb 13, 9:56 am, tres treshug...@gmail.com wrote: I'll install multiple IE's and get back to you. -Trey On Feb 12, 7:05 pm, mofle mofl...@gmail.com wrote: Thanks, you're a genius. But it didn't work in IE6, where I need it. Any solution? On Feb 12, 12:32 am, tres treshug...@gmail.com wrote: Oh and also Safari 3.1.2 Windows. -Trey
[jQuery] Re: Finding the last sibling.
I don't think the cat has any skin left. Or does it? -Trey On Feb 13, 3:14 am, mkmanning michaell...@gmail.com wrote: If the input doesn't exist, then wouldn't nothing be returned with $ ('input').parent().children(':last') either? It seems to presume the existence of the input :) Maybe you meant if the input doesn't have siblings, then nothing is returned, which is true using nextAll(). Using 'input' with no extra identifier also means that this would grab all inputs on the page, which may not be desirable. If the input has an identifier, then you could also do something like this: $('input#foo').nextAll(':last').add('input#foo:only-child'); or from your example markup you could do: $('div input').nextAll(':last').add('div input:only-child'); //fnb it would grab all inputs in all divs This will get the last sibling if there is one, and add the input if it's an only child. Btw, lest somebody think otherwise, I'm not opposed to traversing up to the parent at all, I just wanted to continue pursuing the idea without it for fun :) Rereading the original post makes me question where the emphasis is The span might or might not be there, so I would like to just get the last sibling in a parent. If you're coming from the perspective of the parent and not the input, then just doing: $('div').children(':last'); is all you'd really need. Starting from the perspective of the input you have several choices, which is what makes jQuery so much fun: there's always more than one way to accomplish some task! It's left to you to figure out what is optimal (overall or in your particular situation), and that will have to consider speed, legibility for other coders, isolation from structure, etc. On Feb 12, 5:30 am, Ricardo Tomasi ricardob...@gmail.com wrote: If the input doesn`t exist nothing will be returned with nextAll. Same with jQuery Lover's approach. That's we need to get all the children: $('input').parent().children(':last') or alternatively $('input').siblings().andSelf().filter(':last-child') // I'd bet the other one is faster As Mike Manning pointed out, $(div :last-child) will return all the 'last-child's of all the descendants, not just the children. $(div :last-child) would be it. cheers, - ricardo On Feb 12, 4:19 am, mkmanning michaell...@gmail.com wrote: Somehow the selector disappeared :P $('input').nextAll(':last'); $(this).nextAll(':last'); On Feb 11, 10:17 pm, mkmanning michaell...@gmail.com wrote: $(div :last-child); finds all of the last-child elements, including descendant elements (e.g. if there were an a inside the span in your example it would be returned too). You can also not worry about the parent at all and just use the sibling selector: //or you could use :last-child As Ricardo suggested, you can use 'this' : $(this).nextAll(':last'); On Feb 11, 10:05 pm, Ricardo Tomasi ricardob...@gmail.com wrote: $(this).parent().children(':last') //or :last-child - assuming 'this' is the input element On Feb 12, 3:09 am, Risingfish risingf...@gmail.com wrote: Thanks Nic, How about if I'm using the input tag as the base? Can I do something like $(self:parent:last-child) ? On Feb 11, 8:13 pm, Nic Luciano adaptive...@gmail.com wrote: $(div :last-child); (or this wacky way I tried before I learned CSS selectors $(div).children()[$(div).children().size() - 1])...) Nic Lucianohttp://www.twitter.com/niclucianohttp://www.linkedin.com/in/nicluciano On Wed, Feb 11, 2009 at 9:49 PM, Risingfish risingf...@gmail.com wrote: Hi James, apologize for not being more precise. I'm using the input element as my base reference. So using that input element, I want to get the last sibling under the div. You are correct that if the span is not then the input is what I want. I may need to add more tags later (I'm sure you know hoe the development process goes when customers are involved. :) ), so a reliable way to get the last tag would be nice. Thanks! On Feb 11, 7:21 pm, James james.gp@gmail.com wrote: When you say last sibling in a parent, what does that mean? Which element is your base reference? In your example: div input .. / span.../span /div Do you mean your div is the base reference, and you want to find the last child (thus, span) relative to that? And if span is not there, you want input? On Feb 11, 4:12 pm, Risingfish risingf...@gmail.com wrote: Before I accidentally hit enter, this is what I was trying to type: :) div input .. / span.../span /div The span might or might
[jQuery] Re: Lightbox/ThickBox Accessibility
I've created a lightbox plugin called Darkbox. If it's more for content, I also have a Window plugin for dialog windows that might fit the bill. There are many plugins in the jQuery plugin repository in this area. Perhaps you could elaborate on your situation. -Trey On Feb 12, 8:39 pm, WC webt...@wigan.gov.uk wrote: HAs anyone come accross a lightbox/thickbox plugin for jquery, that they would class as accessible? Using perhaps ARIA, i have tried using .focus() but i am having no luck with my testing to ensure it does move the user to the lightboxed content. Thanks John
[jQuery] Re: Only show 5 list item, hide the rest?
I think this is what you are looking for. I've included all of the code I used. Tested in IE8 beta 2 (in IE7 compatibility mode), Chrome 1.0.154.48, FF 3.0.3, Opera 9.62. Hope this works, -Trey script type=text/javascript src=jquery-1.3.1.js/script script type=text/javascript jQuery(function($) { var ul = $('ul'), lis = ul.find('li'), anchor = $('a'), liMinHeight = 0, liMaxHeight = 0; lis.each(function(i) { var height = $(this).outerHeight(); if (i 5) liMinHeight += height; liMaxHeight += height; }); ul.height(liMinHeight); anchor.toggle(function() { ul.animate({ height : liMaxHeight }, 400); }, function() { ul.animate({ height : liMinHeight }, 400) }); }); /script style type=text/css ul { overflow : hidden; } /style a href=#toggle height/a ul litest 1/li litest 2/li litest 3/li litest 4/li litest 5/li litest 6/li litest 7/li litest 8/li litest 9/li /ul
[jQuery] Re: Only show 5 list item, hide the rest?
Oh and also Safari 3.1.2 Windows. -Trey
[jQuery] Re: Passing a Index to a function
var li = $('ul li'); li.bind('click', function() { alert(li.index(this)); }); ...works for me. Also, if you are calling jQuery on the same set of objects more than once, it is wise to set a reference to it instead of re calling it more than once. Instead something such as this: $('ul li').bind('click', function() { alert($('ul li').index(this)); }); This makes your code faster - which is unnoticeable in this example, but when you have 2000 lines of it going on, you bet your sweet ass :) - and easier to change in the future. -Trey On Feb 10, 3:37 pm, Pedram pedram...@gmail.com wrote: I came back to my COde An I found your code fit in mine I am not going to use rowIndex because My Plugin it should work for every selector so what I atually want to do to get the selector name and bind an event to it and sent it to a function and also pass the index to the function and the reason I'm doing this is because I have some recursive functions in it and I badly needed this to be done . var RowSet={ close:false, eventClass:eventClass, eventType:click, ActionSelector:tr } function clickFunc(e){ console.log(e.data.Index); } $.fn.RowEffectByEvent=function(options){ RowSet = jQuery.extend({},RowSet,options); return this.each(function(){ oo=$(this); var k=(settings.header) ? :not(:first) : ; $(RowSet.ActionSelector+k,oo).each(function(index){ $(this).bind(RowSet.eventType,{Index:index},clickFunc); }); }); }; this is what I actually wanted to do thanks a lot guys you helped me alot and also RobG A appreciate it . thanks for the Tutorial also. On Feb 9, 1:26 pm, Ricardo Tomasi ricardob...@gmail.com wrote: $(table tr).each(function( index ){ $(this).click(function(){ alert('I am TR number ' + index); }); }); the index() function works on a collection of elements, so you'd have to get them first: $('table tr').click(function(){ alert( $(this).parent().children().index(this) ); }); On Feb 9, 5:48 pm, Pedram pedram...@gmail.com wrote: How COme we could not have access inside the BIND with THIS !! I'm Confused On Feb 9, 7:16 am, Pedram pedram...@gmail.com wrote: I check these two solutions it didn't work ... On Feb 8, 11:42 pm, RobG rg...@iinet.net.au wrote: On Feb 9, 4:54 pm, Pedram pedram...@gmail.com wrote: Dear folk, I want to get the index of the TR and send it to the Function , I don't know how to it . this is what I'm trying to do $(table tr).bind(click,{IndexName:$(this).index(this)},clickFunc) The DOM 2 HTML TR.rowIndex property should do the job. -- Rob
[jQuery] Re: Validation Plugin
You can with my form validation plugin. http://shugartweb.com/jquery/form There is an option that you can pass called 'ignore'. It is a selector for all fields that should be ignored in validation. By default it is ':hidden', but you can put anything in there such as ':hidden, [value=default value], .example-field'. It will then ignore those on validation. If you have any questions, changes, suggestions, comments or just would like to collaborate, let me know. Trey On Feb 5, 6:56 am, varun khatri.vk1...@gmail.com wrote: Hi Can some one please tell me if I can use validate plugin if saomething is written in textbox by default ? I have a textbox which is using auto complete p[lugin , so when page loads an auto-suggest keyword always written in textbox and if some user clicks that keyword,it disappears ... I want even if it is there and somebody submits the form , validation plugin should work? Thanks Varun
[jQuery] Re: validation plugin and ui tabs
Varun, I've actually solved a problem like this for the company that I work for. I have 5 tabs, all located within 1 form. I also had to label the tabs that had errors and focus the first one that had errors. This is simply unachievable without a bit of hacking with the .validate() plugin. Don't get me wrong, it's a great plugin, but doesn't scale very well when posed with a very high level problem, not to mention it can get slow when validating a lot of fields. Because of this, I have written something for myself that may be of use to you. It is still in alpha stages and I have a lot of changes and fixes that I want to work on, but it is quite effective and it may help you quite bit with your problem here. http://shugartweb.com/jquery/form/ The documentation is generated from the doc blocks in the code, so it's fairly well documented, but lacking examples. Let me know if you like it. Suggestions, changes, collaboration is all welcome. Cheers, Trey On Feb 4, 11:12 am, varun khatri.vk1...@gmail.com wrote: Hi Everybody I am trying to use validation plugin with ui tbas. suppose I have 5 tabs on page and every tab have submit button in that case how can I use validation plugin... I know i can use validation as: ('#form-id').validate(); but since i have 5 tabs but i cant have 5 forms in asp.net(please correct me if I am wrong)... can some one please let me know workaround for this ? Thanks Varun
[jQuery] Re: validation plugin and ui tabs
It is being used and is stable in an enterprise environment so I shouldn't say alpha. The only reason I said that was because I do want to do a lot more work to it and the api might change. Trey On Feb 5, 9:42 am, tres treshug...@gmail.com wrote: Varun, I've actually solved a problem like this for the company that I work for. I have 5 tabs, all located within 1 form. I also had to label the tabs that had errors and focus the first one that had errors. This is simply unachievable without a bit of hacking with the .validate() plugin. Don't get me wrong, it's a great plugin, but doesn't scale very well when posed with a very high level problem, not to mention it can get slow when validating a lot of fields. Because of this, I have written something for myself that may be of use to you. It is still in alpha stages and I have a lot of changes and fixes that I want to work on, but it is quite effective and it may help you quite bit with your problem here. http://shugartweb.com/jquery/form/ The documentation is generated from the doc blocks in the code, so it's fairly well documented, but lacking examples. Let me know if you like it. Suggestions, changes, collaboration is all welcome. Cheers, Trey On Feb 4, 11:12 am, varun khatri.vk1...@gmail.com wrote: Hi Everybody I am trying to use validation plugin with ui tbas. suppose I have 5 tabs on page and every tab have submit button in that case how can I use validation plugin... I know i can use validation as: ('#form-id').validate(); but since i have 5 tabs but i cant have 5 forms in asp.net(please correct me if I am wrong)... can some one please let me know workaround for this ? Thanks Varun
[jQuery] Re: Not working in IE
It does show up (in IE7), but it doesn't take into account the scroll offset and just places itself at the top of the page and is only assigned the height of the viewport, not the document. What it should do is make itself the height and width of the document and problem solved (even when scrolling). I've had this problem with this plugin before which spurred me to write my own since I also had extensibility issues with it. I'm can't remember off the top of my head where I made the change, but if you need me to dl the plugin and fix it up for you, I'd be happy to. If so, could you send me a link to where I can download it and I'd be happy to help you out. Cheers, Trey On Nov 4, 12:18 pm, Scuz [EMAIL PROTECTED] wrote: Hi, I've added a jquery lightbox to a website and everything looks fine except the background overlay is not showing up in IE (works fine in Firefox). Been digging around the code but just can't figure it out. Anybody have any ideas?? http://dessertsintl.com/products.html#8cakes( click on either of the 2 links). thank you!
[jQuery] Re: putting jquery inline
Not to state the obvious, but did you make sure that the path to the jquery is correct? Trey On Oct 25, 4:39 am, snacktime [EMAIL PROTECTED] wrote: When I include jquery inline in the body via a script tag I'm getting jquery not defined errors. Is there a reason why this approach can't work, or does it sounds like I'm doing something else wrong? The only reason I'm doing this is because it's a requirement on the opensocial container surface I'm developing on. Chris
[jQuery] access the selector used to retrieve an object set
I've seen - and only in one place - how to use the .selector property of the jQuery object. Should be easy, right: this.selector. There was even a screenshot (See http://www.nabble.com/Re:-How-to-retrieve-jQuery.query--td19300457s27240.html) showing that it in fact did exist, and in 1.2.6. I have 1.2.6 and cannot access this property or the 'context' property. I know that if an object is passed to jQuery, then obviously a selector will not be available. But using jQuery('a.remove-me:eq(1)', 'div#my-div); then theoretically 'a.remove:eq(1)' should be accessible via 'this.selector' and 'div#my-div' via 'this.context' if what some people say is true. I've hacked, jQuery 1.2.6 to provide these for me, but is there any conventional way to do this. Thanks, Trey