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

2009-04-02 Thread RobG
On Apr 3, 2:05 pm, "Filipe" wrote: > hey folks, > > how can i block control + plus/minus key on the whole page? Why? -- Rob

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

2009-04-02 Thread Klaus Hartl
There's no need for all this ranting. You're simply not meeting the markup requirements to make the tabs work. A tab has to look like: A Tab I m pretty sure the documentation is showing this fact and I don't understand why you took "straight code out of the example" and then changed it to not w

[jQuery] Re: Problems with radio buttons

2009-04-02 Thread echomrg
On Apr 2, 6:37 pm, "Richard D. Worth" wrote: > Change > > @name= > > to > > name= Thanks! Working perfectly now. Marcello

[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. h

[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. h

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

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

[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 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 working and when i

[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 wrote: > For some reason, when my first div loads, I'm seeing all 3 text show up even > though they're in different containers: > > > $(document).rea

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

[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 : Then I want to put in I have tried to change the type to be say type = "text\Myjscript" and then the following;

[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 wrote: > hello, I have a question about using jquery with facelift. > I am pulling text from an input box in a form to be rendered by > facelift.

[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=7dcddc95f43dac19&hl=en http://www.google.com/support/forum/p/Toolbar/thread?tid=7dcddc95f43dac19&hl=en But the quick and dirty explanation is that the google toolbar looks for

[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: How to cancel events

2009-04-02 Thread RobG
On Apr 3, 1:37 pm, iceangel89 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 - you can't cancel it

[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: 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] 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 containers: $(document).ready(function() { $('#Tabs div:Form1Content').show(); $('#Tabs').tabs({ fx: { opacity: 'toggle'} }); }); #Fo

[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] 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); // applie

[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: 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() { // t

[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: [jQue

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

[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 wrote: > > Ravish,

[jQuery] Re: Select Last

2009-04-02 Thread Mauricio (Maujor) Samy Silva
I want to get the last 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] 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,

[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 wrote: > Hello, > > I'm working with thejCarouselplugin and would li

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

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

[jQuery] Select Last

2009-04-02 Thread Panman
Sounds simple but I cannot get it to work. Here is the structure. Abc Abc Abc Abc 123 Abc Abc I want to get the last 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

[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 wrote: > Right, I was thinking maybe treetable combined with the quicksearch > plugin... ie: the quicksearch plugin

[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 wrote: > > I have the following structure for tr: > > > > > > > > > > I also have the following javascript: > > $("#world tr").click(function() { > // do stuffs > }); this selector doesn't seem to match your html, as it reads "all TR

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

[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('TEST'); to see if the word TEST show

[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 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. > > Here is  part of

[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: 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', 'disa

[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 wrote: > Don't know how the space got there, but not in my original. > I just quickl

[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 doesn't

[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 wrote: > The treetable plugin (below) is collapsible. You may hit a snag

[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: $('#s

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

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

[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. $(document).ready(function(){ $('.listProdImage').prepend('
'); $('img.imageBorder').css({'border':'1px solid #3A91CE'}); }); Any sugge

[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",{ quiz

[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] 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 so

[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] 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. $(document).ready(function(){ $('.listProdImage').prepend('
'); $('img.imageBorder').css({'border':'1px solid #3A91CE'}); }); Any suggestions

[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: $('#st

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

[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] 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] 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 wrote: > Hi, > > I have something like: > > $('#myDiv').bind("mouseleave",function() { >     $('#myDiv).slideUp(450); > > }) > > Essen

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

[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 wrote: > I have the following structure for tr: > > >     >     >     >       >     > > > I also

[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 wrote: > Thanks Jack, > > But I'm looking for a tree that is collap

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

[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] [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] Excluding some children in a selector

2009-04-02 Thread Thierry
I have the following structure for 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 hello button is clicked?

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

[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: 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] 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(''); $(this).cycle({ fx: 'turnDown', speed: 'fast',

[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 wrote: > http://plugins.jquery.com/project/currencyFormat > > On Apr 2, 9:58 am, Adam wrote: > > > > > I am trying to manipulate a simple value (text node) which is a home > > price from 123456789 to be 123,456,789. Anyone have a r

[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+ inst

[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 wrote: > Thanks for the reply, but unfortunately neither of them are what I > need - I've already tested both. The

[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: 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 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 wrote: > > nice! :) > >

[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] Re: more than 1 $.getJSON in click event

2009-04-02 Thread András Csányi
2009/4/2 James : 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 fine. I can see the re

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

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

2009-04-02 Thread Matt Critchlow
I should add, sometimes IE gives a stack overflow notice also, but again, not on every load() or history plugin pageload() call. In case this triggers anything in anyone's mind. Thanks. On Apr 2, 11:16 am, Matt Critchlow wrote: > I am making a lot of use of jQuery's load method to replace my mai

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread mkmanning
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 wrote: > nice! :) > um... err... I've actually got a need to take a 10 digit number and convert > it to US phone format (e.g. 99 becomes (99

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

2009-04-02 Thread James
jQuery does have a trim function: http://docs.jquery.com/Utilities/jQuery.trim Although it's not in the syntax of "string".trim(). return jQuery != MooTools; On Apr 1, 5:46 pm, yifang wrote: > mootools support syntax like this "string".trim() > will jquery support such features in the future? >

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

2009-04-02 Thread 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. On Apr 2, 5:27 am, András Csányi wrote: > Hi all! > > I want to do the next: I have one string

[jQuery] Re: Validation one field depends on the value of another field

2009-04-02 Thread James
The infamous jQuery Validate Plug-in gets the job done: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Apr 2, 3:03 am, dremay wrote: > Hello, > > I want to validate a field by using JQuery and it also need to > consider the value of another field during the checking. > > I hav

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
nice! :) um... err... I've actually got a need to take a 10 digit number and convert it to US phone format (e.g. 99 becomes (999) 999-). Any chance of whipping that up? :) I did look at the plugin you just posted, thinking I could tweak it to fit my needs. But it's a bit over my head

[jQuery] Re: Problem using jquery library in php file

2009-04-02 Thread James
Do you have all of the other required files also? Such as the jQuery library and jQuery UI library files, CSS files, etc. It would be helpful if you could provide a link to your page or some kind of demo of it not working. On Apr 2, 3:58 am, jusko wrote: > I have a little problem. I have a websi

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

2009-04-02 Thread Matt Critchlow
I am making a lot of use of jQuery's load method to replace my main content, then firing a callback function to either just bind some events or do an ajax call to load some data into the page(search results for example). I do this in the pageload function for the history plugin to manage everythin

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

2009-04-02 Thread James
Something like (untested): var myTimeout = null; $('#myDiv').bind("mouseleave", function() { myTimeout = window.setTimeout(function() { $("#myDiv").slideUp(450); }, 1000); // <-- 1000ms }); $('#myDiv').bind("mouseenter",function() { window.clearTimeout(myTimeout); }); Whe

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

2009-04-02 Thread Donny Kurnia
Matt wrote: > Hi All, > > I realize this is kind of vague, but I can't link to the site yet > since we're still in development. I'm using the latest jquery, and the > history plugin to dynamically load html into a "main" div section > depending on user action. In Firebug, I sometimes notice 3 "to

[jQuery] Re: window.location get a var and its value

2009-04-02 Thread James
Try a function like this: function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split('&'); for (var i=0; i 1 (http://www.webdeveloper.com/forum/archive/index.php/t-90289.html) On Apr 2, 2:58 am, heohni wrote: > Hi, > >

[jQuery] Re: a better selection method

2009-04-02 Thread brian
Much nicer. Thanks for the tip! On Thu, Apr 2, 2009 at 1:43 PM, mkmanning wrote: > > Actually there's an easier way as long as the links and the items > being hidden/show have a one-to-one relationship. > > $(document).ready(function(){ >  var a = $('ul.selector li a'), div = $('div.youtube').ch

[jQuery] Re: Chrome bug

2009-04-02 Thread James
is not valid, I think. You should try: '' instead. On Apr 1, 11:59 pm, Javier Martinez wrote: > Chrome has errors selecting more than one element where these elements are > not inserted yet. > > Test case (execute this snippet in some page): > > alert($('').find('#from, > #to').length); > > The

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread mkmanning
http://plugins.jquery.com/project/currencyFormat On Apr 2, 9:58 am, Adam wrote: > I am trying to manipulate a simple value (text node) which is a home > price from 123456789 to be 123,456,789. Anyone have a resource? > Thanks! > -Adam

[jQuery] Too much recusion/Out of Memory

2009-04-02 Thread Matt
Hi All, I realize this is kind of vague, but I can't link to the site yet since we're still in development. I'm using the latest jquery, and the history plugin to dynamically load html into a "main" div section depending on user action. In Firebug, I sometimes notice 3 "too much recursion" messag

[jQuery] Re: [Validate] Pass on message on success, and have a "start message"

2009-04-02 Thread Jörn Zaefferer
None of these is trivial to implement, but not impossible either. 3. needs a custom method, look at the existing methods and addMethod for reference: http://docs.jquery.com/Plugins/Validation/Validator/addMethod 2. could be achieved using showErrors, though you'd need to replicate some of the de

[jQuery] Re: a better selection method

2009-04-02 Thread mkmanning
Actually there's an easier way as long as the links and the items being hidden/show have a one-to-one relationship. $(document).ready(function(){ var a = $('ul.selector li a'), div = $('div.youtube').children ('div'); a.click(function(){ $(div.hide().get(a.index(this))).show();

[jQuery] Problem with variable scope

2009-04-02 Thread new_gmap
Hi there, I have a quastion for you. I am developing an application with PHP - JQuery - Google Map. Here is the link: http://www.nothingisclear.net/ndovadoIgnition/index.php/newTrip You can see inside the source page, that I load several js into the div="wrapper" Inside newtrip.js i have a ini

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

2009-04-02 Thread sammahoney
Thanks for the reply, but unfortunately neither of them are what I need - I've already tested both. They both only work if the elements to be equalized are starting on the same row. These two scripts work by basically finding the height of the tallest column, then applying it to the shorter column

[jQuery] Re: Superfish - missing menu items

2009-04-02 Thread mklebel
well, now in IE my submenus wont work :) On Apr 2, 11:59 am, mklebel wrote: > nevermind, apparently I need to link each menu item, otheriwse it > ignores it. hmm > > On Apr 2, 11:49 am, mklebel wrote: > > >http://rhinotechgroup.com/dev/ > > > 2 of my parent menu items display, but not the rest

[jQuery] Re: Superfish - missing menu items

2009-04-02 Thread mklebel
nevermind, apparently I need to link each menu item, otheriwse it ignores it. hmm On Apr 2, 11:49 am, mklebel wrote: > http://rhinotechgroup.com/dev/ > > 2 of my parent menu items display, but not the rest of them. I have > all of my menu items set to display. They also show up when I view > sou

[jQuery] inserting commas into a price value

2009-04-02 Thread Adam
I am trying to manipulate a simple value (text node) which is a home price from 123456789 to be 123,456,789. Anyone have a resource? Thanks! -Adam

[jQuery] Re: Can't get key capture events to work in ie

2009-04-02 Thread mberger
So I changed the code from e.which to e.keyCode based on someone else's entry and it works in Firefox, IE7 and IE8 and Safari. Not sure if this is the best solution, but it is working right now. - Mike On Apr 2, 11:19 am, mberger wrote: > The key capture events (keypress, keyup, keydown) all wor

[jQuery] Superfish - missing menu items

2009-04-02 Thread mklebel
http://rhinotechgroup.com/dev/ 2 of my parent menu items display, but not the rest of them. I have all of my menu items set to display. They also show up when I view source, but the css is hiding them.

  1   2   >