[jQuery] Tweaking Autocomplete

2007-10-11 Thread Majid
Hi all, I use Autocomplete plugin (1.0 Alpha) mostly for form inputs bound to foreign key columns. For instance I have a user_position table with two columns: user_id and position_id. On new appointment form I have two autocomplete text inputs with the following code: input type=text

[jQuery] creating facebook ajax popups?

2007-10-11 Thread PaulM
Hi, Have you seen how facebook nicely lets users edit their account by using those clever popups and after you perform the functionality you close the small window and go on with your browsing. How can someone achieve this with jquery? Thanks

[jQuery] Re: creating facebook ajax popups?

2007-10-11 Thread R. Rajesh Jeba Anbiah
On Oct 11, 11:26 am, PaulM [EMAIL PROTECTED] wrote: Have you seen how facebook nicely lets users edit their account by using those clever popups and after you perform the functionality you close the small window and go on with your browsing. How can someone achieve this with jquery? I

[jQuery] Re: Site Submission, finally!! :-)

2007-10-11 Thread Michael E. Carluen
Hey Rick, My client, http://jingleads.com (also a jQuery powered site), has been seeing a trend of a growing number of sites requesting 3 to 5 second landing page musical jingles and audio signature snippets. I'm sure music on sites work, it just depends on what people are trying to sell or

[jQuery] Re: n2Menu

2007-10-11 Thread R. Rajesh Jeba Anbiah
On Oct 11, 2:51 am, GrandNagel [EMAIL PROTECTED] wrote: I'm trying to make the n2menu hide all expanded submenus when you mouse out of the menu. Does anyone have any experience with this menu? snip Can you post your HTML markup? -- ?php echo 'Just another PHP saint'; ? Email:

[jQuery] iframe bug document.defaultView.getComputedStyle(elem,null)

2007-10-11 Thread Skilip
Hi, I found a bug with jQuery version 1.2. It concerns the following error generated by Firebug in Firefox when a iframe is present in a page. document.defaultView.getComputedStyle(elem, null) has no properties I solved it by replacing the following code with the code pasted underneath. old:

[jQuery] Re: I would like to return xhtml character entities

2007-10-11 Thread George
I've not tried this but what if you use .text($codetext) instead of append($codetext) ? (Or is this not what you want?!) George

[jQuery] How to iterate and manipulate an object

2007-10-11 Thread Pops
Is this the only way to iterate through an object? for ( x in myObject) { } and how can you remove an field in an object? For example: var obj = { x1: 1123, x2: 212, x3: 123131 }; I want to remove obj.x2 the obj object to end up with: { x1: 1123, x3:

[jQuery] Re: value of a

2007-10-11 Thread Sharique
@Juan $(a).html() is always returning text of first a, here tata @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way: $(a).click( function( ) { alert($(this).text());

[jQuery] Re: value of a

2007-10-11 Thread David Duymelinck
To stop the link from executing. -- David Duymelinck Sharique schreef: @Juan $(a).html() is always returning text of first a, here tata @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way:

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread Wizzud
Sorry about that, I was writing from memory and got the 'what' and the 'when' the wrong way round! Correct format for setTimeout is ... var timeout = setTimeout ( script-to-execute, time-in-milliseconds ); ... so just swap the 2000 and the function around. Apologies. On Oct 11, 1:55 am,

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Wizzud
It's the only sensible way. jQuery provides jQuery.each( obj/arr, function() ) to iterate over arrays/objects, which boils down to using the for...in construct. To remove properties from an object ... eg. delete obj.x2; On Oct 11, 8:57 am, Pops [EMAIL PROTECTED] wrote: Is this the only way to

[jQuery] Re: Detect child number of an element?

2007-10-11 Thread Wizzud
var myRows = $('table#id tr').click(function(){ alert('Row #' + myRows.index(this) + ' clicked'); }); (index is 0-based, ie clicking on the 7th row returns 'Row #6 clicked' in the example above.) On Oct 10, 3:28 pm, RichUncleSkeleton [EMAIL PROTECTED] wrote: Is it possible to detect the

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Wizzud
@Michael Snap! On Oct 11, 9:26 am, Michael Geary [EMAIL PROTECTED] wrote: From: Pops Is this the only way to iterate through an object? for ( x in myObject) { } Ultimately, yes. You can use something like $.each() on an object, but it just runs that same for loop

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Michael Geary
From: Pops Is this the only way to iterate through an object? for ( x in myObject) { } Ultimately, yes. You can use something like $.each() on an object, but it just runs that same for loop internally - see the source code for $.each(). and how can you remove an field in an

[jQuery] Re: ajaxSend one call, many separate events

2007-10-11 Thread Wizzud
ajaxSend is a global event that *every* bound listener will pick up. You're binding listeners to all the elements that you *could* click on to initiate the ajax call, but the ajax call does not know (or care) what was clicked on, it just knows it has something to send. You must have click event

[jQuery] Re: Superfish, swfObject, z-index, and (of course) IE

2007-10-11 Thread Joel Birch
Jon replied to me offlist with a secret link. I thought I would reply with a solution here for completion's sake incase it helps anyone else. Long story short, IE has a thing about great-great-etc-grandparents having z-index set. This should fix the issue for you Jon: #header { z-index: 99; }

[jQuery] Re: Prev / Next - one works, the other doesn't!?

2007-10-11 Thread Wizzud
The problem lies with .parent().parent().parent() attempting to find the TABLE - it doesn't, it finds the table's TBODY. try this instead... //hide the calendar tables, then show first $(#calendar table).hide(); $(#calendar #month-oct).show(); $(#calendar th a).click(function(){ // show

[jQuery] cyclic __proto__ value error, what is it?

2007-10-11 Thread Giovanni Battista Lenoci
Hi, I'm heavily using jquery in a page that loads a lot of things, and sometimes (apparentily without a sense) firebug shows this error: cyclic __proto__ value [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(ca?'':e(parseInt(c/a)))+((c=c%a... On this project I'm using

[jQuery] Re: Site Submission, finally!! :-)

2007-10-11 Thread Rick Faircloth
I've had quite a few clients trying to put music on their homepage, but none of mine would be served well by having music. I have a site that's in development that uses a splash page. Except for a few new announcement titles, it's only for visual effect... music would work there. I think the

[jQuery] Re: Tweaking Autocomplete

2007-10-11 Thread Dan G. Switzer, II
Majid, I use Autocomplete plugin (1.0 Alpha) mostly for form inputs bound to foreign key columns. For instance I have a user_position table with two columns: user_id and position_id. On new appointment form I have two autocomplete text inputs with the following code: input type=text

[jQuery] Re: $ is not a function

2007-10-11 Thread Andy Matthews
One thing that also helps is to put an alert message just inside the document.ready call and comment everything else out. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joel Birch Sent: Wednesday, October 10, 2007 10:29 PM To:

[jQuery] Tweaking Autocomplete

2007-10-11 Thread Majid Fouladpour
Hi all, I use Autocomplete plugin (1.0 Alpha) mostly for form inputs bound to foreign key columns. For instance I have a user_position table with two columns: user_id and position_id. On new appointment form I have two autocomplete text inputs with the following code: input type=text

[jQuery] Can't use jquery_1.2.1.js together with json.js?

2007-10-11 Thread iWorm
Hi, When I include the two js file together using script language=javascript type=text/javascript src=jquery.js/ script script language=javascript type=text/javascript src=json.js/ script I found that I can't use jQuery.get() function to get a web page. The jQuery Ajax doesn't work; If I do not

[jQuery] Jscrollpane and Jquery UI when combined gives error.

2007-10-11 Thread subra
When i combine JScrollPane and Jquery UI tabs , i have a exception thrown saying Exception thrown but not caught. when i see the Problem i found the JQuery versions are different UI Tabs is using 1.2.1 , but JscrollPane is using 1.1.3.1 (incompatibility) . Does Jscrollpane coming out with the

[jQuery] Tooltip plugin with a multiple select [IE problem]

2007-10-11 Thread [EMAIL PROTECTED]
Hi all, i'm tryin to use the tooltip plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ within a multiple select. My code: ### the select # select multiple=multiple name=myselect id=myselect option value=0First option/option option value=1Second option/option

[jQuery] Scoping Issue??

2007-10-11 Thread brassica
hi guys i cant seem to get my head round a problem here. I am sure someone can help. I have included the hotkeys plugin. It all works fine. One adds a hotkey by simply calling the function $.hotkeys.add(key, function); so for example if $.hotkeys.add('1', levelClicked), the function

[jQuery] jQuery object equality

2007-10-11 Thread Adrian Lynch
Am I right in thinking that you can't test for equality of jQuery objects? alert($(#saveForm) == $(#saveForm)); // false alert($(#saveForm) === $(#saveForm)); // false alert($(#saveForm).get(0) == $(#saveForm).get(0)); // true alert($(#saveForm).get(0) === $(#saveForm).get(0)); // true Instead

[jQuery] XPath, select by attribute substring

2007-10-11 Thread Serge
Is it possible to select all elements by part of its attribute? May be there is some simple regular expressions allowed? I don't know full attribute value, only it's part, and want select all elements which has this substring in their attribute.

[jQuery] Re: jQuery object equality

2007-10-11 Thread Andy Matthews
I suppose that maybe you could do a .each() over the jQuery object and test it that way. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: Thursday, October 11, 2007 7:15 AM To: jQuery (English) Subject: [jQuery] jQuery object

[jQuery] Re: Superfish, swfObject, z-index, and (of course) IE

2007-10-11 Thread jon randahl
Working on that atm! On Oct 11, 3:27 am, Joel Birch [EMAIL PROTECTED] wrote: Hi Jon, Thanks for your feedback on the commented CSS file! To help solve your problem though, with so many factors at work we really need a working page that demonstrates the issue you are trying to solve. Is this

[jQuery] Tooltip plugin with a multiple select [IE problem]

2007-10-11 Thread [EMAIL PROTECTED]
Hi all, i'm tryin to use the tooltip plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ within a multiple select. My code: ### the select # select multiple=multiple name=myselect id=myselect option value=0First option/option option value=1Second option/option

[jQuery] Re: Superfish, swfObject, z-index, and (of course) IE

2007-10-11 Thread jon randahl
{Jon hangs his head in shame for not thinking this through!} OMG, I tried setting the parent and the grandparents z-index to bring it over the lower container without going over the nav! It never occurred to me to do the great-grandparent too! Thank you, thank you, thank you Joel! Now back to

[jQuery] Re: value of a

2007-10-11 Thread zizi
without 'return false' href executed after alert On 10/11/07, Sharique [EMAIL PROTECTED] wrote: @ziz alert($(this).text()); works, thanks. Why return false? -- Sharique On Oct 10, 2:30 pm, zizi [EMAIL PROTECTED] wrote: Try this way: $(a).click( function( ) {

[jQuery] Re: ajaxSend one call, many separate events

2007-10-11 Thread Mark
I found a better solution that solves my problemo. You see the whole idea of programming well is doing every thing once. DRY is the principal that describes this. If I were to do it the way you suggested Wizzud, it would mean having $(this).replaceWith('img src=path/to/img.gif'); I used

[jQuery] Re: ajaxSend one call, many separate events

2007-10-11 Thread Mark
ok, after that speech on DRY. I noticed your code said $('.control') lol. Call me stupid. I am going to stick with my solution I posted previously so I can use it for things that don't have a class of control But If I were to implement your solution I would do it like this: (if you had something

[jQuery] Re: ajaxSend one call, many separate events

2007-10-11 Thread Mark
I realize this is possible. But, like the title of this message suggests, I don't to put the logic to replace the image for each event. I will end up with more than 100 events on this page. If I could have the elements being replaced by ajax, first replaced with the wait image automatically when

[jQuery] Re: JavaScript Compressor in Rhino

2007-10-11 Thread Estevão Lucas
Can someone explain me how I can use JavaScript compactor in Rhino like in http://jqueryjs.googlecode.com/svn/trunk/jquery/build/build/ On 10 out, 17:59, Estevão Lucas [EMAIL PROTECTED] wrote: Hi I would like to know how I can use JavaScript Compressor in Rhino like jQuery' snv. Regards

[jQuery] Send an image to the server with $.ajax

2007-10-11 Thread Giovanni Battista Lenoci
Hi, I have a page with a input file, and I'm wondering if it is possible to send the file to server using ajax, without submit. Thank you

[jQuery] Re: n2Menu

2007-10-11 Thread GrandNagel
I spent a little time on it last night and, IMO, inelegantly, heres the beginning of a solution... !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta name=generator

[jQuery] restarting after stop()

2007-10-11 Thread GianCarlo Mingati
Hi all. What's wrong with this? $(function(){ var timing = 5000; var stripWidth; var $strip; $strip = $(#mask p); stripWidth = $strip.width(); containerWidth = $(#mask).width(); var totalTravel = stripWidth+containerWidth; function scrollnews(param){ $strip.animate({left: '-='+

[jQuery] Re: Site Submission, finally!! :-)

2007-10-11 Thread Lee Hinde
As a reformed corporate drone, I can tell you sites that greet you with music are not work safe. Your cube mates are immediately informed you're surfing and not solving the shareholder's problems. I hate 'em. (the noisy sites, not the cube mates :-) ) On 10/11/07, Rick Faircloth [EMAIL

[jQuery] Re: validation plugin: validation of checkboxes fail

2007-10-11 Thread Jörn Zaefferer
Alexander Graef schrieb: Hi, For the multi select: select name=test[] multiple=multiple option value=oneone/option option value=twotwo/option option value=threethree/option option value=fourfour/option option value=fivefive/option /select This allows

[jQuery] Re: jQuery object equality

2007-10-11 Thread Michael Geary
From: Adrian Lynch Am I right in thinking that you can't test for equality of jQuery objects? alert($(#saveForm) == $(#saveForm)); // false alert($(#saveForm) === $(#saveForm)); // false alert($(#saveForm).get(0) == $(#saveForm).get(0)); // true alert($(#saveForm).get(0) ===

[jQuery] Re: Scoping Issue??

2007-10-11 Thread Michael Geary
From: brassica var lastNum = 5; //say for (i = 49; i = (49+lastNum); i++) { $.hotkeys.add(String.fromCharCode(i), function () {levelClicked(i)}); } function levelClicked(i) { alert (i); } now it always alerts as whichever value lastNum was assigned to : ( irrespective of

[jQuery] Re: Manipulating DOM

2007-10-11 Thread Maurice Kroon
Dear Joel, Thanks for your answer. I got it working! It rocks!! Now some css-ing, I'll send you the result when it's done! Thanks!! On 1 okt, 07:21, Joel Birch [EMAIL PROTECTED] wrote: I replied to your initial duplicate post but maybe you are tracking this one instead? Here is my post again:

[jQuery] Stackable rules/filters interface

2007-10-11 Thread JARUZ
Hello: I would like to build a stackable filters/rules interface ( field, operator, value ) like the one that Thunderbird uses to create message filters. I.e. ( ) Match all of the following (x) Match any of the following: [ Drop down list of fields ] [ operator ] [ value ] + - You can

[jQuery] getting index of elements

2007-10-11 Thread ecopantoche
hello all, I'm new to jQuery, and have the following need: 01. I have some divs with the same class, and inside of each, I have two a, from which one will have a class bt and the other no class (this is done via the user interaction) 02. the issue here is that I need to get the index of which

[jQuery] Flash is stealing the click event from jQuery

2007-10-11 Thread pixelwizzard
Hi, I really hope someone can help. I am using sIFR on my site that creates flash text to replace my links. So when I try to add a click event to a link with jQuery it doesn't work because flash is stealing the event. Any idea how to get a click on a link to still execute the jQuery function?

[jQuery] Re: ClueTip: Nice work, Karl!

2007-10-11 Thread RichUncleSkeleton
OK I see it now. But when you post a link to a 'demo' which doesn't actually have a demo (you have to click another link to get to it), can be a little confusing... -- Scott. On Oct 10, 7:23 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Oct 10, 2007, at 10:48 AM, RichUncleSkeleton wrote:

[jQuery] Re: Send an image to the server with $.ajax

2007-10-11 Thread Maggi Trymbill
Hello Giovanni, To be able to send a file via AJAX with jQuery you need a plugin because jQuery doesn't know how to post a file via AJAX. There is one that works quite well, you can see the demo for it here: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ - I think it's not compatible with

[jQuery] Performance degraded in IE6 (as comapred to IE7 and FFox)

2007-10-11 Thread GrandNagel
Are there any known issues or workarounds that affect performance of the n2menu in IE6? IE7 and FFox (using a 0 delay) are almost immediately responsive to mouse movement. IE6 is taking about 4 seconds just to recognize mouse movement.

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread marc0047
Ah! Michael: thanks! Now I know how that works. Wizzud: thanks! It works perfectly! Here's the code for anyone else interested: $('#box1').animate({opacity: 0.1}, 5000); setTimeout(function() { $('#box2').animate({left: '200px'}, 2000); }, 5000 ); I was also wondering if there is a way for

[jQuery] Superfish Dropdown: Aktiv class for 3rd level

2007-10-11 Thread [EMAIL PROTECTED]
hi folks, i have a 3 level nested list for a menu with superfish. No i want to ask if there is a solution to show the 3rd level as an active menu-poinit when the 3rd is choosed. Or the 2nd when i am in the 2nd level. With acitve i mean, it should be oben from the 1st down to the 3rd just right

[jQuery] Re: Flash and jQuery

2007-10-11 Thread rsmolkin
Hi Guys, Did you figure this out? I have a problem with links that were converted using sIFR and then I need to use them to do a show/hide using jQuery and it looks like Flash is stealing my click event, so the click event never gets called by jquery. Is there any way to get Flash to trigger

[jQuery] Re: XPath, select by attribute substring

2007-10-11 Thread Wizzud
Is this what you're after ... http://docs.jquery.com/Selectors/attributeContains#attributevalue ? On Oct 11, 12:00 pm, Serge [EMAIL PROTECTED] wrote: Is it possible to select all elements by part of its attribute? May be there is some simple regular expressions allowed? I don't know full

[jQuery] Re: Flash is stealing the click event from jQuery

2007-10-11 Thread Andy Matthews
Flash should only be able to steal the event while your cursor is inside the plugin area. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pixelwizzard Sent: Thursday, October 11, 2007 10:27 AM To: jQuery (English) Subject: [jQuery] Flash is

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread Wizzud
Every animation can have an 'on completion' callback ... eg. $('#box1') .animate( { opacity: 0.1} // what , 5000 // speed , function(){ // callback $('#box2').animate( {left: '200px' }, 2000); } // end of callback ); // end of animate Just be careful

[jQuery] Re: getting index of elements

2007-10-11 Thread Wizzud
You need to give the class .bt some context other than the whole document ... $('.botoes').each(function(){ alert( $('a', this ).index( $( '.bt', this )[0] ) ); }); On Oct 11, 4:34 pm, ecopantoche [EMAIL PROTECTED] wrote: hello all, I'm new to jQuery, and have the following need:

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread Michael Geary
From: Leandro Vieira Pinho Since jQuery 1.1.4 the code library begins with that: (function(){ ... })(); I would like to kwon, what´s the name of that sintax. I have found some information in Plugins/Authoring in Custom Alias sections. But, I would like to read more about it. But

[jQuery] What´s the name of this sintax

2007-10-11 Thread Leandro Vieira Pinho
Since jQuery 1.1.4 the code library begins with that: (function(){ ... })(); I would like to kwon, what´s the name of that sintax. I have found some information in Plugins/Authoring in Custom Alias sections. But, I would like to read more about it. But what´s the name?

[jQuery] Re: ClueTip: Nice work, Karl!

2007-10-11 Thread Karl Swedberg
On Oct 11, 2007, at 12:05 PM, RichUncleSkeleton wrote: OK I see it now. But when you post a link to a 'demo' which doesn't actually have a demo (you have to click another link to get to it), can be a little confusing... duly noted. I'm going to revamp the demo page as soon as I get a chance.

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread Josh Nathanson
Is that a closure? -- Josh - Original Message - From: Leandro Vieira Pinho [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, October 11, 2007 11:04 AM Subject: [jQuery] What´s the name of this sintax Since jQuery 1.1.4 the code library begins with

[jQuery] Error in IE, works in Firefox

2007-10-11 Thread hydra12
I'm working on a game in my (spare) time. It works in firefox, but not in ie. In my code, I assign a variable: board = $('#board'); board.hide(); This works in the latest firefox. In IE 6 and 7, I get Error: Object doesn't support this property or method Any ideas? Thanks! hydra12

[jQuery] Interface Fisheye Menu Activation Area misplaced

2007-10-11 Thread [EMAIL PROTECTED]
I have a fisheye menu with the following code: div id=fisheye class=fisheye div class=fisheyeContainter a href=#borrower class=fisheyeItemimg src=images/ baseloan_borrower.png width=48 alt=Borrower title=Borrower / span/span/a a href=#property class=fisheyeItemimg src=images/

[jQuery] Re: getting index of elements

2007-10-11 Thread ecopantoche
thank you very much Wizzud! you saved my day and I finally understand the logic arround the index :)

[jQuery] Re: validation plugin: validation of checkboxes fail

2007-10-11 Thread Alexander Graef
://dev.jquery.com/view/trunk/plugins/validate/ Regards Jörn __ NOD32 2586 (20071011) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

[jQuery] Re: XPath, select by attribute substring

2007-10-11 Thread [EMAIL PROTECTED]
yes you should check out the Attibute Filters in the docs: http://docs.jquery.com/Selectors You can do this: $(img[src*='thumb']) which will return all images with thumb somewhere in the src string. Carter On Oct 11, 4:00 am, Serge [EMAIL PROTECTED] wrote: Is it possible to select all

[jQuery] Re: Animating elements at different and sequential times

2007-10-11 Thread marc0047
Ah! Also good to know! I see what you mean about the anonymous functions. I reorganized the script with sequential functions, and it works exactly how I want, thanks! -- function sequence1() { $('#box1').animate({opacity: 0.1}, 5000, sequence2); } function sequence2() {

[jQuery] tablesorter pagination values

2007-10-11 Thread karenclarke
Hello All, Rey Bango suggested I post this question. I am using the tablesorter plugin. On the page there is the ability to click on a row that opens a new page, essentially an edit details page. This page then goes to an update page to handle the input to the db. Once the update is complete, I

[jQuery] Re: Flash and jQuery

2007-10-11 Thread Pyrolupus
Roman, The fact that you can call any JavaScript function from within Flash implies that it is indeed possible. Assuming for the sake of this example that your links are identified with id attributes: (flash)==triggerFromFlash(linkID); function triggerFromFlash(id) { $('#' + id).click();

[jQuery] Re: Superfish, swfObject, z-index, and (of course) IE

2007-10-11 Thread Olivier Percebois-Garve
Hi this seems due the IE z-index bug see http://verens.com/archives/2005/07/15/ie-z-index-bug/ olivier jon randahl wrote: First, let me say thank you to Joel for making the new CSS for Superfish so easy to configure now! All those comments make such the difference! and Second, here's my

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread Leandro Vieira Pinho
Thanks Mike for the explanation. Now it´s more clear to me. Do you know some referente about it? Regards On Oct 11, 3:19 pm, Michael Geary [EMAIL PROTECTED] wrote: From: Leandro Vieira Pinho Since jQuery 1.1.4 the code library begins with that: (function(){ ... })(); I would

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread Michael Geary
From: Leandro Vieira Pinho (function(){ ... })(); I would like to know, what´s the name of that sintax. From: Josh Nathanson Is that a closure? Not exactly. One common use of the anonymous function called in place is to create a closure, but this itself isn't a closure. For

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread Josh Nathanson
Thanks for the great explanation Mike. -- Josh - Original Message - From: Michael Geary [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, October 11, 2007 12:21 PM Subject: [jQuery] Re: What´s the name of this sintax From: Leandro Vieira Pinho (function(){ ...

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Pops
Thanks Mike and Wizzud. Question: What I wanted to use this for was my cache and to truncate old data. I see that using a real array will allow me to use the inherited .length property to set a new size and it will do truncation. But since I am using an associated array, the length property

[jQuery] Re: Tweaking Autocomplete 1.0 Alpha

2007-10-11 Thread Majid
Thanks Jörn, I hope you get to do that eventually, and meanwhile, I thought the wrapper code may be of use to someone out there. So here it is: $(document).ready(function() { $(.ac_input).attr({ disabled: disabled }); $.getScript(http://127.0.0.1/kg/js/jquery.autocomplete.js;, function() {

[jQuery] Possible Firefox issue using jquery.form.js

2007-10-11 Thread John Cole
Hello, I am using jquery.form.js v1.1.2 to submit a form behind the scenes when a link on that form is clicked taking the user away from the form and to another page. The code works as intended in certain browsers and platforms but not in others. It is also possible for the code to be run on

[jQuery] Re: Scoping Issue??

2007-10-11 Thread brassica
Thx a bill mike :) it works and i understand your explanation yes i was aware of the var...i had actually included it in my code just forgot to include it in my sample code...didnt work with var either :) Thanx again On 11 Oct, 17:48, Michael Geary [EMAIL PROTECTED] wrote: From: brassica

[jQuery] jquery 1.2 and rails

2007-10-11 Thread [EMAIL PROTECTED]
So I just tried upgrading from 1.1.4 to 1.2 and everything breaks. I have gotten ajax calls working with the json data type. However anything with the type of script is seen by rails as a html request and it work accept the data as well. I am manually setting the headers, which I have had to do

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Flesler
The for iteration goes from the older ones to newer ones, so if you want to keep newer ones (FIFO): function pruneCache(amt) { for (var i in cache) { if (cache.length = amt) return;//pruned delete cache[i]; cache.length--; } } that asumes you are keeping the length

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread d . wachss
I would be very wary of assuming that the for loop goes Last In First Out. To quote the Mozilla docs (http://developer.mozilla.org/en/docs/ Core_JavaScript_1.5_Reference:Statements:for...in): A for...in loop iterates over the properties of an object in an arbitrary order. It may work correctly

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Pops
Thanks Danny. If associated arrays in javascript is using memory map in the RTE, e.g., C/C++ string list map, then the key is a hash and there is no order to it. Traversal is unpredictable and FIFO (queues), LIFO (stacks) does not apply here. -- HLS On Oct 11, 6:58 pm, [EMAIL PROTECTED]

[jQuery] Re: iframe bug document.defaultView.getComputedStyle(elem,null)

2007-10-11 Thread Karl Rudd
If you go to the jQuery home page, under the Developer Resources heading there is a link to Submit a New Bug Report. You'll need to register. Karl Rudd On 10/11/07, Skilip [EMAIL PROTECTED] wrote: Hi, I found a bug with jQuery version 1.2. It concerns the following error generated by Firebug

[jQuery] Re: TableSorter docs suggestion

2007-10-11 Thread Lee Hinde
Hi; In the meantime, how is the zebra widget supposed to work? :-) On 10/3/07, Christian Bach [EMAIL PROTECTED] wrote: HI Shawn, Yeah your right, will add it to the docs as soon as i have the time. Thanks for the feedback! /christian 2007/10/3, sgrover [EMAIL PROTECTED]: I'm

[jQuery] Re: What´s the name of this sintax

2007-10-11 Thread DaveG
That is an outstanding explanation, thanks! Michael Geary wrote: From: Leandro Vieira Pinho (function(){ ... })(); I would like to know, what´s the name of that sintax. From: Josh Nathanson Is that a closure? Not exactly. One common use of the anonymous function called in place is to

[jQuery] Wondering if a jQuery plugin exists for something like what SquirrelCart has.

2007-10-11 Thread MikeR
http://www.squirrelcart.com/demo2/squirrelcart/ The very top of the page is their navigational menu... with the drop- downs.. almost like a real Menu Bar. Is anybody aware of any sort of jQuery plugin that does this? Thanks!

[jQuery] Re: Superfish Dropdown: Aktiv class for 3rd level

2007-10-11 Thread Joel Birch
I think what you are wanting to do is described here: http://users.tpg.com.au/j_birch/plugins/superfish/all-horizontal-example/ Basically, you can use the pathClass option to tell Superfish what class name you are using to indicate the active menu item, and Superfish will keep the path to that

[jQuery] Re: Tweaking Autocomplete 1.0 Alpha

2007-10-11 Thread Dan G. Switzer, II
Jörn, Majid schrieb: Last word, I know this looks like a tall order, and I do not hope someone will make a complete working mod for me, but rather would very much appreciate helpful advise and directions. I've added your usecase to my autocomplete todo list. Its definitely possible to

[jQuery] Re: Wondering if a jQuery plugin exists for something like what SquirrelCart has.

2007-10-11 Thread Joel Birch
Hi Mike, The Superfish plugin creates menus like this. It also has a few of important features that the Squirrelcart menu does not: - It degrades gracefully when JS is not available, in which case it falls back to a pure CSS dropdown menu ala suckerfish. This means search-engines can index the

[jQuery] Re: Wondering if a jQuery plugin exists for something like what SquirrelCart has.

2007-10-11 Thread MikeR
Wow. Thanks very much for the lightning fast response! I had heard of superfish, never honestly never played with it (or many other jQuery plugins that I'd really like to) since work keeps me pretty busy. Will check out your plugin immediately! Again, thank you! On Oct 11, 8:25 pm, Joel Birch

[jQuery] Table show/hide rows slow in IE

2007-10-11 Thread gvido trepša
Hi, I have a table with 500 rows (7 tds each, and with lots of classes). They are all part of html document. The menu has 10 categories, and clicking on the category is supposed to show only those rows where row's className==menu's categoryName. Now, whether I do that by changing the

[jQuery] Re: I would like to return xhtml character entities

2007-10-11 Thread Rob
That's perfect! Thanks so much On Oct 11, 12:53 am, George [EMAIL PROTECTED] wrote: I've not tried this but what if you use .text($codetext) instead of append($codetext) ? (Or is this not what you want?!) George

[jQuery] Accessing dynamically created divs

2007-10-11 Thread Yasmary Mora
Hello! Got a question that I havn't been able to answer. This is my last resort. :) So, I have a list of dynamically created divs, with a link next to them to show or hide text inside of it. I know how to do it when its only a single box, but I dont know how to do it with a dynamic list. The

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Flesler
You can just test it in every browser you are interested and see what's the result, that is always done when trying to overcome browser incompatibilities, no magic solution for everything when dealing with browsers. On 11 oct, 20:18, Pops [EMAIL PROTECTED] wrote: Thanks Danny. If associated

[jQuery] when Javascript is disabled...

2007-10-11 Thread [EMAIL PROTECTED]
Hi, I found JQuery very easy to use and start to add it to my page, however, it does not work when browser's javascript is disabled, how can we detect if a user turns it off so that we can take care of that in another non script way? Thanks. A.C.

[jQuery] z-index and IE issue (not the select problem, or the z-index stacking context)

2007-10-11 Thread Nick Gerner
I ran into both the select-in-IE6 issue and z-index stacking issue (described very well here: http://www.aplus.co.yu/lab/z-pos/index.php). But now I'm running into another issue with IE that it won't seem to apply the z-index when it's done inside of a hover function. This isn't a problem in

[jQuery] Re: jqModal, Flash, and Timing Event Firing

2007-10-11 Thread abierose
Hi Benjamin, thank you so much for your response to my issues. I ended up not using the jqModal plugin at all and using just the latest version of jQuery (1.2) and adding/modifying your suggestion. Below is the code I implemented to get it to work the way I wanted it to. (If anyone else would

[jQuery] Re: How to iterate and manipulate an object

2007-10-11 Thread Flesler
And indeed, I tested this in FF, worked well... then (surprisingly?) tested it in IE, and it worked oddly. this was the code: var o = { b:1, c:2, d:3 }; delete o.b; o.e = 4; o.b = 2; o.a = 5; for(i in o)alert(i); IE would put o.b back into it's place (1st).. so yes, if

[jQuery] Re: Thickbox $().load error

2007-10-11 Thread Christopher
Ad4m, did you ever find out what was giving you issues? I just added thickbox to a project, and i too am getting this error. Doing a search on google led me here and no where else. Just curious if you or someone else knows how to remedy this issue. On Sep 5, 7:20 am, ad4m [EMAIL PROTECTED]

  1   2   >