[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 can do that:
http://plugins.jquery.com/project/fxqueues

--dave


[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 arguments

--dave


[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 errors that we can test?

--dave


[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 ul is shown for a
 second, including all nested ul submenu's, before it is hidden by
 jQuery. I guess this is because all ul elements need to be loaded
 into the DOM before the jQuery code is started?

Are you using the onload event or jQuery's document ready method? If
you're using onload then you need to wait until all assets like
images, flash movies have downloaded before the hide() function runs.
The jQuery method will hide the nested ul as soon as the dom is ready
to be manipulated

 $(document).ready(function(){
  $(ul ul).hide();
 });

--dave


[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 link to your test page. Fun stuff.

--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] 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] 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] 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 on
http://www.calvin.edu/academic/engl/festival/
doesn't work in Safari 3 (Mac)--can't read any of the names, they all
overlap.
Looks great in Firefox, though.

--dave


[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 thinking about the Rule plugin:
http://jquery.com/plugins/project/Rule

--dave


[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 trying this one out.

--dave


[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 = 'div class=css-errorYou must fill/divdiv
 class=fieldFields.../div';

var myVar = 'div class=css-errorYou must fill/divdiv
class=fieldFields.../div';
if ($(myVar).hasClass('css-error')) {
 // yes it has the css-error class
}

.hasClass is new in jQuery 1.2

--dave


[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

ul
  liindex.html/li
  liabout
ul
  liindex.html/li
  limore.html/li
/ul
  /li
/ul

$('li').eq(1).text() returns
'about
   index.html
   more.html'

I just want to retrieve about not the text from the child list
items. Any ideas on how to do that?

thanks