[jQuery] Re: Preventing animations from piling up due to fast mouse movement

2009-04-21 Thread Sean O


Brandon Aaron covered this issue on Learning jQuery a few months back:
http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup


HTH,
SEAN O
http://www.sean-o.com



AppleTurnover wrote:
> 
> 
> I've got a jquery function set up where it simply opens up a minicart
> div when the cursor is placed over the shopping cart icon.  My problem
> is when the cursor is placed on the icon and removed very quickly more
> than once, and before the animation is complete, the animation gets
> queued infinitely.
> 
> Here's the code, very simple:
> 
>   $('#cart_link').mouseenter(function(){
>   $('#minicart').slideDown(300);
>   });
> 
>   $('#cart_link').mouseleave(function(){
>   $('#minicart').fadeOut(0);
>   return false;
>   });
> 
> How can I stop the animation queue?  Thanks!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Preventing-animations-from-piling-up-due-to-fast-mouse-movement-tp23154977s27240p23155175.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Validation CheckBoxes group

2009-04-06 Thread Sean O


Luigi,


This should work for you:
var isChecked = false;
$('.campi[name="license"]').each(function(){
  if ( $(this).attr('checked') )
    isChecked = true;
});


SEAN O
http://www.sean-o.com



Ciupaz wrote:
> 
> Hi all,
> in my .aspx page I have a series of checkboxes for the driver license:
> 
> 
>A
>B
>C
>D
>E
>F
>K
> 
> 
> How can I validate that at least one of them is checked? (one or more).
> 
> Thanks in advance.
> 
> Luigi
> 

-- 
View this message in context: 
http://www.nabble.com/Validation-CheckBoxes-group-tp22906364s27240p22908236.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: simulate radio with checkboxes in a table

2009-03-23 Thread Sean O


This should work for you...

$('#mytable input').click(function(){ 
  // get current time (class name) 
  var time = $(this).attr('class'); 
  // iterate through each input except the one clicked 
  $('#mytable input').not($(this)).each(function(){ 
// if it has the same class name, uncheck (radio-esque functionality) 
if ( $(this).hasClass(time) ) 
  $(this).attr('checked',''); 
  }); 
});

Demo:
http://jsbin.com/umoqe

I would add visual indications of groupings (a thin horizontal rule, e.g.)
for clarity as well.


-- SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom




newbuntu wrote:
> 
> I'm learning jquery. 
> 
> I have table like this
> 
> 
>   class='08_00_AM'>Michael21
>   class='08_00_AM'>Sam22
>   class='08_00_AM'>John28
>   class='08_00_AM'>Jason55
>   class='10_00_AM'>Michael21
>   class='10_00_AM'>Sam22
>   class='10_00_AM'>John28
>   class='10_00_AM'>Jason55
> 
> 
> I marked input boxes with a time class (either 08_00_AM or 10_00_AM). Can
> I simulate a radio behavior for the checkboxes with the same time?
> 
> 1) if a box is checked, then all other boxes with the same time should be
> unchecked.
> 2) clicking on a checked box, should uncheck it.
> 
> any help is greatly appreciated.
> 
> thx!
> 

-- 
View this message in context: 
http://www.nabble.com/simulate-radio-with-checkboxes-in-a-table-tp22655210s27240p22659996.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: show hide random rows

2009-03-19 Thread Sean O


Scott, Ricardo, great thoughts and great code. It is an interesting issue
with many attack vectors; I hope the OP is getting something out of all
this...

I will expect at least as much code and analysis for my next posted problem!
;)


SEAN O
_
http://www.sean-o.com
http://twitter.com/seanodotcom




Scott Sauyet-3 wrote:
> 
> 
> ricardobeat wrote:
>> If you need performance, this should be it:
>> 
>> http://jsbin.com/uvuzi/edit
>> 
>> It sorts the rows using the "Fisher-Yates" shuffling algorithm.
>> Despite throwing elements around in an array, it's faster than the
>> pure mathematical solution because you don't need to filter out
>> duplicate random numbers. An even greater improvement can be made by
>> using the style.display property directly.
> 
> First of all, thanks for your code.  I learned something new today.  I 
> never realized that I could reassign the elements of a jQuery collection 
> in that manner.
> 
> I don't know why I brought up performance for a client-side JavaScript 
> issue!  It's probably not at all relevant to the OP's problem.  But I 
> think both your technique and mine should have similar performance.  The 
> key factor in either of ours is the number of calls to Math.random(), 
> and both of us call that $rows.length times.
> 
> Sean O's technique has a worst-case time that is infinite, but it, or a 
> slight modification of it [1], has an expected time much shorter than 
> either of ours.  In the ten-out-of-fifty case we were working with, our 
> techniques require 50 iterations, where in his the expected number of 
> iterations is 11.033.  In your ten-out-of-one-thousand example, ours 
> would be 1000, and his expected number is below 10.05.  With the 
> modification [1], the worst case would be if the number to be selected 
> were half of the total rows, and then the number of iterations seems to 
> be about ln(2) * $rows.length, although I haven't attempted to prove this.
> 
> This is related to the Coupon Collector's Problem [2].  I'm pretty sure 
> the exact expected number of iterations of Sean's technique is
> 
>  sum_{i=1}^{SELECTED} {TOTAL / (TOTAL - i + 1)}
> 
> But hey, let's get back to jQuery!  :-)
> 
>-- Scott
> 
> 
> [1] The modification would be, when the requested number of rows is 
> greater than half the total number of rows, to switch to running the 
> same algorithm to choose the number of *unselected* rows.
> 
> [2] http://www.google.com/search?q=coupon+collector+problem
> 
> 

-- 
View this message in context: 
http://www.nabble.com/show-hide-random-rows-tp22570300s27240p22599424.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: show hide random rows

2009-03-18 Thread Sean O


Scott,


Nice job. I like the logic, and the fading out of unselected rows.

My solution was, admittedly, a quick one. It certainly wouldn't scale past
1,000 rows or so -- especially with the majority # selected -- but if the
10/50 number is firm, seemed to work OK.


--SEAN O



Scott Sauyet-3 wrote:
> 
> 
> Bob O wrote:
>> Basically i have a YUI datatable and i want to use jQuery to hide all
>> but a user generated number of rows that are random selected
> 
> Something like this might be what you're looking for:
> 
>  http://jsbin.com/ozafa/edit
> 
> The important part is this:
> 
>  var $rows = $("#myTable tbody tr");
>  $("form").submit(function() {
>  var count = parseInt($("#count").val());
>  var chosen = 0;
>  var total = $rows.length;
>  $rows.each(function(index) {
>  if (Math.random() < (count - chosen) / (total - index)) {
>  $(this).fadeIn("slow");
>  chosen++;
>  } else {
>  $(this).fadeOut("slow");
>  }
>  });
>  return false;
>  });
> 
> This is different from the previous suggestion, which kept randomly 
> picking rows and if they weren't already chosen, added them to the list. 
>   This solution iterates through the rows, updating the probability of 
> each one being chosen according to how many have already been chosen and 
> how many we still want to choose.  It might be a bit less efficient for 
> 10 out of 50, but would probably be much more efficient at 40 out of 50, 
> and it is entirely predictable, in that it run exactly one random call 
> for each row in the table.
> 
> Cheers,
> 
>-- Scott
> 
> 

-- 
View this message in context: 
http://www.nabble.com/show-hide-random-rows-tp22570300s27240p22584637.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: show hide random rows

2009-03-18 Thread Sean O


Bob,


Try this:
http://jsbin.com/esoba

Code:
http://jsbin.com/esoba/edit

It shouldn't matter how YUI is IDing your table rows, as you can pluck them
out by index.

HTH,
SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom



Bob O-2 wrote:
> 
> 
> I was wondering if anyone could point me to a tutorial or blog where i
> can accomplish this task.
> 
> Basically i have a YUI datatable and i want to use jQuery to hide all
> but a user generated number of rows that are random selected
> 
> so if i had 50 records in the table and the user input 10 in a text
> field and hit a button..
> 
> 10 random records would be left displayed and the other 40 would be
> hidden..
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/show-hide-random-rows-tp22570300s27240p22579151.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Hide/Show glossary page require for website using jQuery

2009-03-06 Thread Sean O


Have you seen the listNav plugin?
http://www.ihwy.com/Labs/jquery-listnav-plugin.aspx

Sounds like it fits well with what you're looking to do.


SEAN O
http://www.sean-o.com
http://twitter.com/seandotcom



JP-47 wrote:
> 
> 
> Hi There
> 
> I am trying to implement a glossary page (A-Z) for a website.
> Basically when I user clicks a letter e.g A all the glossary terms
> listed under A will appear below and all other glossary terms will be
> hidden. I have a very simple working version below, but at the moment
> I am having to manaully hide all other elements when a particular
> glossary term is clicked. I presume there is a easier way , maybe
> using a loop of some sort, but being new to jQuery I am struggling a
> littel. Has anyone done something similar before? any help would be
> greatly appreciated.
> 
> 
>  
> 
>   $(document).ready(function() {
> $(".codeA").hide();
> $(".codeB").hide();
> 
>   });
>
> 
>   Glossary
> 
># A 
># B 
> 
>class="codeA">Agenda - Meeting
> structure
>class="codeB">Board - Panel div>
>   
> 
> 
> 
>   
>   // JavaScript Document
> 
>   $(document).ready(function(){
> 
>   //show code example A
>   
> $("a.codeButtonA").click(function(){
>   $(".codeA").show();
>   $(".codeB").hide();
>   return false;});
> 
>   //show code example B
>   
> $("a.codeButtonB").click(function(){
>   $(".codeB").show();
>   $(".codeA").hide();
>   return false;});
> 
> 
>   });
>   
> 
> Many thanks in advance
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hide-Show-glossary-page-require-for-website-using-jQuery-tp22378043s27240p22382644.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Show hide and print

2009-03-04 Thread Sean O


Have you tried overriding the override?

i.e.
#gototop { display:none !important; }


SEAN O



rayfidelity wrote:
> 
> 
> Jquery show or fadein overrides the print stylesheet that's the whole
> problem.
> 
> On Mar 4, 2:56 pm, Sean O  wrote:
>> You're best served doing that simply with a CSS print stylesheet.
>>
>> Just add:
>> 
>> and set all elements you don't want to print to "display: none".
>>
>> Here's an Oldie-but-Goodie guide to creating a nice
>> one:http://www.alistapart.com/articles/goingtoprint/
>>
>> HTH,
>> SEAN Ohttp://www.sean-o.comhttp://twitter.com/seanodotcom
>>
>>
>>
>> rayfidelity wrote:
>>
>> > Hi,
>>
>> > I have a problem, I have an element which I show (let's say fadein
>> > ("slow")) on certain action (it's set on display:none in CSS).
>>
>> > The problem is that i want to print that page without that
>> > element...how can i do that... fadein, show,... all set the element on
>> > display:block which means the element will apper no matter what.
>>
>> > I've tried something like this
>>
>> > $("#gototop").attr("style","@media print{display:none;}");
>>
>> > I wan't the element to be seen on screen, but not for printing!
>>
>> > but it doesen't work...
>>
>> > Thank,
>>
>> > BR
>>
>> --
>> View this message in
>> context:http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22330446.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22332712.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Show hide and print

2009-03-04 Thread Sean O


You're best served doing that simply with a CSS print stylesheet.

Just add:

and set all elements you don't want to print to "display: none".

Here's an Oldie-but-Goodie guide to creating a nice one:
http://www.alistapart.com/articles/goingtoprint/


HTH,
SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom



rayfidelity wrote:
> 
> 
> Hi,
> 
> I have a problem, I have an element which I show (let's say fadein
> ("slow")) on certain action (it's set on display:none in CSS).
> 
> The problem is that i want to print that page without that
> element...how can i do that... fadein, show,... all set the element on
> display:block which means the element will apper no matter what.
> 
> I've tried something like this
> 
> $("#gototop").attr("style","@media print{display:none;}");
> 
> I wan't the element to be seen on screen, but not for printing!
> 
> but it doesen't work...
> 
> Thank,
> 
> BR
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22330446.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Newbie needs Help with jquery logic

2009-03-01 Thread Sean O


This was a fun one to play with.
I think this is the effect you're after...

Demo:
http://jsbin.com/iwile
Source:
http://jsbin.com/iwile/edit

It's pretty concise & self-explanatory, but if you have any questions, just
reply.


SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom



ixxalnxxi wrote:
> 
> I'm trying to set up a gallery on my own (similar to galleria) so I can
> get my hands dirty with jquery. 
> 
> I have a set of images that either have the class "inactive" or "active"
> attached to them. When I leave all my images with the "inactive" class by
> default, everything works fine but it looks terrible because the image div
> is empty and all thumbnails have .33 opacity. 
> 
> Now, when I set an image to "active", it correctly shows up with an 100
> opacity thumbnail and a filled in image div once i click on another
> thumbnail then move back to the thumbnail that was once by default active,
> it doesn't function correct. 
> 
> html,
> 
>   
>images/01_nintendoDSa.gif 
>   
>   
>   
>images/02_nintendoDSb.gif 
>   
>   
>   
>images/03_colourkeys.gif 
>   
> 
> 
> 
> 
> 
> Then the jquery is as follows,
> 
>   $("img.inactive").click(function() 
>   {
>   var image = $("img.active");
>   if(image != $(this))
>   {
>   image.removeClass("active");
>   image.addClass("inactive");
>   image.fadeTo("slow", 0.33);
>   $(this).removeClass("inactive");
>   $(this).addClass("active");
>   $(this).fadeTo("slow", 100);
>   }
>   });
> 
> 
> Any suggestions?
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-needs-Help-with-jquery-logic-tp22257353s27240p22281961.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: [tooltip] help please

2009-02-28 Thread Sean O


Paul,

Two suggestions:
1) remove the dimensions plugin script (it's integrated into jQuery as of
this version)
2) close your doc ready function with parens & semicolon:
$(function() {
   $('#set1 *').tooltip();
});


SEAN O
http://www.sean-o.com



paulmo wrote:
> 
> 
> am not getting the stylized popup window (generic yellow box instead).
> all files in my server root folder. please help this newbie; this in
> head:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> $(function() {
> $('#set1 *').tooltip();
> }
> 
> 
> this in body:
> 
> 
>   Write something.
>   
>name="action" id="text1"/>
> 
>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-tooltip--help-please-tp22269309s27240p22269875.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: google suggest

2009-02-28 Thread Sean O


Have a look at the excellent Autocomplete plugin by Jörn Zaefferer:
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/


SEAN O
http://www.sean-o.com



anjith wrote:
> 
> 
> Hi,
> 
> Hey please help i want to do google suggest i have customised many
> codes but none of them working .  I tired to do own but how to get
> light window  below the text box and get suggestions one by one.
> 
>  Please help me
> 
> 
> Thanks and regards,
> Anjith Kumar Garapati
> 
> 

-- 
View this message in context: 
http://www.nabble.com/google-suggest-tp22260004s27240p22269874.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] My birthday gift to the jQuery Community

2009-02-27 Thread Sean O


It's been a while since I created anything publicly fun - kids have that
effect on you :)
So I figured I'd offer up my birthday gift to you:

F3: Fast Flickr Findr
http://www.sean-o.com/f3

Find Flickr photos fast. Built using jQuery, developed rapidly on Remy
Sharp's JSBin. Enjoy.


SEAN O
___
http://www.sean-o.com
http://twitter.com/seanodotcom
-- 
View this message in context: 
http://www.nabble.com/My-birthday-gift-to-the-jQuery-Community-tp22251475s27240p22251475.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Good book or site to learn jquery?

2008-12-15 Thread Sean O



Steven-99 wrote:
> 
> I want to learn how to use jquery.  Does anyone know any good books or
> sites that will teach it?
> 

The book, Learning jQuery (Swedberg, Chaffer), is quite good.
-- 
View this message in context: 
http://www.nabble.com/Good-book-or-site-to-learn-jquery--tp21007959s27240p21015766.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: mcDropDown - problem getting displayed value

2008-12-08 Thread Sean O



Dan Switzer wrote:
> 
> Sean,
> 
> The getValue() should do exactly what you need. It returns an array in
> the format [value, label]. So the second element in the array is
> exactly the value I believe you're after.
> 
> -Dan
> 

Dan, thanks. I'm able to get the label using [1], but the behavior is
strange. When I retrieve the value, the correct current value of the
selection is returned immediately. However, when I retrieve the label, it
returns the previous selection's label. This is empty at first selection,
and then incorrect for each subsequent (different) selection.

e.g.
mc = $("#modelFullName").mcDropdown("#modelMenu", {
modelName = this.getValue();
updateModelName(modelName[0]);  // this updates immediately & correctly
with the rel attr. of current selection
// - or -
updateModelName(modelName[1]);  // this updates with the value of the
previous selection
});


SEAN
-- 
View this message in context: 
http://www.nabble.com/mcDropDown---problem-getting-displayed-value-tp20860269s27240p20897024.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] mcDropDown - problem getting displayed value

2008-12-05 Thread Sean O


Hi,


I'm using the (excellent) mcDropDown plugin:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
...but can't seem to get the displayed input value, after hours of Googling
& hacking.

Code
-
$(function () {
   mc = $("#modelName").mcDropdown({
  'select': function(){
 modelName = $('.mcdropdown input').val();
 updateModelName();   // fn that sets text of .modelname spans
  }
   });
});

Text
-
Your model: <span class='.modelname'>REPLACE ME</span>

What's strange is that the first time a model is selected after page load,
modelName (and .modelname) is set to an empty string. The second time you
select a model, .modelName is replaced... with the text of the previous
model selection. Each successive selection sets the value of the previous
selection(?).

.getValue() doesn't work, and would only return the rel attribute of
selection anyway. What I need is the displayed text.

Ideas? Thanks.



SEAN O
http://www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/mcDropDown---problem-getting-displayed-value-tp20860269s27240p20860269.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: My first jQuery

2008-06-04 Thread Sean O


Did you place your code inside jQuery's document ready function?

$(document).ready(function() {
  $("#section1").hover(function(){
$("p.sec-ia").addClass("unhide").show("slow");
  },function(){
$("p.sec-ia").removeClass("unhide").hide("fast");
  });
});

The above worked for me, assuming .unhide was a "display" style and was used
to display a  with class of "sec-ia".

_
SEAN O
http://www.sean-o.com



gandalf458-2 wrote:
> 
> 
> I'm trying my first simple jQuery task, a mouseover event to display a
> box with some text.
> 
>   $("p.sec-ia").addClass("unhide").show("slow");
> 
> works fine but when I add the mouseover
> 
>   $("#section1").hover(function(){
> $("p.sec-ia").addClass("unhide").show("slow");
>   },function(){
> $("p.sec-ia").removeClass("unhide");
>   });
> 
> it doesn't do anything. I don't know if it's because my p.sec-ia isn't
> in the #section1. Can anyone give me a clue, please? Thanks.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/My-first-jQuery-tp17643861s27240p17645936.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Trying to get plugin listed

2008-05-16 Thread Sean O


Anyone?

Thanks,
SEAN



Sean O wrote:
> 
> Can someone from the jQuery team please contact me about getting my plugin
> back on the Media page?  The project has been established for quite some
> time, is filed under Media, and has its own project page:
> http://www.sean-o.com/jquery/jmp3/
> 
> But it will not show up on the Media page:
> http://plugins.jquery.com/project/Plugins/category/52
> no matter what I do.
> 
> I've tried editing, re-assigning, and recreating the project.
> 
> Pls email me at
> seanodotcom -at- yahoo -dot- com
> 
> 
> Thanks,
> SEAN O
> http://www.sean-o.com
> 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-get-plugin-listed-tp17232580s27240p17278280.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jMP3 plugin: Preventing more than one song from playing at the same time.

2008-05-16 Thread Sean O


Hi,

It looks like Jeroen's MP3 player has been replaced by a generic "media
player", but it still seems to use the flash object, so it should be able to
be manipulated.  There's a page here that demonstrates playing only one
media file at a time:
http://home5.inet.tele.dk/nyboe/flash/mediaplayer/IDcontrol.htm

Also, Jeroen has a forum setup just for Javascript interaction:
http://www.jeroenwijering.com/?forum=Javascript_interaction

Hopefully one of these resources can help.


SEAN O
http://www.sean-o.com




Louder Than Ten wrote:
> 
> 
> Does anyone have any experience manipulating the jMP3 plugin (http://
> www.sean-o.com/jquery/jmp3/) to stop songs when new ones are started?
> 
> Here is the site I've implemented it on: http://gataylor.travinternet.com
> 
> I would like to prevent more than one song playing at the same time.
> I'm assuming this can be done by calling the pause function in the the
> flash file somehow, but my brain is just not making the connection.
> 
> Help!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jMP3-plugin%3A-Preventing-more-than-one-song-from-playing-at-the-same--time.-tp17053433s27240p17274272.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Trying to get plugin listed

2008-05-14 Thread Sean O


Can someone from the jQuery team please contact me about getting my plugin
back on the Media page?  The project has been established for quite some
time, is filed under Media, and has its own project page:
http://www.sean-o.com/jquery/jmp3/

But it will not show up on the Media page:
http://plugins.jquery.com/project/Plugins/category/52
no matter what I do.

I've tried editing, re-assigning, and recreating the project.

Pls email me at
seanodotcom -at- yahoo -dot- com


Thanks,
SEAN O
http://www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/Trying-to-get-plugin-listed-tp17232580s27240p17232580.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Re[jQuery] lease: Autocomplete Plugin 1.0

2008-04-29 Thread Sean O


Jörn,


I appreciate the work put it into this plugin.  It certainly has great
potential.
I noticed some bad behavior, however, with multiples.

Under Multiple Cities (local):, whenever you enter in a character that no
longer matches with an autocomplete entry, the entire field goes 'poof'. 
This would be disconcerting for the user entering his 5th or 6th entry and
mistyping a letter.  Reproduced in FF 2 & IE 7, Vista.

Digging the image search A/C... will have to delve into that code later.


Thanks,
SEAN O
_
http://www.sean-o.com




Jörn Zaefferer wrote:
> 
> 
> Hi,
> 
> I've just finished the 1.0 release of my autocomplete plugin. Details on 
> the blog: http://bassistance.de/2008/04/27/release-autocomplete-plugin-10/
> 
> And some direct links to get started:
> Plugin page: 
> http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
> Demos: http://jquery.bassistance.de/autocomplete/demo/
> Documentation: http://docs.jquery.com/Plugins/Autocomplete
> 
> Have fun!
> 
> Jörn Zaefferer
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release%3A-Autocomplete-Plugin-1.0-tp16928094s27240p16974772.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Best plugin for modal dialogs

2008-02-14 Thread Sean O


I switch between jqModal and Thickbox 3.1 for different apps, slightly
different needs.  Thickbox works well for forms, looks nice, while jqModal
is much snappier.


SEAN O
_
http://www.sean-o.com



Nazgulled wrote:
> 
> 
> Hi,
> There are so many plugins for modal dialogs that I don't know which
> one should I use and/or which one is the best... I mean, if there was
> only one plugin of this type including all the features from all the
> modal plugins, that would be cool.
> 
> Which one do you think it's the best and why? Care to state the pros
> and cons of each plugin (or the ones you know/have already tested)?
> That would be nice...
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Best-plugin-for-modal-dialogs-tp15493135s27240p15494366.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: what editor do you use?

2008-02-14 Thread Sean O


I used Notepad++ for a while, thinking it was the bee's knees. But then I
found PSPad a few months ago, and it's earned my title as go-to editor.
Tabbed Interface, multi-code-highlighting, live FTP editing, projects, text
diffs, many user-created extensions, etc. etc.

What sealed it for me was the built-in site management over FTP. Work with
remote files as if they're local. Couple that with ability to run from your
USB drive (with no install), and you've got a powerful, anywhere, any-code
editor.

And as for the handy "duplicate line" function from Notepad++:
Tools >> Program Settings >> Key Map >> Edit >> Copy Line
Assign your own shortcut key.  I chose Ctrl-Alt-D.

"Swap with Line Above/Below" is also quite convenient.

http://www.pspad.com


SEAN O
___
www.sean-o.com


-- 
View this message in context: 
http://www.nabble.com/what-editor-do-you-use--tp15462258s27240p15481265.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Loading GIF Slideshow w/o Modal

2008-01-31 Thread Sean O


Ange,


It sounds like the SlideViewer plugin might help you:
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html


SEAN O
_
www.sean-o.com



Ange-6 wrote:
> 
> 
> I'm looking for a jQuery slideshow plugin, and I can't seem to fond
> one that does all I need. Cycle and jCarousel come close. But my
> problem is I have multiple galleries on one page, and they all have
> large images. So, since they load all the images in every gallery and
> then hide them, the page totals over 4000KB.
> 
> I need something like Litebox or Thickbox that calls the next/prev
> image and loads it as needed, with a loading gif. But I don't want a
> pop-up modal. It would be nice if I could just put one image from each
> gallery in the HTML and have the prev/next buttons load and fade to
> the prev/next image.
> 
> Any suggestions?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Loading-GIF-Slideshow-w-o-Modal-tp15194790s27240p15207374.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Inline "hover menu" needed

2008-01-30 Thread Sean O


Hi,


I'm looking for (likely) a plugin that will allow text/images to overlay a
small menu when hovered on, disappearing onMouseOut after a second or two.

Example:
http://www.medhelp.org/posts/show/418157

Something similar to the ContextMenu plugin would be great, if you could set
the trigger to onMouseover versus right-click.

Any ideas?


Thanks,
SEAN O

www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/Inline-%22hover-menu%22-needed-tp15191011s27240p15191011.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Opposite of .contains() ?

2008-01-11 Thread Sean O


Thanks for the prompt responses, guys!

Loren/Vaughn, your solution worked great.  I really need to spend some QT
with Learning jQuery and selectors this weekend :)


SEAN O



Vaughn Pipes wrote:
> 
> You might try something like this:
> 
> $("p:not(:contains('1'))")
> 
> Loren Pipes
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Opposite-of-.contains%28%29---tp14758914s27240p14764015.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Opposite of .contains() ?

2008-01-11 Thread Sean O


Hi,

I'm trying to select elements that do not contain certain text.
In effect, the opposite of .contains().

e.g.
1: 1: 2: 3: 4:

How can I select all s without a 1 in the text?
like... $("p").doesNotContain("1")

Various attempts with not: and filter() have failed...


Thanks,
SEAN

www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/Opposite-of-.contains%28%29---tp14758914s27240p14758914.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: MooFlow: Carousel of sorts

2008-01-07 Thread Sean O


This is seriously cool!  Kind of a Cover Flow-style effect...

I wouldn't be surprised if Mike Alsup, the reigning jQuery slideshow master
-- see:
http://www.malsup.com/jquery/cycle/
has a Cycle plugin option for this soon ;)

SlideViewer
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
is also nice.

I don't know of any with quite the layout of MooFlow, however.


SEAN O
___
www.sean-o.com



{js}sTyler wrote:
> 
> 
> Has anyone seen the MooFlow image gallery:
> http://www.outcut.de/MooFlow/
> It even allows the pictures to be rotated using the mouse wheel.
> Very cool stuff, I suppose anything could be ported to jquery, or not?
> Don't have an immediate use for this, but it's cool, I've seen similar
> things done in flash.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MooFlow%3A-Carousel-of-sorts-tp14673694s27240p14674439.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Sean O


Ben, Jim, thanks for the replies.

I was ready to just hack it in myself, but I haven't worked with Wordpress
in quite some time and remember it being fairly fragile.  I'll give your
code a shot, Benjamin.

>>Shameless plug for my wife's site:  http://www.yourdoorandmore.com/
@Jim: my wife is looking for this very thing - a pen & ink drawing of her
childhood home.  Can you work with photographs? (we're in PA)  Contact me
off list:  seanodotcom -at- yahoo -dot- com


Thanks,
SEAN



Priest, James (NIH/NIEHS) [C] wrote:
> 
> 
>> -Original Message-
>> From: Benjamin Sterling [mailto:[EMAIL PROTECTED] 
> 
>> Not sure how to include what they have in the core, but I 
>> think it is out of date anyways. 
> 
> 
> I didn't even mess with trying to get whatever is included working - I
> didn't want to get stuck using an old version, etc.  I just dumped
> jQuery in the root of my site and called it in my template header.php...
> 
> Shameless plug for my wife's site:  http://www.yourdoorandmore.com/
> 
> I want to next build a little gallery using the cycle plugin w/pager as
> well...
> 
> http://www.malsup.com/jquery/cycle/pager3.html
> 
> Jim
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14674018.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Using jQuery in Wordpress

2008-01-07 Thread Sean O


So I'm trying to use jQuery in Wordpress (2.3.2)...  Mostly for site
design/effects now, eventually for posts too, if possible.  It looks like
jQuery is in the WP core now, but when I Firebug a few $() functions, I get
errors.

Any trick to getting this going?  Googling provided sparse / old articles.


Thanks,

SEAN O
___
www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Autosuggest

2007-11-19 Thread Sean O


Gordon,

I think the quickSearch plugin:
http://rikrikrik.com/jquery/quicksearch/

will help you.


SEAN O
__
www.sean=o.com



Gordon-35 wrote:
> 
> 
> http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/
> demonstrates a plugin that's really close to what I want, it will pick
> up on elements where the word entered isn't the first word in the
> strings being searched.  Unfortunately, it still requires all the
> words to be in the order they appear in the strings and doesn't seem
> to match when words are ommited.  Try "eastern", "warbler" and
> "eastern warbler" to see what I mean.  If this plugin matched on
> "eastern warbler" or even on "warbler eastern" it would be pretty much
> just what I needed functionality wise.  Additionally it doesn't need
> any ajax support as the UL with all the addresses in it is already on
> the page.  I just need to process that list, and use it as the basis
> of the autocomplete.
> 
> On Nov 19, 10:16 am, Gordon <[EMAIL PROTECTED]> wrote:
>> I currently have a brief to develop a system to help people find
>> addresses in a list loaded into a web page.  At the moment they're
>> displayed as a single long list (a ul), and the oser clicks the one he
>> wants to use.  The problem is that in some cases this list can run to
>> hundreds of entries.
>>
>> The first plan was to simply have a button to click on the page that
>> invokes the browser's ctrl-f behaviour, but there doesn't seem to be a
>> sensible cross-browser way to do it.
>>
>> My second idea was to use jQuery and one of the autocomplete plugins,
>> convert the list into the data the autocomplete plugin needs to
>> operate on and suggest addresses as users type into the field.  This
>> seemed a better approach but then I hit a problem that the
>> autocomplete plugins that I've found so far all seem to search on
>> exact phrases, which is not going to be very useful.  Addresses in the
>> list are in the format , ,  so a
>> user would have to start by entering the name of the recipient
>> followed by the address and post code for the autocomplete to work.
>> If the user was to start with a postcode or street address, as most
>> users would probably consider sensible, then the autocomplete would
>> return no results.
>>
>> What I really need is something that works in a similar manner to the
>> autocomplete plugins I've found so far, but that doesn't care about
>> the order of the words typed into the search box.  The only constraint
>> should be that the strings being matched against contain all the words
>> typed.
>>
>> For example, if an address is listed as "Mister Foobar, 123 Fake
>> street, Quuxville, AS1 23D, then the autocomplete plugin would suggest
>> that address if the user typed in "fake street as1", or "fake
>> foobar".  Are there any autocumplete plugins that support doing this?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Autosuggest-tf4835224s27240.html#a13842444
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: QuickSearch plugin - triggering events

2007-11-19 Thread Sean O


Bump.

I thought I got somewhere over the weekend, but am still 1-2 off on each
count.
The plugin project hasn't been updated in a while...


SEAN



Sean O wrote:
> 
> Hi,
> 
> 
> I'm trying to modify "RikRIkRik" Lomas' excellent QuickSearch plugin.  I
> want to set up clickable links to remove all sorting, and to setup
> predefined sorts (defined strings sent to the text input).
> 
> I can clear and fill in the text input box easily enough, of course.  But
> that does nothing.  All sorting changes are tied to keypress events
> (as-you-type updates a'la iTunes), and I can't determine how to trigger a
> sort otherwise.  There is no clearly defined function (reSort(), e.g.) to
> reference in the code.
> 
> Has anyone else worked with this plugin?
> 
> 
> Thanks,
> SEAN O
> __
> www.sean-o.com
> 

-- 
View this message in context: 
http://www.nabble.com/QuickSearch-plugin---triggering-events-tf4822839s27240.html#a13840294
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] QuickSearch plugin - triggering events

2007-11-16 Thread Sean O


Hi,


I'm trying to modify "RikRIkRik" Lomas' excellent QuickSearch plugin.  I
want to set up clickable links to remove all sorting, and to setup
predefined sorts (defined strings sent to the text input).

I can clear and fill in the text input box easily enough, of course.  But
that does nothing.  All sorting changes are tied to keypress events
(as-you-type updates a'la iTunes), and I can't determine how to trigger a
sort otherwise.  There is no clearly defined function (reSort(), e.g.) to
reference in the code.

Has anyone else worked with this plugin?


Thanks,
SEAN O
__
www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/QuickSearch-plugin---triggering-events-tf4822839s27240.html#a13798000
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Image expand plugin

2007-10-22 Thread Sean O


This is the best one I've ever seen -- 'HighSlide'.  It's not jQuery, but it
rocks:
http://vikjavev.no/highslide/#examples

Looks like the latest version can handle various content types like images,
text, and flash.

___
SEAN O
http://www.sean-o.com



Txt.Vaska wrote:
> 
> 
> Bonjour:
> 
> For the life of me I can't find this plugin now...it simply took a  
> thumbnail (from a group of them) and when clicked it had an animated  
> effect that would grow it larger in a div in a layer above the other  
> images. I can't figure out where this went.
> 
> Anybody know of this?
> 
> Thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Image-expand-plugin-tf4672126s27240.html#a1335
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: number formatting plug-in

2007-10-18 Thread Sean O


I like the numeric plugin:
http://www.texotela.co.uk/code/jquery/numeric/


SEAN O
___
http://www.sean-o.com



james_027-2 wrote:
> 
> 
> hi,
> 
> is there a number formatting plugin for jQuery?
> 
> Thanks
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/number-formatting-plug-in-tf4645523s27240.html#a13280526
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: changing the adressbar with javascript

2007-10-18 Thread Sean O


For obvious security reasons you (thankfully) cannot "fake" the address bar
field using JavaScript.  Scammers & spammers would have a field day with
that.

You can, as Jonathan mentioned, update it using hashes.
See the history plugin:
http://stilbuero.de/jquery/history/


SEAN O
_
http://www.sean-o.com



Simpel wrote:
> 
> 
> Hi
> 
> I'm almost certain that this one is impossible but maybe someone out
> there has a solution
> 
> We just released a site with a lot of ajax functions and now people
> starts asking questions about URL:s to certain parts of the site. The
> only trouble is that some of these parts are created by a series of
> user interactions and ajax calls i.e. there are now URL:s pointing to
> them since it's all ajaxified.
> 
> So. here's the question, is there any way that you can change the
> address field in the browser by the use of javascript and no page
> reloads?
> 
> I know you could inject the dom with history back stuff but we also
> want to update/fake the address field...
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/changing-the-adressbar-with-javascript-tf4646752s27240.html#a13280339
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: [NEWS] Humanized Messages

2007-10-17 Thread Sean O


Looks great in FF, but is hosed in IE6.  Too bad, it would make a great
'update confirmation' for a few of my web apps.
I do like the Humanized site, which served as the inspiration for this...

_______
SEAN O
http://www.sean-o.com



Jeferson Koslowski wrote:
> 
> Found a new jquery plugin:
> http://binarybonsai.com/archives/2007/10/15/humanized-messages-for-jquery/
> 
> From the authors blog: "(...) It's simply a large and translucent message
> that's displayed over the contents of your screen. (...)"
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-NEWS--Humanized-Messages-tf4637089s27240.html#a13255564
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to clear setTimeout?

2007-10-10 Thread Sean O


Aha!  placing var upd; outside of the keyup function did the trick!  I always
get tripped up on scope issues like this...

I'll look to your expire plugin for future use... for now, this gets me over
the hump.  Thanks, Michael!


SEAN O



Michael Geary wrote:
> 
> 
> The "delete" wouldn't work, Andy - Sean's "upd" variable goes out of scope
> immediately, and you need to use clearTimeout, not just delete the
> variable.
> 
> Sean, you can change your code to:
> 
>   var upd;
>   $("input").keyup(function(){
>   var self = this;
>   clearTimeout( upd );
>   upd = setTimeout( function() {
>   updateField( $(self) );
>   },6000);
>   });
> 
> You could also use an updated version of the $.expire plugin I posted a
> couple of days ago:
> 
> (function( $ ) {
> $.expire = function( fn, callback, interval, start ) {
> var timer;
> function set() {
> timer = setTimeout( callback, interval );
> }
> if( start ) set();
> return function() {
> clearTimeout( timer );
> set();
> return fn && fn.apply( this, arguments );
> };
> };
> })( jQuery );
> 
> Then your code would be:
> 
>   $("input").keyup( $.expire( null, function(){
>   updateField( $(this) );
>   }, 6000 ) );
> 
> That's more code overall, but it nicely encapsulates the timer logic in
> case
> you need to do anything similar elsewhere in your code.
> 
> For this particular task, a simpler version of the plugin would also do
> the
> trick:
> 
> (function( $ ) {
> $.expire1 = function( callback, interval ) {
> var timer;
> return function() {
> clearTimeout( timer );
> timer = setTimeout( callback, interval );
> };
> };
> })( jQuery );
> 
> with your code being:
> 
>   $("input").keyup( $.expire1( function(){
>   updateField( $(this) );
>   }, 6000 ) );
> 
> As you can see, this version of the plugin is basically the same code as
> in
> the standalone case.
> 
> -Mike
> 
>> From: Andy Matthews
>> 
>> Since you're setting the value of upd to a function 
>> containing the setTimeout, you should be able to just
>> 
>> delete upd;
> 
>> From: Sean O
>> 
>> I'm trying to implement an autoSave function on my web application. 
>> Something that automatically saves the contents of the 
>> current field 6 seconds after the last keyUp.  It works, but 
>> I can't clear the multiple setTimeouts triggered on each keyUp event.
>> Example:
>> 
>>  $("input").keyup(function(){
>>  var self = this;
>>  var upd = setTimeout( function() {
>>  updateField( $(self) );  // function outside $ scope
> to update field contents in dB
>>  },6000);
>>  });
>> 
>> I must've tried about 27 permutations of clearTimeout, 
>> setting flag variables, nullifying variables, etc.  Nothing 
>> has worked.
>> 
>> To be clear, I need to "restart the countdown" to update the 
>> field if a user presses another key within 6 seconds of the 
>> previous letter.  I'd rather not be shooting off POSTs on 
>> every keystroke ;)
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-clear-setTimeout--tf4601640s27240.html#a13140243
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to clear setTimeout?

2007-10-10 Thread Sean O


Thanks for the suggestion, but I tried delete upd; before, after, even inside
my upd = setTimeout... function, and nothing happened -- the behavior is
still the same.

SEAN



Andy Matthews-4 wrote:
> 
> 
> Since you're setting the value of upd to a function containing the
> setTimeout, you should be able to just
> 
> delete upd;
> 
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Sean O
> Sent: Wednesday, October 10, 2007 10:39 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] How to clear setTimeout?
> 
> 
> 
> Hi,
> 
> I'm trying to implement an autoSave function on my web application. 
> Something that automatically saves the contents of the current field 6
> seconds after the last keyUp.  It works, but I can't clear the multiple
> setTimeouts triggered on each keyUp event.
> Example:
> 
>   $("input").keyup(function(){
>   var self = this;
>   var upd = setTimeout( function() {
>   updateField( $(self) );  // function outside $ scope
> to update field contents in dB
>   },6000);
>   });
> 
> I must've tried about 27 permutations of clearTimeout, setting flag
> variables, nullifying variables, etc.  Nothing has worked.
> 
> To be clear, I need to "restart the countdown" to update the field if a
> user
> presses another key within 6 seconds of the previous letter.  I'd rather
> not
> be shooting off POSTs on every keystroke ;)
> 
> (BTW, I've used the onChange event before, but for text inputs, the user
> has
> to manually tab/click out of the field to trigger that event)
> 
> 
> Thanks,
> _
> SEAN O
> http://www.sean-o.com
> --
> View this message in context:
> http://www.nabble.com/How-to-clear-setTimeout--tf4601640s27240.html#a1313843
> 2
> Sent from the jQuery General Discussion mailing list archive at
> Nabble.com.
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-clear-setTimeout--tf4601640s27240.html#a13139623
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] How to clear setTimeout?

2007-10-10 Thread Sean O


Hi,

I'm trying to implement an autoSave function on my web application. 
Something that automatically saves the contents of the current field 6
seconds after the last keyUp.  It works, but I can't clear the multiple
setTimeouts triggered on each keyUp event.
Example:

$("input").keyup(function(){
var self = this;
var upd = setTimeout( function() {
updateField( $(self) );  // function outside $ scope to 
update field
contents in dB
},6000);
});

I must've tried about 27 permutations of clearTimeout, setting flag
variables, nullifying variables, etc.  Nothing has worked.

To be clear, I need to "restart the countdown" to update the field if a user
presses another key within 6 seconds of the previous letter.  I'd rather not
be shooting off POSTs on every keystroke ;)

(BTW, I've used the onChange event before, but for text inputs, the user has
to manually tab/click out of the field to trigger that event)


Thanks,
_
SEAN O
http://www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/How-to-clear-setTimeout--tf4601640s27240.html#a13138432
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: an "Undo" plugin, or something as such. :-)

2007-09-27 Thread Sean O


Here's a great article I read recently on implementing undo (enhanced from
original post, based on reader inputs):
http://humanized.com/weblog/2007/09/21/undo-made-easy-with-ajax-part-15/

Demo:
http://humanized.com/weblog/images/resources/undo/todo_sync.html

Source (using jQuery, natch):
http://humanized.com/weblog/images/resources/undo/source_sync.php

This even accounts for handling multiple windows of the same script
w/different event queues.



SEAN O
http://www.sean-o.com




Steve Finkelstein-4 wrote:
> 
> 
> Hi all,
> 
> I was curious if there is anyone currently working on an 'Undo' type
> plugin for the jQuery platform. Essentially, similar functionality to
> what gmail offers is desired by many. If not in the works, I wouldn't
> mind giving it a shot myself.
> 
> Thanks for any insight.
> 
> - sf
> 
> 

-- 
View this message in context: 
http://www.nabble.com/an-%22Undo%22-plugin%2C-or-something-as-such.-%3A-%29-tf4511283s15494.html#a12923678
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Looking for a calendar picker that allows for two instances on one page

2007-09-04 Thread Sean O


Andy,

It's not a jQuery plugin, but my all-time favorite calendar/datepicker
control is the "Lotus Notes Web Datepicker" from NSFTools:
http://www.nsftools.com/tips/NotesTips.htm#datepicker
(don't be fooled by the name, it's a straightforward JS/DHTML picker and
doesn't use/need Notes)

Demo:
http://www.nsftools.com/tips/DatePickerTest.htm

I love this control, and I've tried many, searching for the "right" one. 
It's multi-instance (5 on some of my forms), fast, quite configurable,
styled by CSS, works well in IE & FF etc. etc.


Good Luck,


SEAN O
http://www.sean-o.com 



Andy Matthews-3 wrote:
> 
> I'm working on an app which allows users to search against data in our db
> using a date range (start, end).
>  
> What I need is a calendar which allows a user to select both dates, then
> click submit. So I need a calendar which allows for two instances of
> itself
> on one page. 
>  
> I'm looking at jCalendar: http://tedserbinski.com/jcalendar/index.html
> which
> looks really great. But does anyone know if there's a better one?
>  
> 
>  
> Andy Matthews
> Senior ColdFusion Developer
> 
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
> www.dealerskins.com <http://www.dealerskins.com/> 
>  
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Looking-for-a-calendar-picker-that-allows-for-two-instances-on-one-page-tf4357043s15494.html#a12479065
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] jqModal content overflowing -- scrollbars?

2007-08-31 Thread Sean O


Hi,


First off, Brice, great work on jqModal.  It's the just-about-perfect
solution to my AJAX popup window that can interact easily with the calling
page.

I have one question on how to size the window with content constraints...

I'm using it to call up a directory and display a list of files, one per
line.  Some of the directories can get pretty big: 100-200 files (lines) or
more.  The jqModal window stretches to the bottom of the screen, but does
not scroll within itself.  Scrolling the parent has the jqModal simply
bouncing down to stay fixed within the viewport.

I tried setting the height manually:


This "worked" in FF2, but the content spilled out onto the overlay below.
In IE6, it just ignored the height declaration and drew the window to the
bottom of the viewport, but additional content was still hidden below.

So - how can I have a fixed width & height jqModal window that adds a
vertical scrollbar to accommodate content that might overflow those bounds?
(and works in IE6+ & FF2 :)


Thanks,

_
SEAN O
http://www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/jqModal-content-overflowingscrollbars--tf4362025s15494.html#a12432679
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: hide table rows when we type in text box

2007-08-20 Thread Sean O


I know you said you didn't want to use any plugins, but Rik Lomas' great
quicksearch plugin
http://rikrikrik.com/jquery/quicksearch/
does just what you want right out of the box.

He even has a demo on his site for large tables:
http://rikrikrik.com/quicksearch/large_table.html

If you don't want to use his plugin, you can at least check out the source
code for inspiration.

___
SEAN O
http://www.sean-o.com



Potluri wrote:
> 
> Hi everyone, 
>  Thanks for everyone who responded for my previous queries.
>  Here is an assignment which I feel challenging for our for our jquery
> guys. for table with 500 rows. I don't want to use any plugin for this.
> 
> Well the task is when we type some thing in a text box it has to show only
> those rows which has the value typed in textbox
> in one coloumn.
> 
> For ex. 
> consider a table with id "example" 
> 
> 
>  blah vijay
>  blah victor
>  blah avinash
>  blah steven/td>
>  blah russell
>  blah suresh
> 
> 
> 
> 
> So, when I type in "vi" in text box only rows that has
> vijay,victor,avinash should be shown, remaining should be hidden since all
> of them has Vi in their names.
> 
> I did it in this way,
> let id of text box be textId
> $("#textId").keyup(function(){
> var val=$("#textId").val(); // which gives value typed in textbox
> $("#example tbody tr td.name").each(
> function()
> {
> if( $(this).html().indexOf("val") == -1)
> {
>  $(this).hide();
> }
> else  $(this).show();
> });
> });
> 
> 
> This works fine but it's taking 2 secs to do for table with 500 rows. Is
> there any better way to do this.
> Any staright help is appreciated.
> Thanks in advance.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hide-table-rows-when-we-type-in-text-box-tf4294139s15494.html#a12242520
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] "Eloquent JavaScript" hyper-book

2007-08-03 Thread Sean O


Hi,


Just wanted pass along a site I just came across that is a well-done
"hyper-book" titled Eloquent JavaScript.  It covers everything from basic
variables, strings, etc. to DOM, regular expressions and OOP.  As the author
states, it's aimed at the beginner JavaScript programmer, but experienced
users can find information of some use.  A nice touch is the "click-to-run"
code samples that launch in a console attached to the foot of the browser.

They even feature an off-line download of the hyper-book and a print
version.  All free.

http://eloquentjavascript.net/



SEAN O
http://www.sean-o.com
-- 
View this message in context: 
http://www.nabble.com/%22Eloquent-JavaScript%22-hyper-book-tf4214311s15494.html#a11989399
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: [ANNOUNCE] planet.jquery.com

2007-07-12 Thread Sean O


Same here...

_
SEAN O



Andy Matthews-4 wrote:
> 
> Not working yet? I just get spinning and spinning.
> 

-- 
View this message in context: 
http://www.nabble.com/-ANNOUNCE--planet.jquery.com-tf4070087s15494.html#a11567274
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Digg now uses jQuery

2007-06-22 Thread Sean O


It looks like they're having some trouble with it (and user backlash) as
well:
http://www.digg.com/tech_news/New_Digg_Comment_System_FTL_Old_System_FTW
http://digg.com/tech_news/Digg_comment_system_features_serious_flaws
http://www.digg.com/tech_news/Fix_the_Comment_System

Maybe you guys should offer to lend a hand?
(But the problem seems to be mostly in implementation -- primarily not
pre-loading threaded comments, which is a bad idea)


__
SEAN O
http://www.sean-o.com



Klaus Hartl wrote:
> 
> 
> Rey Bango wrote:
>> 
>> Yes sir. Brandon just pointed that out to me. I spy:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> via this link: 
>> http://digg.com/tech_news/Facebook_and_MySpace_are_like_chalk_n_cheese
>> 
>> Brandon says that Digg's new comment system is based on jQuery. w00t!
>> 
>> Rey...
> 
> 
> haha, cool, they're using the cookie plugin... I feel honoured :-)
> 
> jquery-digg.js ? Wasn't that the plugin that recreated some digg 
> functionality? That would be funny!
> 
> 
> --Klaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Digg-now-uses-jQuery-tf3962448s15494.html#a11254997
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: dealing with spam on the jQuery list.

2007-05-21 Thread Sean O


For those (like me), who interface with the group via Nabble, perhaps there's
something server-side to kill the weeds...
(not sure what can be accomplished in Google Group management)

Dumping everything with a ".biz" might be a good start, unless folks here
are using one of those domains legitimately (99.8% are of the ED-remedy
variety).  At least "offr.biz" would dump the latest spam dork.



SEAN O
http://www.sean-o.com



Ⓙⓐⓚⓔ wrote:
> 
> Gmail deals pretty well with spam, but it has to be told!
> 
> I mark the spam messages as spam. Gmail gets the idea, and the abuser's
> mail
> is all marked spam.
> 
> If enough people using gmail, just mark the spam as spam... every gmail
> user
> will have the spam thrown into the spam folder. (I think!)
> 
> Responding to spam, no matter how funny or ridiculous , just makes things
> worse.
> 
> -- 
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dealing-with-spam-on-the-jQuery-list.-tf3792035s15494.html#a10725408
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: My first plugin - expand/collapse

2007-05-17 Thread Sean O


Hi Tom,


Here's a few links for inspiration from similar projects:
http://labs.activespotlight.net/jQuery/Xpander.html
http://www.learningjquery.com/2007/02/more-showing-more-hiding

Might I suggest a demo on your plugin article?



SEAN O
http://www.sean-o.com



Tom Holder wrote:
> 
> 
> Hi Guys,
> 
> I've just released my first jQuery plugin in to the wild and would
> like to get everyone's thoughts on it. Have I done it right? How can I
> improve it? How might I extend it.
> 
> See what you think
> http://www.ok-cool.com/posts/read/19-jquery-for-programmers-part-1
> 
> Cheers
> Tom
> --
> Tom Holder
> 
> Technical Director
> SimpleWeb Limited
> Great websites. Low cost. No catch.
> 
> http://www.simpleweb-online.co.uk/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/My-first-plugin---expand-collapse-tf3771906s15494.html#a10666909
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: REMINDER: jQuery Tutorials & Documentation

2007-05-10 Thread Sean O


Yes, the fundamental {jQuery folder} bookmarks for any browser...

I might throw in a shameless plug for jQueryHelp - a small windows tray
program that offers code assistance for jQuery functions via the API
Browser:
http://www.sean-o.com/jquery/jqueryhelp/

Don't forget about the myriad of great plugins created by jQuery users:
http://docs.jquery.com/Plugins
Use them to extend the functionality of jQuery, solve a problem you may be
struggling with, or as a great learning tool.

And here's a fun one I check from time to time:
http://del.icio.us/tag/jquery
See what other people are currently finding interesting regarding jQuery.

________
SEAN O



Rey Bango-2 wrote:
> 
> 
> Just a reminder to everyone, especially those that are just starting out 
> with jQuery, that we have a very comprehensive tutorials section for you 
> to learn from. Visit the jQuery tutorials page here:
> 
> http://docs.jquery.com/Tutorials
> 
> Two sites that are invaluable are:
> 
> http://www.learningjquery.com/
> http://15daysofjquery.com/
> 
> both of which do an excellent job of teaching you how to use the jQuery 
> library.
> 
> Also, don't forget that about two other very important documentation 
> resources that will greatly help your development:
> 
> jQuery v1.1.2 API Browser
> http://jquery.bassistance.de/api-browser/
> 
> Visual jQuery
> http://www.visualjquery.com/
> 
> The main jQuery documentation page can be found here:
> 
> http://docs.jquery.com/Main_Page
> 
> Rey...
> 
> 
> -- 
> BrightLight Development, LLC.
> 954-775- (o)
> 954-600-2726 (c)
> [EMAIL PROTECTED]
> http://www.iambright.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/REMINDER%3A-jQuery-Tutorials---Documentation-tf3717949s15494.html#a10413803
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-08 Thread Sean O


Sam,


That was it.  Works in FF2 & IE 6 here.

I had thought there was a default initiation of focusFields() on page load
of the demo...
My eyes passed right over the "click one of the examples above..."

____
SEAN O



Sam Collett wrote:
> 
> Did you click the text fields after clicking on one of the examples?
> There is only an outline when they have focus.
> 

-- 
View this message in context: 
http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s15494.html#a10378562
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: New / Updated Plugin - Focus Fields

2007-05-08 Thread Sean O


Sam,


The demos don't seem to work for me in either FF2 or IE6 (?)



SEAN O
http://www.sean-o.com



Sam Collett wrote:
> 
> 
> Haven't updated outlineTextInput's for a while (due to having issues
> with IE) - which is a plugin for adding outlines to text fields when
> they are given focus. Done a new version which does seem to work:
> http://www.texotela.co.uk/code/jquery/focusfields/
> 
> Only done very basic testing on Firefox and Internet Explorer. The
> input's are given a transparent background in Opera, so that could be
> easily remedied by giving the inputs a background colour via CSS.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New---Updated-Plugin---Focus-Fields-tf3709094s15494.html#a10376620
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Evaulating script tags when .load-ing HTML

2007-05-04 Thread Sean O


Hey,


I got it working in IE & FF by adding a non-breaking space before the
 tag (echoed in PHP):
   echo " <script
type='text/javascript'>$('#warn').html('required!');";

$.getScript didn't work for either browser (perhaps because I'm calling a
PHP document?).

I'll have a look at the llnl.gov code next week.

Thanks for the pointers, folks.
And happy Quatro De Mayo.


SEAN O
http://www.sean-o.com




shelane wrote:
> 
> 
> 
> I also had this problem and pleaded for help in these threads:
> http://groups.google.com/group/jquery-en/t/6722e380538892b9
> and
> http://groups.google.com/group/jquery-en/browse_thread/thread/7935f78c0cf61e4b
> 
> eventually, I asked John for help.
> 
> From John's email:
> Take into consideration that there's an open bug on executing document
> ready
> dynamically:
> http://dev.jquery.com/ticket/904
> 
> I recommend that you simply remove the document ready wrapper from the
> file
> that's being loaded:
> http://education.llnl.gov/jQuery/pages/progressive.lasso
> 
> and then move the script block to after the HTML
> 
> This seems to work as demoed here: http://education.llnl.gov/jQuery/
> 
> 
> Sean O wrote:
>> 
>> Hi,
>> 
>> I'm trying to get IE6/Win to eval javascript returned from .load().
>> 
>> What I have is a function that calls a file:
>> $("#master").load("inc/inc_master_update.php");
>> 
>> That PHP script echoes a simple line of JS in a  tag:
>> echo "<script
>> type='text/javascript'>$('#warn').html('required!');";
>> 
>> The JS is evaluated in Firefox 2/Win (loaded into the "master" DIV), but
>> not in IE6/Win.
>> 
>> How can I force the issue in IE?
>> I read quite a few posts on this, and couldn't find an answer...
>> 
>> 
>> Thanks,
>> 
>> SEAN O
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Evaulating-script-tags-when-.load-ing-HTML-tf3689048s15494.html#a10323753
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Evaulating-script-tags-when-.load-ing-HTML-tf3689048s15494.html#a10327889
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Evaulating script tags when .load-ing HTML

2007-05-03 Thread Sean O


Hi,

I'm trying to get IE6/Win to eval javascript returned from .load().

What I have is a function that calls a file:
$("#master").load("inc/inc_master_update.php");

That PHP script echoes a simple line of JS in a  tag:
echo "<script
type='text/javascript'>$('#warn').html('required!');";

The JS is evaluated in Firefox 2/Win (loaded into the "master" DIV), but not
in IE6/Win.

How can I force the issue in IE?
I read quite a few posts on this, and couldn't find an answer...


Thanks,

SEAN O
-- 
View this message in context: 
http://www.nabble.com/Evaulating-script-tags-when-.load-ing-HTML-tf3689048s15494.html#a10313491
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jQuery Powered Sites - More Sites Added.

2007-04-29 Thread Sean O


Hey Rey,


Looks like Uni-Form,
http://dnevnikeklektika.com/uni-form/
an attempt to modularize and standardize form inputs, has moved to jQuery in
their latest version 1.2.



SEAN O
http://www.sean-o.com



Rey Bango-2 wrote:
> 
> 
> Added:
> 
> - GameGum Free Flash Games
> 
> - ToonGum ToonGum is a flash cartoon community. View, submit, and 
> interact with our many flash cartoons and large community.
> 
> - Penumbra:Overture Penumbra: Overture is a first person adventure game 
> which focuses on story, immersion and puzzles.
> 
> Keep the sites coming guys!
> 
> Rey...
> -- 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-Powered-Sites---More-Sites-Added.-tf3553368s15494.html#a10245419
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Autocomplete plugin status2

2007-04-17 Thread Sean O


I could see my users typing in the comma in a multiple select scenario, so I
cast my vote for comma-as-selector.

Great to see you guys collaborating on an important (IMHO) and useful
plugin.  I wish I had more time (and expertise lol) to lend a hand.

___
SEAN O
http://www.sean-o.com



Jörn Zaefferer wrote:
> 
> 
> Dan G. Switzer, II schrieb:
>> Jörn,
>>
>>   
>>> for anyone interested in the progess of the autocomplete plugin I've
>>> uploaded the current demo: http://jquery.bassistance.de/autocomplete/
>>> 
>>
>> Two quick things I noticed (both of which you may be aware of.)
>>
>> 1) If you type in "Spp" in the any of the City searches, the results
>> don't go away. It would seem only matches would show up (so as soon as
>> your
>> keystrokes no longer match, nothing would be shown.)
>>   
> In theory, this is covered by the mustMatch option. But it doesn't work 
> at all, I'm gonna look into that.
>> 2) Occassionally, when editing a multi-value and I have several other
>> values
>> in there and I go back and edit one of the previous values, the cursor
>> shoots to the end of the value. I have been able to accurately reproduce
>> this yet.
>>   
> That sounds like you wanted to write you haven't been able to reproduce
> it.
> Editing anything but the last value in a multiple-field isn't supported 
> yet, its a bit trickier then just looking for the last value.
>> 3) For multi-value fields, I expected the delimiter to select the value.
>> So,
>> when I press the comma, I expected the selected value to be filled in
>> just
>> as if I hit [TAB] or [ENTER]. I'm not sure if it's the *expected*
>> behavior,
>> but it was the first thing I tried.
>>   
> I'm not sure if that is expected behaviour, but its not trivial to 
> implement.
> 
> -- 
> Jörn Zaefferer
> 
> http://bassistance.de
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Autocomplete-plugin-status2-tf3577852s15494.html#a10036080
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: document.getElementById

2007-04-10 Thread Sean O


Fabyo,


Try:
var teste = $("#obj");
alert(teste.scrollTop);

You need the "#" prefix to designate an id.  (and a "." prefix for class)
Native elements, like body, can be directly addressed ( e.g. $("body") )


___
SEAN O
http://www.sean-o.com



Fabyo wrote:
> 
> it functions:
> var teste = document.getElementById("obj");
> alert(teste.scrollTop);
> 
> it does not function:  
> var teste = $("obj");
> alert(teste.scrollTop);
> 
> 
> thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/document.getElementById-tf3553327s15494.html#a9922093
Sent from the JQuery mailing list archive at Nabble.com.