[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread Jack Killpatrick


It works off of a letter list:

var letters = 
['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];


Which also helps make the letters a "known quantity" and allows for 
"disabled" letters. Alternatively, it could figure out what letters are 
in the list items, but then we might get listnav bars like:


A | G | H

which aren't of as much use. If you wanted it to utilize other letters, 
you could try modifying that array. They are forced to lowerCase for 
some things internally, FYI.


It wouldn't be a leap to have it handle dl lists, but I wonder how many 
people could use that? (I really don't know).


Thanks,
Jack

Jacques PYRAT wrote:

Great !

Could you do the same for definition lists (dl, dt, dd).
It would be great for http://www.pyrat.net/@sigles.html

And does listnav handle EÉÈÊEeéèêë ?

Regards

  





[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread Jack Killpatrick





Hi Craig,

Very nice usage of the plugin on your site! Great to see it in action.
Thanks for the feedback, too. I found the root cause of the issue
(well, I'm pretty sure I did :-) and posted a fix on our site. Grab the
1.0.1 version:

http://www.ihwy.com/labs/jquery-listnav-plugin.aspx

The issue had to do with nested lists. The lists inside the main list
items were getting classes added to them that caused them to be
included in the counts and hidden when letters were clicked.

Let me know if you'd like me to drop your site into the In the Wild
section on our plugin page. No obligation to buy, order before midnight
tonight, add water, makes it's own sauce, shake before drinking.

Thanks,
Jack


craig.kaminsky wrote:

  Hi, Jack,

I have just tried it out on a site. It works pretty darn well. We've
noticed two things thus far:
1. The "count" for each letter and the total is off. For example, this
page (http://www.experiencecoloradosprings.com/index.cfm/go/ecs.pages/
id/86/title/Hotels,%20Lodging,%20Accommodations/memcat/5) has 170
listings displayed but when you hover over the ALL link, it reads 508.
The troublesome letters, in this case, appear to be C and L.
2. When you click to filter, some of the content disappears (notice
how there are two entries/lines for Location: X and Category: Y with
each listing. When you click a letter to filter, those go away but
reappear when you press "All".

You can see it in action on other pages in this site under the "Stay
Eat and Play" drop-down (the Dining, Lodging, Activities, Arts,
Shopping, and Services links all utilize it in their output).

Excellent work on this plugin and thank you!! We're very psyched with
it and it beats the #$&@ out of what we had before :)!

Best,
Craig


On Oct 6, 10:41 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
  
  
Hi Ettiene, how'd using it go for you?

Thanks to everyone else for the initial feedback. I'm interested to hear
if anyone has implemented it anywhere. ?

- Jack

Ettiene wrote:


  Excellent stuff man! I'm already busy using it hehe
  


  Ettiene
  

  
  
  







[jQuery] Re: ClueTip postioning

2008-10-07 Thread JeffreyKarbowski


In Bold are the lines that I have changed:

  if (opts.local && opts.hideLocal) { $(tipAttribute + ':first').hide();
}
  var tOffset = 100, lOffset = -738;
  // vertical measurement variables
  var tipHeight, wHeight;

 tipHeight = defHeight == 'auto' ?
Math.max($cluetip.outerHeight(),$cluetip.height()) : parseInt(defHeight,10);   
  tipY = 95;
  baseline = sTop + wHeight;
  if (opts.positionBy == 'fixed') {
tipY;
  } else if ( (posX < mouseX && Math.max(posX, 0) + tipWidth > mouseX)
|| opts.positionBy == 'bottomTop') {
if (posY + tipHeight + tOffset > baseline && mouseY - sTop >
tipHeight + tOffset) { 


  tipHeight = defHeight == 'auto' ?
Math.max($cluetip.outerHeight(),$cluetip.height()) : parseInt(defHeight,10);   
  tipY = 95;
  baseline = sTop + wHeight;
  if (opts.positionBy == 'fixed') {

The page in question is  http://btcamper.interactrv.com/defaultTest.aspx
http://btcamper.interactrv.com/defaultTest.aspx 


JeffreyKarbowski wrote:
> 
> Could you please tell me a way to position the Cluetip relative to its
> parent div instead of having it offset from the invoking element? I need
> the Cluetip to sit in a fixed position on the page. 
> 

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



[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread Jack Killpatrick





:-) wish I'd read this posting before finding the root cause myself.
You were spot-on, rolfsf: the nested lists (which happen to have LI's
that started with C and L) were getting included. Thanks.

- Jack

rolfsf wrote:

  craig - I notice that the Location: X and Category: Y content are both
lists/list items. I haven't looked at the script, but I suspect it may
be hiding and counting those - you're problem with both the high count
and the disappearing content is the same problem. It's counting
Category in the "C" count, and the Location in the L count., and then
hiding that content in all but the C and L lists.

rolfsf



On Oct 7, 7:09 am, "craig.kaminsky" <[EMAIL PROTECTED]> wrote:
  
  
Hi, Jack,

I have just tried it out on a site. It works pretty darn well. We've
noticed two things thus far:
1. The "count" for each letter and the total is off. For example, this
page (http://www.experiencecoloradosprings.com/index.cfm/go/ecs.pages/
id/86/title/Hotels,%20Lodging,%20Accommodations/memcat/5) has 170
listings displayed but when you hover over the ALL link, it reads 508.
The troublesome letters, in this case, appear to be C and L.
2. When you click to filter, some of the content disappears (notice
how there are two entries/lines for Location: X and Category: Y with
each listing. When you click a letter to filter, those go away but
reappear when you press "All".

You can see it in action on other pages in this site under the "Stay
Eat and Play" drop-down (the Dining, Lodging, Activities, Arts,
Shopping, and Services links all utilize it in their output).

Excellent work on this plugin and thank you!! We're very psyched with
it and it beats the #$&@ out of what we had before :)!

Best,
Craig

On Oct 6, 10:41 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote:



  Hi Ettiene, how'd using it go for you?
  


  Thanks to everyone else for the initial feedback. I'm interested to hear
if anyone has implemented it anywhere. ?
  


  - Jack
  


  Ettiene wrote:
  
  
Excellent stuff man! I'm already busy using it hehe

  


  
Ettiene

  

  
  
  







[jQuery] Re: ClueTip postioning

2008-10-07 Thread Karl Swedberg


On Oct 7, 2008, at 11:21 PM, JeffreyKarbowski wrote:




JeffreyKarbowski wrote:


Could you please tell me a way to position the Cluetip relative to  
its
parent div instead of having it offset from the invoking element? I  
need

the Cluetip to sit in a fixed position on the page.



Followup: After playing around with the .js, which I have never  
really done
before, I have got this working just how I would like it in Firefox,  
but (of

course) IE is throwing errors. Here is the .js in question:



Hi Jeffrey,

Rather than including the entire plugin, would you mind just sending  
the lines that you changed? Or a diff?


I can say that the plugin doesn't support positioning the tooltip  
relative to another element. It's definitely something I'd like to add  
when I have some time. In fact, I'd like to completely overhaul the  
plugin. But I'm not having much luck finding time to work on it.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com





[jQuery] Re: ClueTip postioning

2008-10-07 Thread JeffreyKarbowski



JeffreyKarbowski wrote:
> 
> Could you please tell me a way to position the Cluetip relative to its
> parent div instead of having it offset from the invoking element? I need
> the Cluetip to sit in a fixed position on the page. 
> 

Followup: After playing around with the .js, which I have never really done
before, I have got this working just how I would like it in Firefox, but (of
course) IE is throwing errors. Here is the .js in question:

/*
 * jQuery clueTip plugin
 * Version 0.9.9pre1  (07/05/2008)
 * @requires jQuery v1.1.4+
 * @requires Dimensions plugin (for jQuery versions < 1.2.5)
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
;(function($) { 
/*
 * @name clueTip
 * @type jQuery
 * @cat Plugins/tooltip
 * @return jQuery
 * @author Karl Swedberg
 *
 * @credit Inspired by Cody Lindley's jTip (http://www.codylindley.com)
 * @credit Thanks to the following people for their many and varied
contributions:
  Shelane Enos, Glen Lipka, Hector Santos, Torben Schreiter, Dan G.
Switzer, Jörn Zaefferer 
 * @credit Thanks to Jonathan Chaffer, as always, for help with the hard
parts. :-)
 */

 /**
 * 
 * Displays a highly customizable tooltip when the user hovers (default) or
clicks (optional) the matched element. 
 * By default, the clueTip plugin loads a page indicated by the "rel"
attribute via ajax and displays its contents.
 * If a "title" attribute is specified, its value is used as the clueTip's
heading.
 * The attribute to be used for both the body and the heading of the clueTip
is user-configurable. 
 * Optionally, the clueTip's body can display content from an element on the
same page.
 * * Just indicate the element's id (e.g. "#some-id") in the rel attribute.
 * Optionally, the clueTip's body can display content from the title
attribute, when a delimiter is indicated. 
 * * The string before the first instance of the delimiter is set as the
clueTip's heading.
 * * All subsequent strings are wrapped in separate DIVs and placed in the
clueTip's body.
 * The clueTip plugin allows for many, many more options. Pleasee see the
examples and the option descriptions below...
 * 
 * 
 * @example $('#tip).cluetip();
 * @desc This is the most basic clueTip. It displays a 275px-wide clueTip on
mouseover of the element with an ID of "tip." On mouseout of the element,
the clueTip is hidden.
 *
 *
 * @example $('a.clue').cluetip({
 *  hoverClass: 'highlight',
 *  sticky: true,
 *  closePosition: 'bottom',
 *  closeText: ' cross.png ',
 *  truncate: 60,
 *  ajaxSettings: {
 *type: 'POST'
 *  }
 * });
 * @desc Displays a clueTip on mouseover of all   elements with
class="clue". The hovered element gets a class of "highlight" added to it
(so that it can be styled appropriately. This is esp. useful for non-anchor
elements.). The clueTip is "sticky," which means that it will not be hidden
until the user either clicks on its "close" text/graphic or displays another
clueTip. The "close" text/graphic is set to diplay at the bottom of the
clueTip (default is top) and display an image rather than the default
"Close" text. Moreover, the body of the clueTip is truncated to the first 60
characters, which are followed by an ellipsis (...). Finally, the clueTip
retrieves the content using POST rather than the $.ajax method's default
"GET."
 * 
 * More examples can be found at
http://plugins.learningjquery.com/cluetip/demo/
 * 
 * Full list of options/settings can be found at the bottom of this file and
at http://plugins.learningjquery.com/cluetip/
 */

  var $cluetip, $cluetipInner, $cluetipOuter, $cluetipTitle, $cluetipArrows,
$dropShadow, imgCount;
  $.fn.cluetip = function(js, options) {
if (typeof js == 'object') {
  options = js;
  js = null;
}
return this.each(function(index) {
  var $this = $(this);  
  
  // support metadata plugin (v1.0 and 2.0)
  var opts = $.extend(false, {}, $.fn.cluetip.defaults, options || {},
$.metadata ? $this.metadata() : $.meta ? $this.data() : {});

  // start out with no contents (for ajax activation)
  var cluetipContents = false;
  var cluezIndex = parseInt(opts.cluezIndex, 10)-1;
  var isActive = false, closeOnDelay = 0;

  // create the cluetip divs
  if (!$('#cluetip').length) {
$cluetipInner = $('');
$cluetipTitle = $('');
$cluetipOuter = $('').append($cluetipInner).prepend($cluetipTitle);
$cluetip = $('').css({zIndex:
opts.cluezIndex})
.append($cluetipOuter).append('')[insertionType](insertionElement).hide();
$('').css({position: 'absolute',
zIndex: cluezIndex-1})
.insertBefore('#cluetip').hide();
$cluetip.css({position: 'absolute', zIndex: cluezIndex});
$cluetipOuter.css({position: 'relative', zIndex: cluezIndex+1});
$cluetipArrows = $('').css({zIndex:
cluezIndex+1}).appendTo('#cluetip');
  }
  var dropShadowSte

[jQuery] Re: How can I change all radio buttons to "yes" and "no"?

2008-10-07 Thread MorningZ

"First all the radio buttons need to have different names then "

No, radio buttons don't  as radio buttons with the same name will
be "grouped" together where if a user selects one, then all the others
with the same name will be de-selected

id's on the other hand do need to be different





On Oct 7, 4:25 pm, Hi <[EMAIL PROTECTED]> wrote:
> First all the radio buttons need to have different names then
>
> $(function(){
>         $('input[type=radio]').attr("checked",true);
>
> });
>
> On Oct 7, 10:36 am, Costaud <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > Can you please tell me how can I have all radio buttons set to "yes"
> > or "no"?
>
> > Thanks.


[jQuery] ClueTip postioning

2008-10-07 Thread JeffreyKarbowski


Could you please tell me a way to position the Cluetip relative to its parent
div instead of having it offset from the invoking element? I need the
Cluetip to sit in a fixed position on the page. Thank you in advance. Great
Work!!!
-- 
View this message in context: 
http://www.nabble.com/ClueTip-postioning-tp19864348s27240p19864348.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread Erik Beeson
Not free, and probably not what you're looking for, but I can't recommend
IntelliJ IDEA enough. Among a lot of other things, it has great JavaScript
support with syntax highlighting, refactoring, code completion, and
reformatting.

--Erik


On Tue, Oct 7, 2008 at 8:13 AM, Alexandre Plennevaux
<[EMAIL PROTECTED]>wrote:

> Friends,
>
> aptana studio, albeit a nice editor, is recently crashing all the time and
> now doesn't even want to restart. I'm looking for a good alternative, that
> has a code formatting (auto indenting) functionality.
>
> Any suggestion ? I'm on Windows XP SP3...
>
> Thank you,
>
>
> Alexandre
>


[jQuery] Re: jQuery Truncating Help

2008-10-07 Thread Karl Swedberg

Hi Zachary,

I wrote a similar plugin a while back that takes into account nested  
elements.


http://plugins.learningjquery.com/expander/

Maybe that will do the trick.

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Oct 7, 2008, at 6:52 AM, Balazs Endresz wrote:



I haven't tried it, but in the plugin near line 25 instead of
myStr.length you could try something like $this.text(). So that it
will check the length of the text instead of the innerHTML. But it may
need some more hacking, I don't know.

On Oct 6, 11:40 pm, Zachary <[EMAIL PROTECTED]> wrote:

Does no one have any answers to this question...It has been quite a
while and I could really use some suggestions.  Thanks.

On Oct 3, 9:21 am, zacharyd <[EMAIL PROTECTED]> wrote:

I have been working with Brian Reindel's Truncate plug- 
intrying to get ti
to do what I need.  It seems simple enough, but I continue to  
struggle.  The
plug-in is designed to truncate the html content within a tag to a  
certain

length...taking into consideration the whole last word.  It works
great...however I need to truncate a list item that contains both  
text and a

link; like so:


This is the text that leads to:  # A link that needs to be  
truncated

.



The function currently looks like this:



$('li a').truncate( {
  length: 35,
  minTrail: 10,
  moreText: '',
  lessText: '',
  ellipsisText: "..."
 });


But this obviously only takes care of the link...if the text  
behind it is
too long it will still push the truncated link down to the next  
line...If I

try to do the li it completely removes the link tag no matter its
lengthand if I try to change the selector in the plugin from
$(this).html() to $(this).text() it removes the anchor tag
completelythough it works just fine.


Basically I need some way to keep my anchor tag in operation, yet  
take the
whole text contained within the li into consideration when  
determining where
to truncate.  Your help is much appreciated...Please let me know  
if you have

any questions to further clarify my problem.  Thanks.


btw...the Plugin is located here in case you'd like to see it or  
use it

yourself:http://www.reindel.com/truncate/
--
View this message in context:http://www.nabble.com/jQuery-Truncating-Help-tp19791107s27240p1979110 
...
Sent from the jQuery General Discussion mailing list archive at  
Nabble.com.




[jQuery] Interactive associations maps? Anyone seen or done anything like this?

2008-10-07 Thread [EMAIL PROTECTED]

Hi folks,

I'm looking to put something together in JQuery that functions similar
to what the guys over at http://www.visualthesaurus.com/ did with
Java.

The idea would be to map parent / child relations so that the parent
would appear in the bubble in the center ... and the children would
appear as bubbles around the parent, spaced out equally around the
parent, and with a line connecting each to the parent bubble.

Another visual of what I'm trying to get at:  
http://www.ekhanh101.com/visualizer/index.aspx
Hover over 'South America' for example and click 'More Keywords' ... I
want to build something that looks like the result.

Thanks - wg


[jQuery] Re: jQuery UI Refresh Baltimore Presentation

2008-10-07 Thread Benjamin Sterling
Hey All,
Just wanted to bump this message up for those who might be interested in the
jQuery UI presentation at MICA tomorrow.

On Sun, Oct 5, 2008 at 10:58 PM, Benjamin Sterling <
[EMAIL PROTECTED]> wrote:

> Hey all,
> Just wanted to put it out there that this Wednesday we (Refresh Baltimore)
> will be have our (jQuery) lovable Richard Worth doing a jQuery UI
> presentation at Refresh Baltimore.  Check out
> http://upcoming.yahoo.com/event/1176430 for all pertinent information.
>
>


-- 
Benjamin Sterling
Skype: benjamin.sterling
AIM: thekenzoco
Web:
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.BenjaminSterling.com


[jQuery] Re: random image and content loading

2008-10-07 Thread Ariel Flesler

Probably something like this can do:

function showImage(content){
$("#"+div_name).fadeOut("fast",function(){
var $div = $(this);
$(this).html(content).find('img').preload({
onFinish:function(){
   $div.fadeIn(1500);
}
});
});
}

That's not the MAIN purpose of the plugin, as you're preloading images
that already loading, but it will (should) handle the final callback
for you.
I'd add the option: placeholder:'some_url.jpg'  so the images don't
start loading by themselves (those on the div).

Note that this whole situation is not ideal, cannot assure you it will
work 100%. Just try :)

--
Ariel Flesler
http://flesler.blogspot.com/

On Oct 7, 6:48 am, janus76 <[EMAIL PROTECTED]> wrote:
> I was wondering if anyone can point me in the right direction with this. i am
> pretty new to javascript and jquery so any help would be most appreciated.
>
> I have a homepage which displays a large random image from an array every 10
> seconds or so. I have used a variation of the following script to do 
> this.http://www.davidvanvickle.com/examples/jquery/slideshow/index.htm
>
> However in my case the array contains more than an image file location but
> some xhtml.
>
> so I have altered the part of the script which shows the image to the
> following:-
>
> function showImage(content)
> {
>
>         $("#"+div_name).fadeOut("fast",function(){
>
>                 //$(this).hide();                                             
>                          
>                 $(this).html(content);
>                 $(this).fadeIn(1500);
>                         })              
>
> }
>
> where content is the new xhtml from the array.
>
> This all works perfectly fine. However, on the first load of the random
> image I do not get the nice fade in effect due to the image in the xhtml not
> being being fully loaded when the fade starts.
>
> Once the image has loaded once (presumable in the browser cache) on
> subsequent cycles everything is fine.
>
> As this process runs every 10 seconds, is there a way to preload the content
> and image in this period ready for display at the set time?
>
> I can't preload all the content at once as there are many images within the
> random content.
>
> I hope this makes sense.
>
> If anyone could help me out and point me in the right direction that would
> be great.
>
> Thanks
>
> Janus
>
> --
> View this message in 
> context:http://www.nabble.com/random-image-and-content-loading-tp19842346s272...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Is .prev() being used in the wrong way here?

2008-10-07 Thread hubbs

The .itemHolder element should get the hidden class.  I tried
using .parent() instead, and it worked perfectly.  Thanks!

On Oct 7, 2:34 pm, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > But, I want the class to be added to the parent,
> > or prev element here, which is a holder div called
> > itemHolder.
>
> So which element should get the hidden class? .prev() selects the
> previous sibling. It sounds like you may want .parent() instead.


[jQuery] Re: Is .prev() being used in the wrong way here?

2008-10-07 Thread Dave Methvin

> But, I want the class to be added to the parent,
> or prev element here, which is a holder div called
> itemHolder.

So which element should get the hidden class? .prev() selects the
previous sibling. It sounds like you may want .parent() instead.


[jQuery] jQuery Slide Panel

2008-10-07 Thread dacoder

I am trying to make a slide panel using the slideToggle method similar
to this one
http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html

My problem is that it is in the footer of my page and when it slides
down it increases the page height because it is almost the last thing
on the page. the slide down effect is fine but the slide up starts
shaking all over and is pretty ugly. You can see this happening on the
example above if you make your browser small enough in height to where
the browser gets taller  when clicking the button.

Also what would be the best way to make the page scroll to the bottom
so the user doesn't have to scroll themselves to see the content in
the panel and close the panel.

basically this is all I got for it right now

$(".btn-slide").click(function(){
 $("#cs-report").slideToggle("slow");
 return false;
 });


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Dave Methvin

I am thinking Mike is right, and you wanted insertAfter rather than
appendTo.

> I could build a local string, then once the loop finishes,
> append the string where I need it.

Don't give up on your DOM approach yet,the performance of the [id$=]
selector may be the killer and your current approach is so much more
elegant than string slinging.

I think this is basically the same code with some stuff optimized. You
can replace the for-in loop with explicit assignments but it seemed
nice to do it that way and I also removed the id since not doing so
would create an invalid document (duplicate ids). Do you need to
use .clone(true) to preserve events? If not, take out the true arg.

function OnSucceeded(results, GPRowID)
{
var $row = $("table[id$=gvBillingHistory] tr[id$=GPRow_" + GPRowID
+"]");
$.each(results, function(i){
if(i<=99){
// Clone template (DOM nodes) and assign id
var $template = $("#TemplateRowLineItem")
.clone(true).attr("id", "GPLi_"+GPRowID+"_"+i);
// Fill template, JSON name is the id
for ( var id in this )
$("#"+id, 
$template).text(this[id]).removeAttr("id");
// Add below the clicked row
$row.after($template);
}
else {
$("#TemplateRowMore").clone(true)
.attr("NextResultPage",++currResultPage)
.insertAfter($row);
//?? do you want to do this on every row > 100 ??
}
});
$("#TemplateRowLoading").remove();
}


[jQuery] Re: ajaxForm works like normal flow

2008-10-07 Thread Mike Alsup

Hi Jim,

There are lots of demos at:

http://malsup.com/jquery/form/

Can you post a bit of your javascript, or a link to your page?   Maybe
you've got a scripting error somewhere.

Mike


On Oct 7, 4:05 pm, Jim <[EMAIL PROTECTED]> wrote:
> Once I clicked a submit button, my servlet is processing the data
> submitted through through ajaxForm. In the servlet I use the following
> code to write a string to response:
> --
>                                 PrintWriter out;
>                 try {
>                         response.setHeader("Pragma", "no-cache");
>                         response.setHeader("Expires", "0");
>                         response.setHeader("Cache-Control", "no-store");
>
>                         out = response.getWriter();
>                         out.println("good");
>                                         out.flush();
>                                         out.close();
>                 } catch (IOException e) {
>                         log.error("can not get writer", e);
>                 }
>
> -
>
> I got a new page that displayed the result from the servlet.
>
> How do I make to stay on the same page and display the result from the
> servet in 'target'?


[jQuery] ajaxForm works like normal flow

2008-10-07 Thread Jim

Once I clicked a submit button, my servlet is processing the data
submitted through through ajaxForm. In the servlet I use the following
code to write a string to response:
--
PrintWriter out;
try {
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "0");
response.setHeader("Cache-Control", "no-store");

out = response.getWriter();
out.println("good");
out.flush();
out.close();
} catch (IOException e) {
log.error("can not get writer", e);
}

-

I got a new page that displayed the result from the servlet.

How do I make to stay on the same page and display the result from the
servet in 'target'?



[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread iKnowKungFoo

I haven't used it yet, but someone recommended http://www.spket.com/
to me as an alternate to Aptana.

-- Adrian

On Oct 7, 10:13 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> Friends,
>
> aptana studio, albeit a nice editor, is recently crashing all the time and
> now doesn't even want to restart. I'm looking for a good alternative, that
> has a code formatting (auto indenting) functionality.
>
> Any suggestion ? I'm on Windows XP SP3...
>
> Thank you,
>
> Alexandre


[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread Stefan Sturm

Take a look at NetBeans. I switch to NetBeans 6.5 a short Time ago.

Greetings,
Stefan

2008/10/7 Alexandre Plennevaux <[EMAIL PROTECTED]>:
> Friends,
>
> aptana studio, albeit a nice editor, is recently crashing all the time and
> now doesn't even want to restart. I'm looking for a good alternative, that
> has a code formatting (auto indenting) functionality.
>
> Any suggestion ? I'm on Windows XP SP3...
>
> Thank you,
>
>
> Alexandre
>


[jQuery] Re: How can I change all radio buttons to "yes" and "no"?

2008-10-07 Thread Hi

First all the radio buttons need to have different names then

$(function(){
$('input[type=radio]').attr("checked",true);
});


On Oct 7, 10:36 am, Costaud <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Can you please tell me how can I have all radio buttons set to "yes"
> or "no"?
>
> Thanks.


[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread ricardobeat

Also you should validate your page, it's throwing dozens of markup
errors, invalid attributes, uppercase tags, invalid nestings etc. Not
to say it is the cause, but invalid markup can affect the DOM tree.

- ricardo

On Oct 7, 2:29 pm, rolfsf <[EMAIL PROTECTED]> wrote:
> craig - I notice that the Location: X and Category: Y content are both
> lists/list items. I haven't looked at the script, but I suspect it may
> be hiding and counting those - you're problem with both the high count
> and the disappearing content is the same problem. It's counting
> Category in the "C" count, and the Location in the L count., and then
> hiding that content in all but the C and L lists.
>
> rolfsf
>
> On Oct 7, 7:09 am, "craig.kaminsky" <[EMAIL PROTECTED]> wrote:
>
> > Hi, Jack,
>
> > I have just tried it out on a site. It works pretty darn well. We've
> > noticed two things thus far:
> > 1. The "count" for each letter and the total is off. For example, this
> > page (http://www.experiencecoloradosprings.com/index.cfm/go/ecs.pages/
> > id/86/title/Hotels,%20Lodging,%20Accommodations/memcat/5) has 170
> > listings displayed but when you hover over the ALL link, it reads 508.
> > The troublesome letters, in this case, appear to be C and L.
> > 2. When you click to filter, some of the content disappears (notice
> > how there are two entries/lines for Location: X and Category: Y with
> > each listing. When you click a letter to filter, those go away but
> > reappear when you press "All".
>
> > You can see it in action on other pages in this site under the "Stay
> > Eat and Play" drop-down (the Dining, Lodging, Activities, Arts,
> > Shopping, and Services links all utilize it in their output).
>
> > Excellent work on this plugin and thank you!! We're very psyched with
> > it and it beats the #$&@ out of what we had before :)!
>
> > Best,
> > Craig
>
> > On Oct 6, 10:41 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
>
> > > Hi Ettiene, how'd using it go for you?
>
> > > Thanks to everyone else for the initial feedback. I'm interested to hear
> > > if anyone has implemented it anywhere. ?
>
> > > - Jack
>
> > > Ettiene wrote:
> > > > Excellent stuff man! I'm already busy using it hehe
>
> > > > Ettiene


[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread Alexandre Plennevaux
thanks. I'm currently trying microsoft visual web developer 2008 Express.

The installation is quite heavy, but it does work pretty well. i don't need
all its .asp interfacing but it allows to edit javascript in a comfy
environment.


On Tue, Oct 7, 2008 at 10:57 PM, ricardobeat <[EMAIL PROTECTED]> wrote:

>
> Notepad++ is a (free and) very light editor with good syntax
> highlighting and indentation guides. Not many extra features though.
>
> http://notepad-plus.sourceforge.net/
>
> - ricardo
>
> On Oct 7, 4:18 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
> wrote:
> > thanks for the tip Mike ! Komodo IDE is a bit too expensive for my purse,
> > but i do use the free version which is good, except it does not allow
> code
> > formatting AFAIK.
> >
> > LAb[au] _ *lab*oratory for *a*rchitecture and *u*rbanism
> >
> > Alexandre Plennevaux
> >
> > Lakensestraat 104 Rue de Laeken
> > Brussel 1000 Bruxelles
> > België _ Belgique _ Belgium
> >
> > tel: +32 (0)2 2196555
> > fax: +32 (0)2 4266986
> >
> > mail: [EMAIL PROTECTED] <[EMAIL PROTECTED]>http://www.lab-au.com
> > VAT: BE0475.210.720
> >
> > On Tue, Oct 7, 2008 at 8:13 PM, Michael Geary <[EMAIL PROTECTED]> wrote:
> > >  I do most of my editing in Komodo. I use the commercial Komodo IDE
> which
> > > includes integrated debuggers for Python, Ruby, PHP, and JavaScript and
> a
> > > great regular expression tester, but the free Komodo Edit is very nice
> too.
> > > Among other things, it has syntax checking for all these languages
> while you
> > > edit. Any syntax error gets a squiggly red underline, which makes it
> really
> > > easy to chase down those errors.
> >
> > > Since its editor component is Scintilla, Komodo also supports
> indentation
> > > guides - vertical lines at each level of indentation to help visually
> > > connect the indented code. It also supports proportional fonts, which
> I've
> > > gotten to really enjoy for coding. I can see more of my code at once,
> and
> > > it's easier to read too.
> >
> > > I also use PSPad for a couple of features that Komodo lacks: a nice
> > > sort-and-remove-duplicate-lines function and an HTML/XML reformatter.
> It
> > > also supports very large files better than Komodo. You can open the
> same
> > > file in PSPad and Komodo and they each sync with any changes you make
> in the
> > > other.
> >
> > >http://www.activestate.com/Products/komodo_edit/
> > >http://www.activestate.com/Products/komodo_ide/
> > >http://www.pspad.com/
> >
> > > -Mike
> >
> > >  --
> > > *From:* Alexandre Plennevaux
> > > *Sent:* Tuesday, October 07, 2008 8:14 AM
> > > *To:* Jquery-en
> > > *Subject:* [jQuery] OT : javascript editor (with code formatting)
> >
> > >  Friends,
> >
> > > aptana studio, albeit a nice editor, is recently crashing all the time
> and
> > > now doesn't even want to restart. I'm looking for a good alternative,
> that
> > > has a code formatting (auto indenting) functionality.
> >
> > > Any suggestion ? I'm on Windows XP SP3...
> >
> > > Thank you,
> >
> > > Alexandre
>


[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread ricardobeat

Notepad++ is a (free and) very light editor with good syntax
highlighting and indentation guides. Not many extra features though.

http://notepad-plus.sourceforge.net/

- ricardo

On Oct 7, 4:18 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> thanks for the tip Mike ! Komodo IDE is a bit too expensive for my purse,
> but i do use the free version which is good, except it does not allow code
> formatting AFAIK.
>
> LAb[au] _ *lab*oratory for *a*rchitecture and *u*rbanism
>
> Alexandre Plennevaux
>
> Lakensestraat 104 Rue de Laeken
> Brussel 1000 Bruxelles
> België _ Belgique _ Belgium
>
> tel: +32 (0)2 2196555
> fax: +32 (0)2 4266986
>
> mail: [EMAIL PROTECTED] <[EMAIL PROTECTED]>http://www.lab-au.com
> VAT: BE0475.210.720
>
> On Tue, Oct 7, 2008 at 8:13 PM, Michael Geary <[EMAIL PROTECTED]> wrote:
> >  I do most of my editing in Komodo. I use the commercial Komodo IDE which
> > includes integrated debuggers for Python, Ruby, PHP, and JavaScript and a
> > great regular expression tester, but the free Komodo Edit is very nice too.
> > Among other things, it has syntax checking for all these languages while you
> > edit. Any syntax error gets a squiggly red underline, which makes it really
> > easy to chase down those errors.
>
> > Since its editor component is Scintilla, Komodo also supports indentation
> > guides - vertical lines at each level of indentation to help visually
> > connect the indented code. It also supports proportional fonts, which I've
> > gotten to really enjoy for coding. I can see more of my code at once, and
> > it's easier to read too.
>
> > I also use PSPad for a couple of features that Komodo lacks: a nice
> > sort-and-remove-duplicate-lines function and an HTML/XML reformatter. It
> > also supports very large files better than Komodo. You can open the same
> > file in PSPad and Komodo and they each sync with any changes you make in the
> > other.
>
> >http://www.activestate.com/Products/komodo_edit/
> >http://www.activestate.com/Products/komodo_ide/
> >http://www.pspad.com/
>
> > -Mike
>
> >  --
> > *From:* Alexandre Plennevaux
> > *Sent:* Tuesday, October 07, 2008 8:14 AM
> > *To:* Jquery-en
> > *Subject:* [jQuery] OT : javascript editor (with code formatting)
>
> >  Friends,
>
> > aptana studio, albeit a nice editor, is recently crashing all the time and
> > now doesn't even want to restart. I'm looking for a good alternative, that
> > has a code formatting (auto indenting) functionality.
>
> > Any suggestion ? I'm on Windows XP SP3...
>
> > Thank you,
>
> > Alexandre


[jQuery] Re: Un-minify?

2008-10-07 Thread ricardobeat

Dreamweaver (CS3 at least) has an 'apply source formatting' option
that does the job well (for minified, not packed files).

- ricardo

On Oct 7, 3:51 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
> That looks cool... funny thing is everything is truning into a fine
> tuned system... I'm loving it lol... thanks for the help... Any one
> else?  I think yours Eric seems the best solution so far... :-)
>
> On Oct 7, 9:02 am, Eric <[EMAIL PROTECTED]> wrote:
>
> > I'll throw in a plug for Git (http://git-scm.com/).  Easily
> > installed on Linux, Windows and OS X 10.5, it can be a great safety
> > net that takes literally 10 seconds to set up for a new project (once
> > the program is on your comp).
>
> > Nothing puts a smile on my face like erasing a huge chunk of spaghetti
> > code, knowing I've got a safe backup in Git should I need it.  :-D
>
> > On Oct 6, 11:24 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > Oh I have the source at my office... but yu know late night ideas...
> > > anyways thanks for the help... I did find a nice 
> > > Beautifier...http://elfz.laacz.lv/beautify/
>
> > > I was just woundering what anyone else thought was a good one or
> > > way... Have a great one
> > > jeremyBass
> > > On Oct 6, 7:49 pm, MorningZ <[EMAIL PROTECTED]> wrote:
>
> > > > Well, depending on what you used to minify, this is going to be a next
> > > > to impossible task
>
> > > > for instance, many will remove whitespace (not that big a deal) and
> > > > rename variables from meaningful to super-space-saving-simple
>
> > > > so depending on your options used to pack with totally determine your
> > > > ability to revert
>
> > > > And maybe take this as a lesson:
>
> > > > Source control is your friend!! even for small personal projects
>
> > > > On Oct 6, 10:45 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello, like a dumby in a rush I saved over my non-minfied file... any
> > > > > sugestions on a good "un-minifyer"  thanks for the help...
> > > > > jeremyBass- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -


[jQuery] Re: autocomplete and updating different fields from delimited string

2008-10-07 Thread MorningZ

I'm not sure all that is necessary

looking in your ".result" code, you have:

if (data)
  $("#title_name").val(data[0]);
  $("#item_number").val(data[1]);
  $("#title_street").val(data[2]);
  $("#title_prebook").val(data[3])


but no where to you "split" the data based on the pipe  that would
be (very) important before trying to access indexed positions in the
returned data item




On Oct 7, 3:46 pm, JimD <[EMAIL PROTECTED]> wrote:
> Ok I got this figured out.  maybe this can help anyone else looking
> for a similiar solution.  bnased of the demo I can manipulate output
> with the findValueCallback function.
>
> $(document).ready(function() {
>
>   function findValueCallback(event, data, formatted) {
>          $("").html( !data ? "No match!" : "Selected: " +
> formatted).appendTo("#results");
>         }
>
>   $("#title_name").autocomplete("intra_autosearch.html", {
>     width: 350,
>         max: 50,
>         cacheLength: 0,
>         scroll: true,
>         minChars: 4,
>         minChars: 4,
>     autoFill: false,
>                 mustMatch: false,
>                 matchContains: false,
>         selectFirst: false,
>         extraParams: { d: function(){return $
> ("[EMAIL PROTECTED]:checked").val();}}
>   });
>
>   $(":text").result(findValueCallback).next().click(function() {
>                 $(this).prev().search();
>         });
>
>         $("#title_name").result(function(event, data, formatted) {
>         if (data)
>         alert(data);
>           $("#title_name").val(data[0]);
>           $("#item_number").val(data[1]);
>           $("#title_street").val(data[2]);
>           $("#title_prebook").val(data[3]);
>   });
>
> });


[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread John D.

Ok I found the culprit. There was a JavaScript for our Google site
search. Commenting it out solves the problem.

It's a Coldfusion page. I'm not sure why this bit of JavaScript, which
is included at the bottom of  the page is causing the problem.

Shouldn't the paragraph hide before the site search JavaScript is
executed?

Thanks for helping!

John







Brandon Aaron wrote:
> Make sure your styles are included before the script tags. Is this happening
> in a particular browser?
> --
> Brandon Aaron
>
> On Tue, Oct 7, 2008 at 1:58 PM, John D. <[EMAIL PROTECTED]> wrote:
>
> >
> > Hmm...I'm still having trouble with this.
> >
> > my showHide script is as follows:
> >
> > $(document).domready(function() {
> >$('body').addClass('jsEnabled');  // let css know js is enabled
> >$('p.firstparagraph').hide()
> >$('#showh1').click(function(){
> >   $('p.firstparagraph').show(200);
> >   });
> >   $('#hideh1').click(function(){
> >   $('p.firstparagraph').hide(200);
> >   });
> >  });
> >
> > Including the following:
> > http://code.jquery.com/
> > jquery.js <http://code.jquery.com/jquery.js>">
> > 
> > 
> >
> > and added the following CSS rule:
> >
> > body.jsEnabled p.firstparagraph { display: none; }
> >
> > Still the firstparagraph is showing then disappearing on page load.
> > The page validates for both css and html.
> >
> > Any thoughts?
> >
> > Thanks!
> >
> > John
> >
> > On Oct 7, 10:28 am, Nabha <[EMAIL PROTECTED]> wrote:
> > > Installed the plugin, and it works great! I'm using it just as you
> > > suggested.
> > >
> > > For those who find this later, you'll want to "minify" the javascript
> > > file:http://www.digitaloverload.co.uk/jsmin/
> > >
> > > And this is code you can copy and paste (has a fixed typo):
> > >
> > > $(document).domready(function() {
> > > $('body').addClass('jsEnabled');
> > >
> > > });
> >


[jQuery] Is .prev() being used in the wrong way here?

2008-10-07 Thread hubbs

I have a function that filters a listed based on the value of an input
field.  The .each() function looks at inside each anchor tag, and adds
a new class if there is a match.  But, I want the class to be added to
the parent, or prev element here, which is a holder div called
itemHolder.

For some reason it is not even adding the hidden class to the previous
element, which should be the itemHolder div.  Am I using this in the
wrong way?  Using .parent() does not work either.

$("#filter").keyup(function() {
var filter = $(this).val(),
count = 0;
$(".scroll a").each(function() {
if ($(this).text().search(new RegExp(filter, "i")) < 0) {
$(this).prev(".itemHolder").addClass("hidden");
} else {
$(this).prev(".itemHolder").removeClass("hidden");
count++;
}
});
});


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Michael Geary

Great, now (I think) I'm understanding better what you're doing.

Is there no way to find out what that .NET-assigned prefix is? That would
let you do a direct #id lookup.

If you can't do that, one thing that will speed up the selectors a lot is to
add the tagname.

Also, it appears that the prefix is the same for the  and the 
elements inside it. Is that something you can count on? If so, you could
speed up the selector tremendously:

var $table = $( 'table[id$=gvBillingHistory]' );
var prefix = $table[0].id.replace( /gvBillingHistory$/, '' );
var $target = $( '#' + prefix + 'GPRow_' + GPRowID + ']' );

Using the 'table' tagname in the first selector should make that selector
reasonably fast - it only has to search all of the  elements instead
of *every* element.

Then we pick up the prefix from the table's id and use it to construct a
very fast #id selector for $target.

If you can't count on a consistent prefix, you could still speed up the
original selector a lot by simply adding the table and tr tagnames to the
individual selectors:

var $target = $( 'tr[id$=GPRow_' + GPRowID + ']',
'table[id$=gvBillingHistory]' );

Either way, put this code outside the loop and that will be one thing out of
the way.

You're right, the next step after that would be to build up an HTML string
and insert it instead of building DOM elements. That can be much faster.

I'm confused on another point, though. When you do the appendTo(), it
appears that you are inserting a  element *inside* another  element.
That can't be right - or did I misread it? I wonder if insertAfter() is what
you wanted instead of appendTo()?

-Mike

> From: Coryt
> 
> Ah, yes, sorry, the @ selectors are because I am using .net, 
> which alters rendered control ID values. Therefore I need to 
> search for the end of the ID.
> From what i read and as you noted, the selector $( 
> "[EMAIL PROTECTED]" + GPRowID + "]", "[EMAIL PROTECTED]" ), 
> would use "[EMAIL PROTECTED] $=gvBillingHistory]"  as its context to 
> search for the first half of the selector "[EMAIL PROTECTED]" + 
> GPRowID + "]". This was supposed to improve the efficiency of 
> the selector, however if this is not the case, I would gladly 
> switch to using a different selector as long as I can still 
> search for the end of a string. Any suggestions?
> 
> As you pointed out, the ID vs id is a mistake, but the *end 
> with* is correct (due to .Net rendering), also I understand 
> what you said about being able to move the selector out of 
> the loop. I assume instead of having the loop append each new 
> row directly into the DOM, I could build a local string, then 
> once the loop finishes, append the string where I need it. I 
> suspect this would improve the performance.
> 
> Here is a snippet of my gvBillingHistory table html:
>  id="ctl00_MainContent_gvBillingHistory" style="border- 
> collapse:collapse;">
>   
>     scope="col">DateDoc # scope="col">SubtotalTax scope="col">TotalPayment th>GP Status
>   
>   
>onclick="GetGPDocumentLineItems('PYM-522873-1',0)" style="width:
> 16px;height:16px;text-align:center;">+
>   09/30/2008
>   
>   PYM-522873-1
>   
>   $0.00
>   
>   $0.00
>   
>   -
>   
>   $8,680.00
>   
>   Posted
>   
>   
>class="dgalt">
>onclick="GetGPDocumentLineItems('INV-522873-3',1)" style="width:
> 16px;height:16px;text-align:center;">+
>   09/30/2008
>   
>   INV-522873-3
>   
>   $1,652.00
>   
>   $84.00
>   
>   $1,736.00
>   
>   -
>   
>   Posted
>   
>   
> 
> 



[jQuery] Re: [validate] Showing/hiding fields depending on conditions

2008-10-07 Thread Weyert de Boer

Interesting thanks. I will see if I can't make some invalidate method
for every condition. Somehow I think that's easier to maintain.

I will  have to lookup if I can add multiple methods to such click-event.

Thanks. Wow, jQuery makes your live a lot easier.

Yours,
Weyert

On Tue, Oct 7, 2008 at 9:50 PM, Jörn Zaefferer
<[EMAIL PROTECTED]> wrote:
> Showing and hiding fields based on user-defined conditions isn't part
> of the validation plugin. But it should be easy enough to implement
> with jQuery. To get you started, something like this:
>
> $("#someCheckboxA").click(function() {
>  var toggleThose = $("#fieldQ, fieldR");
>  if (this.checked) {
>toggleThose.show();
>  } else {
>toggleThose.hide();
>  }
> });
>
> That could also be written as:
>
> $("#someCheckboxA").click(function() {
>  $("#fieldQ, fieldR")[ this.checked ? "show" : "hide" ]();
> });
>
> Jörn
>
> On Tue, Oct 7, 2008 at 8:56 PM, Weyert de Boer <[EMAIL PROTECTED]> wrote:
>>
>> Hello!
>>
>> I am currently trying to use the validation plugin for jQuery to
>> improve my current code generator for making forms.
>> I would like to support conditional fields, meaning that it shows or
>> hides other fields depending on the evaluation of a conidition.
>> For example, if fieldA is B then it should show fieldQ, fieldR. If not
>> it should hide.
>>
>> Are there any way to do this easily with jQuery and it's validation plugin?
>>
>> Thanks!
>> Weyert de Boer
>>
>


[jQuery] Re: [validate] Showing/hiding fields depending on conditions

2008-10-07 Thread Jörn Zaefferer
Showing and hiding fields based on user-defined conditions isn't part
of the validation plugin. But it should be easy enough to implement
with jQuery. To get you started, something like this:

$("#someCheckboxA").click(function() {
  var toggleThose = $("#fieldQ, fieldR");
  if (this.checked) {
toggleThose.show();
  } else {
toggleThose.hide();
  }
});

That could also be written as:

$("#someCheckboxA").click(function() {
  $("#fieldQ, fieldR")[ this.checked ? "show" : "hide" ]();
});

Jörn

On Tue, Oct 7, 2008 at 8:56 PM, Weyert de Boer <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I am currently trying to use the validation plugin for jQuery to
> improve my current code generator for making forms.
> I would like to support conditional fields, meaning that it shows or
> hides other fields depending on the evaluation of a conidition.
> For example, if fieldA is B then it should show fieldQ, fieldR. If not
> it should hide.
>
> Are there any way to do this easily with jQuery and it's validation plugin?
>
> Thanks!
> Weyert de Boer
>


[jQuery] jCarousel Lite problem

2008-10-07 Thread BroOf

Hey all! I found the jCarousel plugin and it's perfect for me.
Everything works great but I've one problem. I would like to define
the btnGo automatically with jquery. So I setted up a for-loop to
creat 6 classes which are saved in an array. Now I would like to
insert the array into the btnGo[] function but if i do this, nothing
happens. If I use variables it works but the array doesn't. Any
solutions?

(This is the jCarousel Lite plugin: 
http://www.gmarwaha.com/jquery/jcarousellite/)


[jQuery] Re: autocomplete and updating different fields from delimited string

2008-10-07 Thread JimD

Ok I got this figured out.  maybe this can help anyone else looking
for a similiar solution.  bnased of the demo I can manipulate output
with the findValueCallback function.


$(document).ready(function() {


  function findValueCallback(event, data, formatted) {
 $("").html( !data ? "No match!" : "Selected: " +
formatted).appendTo("#results");
}

  $("#title_name").autocomplete("intra_autosearch.html", {
width: 350,
max: 50,
cacheLength: 0,
scroll: true,
minChars: 4,
minChars: 4,
autoFill: false,
mustMatch: false,
matchContains: false,
selectFirst: false,
extraParams: { d: function(){return $
("[EMAIL PROTECTED]:checked").val();}}
  });

  $(":text").result(findValueCallback).next().click(function() {
$(this).prev().search();
});

$("#title_name").result(function(event, data, formatted) {
if (data)
alert(data);
  $("#title_name").val(data[0]);
  $("#item_number").val(data[1]);
  $("#title_street").val(data[2]);
  $("#title_prebook").val(data[3]);
  });
});


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Coryt

Ah, yes, sorry, the @ selectors are because I am using .net, which
alters rendered control ID values. Therefore I need to search for the
end of the ID.
>From what i read and as you noted, the selector $( "[EMAIL PROTECTED]" +
GPRowID + "]", "[EMAIL PROTECTED]" ), would use "[EMAIL PROTECTED]
$=gvBillingHistory]"  as its context to search for the first half of
the selector "[EMAIL PROTECTED]" + GPRowID + "]". This was supposed to
improve the efficiency of the selector, however if this is not the
case, I would gladly switch to using a different selector as long as I
can still search for the end of a string. Any suggestions?

As you pointed out, the ID vs id is a mistake, but the *end with* is
correct (due to .Net rendering), also I understand what you said about
being able to move the selector out of the loop. I assume instead of
having the loop append each new row directly into the DOM, I could
build a local string, then once the loop finishes, append the string
where I need it. I suspect this would improve the performance.

Here is a snippet of my gvBillingHistory table html:


 DateDoc #SubtotalTaxTotalPaymentGP Status


+
09/30/2008

PYM-522873-1

$0.00

$0.00

-

$8,680.00

Posted



+
09/30/2008

INV-522873-3

$1,652.00

$84.00

$1,736.00

-

Posted





[jQuery] Always-on Tooltips on image with usemap areas

2008-10-07 Thread iantresman

I'd like to show "tooltips" on usemap images with multiply defined
AREAs and their associated title tag text. And I'd like to show them
all  displaying by default, so they show as dynamically generated
captions.

I've been using  kemayo's excellent Map Hilight at
http://plugins.jquery.com/project/maphilight
which has an option to display all AREAs by default, but I can't
figure out how to add any text.

Is anyone aware of any Tooltip plugins that do this, or how Maphilight
could be modified to do this?


[jQuery] [validate] Showing/hiding fields depending on conditions

2008-10-07 Thread Weyert de Boer

Hello!

I am currently trying to use the validation plugin for jQuery to
improve my current code generator for making forms.
I would like to support conditional fields, meaning that it shows or
hides other fields depending on the evaluation of a conidition.
For example, if fieldA is B then it should show fieldQ, fieldR. If not
it should hide.

Are there any way to do this easily with jQuery and it's validation plugin?

Thanks!
Weyert de Boer


[jQuery] Re: Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-07 Thread Michael Geary

Why do you need to test the existence of the parent container?

The HTML you listed was:


        
        
        
        
        
        


If your code runs any time after block of HTML e.g. in a "ready" function or
even in inline code after the HTML, both the parentContianer [sic] and all
of its child elements have already been created. Just grab your references
and run.

-Mike

> From: Micky Hulse
> 
> Hmmm, also, I suppose I could do the below when setting-up my
> variables:
> 
> var $parentObj = $('#parentContianer');
> if($parentObj.length > 0) {
>   // $parentObj exists, cache child objects:
>   var $childObj1 = $('#childEle1');
>   var $childObj2 = $('#childEle2');
>   var $childObj3 = $('#childEle3');
>   var $childObj4 = $('#childEle4');
>   var $childObj5 = $('#childEle5');
>   var $childObj6 = $('#childEle6');
> }
> 
> Is that an acceptable or weird way to do it?



[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread Alexandre Plennevaux
thanks for the tip Mike ! Komodo IDE is a bit too expensive for my purse,
but i do use the free version which is good, except it does not allow code
formatting AFAIK.



LAb[au] _ *lab*oratory for *a*rchitecture and *u*rbanism

Alexandre Plennevaux

Lakensestraat 104 Rue de Laeken
Brussel 1000 Bruxelles
België _ Belgique _ Belgium

tel: +32 (0)2 2196555
fax: +32 (0)2 4266986

mail: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
http://www.lab-au.com
VAT: BE0475.210.720


On Tue, Oct 7, 2008 at 8:13 PM, Michael Geary <[EMAIL PROTECTED]> wrote:

>  I do most of my editing in Komodo. I use the commercial Komodo IDE which
> includes integrated debuggers for Python, Ruby, PHP, and JavaScript and a
> great regular expression tester, but the free Komodo Edit is very nice too.
> Among other things, it has syntax checking for all these languages while you
> edit. Any syntax error gets a squiggly red underline, which makes it really
> easy to chase down those errors.
>
> Since its editor component is Scintilla, Komodo also supports indentation
> guides - vertical lines at each level of indentation to help visually
> connect the indented code. It also supports proportional fonts, which I've
> gotten to really enjoy for coding. I can see more of my code at once, and
> it's easier to read too.
>
> I also use PSPad for a couple of features that Komodo lacks: a nice
> sort-and-remove-duplicate-lines function and an HTML/XML reformatter. It
> also supports very large files better than Komodo. You can open the same
> file in PSPad and Komodo and they each sync with any changes you make in the
> other.
>
> http://www.activestate.com/Products/komodo_edit/
> http://www.activestate.com/Products/komodo_ide/
> http://www.pspad.com/
>
> -Mike
>
>  --
> *From:* Alexandre Plennevaux
> *Sent:* Tuesday, October 07, 2008 8:14 AM
> *To:* Jquery-en
> *Subject:* [jQuery] OT : javascript editor (with code formatting)
>
>  Friends,
>
> aptana studio, albeit a nice editor, is recently crashing all the time and
> now doesn't even want to restart. I'm looking for a good alternative, that
> has a code formatting (auto indenting) functionality.
>
> Any suggestion ? I'm on Windows XP SP3...
>
> Thank you,
>
>
> Alexandre
>
>


[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Brandon Aaron
Make sure your styles are included before the script tags. Is this happening
in a particular browser?
--
Brandon Aaron

On Tue, Oct 7, 2008 at 1:58 PM, John D. <[EMAIL PROTECTED]> wrote:

>
> Hmm...I'm still having trouble with this.
>
> my showHide script is as follows:
>
> $(document).domready(function() {
>$('body').addClass('jsEnabled');  // let css know js is enabled
>$('p.firstparagraph').hide()
>$('#showh1').click(function(){
>   $('p.firstparagraph').show(200);
>   });
>   $('#hideh1').click(function(){
>   $('p.firstparagraph').hide(200);
>   });
>  });
>
> Including the following:
> http://code.jquery.com/
> jquery.js <http://code.jquery.com/jquery.js>">
> 
> 
>
> and added the following CSS rule:
>
> body.jsEnabled p.firstparagraph { display: none; }
>
> Still the firstparagraph is showing then disappearing on page load.
> The page validates for both css and html.
>
> Any thoughts?
>
> Thanks!
>
> John
>
> On Oct 7, 10:28 am, Nabha <[EMAIL PROTECTED]> wrote:
> > Installed the plugin, and it works great! I'm using it just as you
> > suggested.
> >
> > For those who find this later, you'll want to "minify" the javascript
> > file:http://www.digitaloverload.co.uk/jsmin/
> >
> > And this is code you can copy and paste (has a fixed typo):
> >
> > $(document).domready(function() {
> > $('body').addClass('jsEnabled');
> >
> > });
>


[jQuery] Re: Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-07 Thread Micky Hulse

Hmmm, also, I suppose I could do the below when setting-up my
variables:

var $parentObj = $('#parentContianer');
if($parentObj.length > 0) {
// $parentObj exists, cache child objects:
var $childObj1 = $('#childEle1');
var $childObj2 = $('#childEle2');
var $childObj3 = $('#childEle3');
var $childObj4 = $('#childEle4');
var $childObj5 = $('#childEle5');
var $childObj6 = $('#childEle6');
}

Is that an acceptable or weird way to do it?


[jQuery] autocomplete and updating different fields from delimited string

2008-10-07 Thread JimD

Hi all,

I'm using rhe great jquery autocomplete plugin which works great. But
Im returning a pipe delimited list so I can return more data and then
populate specific fields with that info. So for example my
autocomplete would return pipe delimited data like so for each line.

Top Gun|0001|11/22/06|10/31/06
Top Act|0002|11/22/06|10/31/06

In the display results of the autocomplete I wouldnt want to display
the full line just the first value of the pipe delimited string. So it
would display:

Top Gun
Top Act.

And if I selected Top Act it would update:
#title_name with the value 'Top Act'
the field #item with the value '0002',
the field #date1 with value '11/22/06'
the field #date2 with value '10/31/06'

Im a bit confused as to how to go about initiating a function to parse
the pipe delimited data to update the fields the way I want.

$(document).ready(function(){
  $("#title_name").autocomplete("autosearch.html", {
width: 350,
max: 50,
cacheLength: 0,
scroll: true,
minChars: 4,
minChars: 4,
autoFill: false,
mustMatch: false,
matchContains: false,
selectFirst: false,
extraParams: { d: function(){return $
("[EMAIL PROTECTED]:checked").val();}}
  });

  $("#title_name").result(function(event, data, formatted) {
if (data)
$("#title_name").val(data[1]);
$("#item").val(data[2]);
$("#date1").val(data[3]);
$("#date2").val(data[3]);
  });
});


[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread John D.

Hmm...I'm still having trouble with this.

my showHide script is as follows:

$(document).domready(function() {
   $('body').addClass('jsEnabled');  // let css know js is enabled
   $('p.firstparagraph').hide()
   $('#showh1').click(function(){
   $('p.firstparagraph').show(200);
   });
   $('#hideh1').click(function(){
   $('p.firstparagraph').hide(200);
   });
 });

Including the following:
http://code.jquery.com/
jquery.js">



and added the following CSS rule:

body.jsEnabled p.firstparagraph { display: none; }

Still the firstparagraph is showing then disappearing on page load.
The page validates for both css and html.

Any thoughts?

Thanks!

John

On Oct 7, 10:28 am, Nabha <[EMAIL PROTECTED]> wrote:
> Installed the plugin, and it works great! I'm using it just as you
> suggested.
>
> For those who find this later, you'll want to "minify" the javascript
> file:http://www.digitaloverload.co.uk/jsmin/
>
> And this is code you can copy and paste (has a fixed typo):
>
> $(document).domready(function() {
>     $('body').addClass('jsEnabled');
>
> });


[jQuery] Re: Using .fadeOut() then .html("")

2008-10-07 Thread hubbs

Perfect, thank you!!

On Oct 7, 11:19 am, MorningZ <[EMAIL PROTECTED]> wrote:
> Use the "callback" of the fadeOut event
>
> http://docs.jquery.com/Effects/fadeOut#speedcallback
>
> $("#ajaxResult").fadeOut("slow", function() { $(this).html("") });
>
> On Oct 7, 2:08 pm, hubbs <[EMAIL PROTECTED]> wrote:
>
> > I have some text that is in a div that I would like to fade out, then
> > I want to clear the HTML of that div.  But, it seems that the fadeOut
> > doesn't get run before the HTML gets cleared:
>
> > setTimeout(function() {
> >                     $("#ajaxResult").fadeOut("slow").html("");
> >                 },
> >                 5000);
>
> > Did I do something wrong here?


[jQuery] Re: Un-minify?

2008-10-07 Thread jeremyBass

That looks cool... funny thing is everything is truning into a fine
tuned system... I'm loving it lol... thanks for the help... Any one
else?  I think yours Eric seems the best solution so far... :-)

On Oct 7, 9:02 am, Eric <[EMAIL PROTECTED]> wrote:
> I'll throw in a plug for Git (http://git-scm.com/).  Easily
> installed on Linux, Windows and OS X 10.5, it can be a great safety
> net that takes literally 10 seconds to set up for a new project (once
> the program is on your comp).
>
> Nothing puts a smile on my face like erasing a huge chunk of spaghetti
> code, knowing I've got a safe backup in Git should I need it.  :-D
>
> On Oct 6, 11:24 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
>
>
> > Oh I have the source at my office... but yu know late night ideas...
> > anyways thanks for the help... I did find a nice 
> > Beautifier...http://elfz.laacz.lv/beautify/
>
> > I was just woundering what anyone else thought was a good one or
> > way... Have a great one
> > jeremyBass
> > On Oct 6, 7:49 pm, MorningZ <[EMAIL PROTECTED]> wrote:
>
> > > Well, depending on what you used to minify, this is going to be a next
> > > to impossible task
>
> > > for instance, many will remove whitespace (not that big a deal) and
> > > rename variables from meaningful to super-space-saving-simple
>
> > > so depending on your options used to pack with totally determine your
> > > ability to revert
>
> > > And maybe take this as a lesson:
>
> > > Source control is your friend!! even for small personal projects
>
> > > On Oct 6, 10:45 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > > Hello, like a dumby in a rush I saved over my non-minfied file... any
> > > > sugestions on a good "un-minifyer"  thanks for the help...
> > > > jeremyBass- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Michael Geary

Next thing I want to see is the HTML that the code you generate is being
inserted into. I'm having trouble following this selector:

$( "[EMAIL PROTECTED]" + GPRowID + "]", "[EMAIL PROTECTED]" )

My guess is that the @ characters are left over from some old jQuery syntax?
And so it would find an element in the current document with an ID attribute
that *ends with* (because of the $ suffix) the text "gvBillingHistory", and
then look inside that element for an element whose ID attribute *ends with*
GPRow_x where x is the value of GPRowID. Is that right? The elements
have ID attributes (not id in lower case)? And you need to match on what the
ID attributes end with?

Whatever it does, this would be an extremely slow selector. There's no
reason for it to be inside the loop, since GPRowID does not vary inside the
loop. So you could put above the $.each:

var $target = $(...blahblah...);

and use .appendTo($target) in the loop.

If those ID attributes are really id, and if the bit about attributes that
*end with* the indicated text is just a mistake, then you could just put
this above the loop:

var $target = $( '#GPRow_' + GPRowID );

But now I'm just speculating because I haven't seen your HTML code.

-Mike

> From: Coryt
> Unfortunately I don't have a place to put up a test page.
> Here is the html template:...



[jQuery] Re: Using .fadeOut() then .html("")

2008-10-07 Thread MorningZ

Use the "callback" of the fadeOut event

http://docs.jquery.com/Effects/fadeOut#speedcallback


$("#ajaxResult").fadeOut("slow", function() { $(this).html("") });



On Oct 7, 2:08 pm, hubbs <[EMAIL PROTECTED]> wrote:
> I have some text that is in a div that I would like to fade out, then
> I want to clear the HTML of that div.  But, it seems that the fadeOut
> doesn't get run before the HTML gets cleared:
>
> setTimeout(function() {
> $("#ajaxResult").fadeOut("slow").html("");
> },
> 5000);
>
> Did I do something wrong here?


[jQuery] Re: Using .fadeOut() then .html("")

2008-10-07 Thread MorningZ

Use the "callback" of the fadeOut event

http://docs.jquery.com/Effects/fadeOut#speedcallback


$("#ajaxResult").fadeOut("slow", function() { $(this).html("") });



On Oct 7, 2:08 pm, hubbs <[EMAIL PROTECTED]> wrote:
> I have some text that is in a div that I would like to fade out, then
> I want to clear the HTML of that div.  But, it seems that the fadeOut
> doesn't get run before the HTML gets cleared:
>
> setTimeout(function() {
> $("#ajaxResult").fadeOut("slow").html("");
> },
> 5000);
>
> Did I do something wrong here?


[jQuery] Re: How can I change all radio buttons to "yes" and "no"?

2008-10-07 Thread MorningZ

Quick and simple example of what's asked for

http://paste.pocoo.org/show/87343/




On Oct 7, 2:08 pm, "Isaak Malik" <[EMAIL PROTECTED]> wrote:
> Do you understand the purpose of radio buttons? You probably need checkboxes
> instead and you can check them all by using the below code:
>
> $(function(){
> $('input[type=checkbox]').checked = true;
>
> });
> On Tue, Oct 7, 2008 at 7:36 PM, Costaud <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > Can you please tell me how can I have all radio buttons set to "yes"
> > or "no"?
>
> > Thanks.
>
> --
> Isaak Malik
> Web Developer


[jQuery] Re: OT : javascript editor (with code formatting)

2008-10-07 Thread Michael Geary
I do most of my editing in Komodo. I use the commercial Komodo IDE which
includes integrated debuggers for Python, Ruby, PHP, and JavaScript and a
great regular expression tester, but the free Komodo Edit is very nice too.
Among other things, it has syntax checking for all these languages while you
edit. Any syntax error gets a squiggly red underline, which makes it really
easy to chase down those errors.
 
Since its editor component is Scintilla, Komodo also supports indentation
guides - vertical lines at each level of indentation to help visually
connect the indented code. It also supports proportional fonts, which I've
gotten to really enjoy for coding. I can see more of my code at once, and
it's easier to read too. 
 
I also use PSPad for a couple of features that Komodo lacks: a nice
sort-and-remove-duplicate-lines function and an HTML/XML reformatter. It
also supports very large files better than Komodo. You can open the same
file in PSPad and Komodo and they each sync with any changes you make in the
other.
 
http://www.activestate.com/Products/komodo_edit/
http://www.activestate.com/Products/komodo_ide/
http://www.pspad.com/
 
-Mike



  _  

From: Alexandre Plennevaux
Sent: Tuesday, October 07, 2008 8:14 AM
To: Jquery-en
Subject: [jQuery] OT : javascript editor (with code formatting)


Friends,

aptana studio, albeit a nice editor, is recently crashing all the time and
now doesn't even want to restart. I'm looking for a good alternative, that
has a code formatting (auto indenting) functionality. 

Any suggestion ? I'm on Windows XP SP3...

Thank you,


Alexandre




[jQuery] Using .fadeOut() then .html("")

2008-10-07 Thread hubbs

I have some text that is in a div that I would like to fade out, then
I want to clear the HTML of that div.  But, it seems that the fadeOut
doesn't get run before the HTML gets cleared:

setTimeout(function() {
$("#ajaxResult").fadeOut("slow").html("");
},
5000);

Did I do something wrong here?


[jQuery] Re: How can I change all radio buttons to "yes" and "no"?

2008-10-07 Thread Isaak Malik
Do you understand the purpose of radio buttons? You probably need checkboxes
instead and you can check them all by using the below code:

$(function(){
$('input[type=checkbox]').checked = true;
});

On Tue, Oct 7, 2008 at 7:36 PM, Costaud <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> Can you please tell me how can I have all radio buttons set to "yes"
> or "no"?
>
> Thanks.
>



-- 
Isaak Malik
Web Developer


[jQuery] Re: Un-minify?

2008-10-07 Thread jeremyBass

That looks cool... funny thing is everything is truning into a fine
tuned system... I'm loving it lol... thanks for the help... Any one
else?  I think yours Eric seems the best solution so far... :-)

On Oct 7, 9:02 am, Eric <[EMAIL PROTECTED]> wrote:
> I'll throw in a plug for Git (http://git-scm.com/).  Easily
> installed on Linux, Windows and OS X 10.5, it can be a great safety
> net that takes literally 10 seconds to set up for a new project (once
> the program is on your comp).
>
> Nothing puts a smile on my face like erasing a huge chunk of spaghetti
> code, knowing I've got a safe backup in Git should I need it.  :-D
>
> On Oct 6, 11:24 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
>
>
> > Oh I have the source at my office... but yu know late night ideas...
> > anyways thanks for the help... I did find a nice 
> > Beautifier...http://elfz.laacz.lv/beautify/
>
> > I was just woundering what anyone else thought was a good one or
> > way... Have a great one
> > jeremyBass
> > On Oct 6, 7:49 pm, MorningZ <[EMAIL PROTECTED]> wrote:
>
> > > Well, depending on what you used to minify, this is going to be a next
> > > to impossible task
>
> > > for instance, many will remove whitespace (not that big a deal) and
> > > rename variables from meaningful to super-space-saving-simple
>
> > > so depending on your options used to pack with totally determine your
> > > ability to revert
>
> > > And maybe take this as a lesson:
>
> > > Source control is your friend!! even for small personal projects
>
> > > On Oct 6, 10:45 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > > Hello, like a dumby in a rush I saved over my non-minfied file... any
> > > > sugestions on a good "un-minifyer"  thanks for the help...
> > > > jeremyBass- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: jQuery Star Rating Plugin Problem

2008-10-07 Thread [EMAIL PROTECTED]

Hi Gareth,

I have a similar problem with the plugin. I've posted about it here :

http://groups.google.com/group/jquery-en/browse_thread/thread/4a12b64ac5139dcc/059e78bffb9a2ba4?lnk=gst&q=star+rating#059e78bffb9a2ba4

When the form that contain the stars is submitted by ajax the hover
class of the stars isn't disapplied whith the mouseout event. Same
problem i think, but it doesn't produce any error in the console for
me...

++
b_b


[jQuery] Re: Disable globals for jQuery.get()?

2008-10-07 Thread Micky Hulse

Just as an update, I ended-up using $.ajax()

// Append hidden field with unique token to form:
$.ajax({url: token, global: false, cache: false, success:
function(txt) {
$emailStory.append('');
}});

Works perfectly. Thanks to all who helped!!!


[jQuery] How can I change all radio buttons to "yes" and "no"?

2008-10-07 Thread Costaud

Hello,

Can you please tell me how can I have all radio buttons set to "yes"
or "no"?

Thanks.


[jQuery] Re: Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-07 Thread Micky Hulse

Thanks for the great feedback ajpiano!

Hehe, I soon noticed that $("#anElementThatIsNotInTheDOM") was not
working how I wanted it to... Your solution works perfectly!

I should be getting jQuery Reference Guide in a few days -- I am
looking forward to learning more about plugins. I think my main
concern is dirtying-up namespaces? Or, referencing dom elements before
I need to... Does something like that eat-up resources and add to
overhead when loading the dom?

Hehe, I can't wait to get that book!

Maybe I should also get jQuery in Action?

Thanks agian Ajpiano

Off topic, kinda: , I thought that was an
interesting approach to PHP/ajax coding... Kinda looks like what I was
talking about in my first post?

Anyway, have an excellent day!
Cheers,
Micky


[jQuery] Re: Questions about Flexigrid

2008-10-07 Thread Brandon

Hi Jens,

Does this not work to reload your table?
$('#tableName').flexReload();

On Aug 19, 4:49 am, Jens Grochtdreis <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> auto-height seems possible. just write:
>
> height: 'auto'
>
> The same seems not possible for width. But ususally you know the width
> of the div the table is placed in, so it shouldn't be a big problem
> with the width.
>
> My biggest problem seems to be mow the reload after deleting an item.
> It doesn't work.
>
> Greetings,
>
> Jens Grochtdreis


[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread rolfsf

craig - I notice that the Location: X and Category: Y content are both
lists/list items. I haven't looked at the script, but I suspect it may
be hiding and counting those - you're problem with both the high count
and the disappearing content is the same problem. It's counting
Category in the "C" count, and the Location in the L count., and then
hiding that content in all but the C and L lists.

rolfsf



On Oct 7, 7:09 am, "craig.kaminsky" <[EMAIL PROTECTED]> wrote:
> Hi, Jack,
>
> I have just tried it out on a site. It works pretty darn well. We've
> noticed two things thus far:
> 1. The "count" for each letter and the total is off. For example, this
> page (http://www.experiencecoloradosprings.com/index.cfm/go/ecs.pages/
> id/86/title/Hotels,%20Lodging,%20Accommodations/memcat/5) has 170
> listings displayed but when you hover over the ALL link, it reads 508.
> The troublesome letters, in this case, appear to be C and L.
> 2. When you click to filter, some of the content disappears (notice
> how there are two entries/lines for Location: X and Category: Y with
> each listing. When you click a letter to filter, those go away but
> reappear when you press "All".
>
> You can see it in action on other pages in this site under the "Stay
> Eat and Play" drop-down (the Dining, Lodging, Activities, Arts,
> Shopping, and Services links all utilize it in their output).
>
> Excellent work on this plugin and thank you!! We're very psyched with
> it and it beats the #$&@ out of what we had before :)!
>
> Best,
> Craig
>
> On Oct 6, 10:41 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
>
> > Hi Ettiene, how'd using it go for you?
>
> > Thanks to everyone else for the initial feedback. I'm interested to hear
> > if anyone has implemented it anywhere. ?
>
> > - Jack
>
> > Ettiene wrote:
> > > Excellent stuff man! I'm already busy using it hehe
>
> > > Ettiene


[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Nabha

Installed the plugin, and it works great! I'm using it just as you
suggested.

For those who find this later, you'll want to "minify" the javascript
file:
http://www.digitaloverload.co.uk/jsmin/

And this is code you can copy and paste (has a fixed typo):

$(document).domready(function() {
$('body').addClass('jsEnabled');
});


[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread Jacques PYRAT

Great !

Could you do the same for definition lists (dl, dt, dd).
It would be great for http://www.pyrat.net/@sigles.html

And does listnav handle EÉÈÊEeéèêë ?

Regards


[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Nabha

Dear Brandon,

Those are both great tips, and make for a perfect combination
together.

I look forward to trying these things out. Thank you for sharing your
knowledge...

Very sincerely,
Nabha


[jQuery] Re: Accordian menu + FadeIn - some weirdness...can someone help me?

2008-10-07 Thread Rob Fletcher
how about if you click the item that is open and you click that item
again...how would you make it close?  And does the contents of the menu have
to be wrapped in  tags?
Rob


On Sun, Oct 5, 2008 at 5:34 PM, Alex <[EMAIL PROTECTED]> wrote:

>
> i have managed to pull this off pretty well, with no apparent
> glitch's
>
> http://www.renderrobot.com/?p=33
>
> as explained to make it load closed just remove the "open" class from
> the html, should do the trick
>
>
> On Sep 12, 8:34 pm, "Rob Fletcher" <[EMAIL PROTECTED]> wrote:
> > Noone knows how to stabilize the animation and make this run better?
> >
> > On Fri, Sep 12, 2008 at 11:42 AM, RFletcher <[EMAIL PROTECTED]
> >wrote:
> >
> > > I am making an accordian menu with 4 main buttons.  All buttons should
> > > be closed at start. When you click 1 button the content area should
> > > slide down and then the content should fade-in.  I have for the most
> > > part written the script to create this effect however i see some
> > > glitches with it.  When you click the next tab i can see the two
> > > buttons at the bottom moving up and down slightly.  Its not a huge
> > > deal, but i would rather them not move at all. I only want the button
> > > i click to move.
> >
> > > Here is my script, please let me know if there is a better way to
> > > write this as many google searches didn't reveal anything good.  I'm
> > > sure someone else has wanted to make an accordian menu (slide and then
> > > fade-in) effect.
> >
> > > $(document).ready(function() {
> > > $("dd").hide();
> > > $("span").hide();
> >
> > > $("dt a").click(function () {
> >
> > > $("span").fadeOut(100);
> >
> > >$("dd:visible").slideUp("slow");
> >
> > >$(this).parent().next().slideDown("slow", function () {
> > >$("span").fadeIn("slow");
> > >});
> > >return false;
> > >});
> > > });
> >
> > > And my HTML code looks like this:
> >
> > > 
> > >
> > >
> > >
> > >
> > >
> > >Loreum Ipsum
> > >Futurum veniam est claritatem lorem lorem. Sequitur legunt
> > > consequat qui Investigationes Investigationes. Ut quam me gothica
> > > dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> > > et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> > > facilisis et nis4
> >
> > >Loreum Ipsum
> > >Zzril legere quam lectorum parum hendrerit. Iriure exerci
> option
> > > euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> > > Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> > > hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> > > nis4
> > >
> > >
> > >
> > >
> > > 
> >
> > > 
> > >
> > >
> > >
> > >
> > >
> > >Loreum Ipsum
> > >Futurum veniam est claritatem lorem lorem. Sequitur legunt
> > > consequat qui Investigationes Investigationes. Ut quam me gothica
> > > dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> > > et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> > > facilisis et nis4
> >
> > >Loreum Ipsum
> > >Zzril legere quam lectorum parum hendrerit. Iriure exerci
> option
> > > euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> > > Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> > > hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> > > nis4
> > >
> > >
> > >
> > >
> > > 
> >
> > > 
> > >
> > >
> > >
> > >
> > >
> > >Loreum Ipsum
> > >Futurum veniam est claritatem lorem lorem. Sequitur legunt
> > > consequat qui Investigationes Investigationes. Ut quam me gothica
> > > dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> > > et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> > > facilisis et nis4
> >
> > >Loreum Ipsum
> > >Zzril legere quam lectorum parum hendrerit. Iriure exerci
> option
> > > euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> > > Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> > > hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> > > nis4
> > >
> > >
> > >
> > >
> > > 
> >
> > > 
> > >
> > >
> > >
> > >
> > >
> > >Loreum Ipsum
> > >Futurum veniam est claritatem lorem lorem. Sequitur legunt
> > > consequat qui Investigationes Investigationes. Ut quam me gothica
> > > dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> > > et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> > > facilisis et nis4
> >
> > >Loreum Ipsum
> > >Zzril legere quam lectorum parum hendrerit. Iriure exerci
> option
> > > euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> > > Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> > > hendrerit et ut e

[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-07 Thread chris thatcher
Sure Rey I actually moved it there a couple days ago, sorry about that.

On Tue, Oct 7, 2008 at 12:20 PM, Rey Bango <[EMAIL PROTECTED]> wrote:

>
> Hi Chris,
>
> Great explanation. Would you mind though moving this over to the Processing
> Google group?
>
> I'm trying to keep things on-topic.
>
> Thanks,
>
> Rey...
>
> chris thatcher wrote:
>
>> Processing.js ( http://github.com/jeresig/processing-js/ ) is written by
>> John Resig and is a port of the Processing language (
>> http://processing.org ) developed at MIT that uses the Html Canvas (
>> http://en.wikipedia.org/wiki/Canvas_(HTML_element))
>>
>> It is a very sexy 2D drawing API that allows developers to create rich
>> visualizations, and via excanvas.js, is supported by all browsers (needs
>> some work based on my experience).
>>
>> I spent a few hours on the train and wrote a 75 line routine to produce
>> Heat Maps on top of Google Maps, it can be used to render beautiful charts,
>> manipulate images, etc, etc.
>> It's a big win for the javascript community and John's skills show clearly
>> in it's simplicity and it's completeness.
>>
>> Thatcher
>>
>> On Sat, Oct 4, 2008 at 9:26 PM, Rick Faircloth <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:
>>
>>
>>Ok...I'll ask...what is "Processing.js" about?
>>
>>Rick
>>
>>chris thatcher wrote:
>>
>>I started using processing.js also, I'll definitely join this
>> group!
>>
>>Thatcher
>>
>>On Sat, Oct 4, 2008 at 7:16 PM, F1LT3R <[EMAIL PROTECTED]
>>
>>>
>>>> wrote:
>>
>>
>>   Hey Joe,
>>
>>   I love using Processing so I am glad you started this group
>>and I will
>>   definitely be subscribing.
>>   You have a question? I have been digging around in the
>>Processing.js
>>   for a while now and am quite familiar with the Java Processing
>>   language, so maybe I could help?
>>
>>   Thanks,
>>
>>   Al
>>
>>
>>
>>   On Sep 24, 1:36 pm, Joe <[EMAIL PROTECTED]
>>
>>   >>> wrote:
>>   > Head here:
>>   >
>>   > http://groups.google.com/group/processingjs
>>   >
>>   > And discuss!  I already have one question and don't want to
>>post it
>>   > here on the jQuery board so I figured I'd go ahead and
>>create the
>>   > group.
>>   >
>>   > Cheers.
>>   >
>>   > Joe
>>
>>
>>
>>
>>--Christopher Thatcher
>>
>>
>>
>>
>>
>> --
>> Christopher Thatcher
>>
>


-- 
Christopher Thatcher


[jQuery] Re: Processing.js Google Group Now Formed!

2008-10-07 Thread Rey Bango


Hi Chris,

Great explanation. Would you mind though moving this over to the 
Processing Google group?


I'm trying to keep things on-topic.

Thanks,

Rey...

chris thatcher wrote:
Processing.js ( http://github.com/jeresig/processing-js/ ) is written by 
John Resig and is a port of the Processing language ( 
http://processing.org ) developed at MIT that uses the Html Canvas ( 
http://en.wikipedia.org/wiki/Canvas_(HTML_element) )


It is a very sexy 2D drawing API that allows developers to create rich 
visualizations, and via excanvas.js, is supported by all browsers (needs 
some work based on my experience).


I spent a few hours on the train and wrote a 75 line routine to produce 
Heat Maps on top of Google Maps, it can be used to render beautiful 
charts, manipulate images, etc, etc. 

It's a big win for the javascript community and John's skills show 
clearly in it's simplicity and it's completeness.


Thatcher

On Sat, Oct 4, 2008 at 9:26 PM, Rick Faircloth <[EMAIL PROTECTED] 
> wrote:



Ok...I'll ask...what is "Processing.js" about?

Rick

chris thatcher wrote:

I started using processing.js also, I'll definitely join this group!

Thatcher

On Sat, Oct 4, 2008 at 7:16 PM, F1LT3R <[EMAIL PROTECTED]

>> wrote:


   Hey Joe,

   I love using Processing so I am glad you started this group
and I will
   definitely be subscribing.
   You have a question? I have been digging around in the
Processing.js
   for a while now and am quite familiar with the Java Processing
   language, so maybe I could help?

   Thanks,

   Al



   On Sep 24, 1:36 pm, Joe <[EMAIL PROTECTED]

   >> wrote:
   > Head here:
   >
   > http://groups.google.com/group/processingjs
   >
   > And discuss!  I already have one question and don't want to
post it
   > here on the jQuery board so I figured I'd go ahead and
create the
   > group.
   >
   > Cheers.
   >
   > Joe




-- 
Christopher Thatcher






--
Christopher Thatcher


[jQuery] Re: argument list

2008-10-07 Thread [EMAIL PROTECTED]

Thanks - exactly what I was looking for.

On Oct 3, 9:19 pm, Dave Methvin <[EMAIL PROTECTED]> wrote:
> >         function nextPage(clicker) {
> >                 $(clicker).click(function () {...
>
> Inside the click handler, the "this" variable is the DOM element that
> was clicked. Try alert(this.id) and you'll see what I mean.


[jQuery] Re: Un-minify?

2008-10-07 Thread Eric

I'll throw in a plug for Git ( http://git-scm.com/ ).  Easily
installed on Linux, Windows and OS X 10.5, it can be a great safety
net that takes literally 10 seconds to set up for a new project (once
the program is on your comp).

Nothing puts a smile on my face like erasing a huge chunk of spaghetti
code, knowing I've got a safe backup in Git should I need it.  :-D



On Oct 6, 11:24 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
> Oh I have the source at my office... but yu know late night ideas...
> anyways thanks for the help... I did find a nice 
> Beautifier...http://elfz.laacz.lv/beautify/
>
> I was just woundering what anyone else thought was a good one or
> way... Have a great one
> jeremyBass
> On Oct 6, 7:49 pm, MorningZ <[EMAIL PROTECTED]> wrote:
>
> > Well, depending on what you used to minify, this is going to be a next
> > to impossible task
>
> > for instance, many will remove whitespace (not that big a deal) and
> > rename variables from meaningful to super-space-saving-simple
>
> > so depending on your options used to pack with totally determine your
> > ability to revert
>
> > And maybe take this as a lesson:
>
> > Source control is your friend!! even for small personal projects
>
> > On Oct 6, 10:45 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > Hello, like a dumby in a rush I saved over my non-minfied file... any
> > > sugestions on a good "un-minifyer"  thanks for the help...
> > > jeremyBass- Hide quoted text -
>
> > - Show quoted text -


[jQuery] Re: Intercept "Back" button click on browser

2008-10-07 Thread Leanan

All right...

I've found a solution to the problem, though it is not the solution I
had hoped for.

I basically had to do a $.getscript and generate script that had a $
(selector).history() for each link.  Not ideal, but it works.  I
do wonder though if I was doing something wrong in my calls to make it
so that

$('a.stuff').history(function() {
  console.info(this);
)};

was returning this as Window index.html instead of the object for the
link.  Is this a bug or just user error?

On Oct 7, 9:59 am, Leanan <[EMAIL PROTECTED]> wrote:
> I forgot to note that when I do a console.info(this) inside that
> function, I get the following in firebug:
>
> Window index.html


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Jörn Zaefferer
Try jsbin.com for a testpage: http://jsbin.com/

Jörn

On Tue, Oct 7, 2008 at 4:20 PM, Coryt <[EMAIL PROTECTED]> wrote:
>
> Unfortunately I don't have a place to put up a test page.
> Here is the html template:
>
>  
>
>   
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Show 100 More Results.
>Show All Results.
>
>
> alt="loading" src="orange_loading.gif" /> Loading...
>
>
>
>
> Thanks for all your help.
>
>
>
> On Oct 7, 9:49 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
>> Ah, my mistake. I saw all the template.find() calls and didn't pay close
>> enough attention.
>>
>> OK, now it's clear that the problem is all the DOM manipulation inside the
>> loop. (The performance of $.each() itself is the least of  your worries.)
>> You can easily speed this up by a factor of 10 or more by building up an
>> HTML string instead of DOM manipulation.
>>
>> Can you share the content of your #TemplateRowLineItem and #TemplateRowMore
>> elements? If I can see those I can suggest something more specific.
>>
>> Actually, it would help a LOT if you could put up a complete test page, that
>> way I don't have to play 20 questions... ;-)
>>
>> -Mike
>>
>>
>>
>> > From: Coryt
>> > Actually the data is being returned as json.
>> > sample data:...
>> > > From: Michael Geary
>> > > Is there any possibility that you can get JSON data instead
>> > > of XML? It will be *much* faster.- Hide quoted text -
>>
>> - Show quoted text -
>


[jQuery] Re: Valid jQuery on Development fails on Production

2008-10-07 Thread rich

Sorry, I saw those...  That was just a copy paste error.  The tags are
all closed.

On Oct 6, 6:38 pm, Ryura <[EMAIL PROTECTED]> wrote:
> You have some unclosed tags (the last tr and td). Try closing those.
>
> On Oct 6, 6:06 pm, rich <[EMAIL PROTECTED]> wrote:
>
> > I am writing a fairly basic script using jQuery. However, the script
> > behaves differently depending on whether I am running it on my local
> > Web server (localhost) or on a production server.
>
> > On development, the following code returns the HTML I'm expecting:
>
> > $('#objID').siblings('.mAddress').html();
>
> > On production, the same statement returns undefined.
>
> > The document structures are the same on both machines. The only
> > difference I can find is when I use Firebug to step through the
> > script. On the development machine, putting a watch on $
> > ('#objID').siblings('.mAddress') results in [ span#object ] while on
> > production the same watch results in [ [ span#object ] ]
> > (Notice the double sets of square brackets).
>
> > I've verified that the two libraries are identical.
>
> > I've done some more experimenting using Firebug. Another part of the
> > script grabs a set of elements using the statement:
> > $('.ParentColumn2').each(function(i) { ... })
>
> > Within the body of that function, if I set a watch on this, on
> > development the value of this is what I expect: div.ParentColumn2 ,
> > but on production the value of this returns what looks like an array:
> > [ div.ParentColumn2, div.ParentColumn2, div.ParentColumn2, .]
>
> > The HTML involved looks like (I've stripped out all but the most
> > important parts.. and the rows repeat):
>
> > 
> >  
> >   
> >     
> >       
> >          > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lbl_Address"
> > class="lbl_Address mAddress">111 W Wacker Dr,  > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lbl_City"
> > class="lbl_Address mCity">Chicago  > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lbl_PostalCode"
> > class="lbl_Address mPostalCode">60601  > href="javascript:MapMe(this);"
> > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_hypMap"
> > class="hypMap">Map   > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lbl_Area"
> > class="mArea">Loop > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lt"
> > class="mLt">41.8868010285473 > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lg"
> > class="mLg">-87.6312860701286
> >         
> >       
> >     
> >   
> >  
> >  
> >   
> >     
> >       
> >          > id="dnn_ctr45874_ViewProjectGrid_GridView1_ctl02_lbl_Address"
> > class="lbl_Address mAddress">
> >         
> >       
> >     
> > 
>
> > Any ideas?


[jQuery] OT : javascript editor (with code formatting)

2008-10-07 Thread Alexandre Plennevaux
Friends,

aptana studio, albeit a nice editor, is recently crashing all the time and
now doesn't even want to restart. I'm looking for a good alternative, that
has a code formatting (auto indenting) functionality.

Any suggestion ? I'm on Windows XP SP3...

Thank you,


Alexandre


[jQuery] Re: ocupload incompatible with ui.tabs

2008-10-07 Thread MarcelloP

My bad! You're right. Bac Copy & Paste.
But that is not an issue. The broblem is still here!


[jQuery] Re: ocupload incompatible with ui.tabs

2008-10-07 Thread MorningZ

$("#subtab-upload").tabs();  ??

Should be wired to the  tag:

$("#subtab-upload > ul").tabs();



On Oct 7, 10:14 am, MarcelloP <[EMAIL PROTECTED]> wrote:
> Hi, I have a very big problem using your great plugin with the ui.tabs
> plugin.
> If the element (a link) passed to the ocupload is in a tab not
> currently visible, then when I show that tab, the link initialized by
> you plugin is invisible; with Firebug I see that the div that wrap the
> link has height: 0 in the style attribute, 'cause the  element
> itself, when the container tab was hidden, has that zero height.
> To explain better here a test case:
>
> 
> $(document).ready(function() {
> $("#subtab-upload").tabs();
>
> $("#uploadLink1").upload({
> action: '/UploadHandler.ashx',
> onSubmit: function() {
> $('#uploadlog').text('Uploading file...');},
>
> onComplete: function(data) {
> $("#uploadlog").text(data);
>
> }
> });
>
> $("#uploadLink2").upload({
> action: '/UploadHandler.ashx',
> onSubmit: function() {
> $('#uploadlog').text('Uploading file...');},
>
> onComplete: function(data) {
> $("#uploadlog").text(data);
>
> }
> });
> });
>
> 
> 
> 
> Test 1
> Test 2
> 
> 
> 
> 
> This is the first tab!
> Click to upload:
> Upload... a>
> 
> 
> 
> 
> This is Tab 2
> Click to upload:
> Upload... a>
> 
> 
> 
>
> In this test case, you'll see that the link in the first visible tab
> work correctly, but when I activate the 2nd tab, the link within is
> not visible!!!
> Note: I use the latest stable version of ui.tabs (v1.5.2); the problem
> occurs both in Firefox 3.x and IE7.
>
> Best regards, hope to have news soon (I need your plugin for a
> production-ready project...).
>
> MarcelloP


[jQuery] ocupload incompatible with ui.tabs

2008-10-07 Thread MarcelloP

Hi, I have a very big problem using your great plugin with the ui.tabs
plugin.
If the element (a link) passed to the ocupload is in a tab not
currently visible, then when I show that tab, the link initialized by
you plugin is invisible; with Firebug I see that the div that wrap the
link has height: 0 in the style attribute, 'cause the  element
itself, when the container tab was hidden, has that zero height.
To explain better here a test case:


$(document).ready(function() {
$("#subtab-upload").tabs();

$("#uploadLink1").upload({
action: '/UploadHandler.ashx',
onSubmit: function() {
$('#uploadlog').text('Uploading file...');
},
onComplete: function(data) {
$("#uploadlog").text(data);
}
});

$("#uploadLink2").upload({
action: '/UploadHandler.ashx',
onSubmit: function() {
$('#uploadlog').text('Uploading file...');
},
onComplete: function(data) {
$("#uploadlog").text(data);
}
});

});



Test 1
Test 2




This is the first tab!
Click to upload:
Upload...




This is Tab 2
Click to upload:
Upload...




In this test case, you'll see that the link in the first visible tab
work correctly, but when I activate the 2nd tab, the link within is
not visible!!!
Note: I use the latest stable version of ui.tabs (v1.5.2); the problem
occurs both in Firefox 3.x and IE7.

Best regards, hope to have news soon (I need your plugin for a
production-ready project...).

MarcelloP


[jQuery] Re: Opacity in IE

2008-10-07 Thread Greg G

And the answer is:
Because I had a line in the animation
color: "#White" which IE choked on but Firefox had no problem with.



On Oct 6, 2:12 pm, Greg G <[EMAIL PROTECTED]> wrote:
> I have some animation I'm working on that works fine in Firefox but
> not in IE.  I have two issues:
>
> Part of the animation is fading out an element.  I want to integrate
> this with the animate function and not use the fade out option.  I've
> tried using filter : "alpha(opacity..." but that didn't help.
>
> The callback function, which essentialy resets the animation behind
> the scene, doesn't work.
>
> I figure a URL would be better than me putting in code.  Plus, I can't
> remember if I need to wrap my code in order to post it.
>
> http://www.silverchild.com/menuwidget/blowup.html
>
> Thank you in advance for everyones help.


[jQuery] Re: Poor Performing jQuery .each()

2008-10-07 Thread Coryt

Unfortunately I don't have a place to put up a test page.
Here is the html template:

 

   















Show 100 More Results.
Show All Results.


 Loading...




Thanks for all your help.



On Oct 7, 9:49 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> Ah, my mistake. I saw all the template.find() calls and didn't pay close
> enough attention.
>
> OK, now it's clear that the problem is all the DOM manipulation inside the
> loop. (The performance of $.each() itself is the least of  your worries.)
> You can easily speed this up by a factor of 10 or more by building up an
> HTML string instead of DOM manipulation.
>
> Can you share the content of your #TemplateRowLineItem and #TemplateRowMore
> elements? If I can see those I can suggest something more specific.
>
> Actually, it would help a LOT if you could put up a complete test page, that
> way I don't have to play 20 questions... ;-)
>
> -Mike
>
>
>
> > From: Coryt
> > Actually the data is being returned as json.
> > sample data:...
> > > From: Michael Geary
> > > Is there any possibility that you can get JSON data instead
> > > of XML? It will be *much* faster.- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: random image and content loading

2008-10-07 Thread janus76


Excellent. 
This might just be what I've been looking for.
I'll let you know if I can get it working.

Many thanks

Janus


Rene Veerman-2 wrote:
> 
> 
> if i get it correctly, in the xhtml "content" there's an IMG tag with 
> the image that needs to be pre-loaded. There's a plugin that can do this 
> for you;
> 
> http://flesler.blogspot.com/2008/01/jquerypreload.html
> http://demos.flesler.com/jquery/preload/
> 
>   
> 

-- 
View this message in context: 
http://www.nabble.com/random-image-and-content-loading-tp19842346s27240p19859125.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: ANNOUNCE: jQuery listnav plugin

2008-10-07 Thread craig.kaminsky

Hi, Jack,

I have just tried it out on a site. It works pretty darn well. We've
noticed two things thus far:
1. The "count" for each letter and the total is off. For example, this
page (http://www.experiencecoloradosprings.com/index.cfm/go/ecs.pages/
id/86/title/Hotels,%20Lodging,%20Accommodations/memcat/5) has 170
listings displayed but when you hover over the ALL link, it reads 508.
The troublesome letters, in this case, appear to be C and L.
2. When you click to filter, some of the content disappears (notice
how there are two entries/lines for Location: X and Category: Y with
each listing. When you click a letter to filter, those go away but
reappear when you press "All".

You can see it in action on other pages in this site under the "Stay
Eat and Play" drop-down (the Dining, Lodging, Activities, Arts,
Shopping, and Services links all utilize it in their output).

Excellent work on this plugin and thank you!! We're very psyched with
it and it beats the #$&@ out of what we had before :)!

Best,
Craig


On Oct 6, 10:41 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
> Hi Ettiene, how'd using it go for you?
>
> Thanks to everyone else for the initial feedback. I'm interested to hear
> if anyone has implemented it anywhere. ?
>
> - Jack
>
> Ettiene wrote:
> > Excellent stuff man! I'm already busy using it hehe
>
> > Ettiene


[jQuery] Re: How to uninstall the

2008-10-07 Thread Kynn Jones
Thanks for your suggestion!  (And sorry for the botched subject line!)
Kynn


On Tue, Oct 7, 2008 at 8:03 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:

>
> add a global variable somewhere that your onready callback checks? if true:
> execute, if false:dont.
> then manipulate that global var instead of the callback itself?
>
>
> Kynn Jones wrote:
>
>> I have a jQuery-based script that performs some updates on the current
>> page (using the load method), and eventually visits a second page, by
>> resetting window.location.
>>
>> This works fine, but if the user hits the back button, the whole sequence
>> is repeated, including the re-loading of the second page.
>>
>> I'd like to prevent this behavior.  Is it possible?
>>
>> I tried removing the script with $( 'script[src*=/path/to/script]'
>> ).remove(), but this did not prevent the whole sequence from running again.
>>
>> Then I thought that the reason for this was that using remove() does not
>> get rid of the callback that was originally installed at the very end of the
>> script with jQuery( MyScript.sleep ).  So I tried to uninstall the callback
>> with $( 'document' ).unbind( 'ready', ... ), but this didn't do anything
>> either.
>>
>> How can uninstall the onready callback?  If this is not possible, is there
>> some other way that I can block the sequence from running a second time when
>> the user the BACK button?
>>
>> The script has the following form:
>>
>> var MyScript = ( function ( $ ) {
>>  var SELF_URL = location.pathname + location.search;
>>
>>  var $$; $$ = {
>>check: function () {
>>  if ( $$.results_ready() ) {
>>$( 'script[src*=/path/to/script]' ).remove();
>>$( 'document' ).unbind( 'ready', $$.sleep );  // is this right???
>>window.location = SELF_URL + '&results=1';
>>  }
>>  else {
>>$$.sleep();
>>  }
>>},
>>
>>sleep: function () {
>>  setTimeout( $$.refresh, 2000 );
>>},
>>
>>refresh: function () {
>>  $( 'body' ).load( SELF_URL, $$.check );
>>},
>>
>>results_ready: function () {
>>  // etc., etc.
>>}
>>  };
>>
>>  return $$;
>> } )( jQuery );
>>
>> jQuery( MyScript.sleep );
>>
>>
>>
>> Thanks in advance!
>>
>> Kynn
>>
>>
>>
>


[jQuery] Some examples don't work on Firefox 3.0.3 on the Mac

2008-10-07 Thread Forrie

Has anyone else noticed some of the examples (like drag/resize) do not
work on Firefox 3.0.3 on Mac OS X 10.5.5?


[jQuery] Re: Intercept "Back" button click on browser

2008-10-07 Thread Leanan

I forgot to note that when I do a console.info(this) inside that
function, I get the following in firebug:

Window index.html



[jQuery] Re: Intercept "Back" button click on browser

2008-10-07 Thread Leanan

In that situation, 'this' does not appear to be a reference to the
link we've clicked, and when I use firebug and do some console output,
this is what I get:

this.id = undef
/\d/.exec(this.id) is null

I had actually tried something along those lines before, changing my
click handler on the links I wanted added to the history to $
(selector).history.  I can't figure out what I need to query in order
to get at the clicked link's info.

On Oct 7, 9:37 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Nevertheless you are using the plugin in a way it isn't supposed to be
> used, this is what I wanted to point out and this is where the double
> loading comes from. One from the click handler itself and a second
> time because that click event is triggered again by the plugin.
> Besides if you're not using remote() or history() it will not work in
> IE (doesn't work in Safari 3 anyway as it stands).
>
> What is wrong with the following much less redundant code using the
> history() method:
>
> $('a.testing').history(function() {
>     var i = /\d/.exec(this.id)[0];
>     $.get('chapter-' + i + '.html', function(data) {
>         $('#div1').hide();
>         $('#div2').append(data).show();
>     });
>
> });
>
> --Klaus
>
> On 7 Okt., 14:26, Leanan <[EMAIL PROTECTED]> wrote:
>
> > Not having a test for Chap3 was a typo.  That last if should be
> > adjusted accordingly.
>
> > Klaus-
>
> > I don't want to use .remote, because I only want to make the ajax call
> > once.  If the content we expect to be there isn't there, then I want
> > to load it.  If, however, we've already loaded it, I just want to re-
> > show the div that contains it, not hit the server again (the data I'm
> > getting is large and takes some time to generate.  As the content is
> > not something likely to change in a few minutes, the solution I've
> > come up with is sufficient in that regard).  I already have this
> > functionality working flawlessly.  All I really need to do is that
> > when the back button is hit, div#2 gets hidden and div#1 is shown,
> > and, if someone hits forward from that point, then div#1 is hidden and
> > div#2 is shown.  This is working, too, except for what appears to be a
> > double call to $.get.
>
> > When I do something similar to the demo, the links with the #something
> > get added.  I don't want to log every single link that gets clicked
> > (they expand tables, adjust which divs get shown, etc).  This is why I
> > just have the call to initialize, to add the ability to swap the
> > visibility of the divs when they go back to the base url.
>
> > I don't understand though why it is appearing to call my $.get twice.
> > Is it because when the link with the # is clicked and put in the
> > history the plugin is executing the $.get as well?  This seems odd,
> > since I have neither any $.history or $.remote calls in my script.  I
> > would change my .click to a .history, except that I have a table of
> > links that could be selected, and I need to know which link was
> > clicked, because I need to grab info from the link for the resulting
> > call.
>
> > There must be a way to do this?
>
> > On Oct 7, 2:36 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > History/Remote is not supposed to work that way. Although the hash is
> > > changing correctly it will not work in IE for example. You need to
> > > explicitly tell the history manager which links add to history. Just
> > > have a look at the demo. For pure Ajax loading links that is the
> > > remote method. In your case
>
> > > $('a.testing').remote('#div2', function() {
> > >     //callback
>
> > > });
>
> > > $.ajaxHistory.initialize();
>
> > > The show/hide of div1/div2 looks to me like a workaround you don't
> > > need but I'm not sure.
>
> > > --Klaus
>
> > > On 6 Okt., 22:52, Leanan <[EMAIL PROTECTED]> wrote:
>
> > > > Klaus,
>
> > > > I've created a demo that exhibits this behavior.  I modified your demo
> > > > that is included with the script 
> > > > athttp://www.stilbuero.de/jquery/history/
>
> > > > All you should have to do is change your index.html to be the
> > > > following:
>
> > > > 
> > > >   
> > > >       
> > > >       
> > > >       
> > > >       jQuery history/remote - solution for hijaxing links > > > title>
> > > >        > > > script>
> > > >