[jQuery] jMaps: Show HTML bubble?

2008-05-18 Thread sawmac
I'm using jMaps (jQuery Google Maps plugin). Is there a way to make a marker's HTML bubble appear when the map loads? It looks like that HTML bubble only opens based on a marker event (like click or mouseover). I'm hoping to just have the bubble visible without any user action. thanks --dave

[jQuery] Re: Hide/Close div when clicked outside of it.

2008-05-02 Thread sawmac
try this $('#divLoginBox1').click(function(e) { e.stopPropagation(); }); $(document).click(function() { $('#divLoginBox1').hide(); }); --dave

[jQuery] Re: animation: sequential showing / hiding : how-to?

2007-12-16 Thread sawmac
> > $('div.items").show("slow"); > of course i could use the callback of each show so taht the next one only > start when current is finished animating, but i don't know in advance the > amount of divs there will be so i'm kind of stuck on how to achieve that. I think the FX Queues extension ca

[jQuery] Re: How to toggle "display" value?

2007-12-11 Thread sawmac
$(document).ready( function () { $('[EMAIL PROTECTED]"radio"]').click( function() { $('#giftMsg').toggle($(this).show(),$ (this).hide()); }); } ); toggle() takes 2 functions as argument

[jQuery] Re: IE7 odd bug with val()

2007-12-10 Thread sawmac
> in the showSectionActionsDialog function IE give the error "Object > doesn't support this property or method" when trying to get the value > of the "actions" variable Marcello, I tried the snippet you sent and IE 7 didn't spit out any errors. Do you have a page online that's causing the e

[jQuery] Re: hiding page elements instantly on page load

2007-12-06 Thread sawmac
> > This works great on my localhost. However, when I publish online I > experience a problem: on page load the whole is shown for a > second, including all nested submenu's, before it is hidden by > jQuery. I guess this is because all elements need to be loaded > into the DOM before the jQuer

[jQuery] Re: which query is most efficient?

2007-12-05 Thread sawmac
On Dec 4, 8:23 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Dave, I know I am getting in here late, but I did a post on fast selectors > that may point you in the right > direction:http://benjaminsterling.com/jquery-what-are-the-fastest-selector/ Benjamin, very cool. Thanks for the lin

[jQuery] Re: which query is most efficient?

2007-12-04 Thread sawmac
> > $('p span'): 863ms > $('p').find('span'): 3050ms Wow, that's a big difference. Thanks Eric for running this test and thanks Gordon for pointing me to the Firebug profiler cheers --dave

[jQuery] Re: scope question

2007-12-04 Thread sawmac
> The function assigned to init plus the reference to a variable defined > outside of it ('me') is called a closure. You'll see people use 'self > = this' or '$this = $(this)' for this purpose frequently. Thanks Danny, Great explanation. --dave

[jQuery] which query is most efficient?

2007-12-03 Thread sawmac
is there a difference in performance for these two: $('p span') $('p').find('span') while, I'm on the subject, what's a good way to test performance of queries (and scripts in general) thanks --dave

[jQuery] scope question

2007-12-03 Thread sawmac
I'm trying to wrap my head around objects and object literals. I can't seem to figure out how to access the object within one of its methods, when the method is triggered by an event. In other words the context for 'this' shifts when the method is invoked by a handler. See simple example below:

[jQuery] Re: Scrolling Quote Craziness

2007-12-01 Thread sawmac
> > Thanks for the heads-up, Dave. Actually, though, I'm not seeing that > problem in Safari 3 Mac. > Weird. Yesterday, all of the text overlapped, but it looks fine now (actually looks great--awesome effect) in Safari 3. --dave

[jQuery] Re: Scrolling Quote Craziness

2007-11-30 Thread sawmac
On Nov 30, 1:46 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Just kidding. I'm glad you switched it to the cycle plugin. I'm > actually using it, too, on a site I just > redesigned:http://www.calvin.edu/festival/ Karl, Thought you might want to know that the scrolling list of speakers o

[jQuery] Re: Masked Input Plugin 1.1.2

2007-11-29 Thread sawmac
On Nov 29, 6:32 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > I just released version 1.1.2 of my Masked Input Plugin for jQuery. Josh, that's great. Very nice implementation with just the right amount of information for users to quickly figure out what they need to input. I'll definitely be tryin

[jQuery] Re: CSS JS Library - is there a jQuery equivalent?

2007-11-29 Thread sawmac
On Nov 29, 5:16 am, Guy Fraser <[EMAIL PROTECTED]> wrote: > Another sweet thing found on > Ajaxian:http://feeds.feedburner.com/~r/ajaxian/~3/192351009/new-css-javascrip... > > There was recently a thread regarding a jQuery plugin which dealt with > CSS but I can't find it now. Maybe you're thi

[jQuery] Re: Scan html variable content

2007-11-28 Thread sawmac
> I have a question, I think this is a small things, but I don't know > the answer. > > I have a variable: > var myVar = 'You must fill class="field">Fields...'; var myVar = 'You must fillFields...'; if ($(myVar).hasClass('css-error')) { // yes it has the css-error class } .hasClass is new in

[jQuery] select text for LI

2007-11-02 Thread sawmac
I'm trying to select text inside list items. I'm using jQuery's .text( ) method. Unfortunately, that returns the text of all children as well. That means for a nested list like this index.html about index.html more.html $('li').eq(1).text() returns 'about index.