[jQuery] Re: $.trim(string) or string.trim()

2009-04-02 Thread MorningZ
will jQuery add it in the future that doesn't really make sense, as it's a String object thing, not really a jQuery object thing and it's super easy to add with one single line String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }; bam var s = i am string with

[jQuery] Re: more than 1 $.getJSON in click event

2009-04-02 Thread András Csányi
2009/4/2 James james.gp@gmail.com: Hi James! The code looks fine. Have you tried using the Firebug plug-in for Firefox to debug the AJAX calls? It can help you see whether the call was made, the request data sent, the response data, errors, etc. I'm using Firebug. The call is working

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
Thank you kindly. I'll be implementing that this evening :) On Thu, Apr 2, 2009 at 11:33 AM, mkmanning michaell...@gmail.com wrote: For the phone, you can just do a regex: var p = '99'; p.replace(/(\d{3})(\d{3})(\d{4})/, ($1) $2-$3) On Apr 2, 11:18 am, Charlie Griefer

[jQuery] Re: Wiring using jQuery vs. a static string in onClick

2009-04-02 Thread James
Performance wise, there should not really be any performance issues - if you do it right. A good reason to use jQuery for this is to separate coding from markup, and also your data (RN, Location A, 1 Shift, etc.) from your coding. Also, like you said, it'll keep the page's filesize small. If your

[jQuery] Cycle plugin and paging

2009-04-02 Thread Mean Mike
Hello all I am trying to work with the cycle plugin and I'm having a bit of a problem (what's new?) here is the scenario . I have multiple groups of images that I want to cycle but I don't want to target them by id I would rather target them by class however I also would like to use paging. so I

[jQuery] Re: Need a jQuery 'equal height columns' script

2009-04-02 Thread sammahoney
Here's how my example looks without any script, just so you can see. I need to go from this - http://jsbin.com/eguze - to this - http://jsbin.com/ofehi On Apr 2, 7:11 pm, sammahoney samom...@gmail.com wrote: Thanks for the reply, but unfortunately neither of them are what I need - I've already

[jQuery] multiple dynamic jcarousel instances

2009-04-02 Thread amuhlou
Hello, I'm working with the jCarousel plugin and would like to have multiple carousels on one page, each dynamically pulling the scrolling items from an array. I am wondering what sort of modifications I would need to make to the jcarousel_functions.php file and page xhtml to accommodate 2+

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Adam
Thanks Michael! Works well. -Adam On Apr 2, 12:04 pm, mkmanning michaell...@gmail.com wrote: http://plugins.jquery.com/project/currencyFormat On Apr 2, 9:58 am, Adam adambu...@gmail.com wrote: I am trying to manipulate a simple value (text node) which is a home price from 123456789 to

[jQuery] Re: Cycle plugin and paging

2009-04-02 Thread Mean Mike
Well I figured it out [code] $(document).ready(function(){ $('.rotator').each(function(){ $(this).after('div class=rotatorcontrol/div'); $(this).cycle({ fx: 'turnDown',

[jQuery] Re: listnav plugin

2009-04-02 Thread Jack Killpatrick
The other day if I looked at the rendered HTML using Firebug, the span that you were using was not being displayed (it was hidden on the page), but I just looked again and that's not happening now. I ran it through a validator and got a message that the id home is used more than once (once in

[jQuery] layer DIVs and slide

2009-04-02 Thread Todd
is it possible to have layer DIVs and slide? I am trying to have an div to slide in and out with the mouseover and mouseleave. I have that working but I want the image to slide in behind the top div. I tried the z-index but when the bottom div slides in the top drops below the div sliding in.

[jQuery] Re: Need a jQuery 'equal height columns' script

2009-04-02 Thread Jack Killpatrick
Ah, I see. Sorry, I hadn't looked at the jsbin link. I don't know of a plugin to do something like that, but if your outer container's height is specified you could use jquery's .outerHeight({margin:true}) to get the height of the DOM nodes above the last one, then subtract that from the

[jQuery] Excluding some children in a selector

2009-04-02 Thread Thierry
I have the following structure for tr: tr id=world td/td td/td td input type=button name=hello value=hello / /td /tr I also have the following javascript: $(#world tr).click(function() { // do stuffs }); Is there a way to prevent the above event from triggering when the

[jQuery] [validate] Possible bug (IE 7) when setting error messages after remote validation

2009-04-02 Thread pbarnes
Jörn, I'm using your jQuery Validation plugin for an ASP.NET site. Because ASP.NET dynamically generates unfriendly form element names (e.g., ctl00$ContentPlaceHolderBody$uxPhoneNumber) I have been replacing the name attribute when the page loads with something more friendly (e.g., phoneNumber)

[jQuery] Re: Need a jQuery 'equal height columns' script

2009-04-02 Thread sammahoney
Well, I found the original, so here it is - http://v3.thewatchmakerproject.com/journal/354/equalising-box-baselines-with-javascript Anyone know of anything similar for jQuery?

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Ravish Bhagdev
Thanks Jack, But I'm looking for a tree that is collapsible. I'm reading jquery documentation to see how difficult it will be to implement something that keeps index of all nodes in when searching hides matching id of node by getting hold of the element. Sounds a bit tricky though :( Ravish

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Ravish Bhagdev
Wow!! Look at this: http://www.extjs.com/explorer/#filtertree This is exactly what I was looking for. Is there anything similar built with jquery (my preferred js lib) Ravish On Thu, Apr 2, 2009 at 9:30 PM, Ravish Bhagdev ravish.bhag...@gmail.comwrote: Thanks Jack, But I'm looking for

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Eric Garside
$('button', $('#world tr').click(function(){ // Do stuff for #world tr onclick })).click(function(e){ e.stopImmediatePropagation(); return true; }); On Apr 2, 4:14 pm, Thierry lamthie...@gmail.com wrote: I have the following structure for tr: tr id=world    td/td    

[jQuery] Re: Too much recusion/Out of Memory

2009-04-02 Thread Ricardo
Sometimes when I flush my toilet the water takes longer to actually come down, I wonder if any of you guys know what could be the problem? j/k :) Do you have any code you are allowed to share? Start stripping the JS to the point where you only have the code necessary to cause the error, then

[jQuery] Re: How to specify a delay with bind?

2009-04-02 Thread Ricardo
There's a plugin called hoverIntent that deals with this exact issue: http://cherne.net/brian/resources/jquery.hoverIntent.html - ricardo On Apr 2, 9:59 am, wjp waynep...@gmail.com wrote: Hi, I have something like: $('#myDiv').bind(mouseleave,function() {     $('#myDiv).slideUp(450); })

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Jack Killpatrick
The treetable plugin (below) is collapsible. You may hit a snag trying to find something that will open up the found node, though. I'm pretty sure that the quicksearch plugin will just pay attention to table elements, regardless of their visibility, but it would not open the parent(s) up the

[jQuery] need help: how to pass variable to attr in select statement

2009-04-02 Thread mylok
code like below: var selectid = Querystring.get(id); $('div#mainnav .mainnav[alt=selectid?]').addClass(color); I want to select element which attr alt = selectid(variable from querystring). How can I do that? Thanks.

[jQuery] async treeview input types

2009-04-02 Thread jkozer
I am relatively new to jquery and have a question about the treeview control by Jörn Zaefferer. I have done some searching about input types for this control and have only been able to find the source.php input using json. I am wondering if this control is open to XML or unordered list inputs or

[jQuery] IE 6 and prepend()

2009-04-02 Thread bluejohn
Hi, I IE6 doesn't prepend the html I specify below but firefox works fine. The css() works fine. script type=text/javascript $(document).ready(function(){ $('.listProdImage').prepend('div class=sitm/div'); $('img.imageBorder').css({'border':'1px solid #3A91CE'});

[jQuery] [validate] errorClass not set until after invalidHandler is called

2009-04-02 Thread CrabMan
This makes it very difficult to determine which element is causing the error and execute code in response. For instance, the following does not work, because there is no way to determin which input caused the error because the errorClass has not been set yet when invalidHandler is called:

[jQuery] Implementing Uploadify in a CakePHP project

2009-04-02 Thread Robert McWay
I am trying to implement the Uploadify jQuery plugin...but am having trouble calling the upload script specified in the script parameter...This is due to the fact that i am using CakePHP, and the Pretty URLs are breaking it. After some research through this forum, i came across a post where

[jQuery] jQuery Drop Shadows - IE7 Error

2009-04-02 Thread Forrest
I am using the jquery drop shadows plugin. It works fine in Firefox, but does not show up in IE7, instead it generates error 12949. Would appreciate some help on this. Thanks.

[jQuery] LiveQuery / Facebox / IE problem

2009-04-02 Thread Benjamin
Hi. I am trying to make a form inside a facebox, that submits to an ajax page (signin.php) and then recieves the result in the facebox. It works perfectly in FF and safari, but of course not in IE6.. It seems like the form doesnt submit at all, and i have a really hard time figuring out what is

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-04-02 Thread ale
Hi, I relative new to JQuery but I have some code that works fine in Firefox, IE and Opera, but seem to be having a problem with Chrome and Safari. Here is part of the code: $(form#quiz_form_1).submit(function(){ alert(This is testing); $.post(question_result.asp,{

[jQuery] IE 6 and prepend()

2009-04-02 Thread bluejohn
hi, ie6 doesn't desplay the div specified in prepend() but Firefox does. The .css() works fine. script type=text/javascript $(document).ready(function(){ $('.listProdImage').prepend('div class=sitm/div'); $('img.imageBorder').css({'border':'1px solid

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Thierry L
The behaviour is the same as before, are there any other suggestions? I have a partial solution where I add a class to each of the td except for the one containing the input and run the selector on that class. It runs as expected but nothing happens when just the table cell is pressed around the

[jQuery] Re: Using Append to Copy Table Row - Would like to Create Unique Ids

2009-04-02 Thread Ricardo
function addTableRow(table) { var $tr = $(table).find('tr:last').clone(); $tr.find('input').attr('id', function(){ var parts = this.id.match(/(\D+)(\d+)$/); return parts[1] + ++parts[2]; }); $(table).append($tr); return true; }; cheers, - ricardo On

[jQuery] [Validate] errorClass not set until after invalidHandler is called

2009-04-02 Thread CrabMan
This makes it very difficult to determine which element is causing the error and execute code in response. For instance, the following does not work, because there is no way to determine which input caused the error because the errorClass has not been set yet when invalidHandler is called:

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Ravish Bhagdev
Yes, it is collapsible but it dosen't have the filter or search capability like the filtertree (http://www.extjs.com/explorer/#filtertree) So not quite as useful. Ravish On Thu, Apr 2, 2009 at 9:49 PM, Jack Killpatrick j...@ihwy.com wrote: The treetable plugin (below) is collapsible. You may

[jQuery] Re: Too much recusion/Out of Memory

2009-04-02 Thread Matt Critchlow
I know what you're saying, unfortunately i can't share the code right now.. I'll try and see if i can get it down to a small enough subset that i could pass something along. I figured i would just put the issue out there to see if anything obvious clicked for anyone. Not surprising that it

[jQuery] Re: Getting all children, not just immediate children??

2009-04-02 Thread Ricardo
I guess div.togglecontainer is not the actual parent of 'this' but a higher ancestor? Try $(this).parents('div.togglecontainer:first').find ('div.toggletarget').slideToggle(); On Apr 1, 6:21 pm, Brian Gallagher sinkingf...@gmail.com wrote: Don't know how the space got there, but not in my

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Mauricio (Maujor) Samy Silva
$(#world tr).click(function() { // do stuffs }); Is there a way to prevent the above event from triggering when the hello button is clicked? $(#world tr).click(function() { $('input[name=hello]').attr('disabled',

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Jack Killpatrick
Right, I was thinking maybe treetable combined with the quicksearch plugin... ie: the quicksearch plugin would search the treetable, but the side-effect is that it will show found rows, not correctly expand the tree. (so not good). So yeah, the search continues. I haven't seen a jquery plugin

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-04-02 Thread John Resig
You should remove the @ from your selectors, they're invalid. --John On Thu, Apr 2, 2009 at 12:10 PM, ale alejandr...@gmail.com wrote: Hi, I relative new to JQuery but I have some code that works fine in Firefox, IE and Opera, but seem to be having a problem with Chrome and Safari.

[jQuery] Re: IE 6 and prepend()

2009-04-02 Thread James
What is your specific check to know that it's not prepending it? Since I don't know any styles that may be associated with the 'sitm' class and the context that the div is being prepended to, it's very difficult to help. Try using: $('.listProdImage').prepend('div class=sitmTEST/div'); to see if

[jQuery] Re: Too much recusion/Out of Memory

2009-04-02 Thread Matt Critchlow
Using the dev version of jquery i got the following for the recursion issues: too much recursion [Break on this error] if ( selector.nodeType ) { jquery-1.3.2.js (line 41) too much recursion [Break on this error] return new jQuery.fn.init( selector, context ); jquery-1.3.2.js (line 26) too much

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Richard D. Worth
On Thu, Apr 2, 2009 at 4:14 PM, Thierry lamthie...@gmail.com wrote: I have the following structure for tr: tr id=world td/td td/td td input type=button name=hello value=hello / /td /tr I also have the following javascript: $(#world tr).click(function() { // do stuffs

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Tin
Ravish, I've added a collapse/expand example to SlickGrid. Check it out at http://slickgrid.googlecode.com/svn/trunk/example5-collapsing.html On Apr 2, 2:31 pm, Jack Killpatrick j...@ihwy.com wrote: Right, I was thinking maybe treetable combined with the quicksearch plugin... ie: the

[jQuery] Select Last li

2009-04-02 Thread Panman
Sounds simple but I cannot get it to work. Here is the structure. ul class=list lia href=#Abc/a/li lia href=#Abc/a ul lia href=#Abc/a/li lia href=#Abc/a/li lia href=#123/a/li /ul /li lia href=#Abc/a/li lia href=#Abc/a/li /ul I want to get the last a in the

[jQuery] Problem with jQuery form pluging redirecting

2009-04-02 Thread David
I use the form plugin $(document).ready(function() { var options = { target:'#divShow', beforeSubmit: showRequest, success: showResponse }; $('#myForm').ajaxForm(options); }); This works, but in the form php file, I'm trying a redirection but

[jQuery] Announcing a new journal for front-end developers

2009-04-02 Thread Martin Streicher
2 April 2009 My name is Martin Streicher. I am pleased to announce three new publications dedicated to web developers. Red: The Journal of Ruby Development Facade: The Journal of Front-end Development Tabula: The Journal of Open Source Database Development The three publications obviously

[jQuery] Re: multiple dynamic jcarousel instances

2009-04-02 Thread Jason
Here is an example on how to have multiple jCarousels on one page. Summary: you need to name each jCarousel with a different ID. http://sorgalla.com/projects/jcarousel/examples/static_multiple.html On Apr 2, 12:22 pm, amuhlou amysch...@gmail.com wrote: Hello, I'm working with

[jQuery] FadeIn/Out mulitple images in one container

2009-04-02 Thread stinkysGTI
There's a pretty simple image replacement I'm trying to do, but can't get the current image to fadeOut, and the new one to fadeIn. There's only 3 images to choose from and always will be. With those 2 lines commented out, it works, just obviously without any kind of fade. I'm fairly new to

[jQuery] Re: Select Last li

2009-04-02 Thread Mauricio (Maujor) Samy Silva
I want to get the last a in the _sub_ list. Here is what I've tried with no success. Ideas? $('.list li li:last a').addClass('last-li'); $('.list li ul li:last a').addClass('last-li'); $('.list li:has(ul) li:last a').addClass('last-li'); -

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Ravish Bhagdev
Looks good michael! Couple of minor observations: - Filter only works on root nodes, - Is case sensitive (simple toLower on both vars used in indexof should fix it, so no biggie) I really like the % graph and slider thingy :-) Cheers, R On Thu, Apr 2, 2009 at 11:38 PM, Tin

[jQuery] Re: A Tree which can be filtered or searched....

2009-04-02 Thread Tin
Actually, the filter works on all nodes, and if the parent (or any ancestors) are filtered out, none of the descendants will show up either. As for the case sensitivity... well, it's an example. Your implementation of the filter function can be better :) On Apr 2, 4:34 pm, Ravish Bhagdev

[jQuery] Re: Announcing a new journal for front-end developers

2009-04-02 Thread Rick Faircloth
Sounds interesting, Martin. I'd love to see some sample articles when available. Thanks, Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Martin Streicher Sent: Thursday, April 02, 2009 1:06 PM To: jQuery (English) Subject:

[jQuery] Re: FadeIn/Out mulitple images in one container

2009-04-02 Thread James
You need to place your content inside the callback function for fadeOut. The callback is executed after the content is faded out. $(document).ready(function() { $(#lakeview-gallery a).click(function(event) { $(#lakeview-placeholder).fadeOut(800, function() { // this

[jQuery] Validation plugin (Remove the label messages)

2009-04-02 Thread Victorr
I've started to use the validation plugin for form validation. But I don't want it to show the label error messages. I just want to change the inputs background and border color. I don't know how to disable the label messages so if someone could help me with that, that would be super.

[jQuery] Re: SUPERFISH - Possible to Animate LI's within UL?

2009-04-02 Thread Martin Evans
Actually, never mind - I figured it out. for example, the onShow function: onShow: function(){ // make it bounce obj = this.find(li); // assigns the li children to obj obj.animate({height: 23px}, 200); // applies animation to li this.animate({marginTop: 15px}, 200); // applies

[jQuery] Re: need help: how to pass variable to attr in select statement

2009-04-02 Thread MorningZ
don't over complicate things, the selection is a simple string, treat it like any other string concatenation done in JavaScript $(div#mainnav .mainnav[alt=' + selectid + ']) thats $ ( double-quote div# alt = single-quote double-quote + selectid + double-quote single- quote ] double-quote

[jQuery] All div content showing up in jQuery Tabs

2009-04-02 Thread expresso
For some reason, when my first div loads, I'm seeing all 3 text show up even though they're in different div containers: script type=text/javascript $(document).ready(function() { $('#Tabs div:Form1Content').show(); $('#Tabs').tabs({ fx: { opacity: 'toggle'} }); });

[jQuery] Re: errorClass not set until after invalidHandler is called

2009-04-02 Thread Mac
Hi The validator plugin contains errorList and errorMap properties. The erorrList contains the invalid elements and the respective messages and the errorMap contains the invalid element id and it's associated error message. Perhaps checking these will assist with determining the invalid element.

[jQuery] How to cancel events

2009-04-02 Thread iceangel89
How can i cancel a change event? i have validated text boxes on change. so if its not validated i want to cancel the change. how can i do that?

[jQuery] Re: How to cancel events

2009-04-02 Thread RobG
On Apr 3, 1:37 pm, iceangel89 iceange...@gmail.com wrote: How can i cancel a change event? i have validated text boxes on change. so if its not validated i want to cancel the change. how can i do that? If you validate based on the change event, then the change event has already occurred -

[jQuery] How to block control + plus/minus key?

2009-04-02 Thread Filipe
hey folks, how can i block control + plus/minus key on the whole page? i've tried a few scripts but none of them seem to work. thanks in advance! filipe.

[jQuery] Re: autocomplete and google toolbar autofill conflict

2009-04-02 Thread jaciones
There is some good information about disabling auto-fill here http://www.google.com/support/forum/p/Toolbar/thread?tid=7dcddc95f43dac19hl=en http://www.google.com/support/forum/p/Toolbar/thread?tid=7dcddc95f43dac19hl=en But the quick and dirty explanation is that the google toolbar looks for

[jQuery] Re: help with type rendering via FaceLift (FLIR)?

2009-04-02 Thread chuck.wagner...@gmail.com
answer posted here: http://www.nabble.com/help-with-type-rendering-via-FaceLift-(FLIR)--td22398849s27240.html#a22858781 On Mar 8, 10:59�am, feragnoli feragn...@gmail.com wrote: hello, I have a question about using jquery with facelift. I am pulling text from an input box in a form to be

[jQuery] jQuery and Ruby on Rails

2009-04-02 Thread bigPHIL18
Hello all, I have been reading a lot and can not find what I am looking for. I have a Rails project, and have written a script to get the class of a ul. I want to pass this variable gathered from the script and pass it on to Rails. How would i got about doing this? For your information: I wrote

[jQuery] script tag in HTML

2009-04-02 Thread michael.marri...@ausawd.com
How can I refer to multiple sources of javascript in my HTML. For example if in my HTML I already have a line such as : script language=JavaScript src=IPMS%20Library_files/frameset.js type=text/jscript /script Then I want to put in script language=JavaScript src=H:\IPMS\Library Project

[jQuery] jQuery introduction script (Alert Message is now showing!)

2009-04-02 Thread yrstruly
Hallo Im new to jQuery. I have donwloaded the jquery-1.3.2min file and i have copied that introduction code from the website and saved it in the same directory as the jquery file. When i run the script it seems to be working and when i click on the link it goes to the website, but isnt this

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-02 Thread thedad...@gmail.com
maybe this tutorial can help you . http://15daysofjquery.com/jquery-online-movie-tutorial-by-john-resig/29/ On 4月3日, 上午10时24分, expresso dschin...@gmail.com wrote: For some reason, when my first div loads, I'm seeing all 3 text show up even though they're in different div containers:

[jQuery] Re: jQuery introduction script (Alert Message is now showing!)

2009-04-02 Thread Mohd.Tareq
On Fri, Apr 3, 2009 at 5:52 AM, yrstruly anthony.apol...@gmail.com wrote: Hallo Im new to jQuery. I have donwloaded the jquery-1.3.2min file and i have copied that introduction code from the website and saved it in the same directory as the jquery file. When i run the script it seems to be

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-02 Thread expresso
Thanks. And this is what really gets to me about the docs. Nowhere in the docs does it say you need to add code to show the first default tab and div. In fact the docs show you an example with example code of tabs working without it. So then why should we assume we have to write all this

[jQuery] How to get sliders to open and close

2009-04-02 Thread commarts
JQuery, How to make it when one slider opens the other one closes. http://sucro.se/red7e/BE/ Daniel

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-02 Thread expresso
It's still hard for me to believe I have to manually hide the rest by default just to get my tabs working out of the box. expresso wrote: Thanks. And this is what really gets to me about the docs. Nowhere in the docs does it say you need to add code to show the first default tab and

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-02 Thread expresso
I mean really if you take the straight code out of the example and try to run this, it doesn't even work! So how are we to even use the docs? Under the Example here: http://docs.jquery.com/UI/Tabs#events that code works there but when I try this in my own page, I get the same issues.

[jQuery] Re: All div content showing up in jQuery Tabs

2009-04-02 Thread expresso
I mean really if you take the straight code out of the example and try to run this, it doesn't even work! So how are we to even use the docs? Under the Example here: http://docs.jquery.com/UI/Tabs#events that code works there but when I try this in my own page, I get the same issues.

<    1   2