[jQuery] Re: toggleClass() help - assigning double class names that look like this: classname classname

2007-11-23 Thread jenni
Hey Wizzud. Thanks for your help - I figured it out. You're right - there was no reason to use the toggleClass function in this case. The addClass and removeClass were the way to go. It totally makes sense now - I'm just adding the active class to whatever existing class I need. This is very

[jQuery] Re: AJAX Security

2007-11-23 Thread Fabien Meghazi
1. Non AJAX User need to select a username, fill in the captcha, and submit the form = no automation possible as need to fill in the captcahe You can validate Captchas via ajax... Exactly, this is where I would like to go ;-) Just include captchas in your api. -- Fabien Meghazi

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Jörn Zaefferer
Karl Swedberg schrieb: Hi Stan, this topic has come up once before at least, and I can definitely understand the confusion. The conciseness of the syntax in this case perhaps leads to unexpected results. I'm not sure what the rationale is, but using a filter function should give you the

[jQuery] Re: AJAX Security

2007-11-23 Thread Jörn Zaefferer
howa schrieb: On 11月22日, 下午7時15分, Fabien Meghazi [EMAIL PROTECTED] wrote: In non AJAX apps, automatic checking can be prevented using Captcha in the registration page. As you could do with an AJAX application, I don't understand what would prevent you to do so. What main difference

[jQuery] Re: superfish bug?

2007-11-23 Thread fr0sty
Hello Joel, Thanks for your reply and your quick fix, everything works like a charm now! :) Regards Arjan

[jQuery] Problem 2 select boxes in same form

2007-11-23 Thread Allan
Newbie alert! I'm using jQuery to handle the show/hide of a div depending on option selected in a select box (based on code posted here previously): $(document).ready(function() { var $idOptionDivs = $([EMAIL PROTECTED]'IDoption']).hide(); var $rnOptionDivs = $([EMAIL

[jQuery] $.post get error in firefox

2007-11-23 Thread leopay
use like this: $.post('/testurl/', { param1: value1 }, function(data) {alert(data)}); In firefox ,when I submit this ajax request,in the firebug it says,Loading...,but no return. in IE it works fine. but if I change the post to get ,it works well,or change {param1:'value1'} to a empty {},it also

[jQuery] JQuery Tabs not loading on first click

2007-11-23 Thread sukhminder
Tabs are not loading on the first click. I have a link which is like: li class=newsa href=javascript:loadTabs('news')Headlines/a/ li when user clicks on this it calls the following function: script function loadTabs(filename) { $('head').append('link type=text/css href='+ webroot +

[jQuery] Re: Again on tablesorter and row hovering

2007-11-23 Thread Francesco Vivoli
Thanks a lot, this works like a charm:) Nevertheless I still need to make the hover css !important in order to have it visible. cheers Francesco -- View this message in context: http://www.nabble.com/Again-on-tablesorter-and-row-hovering-tf4852402s27240.html#a13908178 Sent from the jQuery

[jQuery] Re: AJAX Security

2007-11-23 Thread Jörn Zaefferer
Fabien Meghazi schrieb: 1. Non AJAX User need to select a username, fill in the captcha, and submit the form = no automation possible as need to fill in the captcahe You can validate Captchas via ajax... Exactly, this is where I would like to go ;-) Just include captchas in

[jQuery] Re: JQuery Tabs not loading on first click

2007-11-23 Thread Klaus Hartl
On 23 Nov., 12:39, sukhminder [EMAIL PROTECTED] wrote: Tabs are not loading on the first click. I have a link which is like: li class=newsa href=javascript:loadTabs('news')Headlines/a/ li when user clicks on this it calls the following function: script function loadTabs(filename) {

[jQuery] Re: fadeout a div after a few seconds

2007-11-23 Thread Wizzud
1. I beg to differ: it's your use of my reply that doesn't work 2. You can't fadeOut() text context, you can only fade an element. Therefore if you want to keep the outer div visible, then the inner text needs to wrapped in something (like another div?), and it's that 'something' that you fade

[jQuery] Re: Simple Question: Using Variables in jQuery

2007-11-23 Thread RobG
On Nov 24, 7:46 am, yetanother [EMAIL PROTECTED] wrote: I'm using an id tag (based on my database id) in my html to help direct traffic. On a click I use the following which grabs the variable from the id tag of the link: I presume you meant the id attribute of an A element. var myID =

[jQuery] Re: Simple Question: Using Variables in jQuery

2007-11-23 Thread Glen Lipka
Try $(ul# + myID).load(data.html); Hope this helps, Glen On Nov 23, 2007 1:46 PM, yetanother [EMAIL PROTECTED] wrote: I'm using an id tag (based on my database id) in my html to help direct traffic. On a click I use the following which grabs the variable from the id tag of the link: var

[jQuery] AJAX memory leak

2007-11-23 Thread Eric Teubert
Hi, Had some trouble with leaking memory and finally found out that it is not my fault but jQuerie's. The testscript is quite simple: for (var i=1; i=100; i++) $(#testarea).load(testload.php); The memory grows about 6MB everytime I press F5. I only get the memory back by closing the browser.

[jQuery] Re: toggle hide show function not working (code provided)

2007-11-23 Thread Jay Fallon
That's even better. Thanks! On Nov 23, 1:03 pm, Wizzud [EMAIL PROTECTED] wrote: var bang = $('.bang').hide(); $('a.collapse').click(function(){ var vis = bang.is(':visible'); bang[ vis ? 'hide' : 'show' ](); $(this).text( vis ? '(+)' : '(-)' ); }); On Nov 23, 5:18 pm, mdrisser

[jQuery] Re: Concatenation

2007-11-23 Thread Llaurick
Thanks for the info. I do have Flanagan book and I did look for something, and found concat which was not what I wanted and thought Javascript did not do it. I should have look more and done a query for it on the web. Shame on me. Continue the good work ;) Llaurick On 23 nov, 14:42, Michael

[jQuery] Re: Can the cycle plugin return an index?

2007-11-23 Thread macgregor
Inside my callback function I used this to get the current slide index with my Cycle object: $(myCycler).children().index(this); When I used incoming to find the index, it remained the same until the second click (third image/slide) On Oct 21, 8:17 am, Tobias Parent [EMAIL PROTECTED] wrote:

[jQuery] Re: fadeout a div after a few seconds

2007-11-23 Thread guix69
Thanks for your reply but it doesn't work. I'm using the form plugin with its ajaxForm method so I have these options : var pdoptions = { target: '#pdresult', success: hidediv('pdresult')}; and I bind them to the form with : $('#pdform').ajaxForm(pdoptions); the hidediv function contains

[jQuery] Re: Problem with jQuery's SVN Repository

2007-11-23 Thread Ralph Whitbeck
just use this url http://jqueryjs.googlecode.com/svn/trunk/ On Nov 23, 12:31 pm, Estevão Lucas [EMAIL PROTECTED] wrote: Hi, I would like to download the jQuery's SVN Repository with TortoiseSVN, but when i try to download the project with SVN Repository and put

[jQuery] problems about jquery.validate

2007-11-23 Thread Jacky
Hi there, can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address [EMAIL PROTECTED] exactly validate email address. sorry for my poor english. Best Regards Jacky

[jQuery] Re: Superfish Image menus

2007-11-23 Thread Manuel Barros Reyes
On Nov 23, 2007 3:27 AM, Joel Birch [EMAIL PROTECTED] wrote: On 23/11/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried giving them different IDs and testing the same approach with .nav li #id with no success, the selector doesn't work. Not sure exactly where the problem lies, but

[jQuery] Re: Fade and Center

2007-11-23 Thread jags78
To follow up on what Wizzud said. I just had a similar issue using the cycle plugin for jQuery. I wrote a custom transition called centerFade for it, I figured this out by using an example on this board posted by Mike Alsup. Below is the transition. jQuery.fn.cycle.transitions.centerFade=

[jQuery] Limits in Retrieving JSON with getJSON?

2007-11-23 Thread equalium
I am trying to get data from a database. I call an ASP page to retrieve a JSON recordset: $.getJSON('getRecordset.asp', { my request data } , function(data) {... It works but the JSON object I receive gets cut at a point (if I call the asp directly in the browser I see the whole recordset

[jQuery] Re: Working with cluetip and validate

2007-11-23 Thread Feijó
Great tip!! Thanks, Josh Feijó - Original Message - From: Josh Nathanson To: jquery-en@googlegroups.com Sent: Monday, November 19, 2007 11:01 PM Subject: [jQuery] Re: Working with cluetip and validate You do not have to use inline validate messages. You can use the

[jQuery] Re: Help with jquery.autocomplete and extraParams

2007-11-23 Thread Jörn Zaefferer
Hi Shawn, your feedback is welcome, and you make some good obversavations. The least I can say is: I'm working on it. Actually I've implemented a scrolling result list (both mouse and keyboard navigatable) today and tuned some other stuff (making it thickbox compatible). For a (too) long

[jQuery] Re: toggle hide show function not working (code provided)

2007-11-23 Thread mdrisser
Jay, Your code works great, but adds a couple of extra steps. Its not necessary to empty the html first, if you call .html() with an argument containing what you want to appear there, jQuery will clear the exisiting html for you and then replace it with what you had desired. // Works, but adds

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Stosh
Thanks Karl, I've done this - hopefully I can get some feedback and see if they've already addressed a fix for this and if it is even possible. Pax. On Nov 23, 10:11 am, Karl Swedberg [EMAIL PROTECTED] wrote: On Nov 23, 2007, at 9:39 AM, Stosh wrote: Perhaps I'm foolishly getting ahead of

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Stosh
Jörn, filter() appears to behave the same way that find() does, looping through and stacking the results in order, not by appearance in the DOM. Pax, - Stan On Nov 23, 3:05 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Karl Swedberg schrieb: Hi Stan, this topic has come up once before at

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Stosh
An observation I just noticed... To do the following... $(start).find('div.classOne, div.classTwo'); And have it order properly, with Karl's example it'd actually need to be: $(start).find('*').filter(function() { return this.className.match(/classOne|classTwo/); }) ; I just noticed

[jQuery] Re: Mixing two effects

2007-11-23 Thread Pathos
Hi Karl, thanks. I had viewed that site once before, but not so extensively. But some advanced examples come close, so i will play with that one... The following link shows a bit what effect i want. http://www.commadot.com/jquery/faq.php If you click example one and after a few seconds again

[jQuery] Eval error with Firefox 3

2007-11-23 Thread Jerome Carty
Just a note: On AJAX calls where the data type is script, I get the following error: EvalError: function eval must be called directly, and not by way of a function of another name This error is triggered from line 501 of jquery 1.2.1 uncompressed. By the way, when an error is thrown, the

[jQuery] Else If statements - why isn't this working?

2007-11-23 Thread zarino
This'll probably seem obvious to anyone with more jQuery knowledge than myself... I'm using the below code to show/hide specific divs according to which day it is. However, for some reason it isn't working. I've tried my best to find doumentation on how to write If/Else statements for jQuery but

[jQuery] Re: clueTip: opening one tip closes another tip

2007-11-23 Thread PJ
Phew. I thought it was just me being stupid!! It is a great script and delivers 90% of what we are looking for - but when I sent it off for testing the main feedback was that users want to click on all the icons they can see - not open, then click the closebutton so that they can open another

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Stosh
Thanks Karl. I did something similar in the end adding a new custom selector prefixed with the :, like: jQuery(a).is('.classOne') || jQuery(a).is('.classTwo') However, yours looks like it would execute faster and more efficiently, so I'll probably switch to using that. All aside though, is the

[jQuery] Re: Fade and Center

2007-11-23 Thread Wizzud
Roughly: - get the width, height, top and left of the parent (width(), height() and offset()) - get the width and height of the child - calculate top and left of the child (simple maths) - set the top and left of the child according to the calculated values above (css()) - fade in child

[jQuery] Re: toggleClass() help - assigning double class names that look like this: classname classname

2007-11-23 Thread Wizzud
No problem. btw you can simplify further if you wish... function toggleMode(mediaType) { $.each(['.video', '.music', '.radio'], function(n, v){ $(v)[(mediaType == n+1 ? 'add' : 'remove')+'Class']('active'); }); } On Nov 23, 9:01 am, [EMAIL PROTECTED] wrote: Hey Wizzud. Thanks for

[jQuery] Re: AJAX Security

2007-11-23 Thread howa
On 11月23日, 下午4時06分, Jörn Zaefferer [EMAIL PROTECTED] wrote: howa schrieb: On 11月22日, 下午7時15分, Fabien Meghazi [EMAIL PROTECTED] wrote: In non AJAX apps, automatic checking can be prevented using Captcha in the registration page. As you could do with an AJAX application, I don't

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Wizzud
On Nov 23, 8:05 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: How about this: $(div).filter(.one, .two)? Jörn Nope, sorry. That will (A) filter for '.one', then (B) filter for '.two', returning the results of A appended by the results of B. So... div id='A' class='two'/div div id='B'

[jQuery] Re: Help with jquery.autocomplete and extraParams

2007-11-23 Thread Shawn
Thanks Jorn. I did manage to figure it out, and actually redefined my needs so this trick was required.. :) Your suggestion to use your plugin highlights where I have a problem with the jQuery autocomplete solutions though. I'm only meaning to highlight a problem I perceive here, not to

[jQuery] jCarousel: No width/height set for items.

2007-11-23 Thread sukhminder
I have implemented jCarousel dynamically loading images with AJAX. It runs fine until I click some other link on the page and it shows me the following error: jCarousel: No width/height set for items. This will cause an infinite loop. Aborting... Below is the part of the code what I am using:

[jQuery] Re: Question about comma separated selectors...

2007-11-23 Thread Karl Swedberg
On Nov 23, 2007, at 9:39 AM, Stosh wrote: Perhaps I'm foolishly getting ahead of myself here, but the while loop around 1241 in find() seems to explain why this happens, is there any way of modifying find() so that it searches comma separated selector returning the results in DOM order? Or

[jQuery] Problem with jQuery's SVN Repository

2007-11-23 Thread Estevão Lucas
Hi, I would like to download the jQuery's SVN Repository with TortoiseSVN, but when i try to download the project with SVN Repository and put 'http://jqueryjs.googlecode.com/svn/trunk/ jqueryjs-read-only in URL label, this show: PROPFIND request failed on svn/trunk 403 Forbbiden. Can

[jQuery] Re: Else If statements - why isn't this working?

2007-11-23 Thread Michael Geary
Hi Zarino, You won't find any documentation about jQuery's if/else statements for the same reason that you won't find any documentation on jQuery's assignment statement, arithmetic operators, or Date object. All those things are part of the JavaScript language itself, not part of jQuery. So of

[jQuery] Re: clueTip: opening one tip closes another tip

2007-11-23 Thread Karl Swedberg
On Nov 23, 2007, at 4:43 AM, PJ wrote: Phew. I thought it was just me being stupid!! Nope. that was me being stupid. ;-) It is a great script and delivers 90% of what we are looking for - but when I sent it off for testing the main feedback was that users want to click on all the icons

[jQuery] Re: Eval error with Firefox 3

2007-11-23 Thread Cloudream
ff3 just in beta. jorn is working at mozilla, so don't worry about this... On Nov 23, 4:44 pm, Jerome Carty [EMAIL PROTECTED] wrote: Just a note: On AJAX calls where the data type is script, I get the following error: EvalError: function eval must be called directly, and not by way of a

[jQuery] Inserting at the caret

2007-11-23 Thread Mike Pearce
Hi all, Whats the best way to insert some content at the caret in a text field? Cheers, Mike

[jQuery] Concatenation

2007-11-23 Thread Llaurick
I would like to know if there is a function (or any other way) in JQuery (or a plugin) that would allow to create a concatenation of a collection of String. What I would like is to take a list or array of strings (text) and create something like a comma separated value string with it. Thanks

[jQuery] Re: Working with cluetip and validate

2007-11-23 Thread Feijó
I found that a few minutes after sent my msg to this group :) I have to thank you Karl a lot for that fabulous plugin! Feijó - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Monday, November 19, 2007 3:17 PM Subject: [jQuery] Re: Working with

[jQuery] Re: JQuery and ASP.NET.

2007-11-23 Thread Jeffrey Kretz
There are a quite a number of different workable methods to implementing jquery and ASP.NET. If you are comfortable with writing custom server controls, then here is just one way: 1. For each control that uses jquery, add this to the OnPreRender event:

[jQuery] Re: Concatenation

2007-11-23 Thread Michael Geary
Llaurick, you won't find that in jQuery, but you don't need to, because it's a standard part of JavaScript. Since someone else had a similar question earlier today (tried to find something in jQuery but couldn't - because it's built into JavaScript itself), here's a general tip: If you ask, how

[jQuery] Re: jQuery UI Datepicker v3.0 Released! (Previously named jQuery Calendar)

2007-11-23 Thread GreyCells
+1 to this, particularly as the only way out of an accidental first selection is to close and re-open the datepicker. As an additional sweetener, it would be great if the unset date defaulted to today's date (i.e. if a user selects only a start date, the end date gets set to today and vice

[jQuery] Re: Inserting at the caret

2007-11-23 Thread Alex Brem
Hi Mike, check out my plugin: http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/ The code is an unfinished mess, but you should get the point.. ;) Regards, Alex Mike Pearce wrote: Hi all, Whats the best way to insert some content at the caret in a text field? Cheers,

[jQuery] Simple Question: Using Variables in jQuery

2007-11-23 Thread yetanother
I'm using an id tag (based on my database id) in my html to help direct traffic. On a click I use the following which grabs the variable from the id tag of the link: var myID = $(this).attr(id); I tested that with an alert and it works properly... Now then, if there was an unordered list with