[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread brian
$( selector ).is(':visible') <-- this is precisely what I was looking for. How did I forget that? Thanks a bunch! On Tue, Feb 10, 2009 at 2:51 PM, Paul Mills wrote: > > Hi, > You don't need to run the video - try this link instead > http://jsbin.com/ojuju > > There are two snippets of Javsscrip

[jQuery] Re: ID's start with #

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 2:44 PM, Shredder36 wrote: > > Unfortunately, the HTML is generated by a 3rd party application and I > have no control over the id's (and in many cases the lack thereof). You might want to consider taking that up with the 3rd party, then. Using # in an ID == broken, IMHO.

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:12 PM, Klaus Hartl wrote: > > As a quick workaround, does the following work: > > spinner: '' no difference > Or, you could also not touch the default spinner, but add the image as > background-image: > > .ui-tabs-load em { >padding-left: 20px; >background: url

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:17 PM, Klaus Hartl wrote: > > I've created the ticket aready: > http://dev.jqueryui.com/ticket/4109 > Thanks, Klaus. I think I've sorted this out, actually. Although I'm not certain of a fix. I should have been logging this[0].tagName, not inner(this)[0].tagName. The a

[jQuery] Re: Errors

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 11:17 AM, atomk wrote: > > Would somebody mind taking a look at this page > http://consolidatedaggregates.com/ > . > > I'm suddenly getting many cryptic jQuery errors. I'm not sure what is > causing them because I don't know what they mean. > As cryptic as this msg? What

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
$index.val() returns the value. $index.val(VALUE); assigns VALUE. So, this should (might) work: $index.val(--$index.val()) It doesn't look so great, though. I say "might" because I'm not sure if that needs to be set as a var, first. You also want the decrement on the left or you'll be decremen

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
Wed, Feb 11, 2009 at 1:14 PM, brian wrote: >> >> $index.val() returns the value. $index.val(VALUE); assigns VALUE. >> >> So, this should (might) work: >> >> $index.val(--$index.val()) >> >> It doesn't look so great, though. I say "might&q

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 5:16 AM, Klaus Hartl wrote: > > Thanks for this information. I'm about to rewrite this stuff a bit > anyway due to some other bug, and I'll take your findings into > account. Thanks again. No problem. I'll try again to get logged into Trac, create a new UID, if necessary,

[jQuery] Re: onclick event on

2009-02-11 Thread brian
If you bind your event handlers using an element's onclick attribute (or onwhatever) you should write it like so: onclick="return myClickHandler(...);" And return false from the function to avoid having the link followed. Note that the attribute should be all lowercase, btw. The camelcase versi

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 1:23 PM, Ricardo Tomasi wrote: > > Increment/decrement is for variables. You can't use it directly on a > number. Try '3--'. > > Make it simple, if you use subtraction the type conversion is done for > you: > > $index = $('#Index'); > val = $index.val()-1; Except, as Karl

[jQuery] Re: Where can I get download files?

2009-02-11 Thread brian
http://jqueryui.com/download You can use the "Complete developer bundles" link to grab everything at once. On Wed, Feb 11, 2009 at 1:30 PM, webspee...@gmail.com wrote: > > I'm looking for effects.core.js but I can't find the file anywhere on > this site, The demos all use "latest-file.js". > >

[jQuery] Re: html() in an iframe

2009-02-16 Thread brian
Try $('#xEditingArea').contents().find('body').html() On Mon, Feb 16, 2009 at 3:31 PM, webdeveloperintexas wrote: > > I'm attempting to get the contents of the page -- its HTML code. > Everything always returns null. > Here is what I tried: >var details = $('#xEditingArea').html(

[jQuery] Re: Jquery Live search

2009-02-17 Thread brian
Are you loading the other pages with ajax? http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Tue, Feb 17, 2009 at 7:36 PM, Varun Khatri wrote: > ANY IDEA... ANY HINT WILL BE APPRECIATED? > Thanks > Varun > > On Tue, Feb 17, 2009 at 2:00

[jQuery] Re: Jquery Live search

2009-02-17 Thread brian
y thanks to reply!! >> I am using table sorter plugin with pager plugin and on this table I >> am using live search plugin... I will read the article that you just sent >> >> Just in case if you can suggest something else >> >> Thanks >> Varun

[jQuery] Re: Define functions before DOM loads

2009-02-19 Thread brian
Why not just define the function? function msg() { alert("Hello User"); } If you do that, it'll be available when the DOM is loaded ie. $(document).ready() On Thu, Feb 19, 2009 at 1:17 AM, JQueryProgrammer wrote: > > Got it. I need to define as > > (function() { >msg = function() { >

[jQuery] Re: How to know when body height causes a scrollbar to appear

2009-02-19 Thread brian
You could go at it in another way, actually, by forcing a scrollbar to always be present: body { height: 100.1%; } On Thu, Feb 19, 2009 at 2:29 AM, Kim Christensen wrote: > > Hey list, > > I'm looking for a way to let my application know when the body height > has changed to exceed the viewport

[jQuery] Re: Anchor HREF update and delayed navigation

2009-02-19 Thread brian
This seems like it would be a pretty slow user experience. Why don't you just append the data to the link before the user clicks on it. Unless the data are time-sensitive, that is. Otherwise, couldn't you just update all the links with the appropriate data well before any of them are actually used

[jQuery] Re: Anchor HREF update and delayed navigation

2009-02-19 Thread brian
On Thu, Feb 19, 2009 at 10:41 AM, KihOshk wrote: > > I was trying to avoid setting the location variable since the anchors > that this method will be affecting can be either target=_self or > target=_blank. > > I tried this, but the target assignment isn't respected: > > function callback(link,js

[jQuery] Re: .contents() not meeting its contract?

2009-02-20 Thread brian
Remove the .not("[nodeType=1]"). It's the anchor that is being wrapped, not 'John'. On Fri, Feb 20, 2009 at 9:11 AM, David wrote: > > According to the documentation, .contents() should "Find all the child > nodes inside the matched elements (including text nodes)". However, > in the example giv

[jQuery] Re: Positioning inside div

2009-02-22 Thread brian
And #myDiv should have position: relative On Sun, Feb 22, 2009 at 12:15 PM, Thomas Jaggi wrote: > > They should have "position:absolute" instead if "position:relative". > > Relative means relative to the "normal" position. In this case you > would have to set negative values for top/left to achi

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-23 Thread brian
On Mon, Feb 23, 2009 at 11:08 AM, Peter Bengtsson wrote: > > I watched the John Resig presentation too and learned that CSS > selectors always work from right to left. > That would mean that doing this:: > > $('#foo p') > > Would extract all tags and from that list subselect those who > belong

[jQuery] Re: Internet Explorer Bug (Disappearing Fields)

2009-02-23 Thread brian
On Mon, Feb 23, 2009 at 12:14 PM, James Finley wrote: > > I am running jQuery 1.2.6, and experiencing a major bug with form > fields disappearing in IE 7.0.5730.11. I have fieldsets that can be > collapsed (uses slideUp), and for some reason when you click into/ > focus on a field, it changes pos

[jQuery] Re: Internet Explorer Bug (Disappearing Fields)

2009-02-23 Thread brian
On Mon, Feb 23, 2009 at 12:43 PM, James Finley wrote: > > It's a major bug because this Javascript is in a corporate project > management system, with some 200+ users. IE is a bug of it's own, but > since everyone is using it here, I have to deal. Now I just replicated > the same glitch in IE 7.0

[jQuery] Re: Internet Explorer Bug (Disappearing Fields)

2009-02-23 Thread brian
On Mon, Feb 23, 2009 at 1:53 PM, James Finley wrote: > > I am using XHTML 1.0 Strict, so not quirks mode. But, if the page doesn't validate for some reason, the browser will shift to quirks mode. Simply providing a DOCTYPE doesn't guaerantee which mode the page will be displayed in.

[jQuery] Re: class=\"stripeMe\" gets removed after $("#quote_list").children().remove(); gets called

2009-02-23 Thread brian
I suspect that the real issue here is that some code you have that zebra-stripes your table is not running. Are you certain that the classname is removed? Because it's likely that it's simply a matter of your code not being run on newly-injected mark-up in the DOM. It is, after all, the single mos

[jQuery] Re: Help me!: $(this) ???

2009-02-23 Thread brian
It's doing so because your selector is too general: 'select' will find all select elements on the page. You'll need to specify which select you want to modify, based on the button clicked (which I can't help you with without knowing the general layout). You might also want to consider simply chan

[jQuery] Re: please support :target

2009-02-24 Thread brian
Doesn't this work? $('#' + location.target).css('background', 'url(fade-yellow.gif)').css('font-weight', 'bold'); On Tue, Feb 24, 2009 at 9:42 AM, dccrowley wrote: > > http://www.w3.org/TR/css3-selectors/#target-pseudo > > :target makes it very easy to style a part of a page that has been > scr

[jQuery] Re: jQuery and IE

2009-02-24 Thread brian
On Tue, Feb 24, 2009 at 2:35 PM, Bob O wrote: > > So im stumped..I have my jquery file in the headers, and it works in > Opera, Safari, FF on mac, and FF on Windows, but i get nothing in > IE..its there, its just broken. We're not getting much, either. Care to elaborate?

[jQuery] Re: Calling HTML pages using post...

2009-02-25 Thread brian
Why not just use load()? Are you opening these pages within the same page, or changing location? What do you mean by "checking permissions"? I'd think that'd be best down on the server. On Wed, Feb 25, 2009 at 8:56 AM, webspee...@gmail.com wrote: > > Hey all. > > I have 5 buttons on a page, eac

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 11:19 AM, Sam Sherlock wrote: > Its better to detect features not browsers; that said detecting a single > browser such as ie6 I would use conditional comments feeling assured that > the code is not interfering with other bits > http://www.sitepoint.com/forums/showthread.p

[jQuery] Re: Calling HTML pages using post...

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 1:04 PM, Webspeeder wrote: > > What is the syntax for just calling "load"? And does that use post? Or > just GET. > http://docs.jquery.com/Ajax/load#urldatacallback

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 2:26 PM, Matt Kruse wrote: > > On Feb 25, 11:59 am, brian wrote: >> Conditional Comments are great and all (best thing to come from MS >> since asynchronous requests) but they're not the best solution here, >> IMHO. Whether it's t

[jQuery] Re: Change image attribute based on variable

2009-02-25 Thread brian
Also, $($finalurl) likely won't select anything because you're only passing the classname. It needs to be in the form '.classname' (prepended by a dot). Try $('.'+$finalurl) On Wed, Feb 25, 2009 at 2:38 PM, Stephan Veigl wrote: > > Hi, > > instead of doing a complicate string handling you could

[jQuery] Re: Where can I get download files?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 2:48 PM, Webspeeder wrote: > > OK, my frustration with this is really killing me. > > Where is the link for the "complete developer bundles" on the download > page? I don't see it. It looks like they've changed it. The link that replaced it, "Quick downloads: Preview rel

[jQuery] Re: Where can I get download files?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 3:16 PM, Richard D. Worth wrote: > > On Wed, Feb 25, 2009 at 3:06 PM, brian wrote: >> >> In my use, at least, I'm not including UI components in all views. >> And, when I do, there may be just one widget or whatever out of >> sever

[jQuery] Re: load() not loading my dynamic page

2009-02-25 Thread brian
Dynamically loading content takes some time to finish. Provide a callback function to load() and use that to manipulate #mydiv. http://docs.jquery.com/Ajax/load#urldatacallback On Wed, Feb 25, 2009 at 3:16 PM, eagleon wrote: > > one more thing following the above, ... if I check to see if the >

[jQuery] Re: Custom Callback not using jQuery object

2009-02-25 Thread brian
Something like this? (no pun intended) obj.click(function() { var self = $(this); ... defaults.onComplete(self); On Wed, Feb 25, 2009 at 3:11 PM, Nic Hubbard wrote: > > I have built a custom callback into my plugin, here is an example: > >  $.fn.matrixStatus = function(options) { >    

[jQuery] Re: Custom Callback not using jQuery object

2009-02-25 Thread brian
fix: '?action=status_posting', >            onComplete: function() {alert('Callback worked'); alert($ > (this).attr('class'));} >        }); > > When I am trying to pass things to the custom function, using $(this) > does not work. > > O

[jQuery] Re: Trigger event for children on parent element remove event

2009-02-25 Thread brian
You can register a callback function on the first element that will then fire an event on some other element if it exists. On Wed, Feb 25, 2009 at 5:26 PM, sliver wrote: > > Is there a way to trigger an event one element when another element is > say, removed or hidden? In other words, maybe a w

[jQuery] Re: radio buttons and php

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 9:55 PM, korsakov wrote: > > Thanks for reminding me of the difference! So, isn't there any way to > manipulate PHP variables without actually submitting the whole form? > I think you're missing a fundamental point here. By the time javascript will be doing anything with

[jQuery] Re: Problem with class attribute: Why this work in 1.2.6 and doesn't work on 1.3.1???

2009-02-26 Thread brian
Maybe it's just a typo (and unrelated) but you have spaces in both "div .detalhes" & "a .clickMe". On Thu, Feb 26, 2009 at 1:27 PM, AndreMiranda wrote: > > $(document).ready(function() { > >        //chama a função de Tip >        reiniciaTip(); > >        //arredonda fundo cinza do DatePicker e

[jQuery] Re: jCarousel: Show only one picture

2009-02-27 Thread brian
$('#foo').jcarousel({ scroll: 1, visible: 1 }) On Thu, Feb 26, 2009 at 8:56 PM, silfver wrote: > > Hi! > > I'm trying to configure the jCarousel to show only one picture with > the dimensions: 800x533 pixels. But when I change the CSS the > navigation flips through 4 images every time. How can I

[jQuery] Re: click event and window.location problem in safari

2009-02-27 Thread brian
I don't know what the problem is or how to fix it but I'm wondering why you need this onclick event at all. If you want the link to fill the entire div you might be able to just give the anchor display: block. On Fri, Feb 27, 2009 at 9:49 AM, introvert wrote: > > Hello > > I have a simple jquery

[jQuery] Re: DSRTE or Alternative ?

2009-02-27 Thread brian
It's a client-side application. The included PHP script is merely an example for image uploads. If you need to use this on a PHP4 site, you'll need to re-write the script or write your own. And you should really consider upgrading PHP, as support for 4.x has long been discontinued. On Fri, Feb 2

[jQuery] Re: Custom ScrollBar

2009-02-28 Thread brian
FWIW, I've had no troubles getting jscrollpane to work with both 1.3.1 & 1.3.2, so the problem is likely not that. I'll have a go at attaching one to simplemodal and let you know how that goes. On Fri, Feb 27, 2009 at 5:55 PM, dbonneville wrote: > > Hi - did you get this to work? I keep getting:

[jQuery] Re: ajax data

2009-03-02 Thread brian
On Mon, Mar 2, 2009 at 6:53 AM, hosemaria wrote: > > Is it possible? > Try: { item1:"one", item2:"", item3: {item31:"sdf", item32:"sdfs"} }

[jQuery] Re: ANNOUNCE: jQuery ListMenu plugin 1.0 from iHwy

2009-03-02 Thread brian
Very nice. I just recently put together letter-based navigation for an app, though each "letter request" uses ajax to fetch the appropriate results. The complete set, though, is something over 3000 items and growing. All the same, I think I'll write a quick script to dump everything to listmenu a

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread brian
The division by 10 is your problem. Try: $(this).addClass(classNames[(i + 3) % 3]); On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote: > > I have a list of names wrapped in tags that are sorted in > alphabetical order.  I am trying to build 3 even columns out of > these.  There are 63 items,

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread brian
On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard wrote: > > Should I keep the division by 10 on the Math function? No, as i said, that's the problem. There's not only no need for it, but it's giving you results you don't want. Quick: what's zero divided by ten? And what's the remainder of that result

[jQuery] Re: How to use anchor text as title attribute?

2009-03-04 Thread brian
$('a').each(function() { $(this).attr('title', $(this).text()); }); Keep in mind, though, that an anchor might have an image inside, rather than text. I doubt it'd be an issue. I guess jquery would simply set it to the empty string. On Wed, Mar 4, 2009 at 6:11 PM, Jonny Stephens wrote:

[jQuery] Re: missing ; before statement

2009-03-04 Thread brian
$("#toc").change (function () { There's a space after "change". Maybe that's it? On Wed, Mar 4, 2009 at 8:36 PM, sanguisdex wrote: > > I worked and begged on IRC all do to get this code: > > >        $(document).ready(function(){ >                $.fn.addTocHandler = function ( ) { >          

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 11:01 AM, ricardobeat wrote: > > Insert anywhere and use position:absolute. Would the text re-flow around the div, though? I'd imagine it wouldn't. If not, I suppose you could get the insertion point within the div's text, using textrange, then replace it with a copy that

[jQuery] Re: Anchors & Images Tutorial

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 7:49 AM, HM-User wrote: > > I have had a look at this tutorial by Malsup and simply, you can add > an a link to the image slides. > However, for me like the tutorial with: > > function onAfter() { >    $('#output').html("Current anchor: " + this.href); > > I have for myself

[jQuery] Re: Animate using relative %

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 8:22 AM, Adam Jessop wrote: > Sure, > > The site in question is at: http://be.0wned.co.uk Do you really expect anyone to click that link with JS enabled? ;-) I think the way I'd approach this would be to first get the CSS set up so that, with the images already in place w

[jQuery] Re: Animate using relative %

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 1:12 PM, Adam Jessop wrote: > Well contrary to the domain name, it is a real site with no threat, disable > your JS first if you like! I was joking. > I have the CSS values for how I want the end result to be already, but I > don’t want them visible when the page loads, d

[jQuery] Re: Animate using relative %

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 2:29 PM, Adam Jessop wrote: > > I appreciate the help :) > > > Again though, seems a long winded approach to something that should work > using the right syntax etc right? > Surely this must be a bug in jQuery of some kind? I don't think it's a bug at all. The issue is th

[jQuery] Re: IE7 removes whitespace from HTML

2009-03-06 Thread brian
Does this work? alert($("foo\nbar").text()); (I'm in no mood to boot Windows just now, sorry ;-) On Fri, Mar 6, 2009 at 8:02 AM, Martijn Houtman wrote: > > On Mar 6, 12:20 pm, "martijn.hout...@gmail.com" > wrote: >> Just wanted to document this bug/feature in IE7: >> >> alert($("foo\nbar").ht

[jQuery] Re: can I "capture" highlighted text?

2009-03-06 Thread brian
On Fri, Mar 6, 2009 at 8:57 AM, hybris77 wrote: > > is there any way of, using jquery preferably, catching text that is > highlighted by the user ? Have a look at this article: http://www.quirksmode.org/dom/range_intro.html

[jQuery] Re: Modify hash in Tabs plugin

2009-03-06 Thread brian
I would try changing the titles to not have extended characters or HTML enitities (eg. é). Perhaps that's the problem. I know that jQuery normalises that text to make the hash, and maybe it's not very robust code. I realise that that's not a good solution but, if it works, you will at least know w

[jQuery] Re: Get Textbox-value and write to table-cell ()

2009-03-07 Thread brian
For starters, give each of your dealAmount[] inputs an ID according to the "Posting" index. Something like "deal_amount_1", "deal_amount_2", etc. Next, do the same for the inc-current TDs. Give each an ID like, "whatever_1", "whatever_2", etc. Grab all of the inputs using $('.deal-post') and appl

[jQuery] Re: How does Facebook do to edit profile picture thumbnails?

2009-03-07 Thread Brian
Is there a specific part that's inconceivable? I can imagine one way to do it--probably very similarly to how Facebook does it--which follows. Markup-wise, the containing div + image must look roughly like The JavaScript watches for click-dragging on #small-profile-img, and sets #small-profi

[jQuery] Re: Get Textbox-value and write to table-cell ()

2009-03-07 Thread brian
On Sat, Mar 7, 2009 at 2:16 PM, Josh Powell wrote: > > Why do you have the [] characters in the name of the elements?  That > might screw up selectors. PHP, likely. But there's no need to use the name in the selector. > Another options is to give the dealAmount inputs a new attribute with > a v

[jQuery] Re: Get Textbox-value and write to table-cell ()

2009-03-07 Thread brian
On Sat, Mar 7, 2009 at 6:21 PM, Josh Powell wrote: > > 6 of one... half dozen of another... I don't buy that. I've suggested using an attribute whose purpose is well defined. Making up attributes that aren't represented by the DOCTYPE is a bad idea. Don't get me wrong--I've done it before. Thoug

[jQuery] Re: inserted html content doesn't respond to events?

2009-03-07 Thread brian
On Sat, Mar 7, 2009 at 5:31 PM, Miguel wrote: > > Here's what I'm trying to do: > > Jquery: > * > $(".test").click(function(event){ > >    event.preventDefault(); > >    $("#testing").html('test again a>'); > > }); > > $("#test2").click(function(event){ > >    event.preventDefault();

[jQuery] Re: Event binding newly added jQuery objects

2009-03-07 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Sat, Mar 7, 2009 at 7:21 PM, method8 wrote: > > Each time I add new HTML to a div, either by .html('') or by .load... > it looks great but it seems that the newly added html's event do not

[jQuery] Re: How do I adapt this code for multiple uses?

2009-03-10 Thread brian
On Tue, Mar 10, 2009 at 7:42 PM, IanR wrote: > > I have got some code http://pastebin.com/mc99132c which counts how > many characters have been entered in a textbox and subtracts it from > the maxlength to show how many characters are left. > > If I add a new textbox I don't want to copy and past

[jQuery] Re: Only show 5 list item, hide the rest?

2009-03-11 Thread Brian
How would one go about adapting this to be used with multiple lists on one page. I have 3-5 lists on each page and would only like to show the first 3 items of each with the ability to show the others. On Feb 17, 5:16 am, mofle wrote: > I'm using IE6 natively on an XP machine. jQuery 1.3.1. >

[jQuery] Re: Only show 5 list item, hide the rest?

2009-03-11 Thread Brian
ight':(h*5)+'px','overflow':'hidden'}); > >         $('#myList-toggle').click(function(){ > >                 > > ul.animate({'height':(ul.height()>(h*5)?(h*5):(l.length*h))+'px'}); > >                 return false

[jQuery] Re: Only show 5 list item, hide the rest?

2009-03-11 Thread Brian
Is there anyway to account for padding on the li of each list? I have padding which seems to be throwing off the calculations. On Mar 11, 3:36 pm, Brian wrote: > mkmanning, > > I want to thank you for your contribution. I was able to understand > your example better (I just didn&

[jQuery] Re: Only show 5 list item, hide the rest?

2009-03-11 Thread Brian
('li').each(function(i){ >                 if(i===5){return false;} >                 h += this.offsetHeight; >         }); >         ul.css({'height':h+'px','overflow':'hidden'}); >         $('#myList-toggle').click(function(

[jQuery] Re: Working with hash?

2009-03-15 Thread brian
On Sun, Mar 15, 2009 at 6:23 AM, Jonas wrote: > > I need some advice on working with the hash, are there any good > plugins or alike that I could use? The bestw ould be something like > mysite.com#name=jonas&phone=12345 > > Then I'd do something like > var myHash = getHashObject(); > > the object

[jQuery] Re: Working with hash?

2009-03-15 Thread brian
On Sun, Mar 15, 2009 at 1:43 PM, T.J. Crowder wrote: > > @brian, @mkmanning:  FWIW, looked to me from his example like he > really did mean hash (what some use as a synonym for the anchor > portion of the URI), not query string.  Perhaps he's doing some > history stuff... m

[jQuery] Re: Button Actions

2009-03-15 Thread brian
On Sun, Mar 15, 2009 at 8:24 PM, MonkeyBall2010 wrote: > > I'm still trying to figure out how to make actions happen with an AJAX > button submit. Right now I am using the jQuery Validation plugin to > validate my form and then the Forms plugin to perform an AJAX submit. > I have the validation a

[jQuery] Re: Jquery Autocomplete Problem

2009-03-15 Thread brian
Don't pass true to clone() as you're copying the event handlers. I suspect that's the problem. On Sun, Mar 15, 2009 at 8:26 PM, deafGuru wrote: > > Hi, > > I have a bug with JQuery Autocomplete plugin. I don't know whether > it's a bug or feature by design. The bug is easy to produce on-demand.

[jQuery] Re: Button Actions

2009-03-16 Thread brian
; inside of the my validation function and it works correctly. Is this >> the proper section to place this type of function? >> >> Thanks, >> Tim >> >> On Mar 15, 7:45 pm, brian wrote: >> >> >> >> > On Sun, Mar 15, 2009 at 8:24 PM, MonkeyBall

[jQuery] Re: Button Actions

2009-03-17 Thread brian
On Tue, Mar 17, 2009 at 9:54 PM, MonkeyBall2010 wrote: > I think I solved my own problem. The callback function does need to be > within the ajaxSubmit function but I wasn't doing it correctly. This > works as intended: > >                submitHandler: function(form) { >                        j

[jQuery] Re: Button Actions

2009-03-18 Thread brian
The function you pass to ajaxSubmit() is run when the AJAX call returns. So, it's well after the user hits the submit button. You should instead pass an options object with the following: beforeSubmit: your block UI handler success: your success handler On Wed, Mar 18, 2009 at 5:05 PM, MonkeyBa

[jQuery] Re: Using PHP templates and jQuery, browser load problems

2009-03-18 Thread brian
On Wed, Mar 18, 2009 at 8:30 PM, Christoph wrote: > > Hi guys, > > I have a quick problem I stumbled upon. > > Here is the background on the situation.  I'm creating a website that > uses templates for the header, body, and footer.  In a sense it is a > modular website with all .php extensions be

[jQuery] Re: Pointless but fun jQuery experiment

2009-03-25 Thread brian
I'll second that! On Wed, Mar 25, 2009 at 9:26 PM, Rick Faircloth wrote: > > Pretty cool, Kelvin! > > Rick > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Kelvin Luck > Sent: Wednesday, March 25, 2009 9:22 PM > To: jquery-en >

[jQuery] Re: [autocomplete] - Request

2009-03-26 Thread brian
Adding to that, it might be nice to have the option to specify a callback that would fire when no further results are possible. For example, to add a class name to the input that would change the BG color. Or, in *some* cases, one might want further typing to be blocked. On Thu, Mar 26, 2009 at 7

[jQuery] Re: Why isn't there any list widget?

2009-03-28 Thread brian
On Sat, Mar 28, 2009 at 11:30 PM, Zach wrote: > > I've searched extensively for a jquery widget that allows me to add/ > remove items to a list, set font size, etc. For an example of what I > mean, see here: > > http://www.webresourcesdepot.com/dnspinger/ > What are we supposed to be looking at?

[jQuery] Re: Are pigs flying? because IE8.1 + Firebug is coming

2009-03-31 Thread brian
Isn't that tomorrow? On Tue, Mar 31, 2009 at 9:33 AM, Martijn Houtman wrote: > > You nearly fooled me there! :-) > > On Mar 31, 2009, at 3:24 PM, MorningZ wrote: > >> >> Friend of mine shot me this link this morning >> >> >> http://www.smashingmagazine.com/2009/03/31/breaking-internet-explorer-8

[jQuery] Re: A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread brian
An ID should be unique. That's why it's callled an ID (IDentifier). Repeating an ID in a page will cause problems for any DOM work. For your purposes, you might do something like: On Tue, Mar 31, 2009 at 12:24 PM, riotbrrd wrote: > > I realize this is not jQuery specific, but I figured yo

[jQuery] Re: will two JQuery libs conflicts?

2009-03-31 Thread brian
If you're only including some functions from the other site, rather than the actual jquery file, there *might not* be a problem. On Tue, Mar 31, 2009 at 2:16 PM, Xu wrote: > > Let say I have one web page that contains html/js snippets from > another web site. If we both use JQuery. > The two JQu

[jQuery] Re: A general Javascript question: duplicate IDs in a document?

2009-03-31 Thread brian
On Tue, Mar 31, 2009 at 5:42 PM, Eric Garside wrote: > > Right, but the problems with that approach is inefficiency. It's more > efficient to grab the entire set of elements via $('.event-phase') and > comparing their "rel" attribute than it is to throw a loop around $ > ('.event-phase-' + i); W

[jQuery] Re: Using the title attribute if images as captions

2009-04-01 Thread brian
In the first version, you're wrapping the img with a div, then trying to ad the caption to a child div of the img. There was also a typo (cright instead of cleft). In the 2nd version, you're trying to append the caption to *all* divs with classname captionwrap. Try this: $(function (){ $('img

[jQuery] Re: will two JQuery libs conflicts?

2009-04-01 Thread brian
On Wed, Apr 1, 2009 at 11:01 AM, Xu wrote: > > Thanks. Can you elaborate it? > You seem to suggest if my web page includes their actual JQuery file, > there will be for sure problems.  Why is that? Thanks. Because you'll be redeclaring the methods. If you load a page like this, you'll get an err

[jQuery] Re: will two JQuery libs conflicts?

2009-04-01 Thread brian
On Wed, Apr 1, 2009 at 8:03 PM, RobG wrote: > > > > On Apr 2, 1:51 am, brian wrote: >> On Wed, Apr 1, 2009 at 11:01 AM, Xu wrote: >> >> > Thanks. Can you elaborate it? >> > You seem to suggest if my web page includes their actual JQuery file, >>

[jQuery] Re: Using the title attribute if images as captions

2009-04-02 Thread brian
float: left; margin: 0 1em 1em 0; } On Thu, Apr 2, 2009 at 4:16 AM, osu wrote: > > Cheers for this Brian - can you tell me, do I need to put the > makeImgCaption function code above the $(function...? Also, I can't > see how the image is being wrapped in a div, could you expla

[jQuery] Re: UI Dialog: how to remove the title and the X?

2009-04-02 Thread brian
http://docs.jquery.com/UI/Dialog#options On Thu, Apr 2, 2009 at 11:47 AM, ggerri wrote: > > Hi there > > want to show a 'please wait' dialog with UI dialog, but cant figure > out how to remove the title and the X (close dialog) as the dialog > should auto-close after the content is loaded... > >

[jQuery] Re: a better selection method

2009-04-02 Thread brian
First, I'd change the HTML to: one two three 1 2 3 You should use IDs instead of classes because you want to target a specific element. I left the "selector" class be

[jQuery] Re: a better selection method

2009-04-02 Thread brian
li a'), div = $('div.youtube').children > ('div'); >  a.click(function(){ >        $(div.hide().get(a.index(this))).show(); >        return false; >  }); > } > > > On Apr 2, 9:12 am, brian wrote: >> First, I'd change the HTML to: >

[jQuery] Re: [autocomplete] showing a 'no results' message

2009-04-05 Thread brian
Good idea. That seems related to this: http://groups.google.com/group/jquery-en/browse_frm/thread/b09b3cb98a2638eb/79d223033c3e32b3 On Sun, Apr 5, 2009 at 11:45 AM, Ido Schacham wrote: > > Hi, > > In case there is no matched result when using the autocomplete plugin, > is there a way to show

[jQuery] Re: dont waste ur time with this it dont work

2009-04-06 Thread brian
Wow, thanks for the tip! I'm sure all of the other tens of thousands of people using jQuery will be relieved to know that there's *just no point* in going on with it any longer. You've potentially saved each of us from years of heartache and despair. Thanks again! On Mon, Apr 6, 2009 at 11:11 AM

[jQuery] Re: Hide li elements if total ul height > container height

2009-04-06 Thread brian
What about setting a fixed height to the UL in your CSS along with overflow: hidden? On Mon, Apr 6, 2009 at 11:34 AM, Sero wrote: > > bump... pretty please?   How do I remove more than the last child if > necessary? > > On Apr 3, 11:34 am, Sero wrote: >> Hi guys, >> >> What I'm trying to do is

[jQuery] Re: Hide li elements if total ul height > container height

2009-04-06 Thread brian
On Mon, Apr 6, 2009 at 11:50 AM, Sero wrote: > > Thanks, but sometimes I'll get an li with the text cut off through the > middle.  Only the top half of the letters display - looks rough. > Good point. What about using a while loop, then? $(function() { adjustNewsHeight(); }); function

[jQuery] Re: Another newbie "how do I"

2009-04-06 Thread brian
You could lay out the list like so: Sight-hounds and other fast dogs Two or three paragraphs describing greyhounds, whippets, Italian greyhounds, their relative size, average top speed, and so on.

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread brian
I don't think it's the quotes that are the problem. Those are, after all, perfectly legitimate characters within a tag. Now, script tags, OTOH ... Why don't you just use something server-side? On Tue, Apr 7, 2009 at 11:53 AM, Rick Faircloth wrote: > I would like to be able to do something as si

[jQuery] Re: Adding incremental numbered classes to divs

2009-04-09 Thread brian
That seems like you're fighting against the convention. Why create a zillion classes when these same divs already have an incremented ID? (The ID being the proper place to do this sort of thin, in the 1st place) On Thu, Apr 9, 2009 at 1:31 AM, Brain Lava wrote: > > I'm really new to jQuery and

[jQuery] Re: Is jquery safe ?

2009-04-09 Thread brian
Why am I picturing John Resig with a gaping hole in his tooth? On Thu, Apr 9, 2009 at 6:22 AM, Devesh wrote: > > Hi, > > I am using the latest version of jquery. I want to confirm that is > there any type virus or trozan with the latest version of jquery. I > have searched it on google a lot, b

<    1   2   3   4   5   6   7   8   >