[jQuery] Re: vars in unnamed functions

2007-04-19 Thread Evan
Assuming you mean something like this? $('someElement').click(function() { //now in anonymous function var x = 0; //do a bunch of stuff x = 2; } ); If so, yes, this is valid. On Apr 19, 11:59 am, Ariel Jakobovits [EMAIL PROTECTED] wrote: so is it ok to rely on this behavior in

[jQuery] Re: Ajax .load confusion

2007-04-19 Thread SeViR
This is the jQuery inside code for load function: load: function( url, params, callback, ifModified ) { [...] // Default to a GET request var type = GET; if ( params ) // If it's a function if ( jQuery.isFunction( params ) ) { [...]

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Yoyo
The first piece of code I implemented into was a City field for an application. So once a particular city is entered in the free-form text field, it will show up in the autocomplete the next time a user hits the page. So next time it is not possible to add another city in autocomplete box? I

[jQuery] Re: Desperately Lost in Space with the Tabs Plugin

2007-04-19 Thread Klaus Hartl
Digislick schrieb: Hi again, I believe I understood where you told me to put the CSS - inline in the http://digislick.com/news/events_calendar_example.html page. Is that correct? If so, I have tried it (deleted the CSS out in all the files named by month and inserted the CSS in the events

[jQuery] Re: newb needing a little assistance - Checking if an input value is a Number

2007-04-19 Thread Ⓙⓐⓚⓔ
instead of if (inputAddVal != '') { value = eval(value) + eval(inputAddVal); } try if (inputAddVal.match(/^\d+$/)') { value +=inputAddVal; } regular expression are your friends, get to know them! And you don't need to

[jQuery] Re: Ajax .load confusion

2007-04-19 Thread Francisco José Rives
Also, if you want a GET call using load method you need the params in the URL but in this case you expose the params in the URL (anybody can see your request sniffing the net also using https), and you have a size limit for params data. using GET call:

[jQuery] The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread SeViR
Hi there, recently I presented a seminar of JavaScript programming with jQuery in The University of Murcia (Spain) and the results are very good. http://www.um.es/atica/mncs/forja (sorry in *spanish*) Ours web developers will use jQuery for all new projects and integrating with the main

[jQuery] Re: newb needing a little assistance - Checking if an input value is a Number

2007-04-19 Thread Rob Desbois
Also available is the javascript functions parseInt() and isNaN(): var i = parseInt(userInput); if (isNaN(i)) alert('you must enter a number!'); rob On 4/19/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: instead of if (inputAddVal != '') { value = eval(value) +

[jQuery] Re: newb needing a little assistance - Checking if an input value is a Number

2007-04-19 Thread Ariel Jakobovits
Just FYI, all over the web are recommendations to debug IE with Microsoft Script Editor. In case you don't have it installed and don't have an Office Install CD handy, you can download the Visual Web Developer 2005 Express Edition for free and it will handle debugging. It's weird to use, I

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dmitrii 'Mamut' Dimandt
SeViR wrote: Hi there, recently I presented a seminar of JavaScript programming with jQuery in The University of Murcia (Spain) and the results are very good. http://www.um.es/atica/mncs/forja (sorry in *spanish*) Wow. Thank you for the link to YAV, http://yav.sourceforge.net/ that I

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread SeViR
Dmitrii 'Mamut' Dimandt escribió: SeViR wrote: Wow. Thank you for the link to YAV, http://yav.sourceforge.net/ that I found on the university site. This is amazing! YAV is a fantastic JavaScript Form Validation library with a pair of years of develop. By now, we use this library in join

[jQuery] Re: Remembering settings

2007-04-19 Thread Trekmp
Thanks again for the suggestions. I'm using ASP with a MsSQL database, all of this i can use with no problem. After what you've said I think a server side system would work better this way people will always get the same setting whatever computer they are working on. I just have to figure out

[jQuery] Problem with the fieldselector [EMAIL PROTECTED]

2007-04-19 Thread Creazion
Hi, I need help with the following code. This one alerts 'undefined': var field = 'test'; alert(jQuery([EMAIL PROTECTED]' + field + ']).attr('id')); and this one gives me the correct id: alert(jQuery([EMAIL PROTECTED]'test']).attr('id')); So why the first one doesn't work? Thanks for your

[jQuery] ajax not working with form validation... help please...

2007-04-19 Thread amircx
i got this error on firebug data is not defined submitHandler(form#MyForm1 proccessajax.php)login.php (line 167) valid()jquery.validate.j... (line 511) form()jquery.validate.j... (line 374) (no name)(submit )jquery.validate.j... (line 233) handle(submit )jquery.js (line 1302) [Break on this

[jQuery] Re: Problem with the fieldselector [EMAIL PROTECTED]

2007-04-19 Thread Remy Sharp
Hi - what browser are you testing this in? I gave it a quick test in Firefox 2 and it worked fine. I applied jQuery to this very page and then ran: var f = 'to'; alert(jQuery([EMAIL PROTECTED]' + f + ']).attr('id')); On Apr 19, 11:14 am, Creazion [EMAIL PROTECTED] wrote: Hi, I need help with

[jQuery] Re: Autocomplete plugin

2007-04-19 Thread Dan G. Switzer, II
James, Hi Dan I found your code examples just after posting the last message and then just used your php file as an example to copy from. I added the 31348 towns to the file and it is about 694 KB but seems to run ok. so should be able to stay with that. I just now have to work on the style

[jQuery] Memory problem

2007-04-19 Thread Michael Schwarz [MVP]
Hi, I have a very simple page which will be refreshed from time to time. I build an example which will be called every 1000 msec to redner a html table with a button inside. The button click event is set with the bind method. What I'm doing wrong? Regards, Michael div id=display /div script

[jQuery] XML Problems

2007-04-19 Thread Diego A.
Hi all, I'm having problems using jQuery to manipulate XML documents (response from Ajax queries). I wonder if anyone can tell me what the problem is or where I'm going wrong. I've setup a page with tests here: http://www.fyneworks.com/jquery/jQuery-XML-Problems/ Thanks, Diego A.

[jQuery] Re: Autocomplete plugin

2007-04-19 Thread Dan G. Switzer, II
James, Hi Dan as you can tell I am still a bit new to all this programming thing I have limited the number of results returned to 10 and set the number of char needed before a query is made is set to 2, as I also need users to be able to search by the postcode eg CHATSWOOD WEST NSW 2067 the

[jQuery] Re: Erratic behavior of cookie plugin

2007-04-19 Thread joomlafreak
HI I just added '/' as path and it worked for me. I hope that helps @Klaus Please convey my thanks to Jake for the prompt reply. :) Joomlafreak On Apr 18, 4:06 pm, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: I read the docs long ago, I've had to clean the cookies programmatically several times for

[jQuery] Re: XML Problems

2007-04-19 Thread Jesse Skinner
I'm having problems using jQuery to manipulate XML documents (response from Ajax queries). I wonder if anyone can tell me what the problem is or where I'm going wrong. I've setup a page with tests here: http://www.fyneworks.com/jquery/jQuery-XML-Problems/ For Test #3, your result area ID is

[jQuery] Re: Autocomplete plugin

2007-04-19 Thread Priest, James \(NIH/NIEHS\) [C]
-Original Message- From: James Trix [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 7:31 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Autocomplete plugin Hi Dan as you can tell I am still a bit new to all this programming thing I have limited the number of

[jQuery] Re: XML Problems

2007-04-19 Thread Mike Alsup
Diego, I think the problem is in your tests. Test3 fails because its result div has an id of 'Result2' so it never gets updated. Test5 fails because there is no test element to find: n = $('test', $('divemPassed!/em/div')); Mike I've setup a page with tests here:

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Rey Bango
This is excellent news, Jose. Me alegro tanto que ha decidido utilizar jQuery! :) We look forward to seeing the results of your projects and contributions to the jQuery effort. Thanks again! Rey Bango jQuery Project Team SeViR wrote: Hi there, recently I presented a seminar of

[jQuery] Re: Memory problem

2007-04-19 Thread Rob Desbois
Michael, The example works for me - what's the problem? rob. On 4/19/07, Michael Schwarz [MVP] [EMAIL PROTECTED] wrote: Hi, I have a very simple page which will be refreshed from time to time. I build an example which will be called every 1000 msec to redner a html table with a button

[jQuery] Re: XML Problems

2007-04-19 Thread Diego A.
Thanks for your reply Mike. Jesse replied a couple of minute before your came through... I've fixed that problem, my real question is (if you check again), why test 4 5 fail in IE7 (all test pass in FF as they should now that my typos are gone). On Apr 19, 2:02 pm, Mike Alsup [EMAIL PROTECTED]

[jQuery] Re: Autocomplete plugin

2007-04-19 Thread James Trix
Thanks Guys I will port it to MSSQL tomorrow, Your right about the easy of use if the data is held in SQL as thats what I used in the first place to build the list and then exported it out of the database. I will use your example code once again that you posted a few posts up and will let you know

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dmitrii 'Mamut' Dimandt
Jörn Zaefferer wrote: I'm gonna take a look at that library for some inspiration. And maybe copy some validation methods (called rules at yav). Let me know if you have any specific requests for the jQuery validation plugin. That would be the pre-condition, implies and post-condition. Those

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Jörn, The highlight code you're using code break HTML. Could you detail that? function formatItem(d){ return strong + d[1] + /strong; } If the user would try searching for the word str, your highlight code would try to wrap strong tags

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
Dmitrii 'Mamut' Dimandt schrieb: Jörn Zaefferer wrote: I'm gonna take a look at that library for some inspiration. And maybe copy some validation methods (called rules at yav). Let me know if you have any specific requests for the jQuery validation plugin. That would be the

[jQuery] Re: Form + BlockUI plugin

2007-04-19 Thread Kush Murod
Also note when use xxx.block(form) form submits ok Kush Murod wrote: I am placing a form into blockUI like so $.blockUI(form) and then attaching form plugin like so .ajaxForm(options); Form pluging works perfect as long as it is not used with BlockUI, but as soon as you insert it into

[jQuery] Re: Memory problem

2007-04-19 Thread Michael Schwarz
Sorry, I forgot to mention that I'm using Internet Explorer 6 on Windows XP. With other web browser I don't see any problem. The example above will grow with every re-render. Michael On 4/19/07, Rob Desbois [EMAIL PROTECTED] wrote: Michael, The example works for me - what's the problem?

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dmitrii 'Mamut' Dimandt
Jörn Zaefferer wrote: Dmitrii 'Mamut' Dimandt schrieb: Jörn Zaefferer wrote: I'm gonna take a look at that library for some inspiration. And maybe copy some validation methods (called rules at yav). Let me know if you have any specific requests for the jQuery validation plugin.

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dan G. Switzer, II
Jörn, This would make field2 required only if field1 is blank: rules: { field2: { required: #field1:blank } } But I can't express that either field1 or field2 is required. How would I express that using pre/post-condition and implies? I was thinking about this the other day, and I was

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Dan G. Switzer, II
Jörn, Fully agreed, I'll make that optional. I've got another request for an even more sophicistacted highlighting, seems like a good idea to implement it not only as a boolean option. You could also just define that highlight function as the default option for an onHighlight setting. That way

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dmitrii 'Mamut' Dimandt
I guess what you want is something like: rules[1]='field1|equal||pre-condition'; rules[2]='field2|regexp|^a-zA-Z$|post-condition'; rules[3]='1|implies|2|Enter either field 1 or field 2'; rules[4]='field2|equal||pre-condition'; rules[5]='field1|regexp|^a-zA-Z$|post-condition';

[jQuery] Re: ThickBox question

2007-04-19 Thread Christopher Jordan
Rob, Thanks heaps for sharing! I'll look at this in more detail later today, and holler if I have questions (if that's okay) :o) Chris Rob Desbois wrote: I also got put off jqModal initially, mainly because the TB styling was very nice but jqModal you have to put the effort in to get

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
Dmitrii 'Mamut' Dimandt schrieb: Jörn Zaefferer wrote: Dmitrii 'Mamut' Dimandt schrieb: Jörn Zaefferer wrote: I'm gonna take a look at that library for some inspiration. And maybe copy some validation methods (called rules at yav). Let me know if you have any specific

[jQuery] Re: Desperately Lost in Space with the Tabs Plugin

2007-04-19 Thread Digislick
Hi, Thanks very much for explaining in more detail. I have just gotten back from work now (9:30pm). I will be trying your instructions out later because obviously I didn't do the right thing last time. Hopefully I can then get it working. Will report back later and let you know :-) Thanks

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Jörn, This would make field2 required only if field1 is blank: rules: { field2: { required: #field1:blank } } But I can't express that either field1 or field2 is required. How would I express that using pre/post-condition and implies? I was thinking

[jQuery] setting attbitues

2007-04-19 Thread [EMAIL PROTECTED]
I discovered that if I want to set the class for an object, this is not the code $('#' + id).setAttribute(class, myClass); What is the correct syntax? Thanks, - Dave

[jQuery] Re: Class doesn't support Automation?

2007-04-19 Thread Christopher Jordan
Thanks for replying Scott. I should have mentioned that $group.options[index] was the first syntax I tried. FF handles both. IE produces the same error for both syntaxes. To be honest, I was surprised at the apparent shortcut syntax. I'm not sure I should rely on it though. Basically, I just

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Jörn, Fully agreed, I'll make that optional. I've got another request for an even more sophicistacted highlighting, seems like a good idea to implement it not only as a boolean option. You could also just define that highlight function as the default

[jQuery] Re: setting attbitues

2007-04-19 Thread Brandon Aaron
You can use the addClass and removeClass methods to modify the class of the element. $('#'+id).addClass('myClass'); http://jquery.bassistance.de/api-browser/#addClassString http://jquery.bassistance.de/api-browser/#removeClassString -- Brandon Aaron On 4/19/07, [EMAIL PROTECTED] [EMAIL

[jQuery] Re: setting attbitues

2007-04-19 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: I discovered that if I want to set the class for an object, this is not the code $('#' + id).setAttribute(class, myClass); What is the correct syntax? Thanks, - Dave Try this: $(...).attr(class, myClass); If you don't want to replace existing classes, use

[jQuery] Re: Form + BlockUI plugin

2007-04-19 Thread Mike Alsup
Kush, When you do this: $.blockUI(form) the plugin adds your form to the blockUI message element. This means the form is implicitly removed from the DOM and then reinserted in a different position. Try binding the form after you block. Maybe something like: $.blockUI(form);

[jQuery] Re: setting attbitues

2007-04-19 Thread [EMAIL PROTECTED]
Thanks. That did it. - On Apr 19, 10:03 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: I discovered that if I want to set the class for an object, this is not the code $('#' + id).setAttribute(class, myClass); What is the correct syntax? Thanks, - Dave Try

[jQuery] Re: Class doesn't support Automation?

2007-04-19 Thread Scott Sauyet
Christopher Jordan wrote: I should have mentioned that $group.options[index] was the first syntax I tried. FF handles both. IE produces the same error for both syntaxes. I've never seen that. It looks like a useful short-cut if it's supported everywhere. Any other thoughts? I'd like

[jQuery] Re: Form + BlockUI plugin

2007-04-19 Thread Kush Murod
actually that is exactly what I am doing, I have checked already as you said, if moved the form into blockUI :( this is really weird behaviour I must say Mike Alsup wrote: Kush, When you do this: $.blockUI(form) the plugin adds your form to the blockUI message element. This means the

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dan G. Switzer, II
Jörn, You can do that already. After implementing the suppurt for expressions, support for plain functions was really easy. I can imagine adding a method on the fly: rules: { field2: function() { return condition; } } I wasn't aware of that. However, if you changed that do: rules: {

[jQuery] Re: Form + BlockUI plugin

2007-04-19 Thread Mike Alsup
Do you have a sample page? actually that is exactly what I am doing, I have checked already as you said, if moved the form into blockUI :( this is really weird behaviour I must say

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Dan G. Switzer, II
Jörn, I'd like to see both a highlight: true/false and onHighligh: function(){} option. That would provide tons of flexibility. How about this: @option Boolean|Function highlight Whether and how to highlight matches in the select box. Set to false to disable. Set to a function to customize.

[jQuery] Re: Class doesn't support Automation?

2007-04-19 Thread Christopher Jordan
I'll see what I can to about getting an example page posted to the web where others can see it. My client currently has me working on another aspect of the project, but I should still be able to get it done today. Thanks, Chris PS... giggle/ What'd you call me?! snort/ guffaw/ I'm a

[jQuery] Re: Multiple form submit issue

2007-04-19 Thread Buzzterrier
Thx Mike that worked. I guess I am confused (ignorant g) on why attaching the options to the form using: $('#myForm1').ajaxForm(options); does not work when using ajaxSubmit to submit the form: $('#myForm1').ajaxSubmit(); but when using this pattern the form does have the options

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Brian Miller
Dan G. Switzer, II schrieb: Jörn, Fully agreed, I'll make that optional. I've got another request for an even more sophicistacted highlighting, seems like a good idea to implement it not only as a boolean option. You could also just define that highlight function as the default option

[jQuery] Re: Multiple form submit issue

2007-04-19 Thread Mike Alsup
Hi Buzz, ajaxSubmit is the function that actually uses the options and so they must be passed in by the caller. If you call it yourself, you must pass the options. When you use ajaxForm it binds the form's submit event and invokes ajaxSubmit for you, passing in the options that it has

[jQuery] Re: jQuery Powered Sites - More Sites Added.

2007-04-19 Thread Theo Welch
Hi All, I just completed a Photography exhibit that is within the U.S. National Archives' website. It uses jQuery extensively and has some pretty good photos in it too. :) http://www.archives.gov/exhibits/twww/ It uses a modified Accordion plugin for the main presentation, a modified

[jQuery] Re: ThickBox question

2007-04-19 Thread Theo Welch
Hi All, I happened upon your discussion below. Just FYI, I have a customized Thickbox running on this photography exhibit: http://www.archives.gov/exhibits/twww/ Cheers! -THEO- On Apr 19, 2007, at 10:36 AM, Christopher Jordan wrote: Rob, Thanks heaps for sharing! I'll look at this

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread SeViR
I would need some methods (rules in YAV) in Validation plugin: // generic regexp method $.validator.addMethod(regexp, function(value, element, regular_expression) { return (typeof(regular_expression) == string)? value.match(new RegExp(regular_expression)) :

[jQuery] Re: ThickBox question

2007-04-19 Thread Ariel Jakobovits
me too - Original Message From: Christopher Jordan [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, April 19, 2007 10:27:05 AM Subject: [jQuery] Re: ThickBox question Hey Theo that's pretty cool! I like the site. :o) Chris Theo Welch wrote: Hi All, I happened

[jQuery] ?compile jQuery with plugins

2007-04-19 Thread DS.Highwind
Is there a way to compile a set of plugins directly into jQuery (so as not to include them in separate script tags)? I've tried to build it with make with_plugins all and make with_plugins, but nothing happens, I always got the standard version of jquery compiled (the paths I found in the

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Jörn, You can do that already. After implementing the suppurt for expressions, support for plain functions was really easy. I can imagine adding a method on the fly: rules: { field2: function() { return condition; } } I wasn't aware of that.

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
SeViR schrieb: I would need some methods (rules in YAV) in Validation plugin: // generic regexp method $.validator.addMethod(regexp, function(value, element, regular_expression) { return (typeof(regular_expression) == string)? value.match(new RegExp(regular_expression)) :

[jQuery] Re: Erratic behavior of cookie plugin

2007-04-19 Thread Jörn Zaefferer
Ⓙⓐⓚⓔ schrieb: / for a path is great. every page will share the cookies, KLAUS Jörn, wouldn't it be a nice default? This is server wide cookies. If you added a domain .example.com You have all 'subhost' cookies. If you added a domain example.com http://example.com You have domain wide

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: What would be passed to the function? The containing li? a jQuery object containing the containing li? The HTML text? The source is available here: http://dev.jquery.com/browser/trunk/plugins/autocomplete/jquery.autocomplete .js [...] At the moment it runs

[jQuery] jEditable/CSS question

2007-04-19 Thread Josh Nathanson
Hey all, I'm working with jEditable which changes text to an input field when you click the text. It works really nicely. I modded it a bit to allow me to style each of the elements individually, rather than the whole form, which is working fine. When you generate a textarea, it also

[jQuery] Re: jEditable/CSS question

2007-04-19 Thread abba bryant
tried display:block; ? also if the plugin is inserting a container div, check that elements styles as well. It might be a fixed width. I don't use the plugin so I can't be more help. Josh Nathanson-2 wrote: Hey all, I'm working with jEditable which changes text to an input field when

[jQuery] Re: jEditable/CSS question

2007-04-19 Thread Josh Nathanson
1. wrap the two buttons in their own div tag. THis will cause them to appear on their own line since div tags are display:block; by default. OK, I'm a dumb dumb...I added display:block to the textarea style and now it displays how I want, with no hacks to jEditable code (other than my

[jQuery] Re: a grid rather than a row

2007-04-19 Thread Jan Sorgalla
pwnw31842 wrote: i'm using example_dynamic_ajax.html as a basis on which to construct it, pulling image references from the txt file. But If i'm automatically pulling the images from flickr or a txt file how do i prevent it from putting each image in an LI? it seems like theres an

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Aaron Heimlich
I may be misunderstanding something, but what does this do that $.validator.addMethod[1] doesn't? [1] http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatoraddMethodStringFunctionString On 4/19/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Jörn, Sorry, my example was a bit

[jQuery] Re: Library showdowns

2007-04-19 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Thanks for the reply! If I understand your problem statement this is something I'd currently solve using closures, is there a way that using currying is fundamentally different or is it a different way of thinking about the same problem? ---Nathan

[jQuery] Re: .load jcarousel

2007-04-19 Thread Jan Sorgalla
Hi, lucharles wrote: i am trying to use the .load in jquery to inject a jcarousel into my document. is this possible? when clicking the site navigation the images appear in a vertical list instead of hidden and sliding. something seems to not be loading. for an example th eurl is:

[jQuery] Re: jQuery Powered Sites - More Sites Added.

2007-04-19 Thread John Resig
Very very nice work! --John On 4/19/07, Theo Welch [EMAIL PROTECTED] wrote: Hi All, I just completed a Photography exhibit that is within the U.S. National Archives' website. It uses jQuery extensively and has some pretty good photos in it too. :) http://www.archives.gov/exhibits/twww/ It

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dan G. Switzer, II
Aaron, I may be misunderstanding something, but what does this do that $.validator.addMethod[1] doesn't? The addMethod would accomplish the same thing. The addMethod() is really affective for building a library of reusable validation method. However, there are times when you have very

[jQuery] Keyboard shortcuts

2007-04-19 Thread Glen Lipka
http://www.openjs.com/scripts/events/keyboard_shortcuts/ This looks really cool. Is there a jQuery plugin like it? Glen

[jQuery] Re: AJAX problems in IE6

2007-04-19 Thread George
Hi Ben, I know you found a workaround for this using the pause plugin, but I wondered if the problem had anything to do with the way the fadeIn() is outside the call back function? This means the fadeIn is running when the ajax response arrives back. Just a thought. George

[jQuery] Re: Keyboard shortcuts

2007-04-19 Thread Leonardo K
http://sanisoft-demo.com/jquery/plugins/shortaccesskey/ or http://rikrikrik.com/jquery/shortkeys/ On 4/19/07, Glen Lipka [EMAIL PROTECTED] wrote: http://www.openjs.com/scripts/events/keyboard_shortcuts/ This looks really cool. Is there a jQuery plugin like it? Glen

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Aaron, I may be misunderstanding something, but what does this do that $.validator.addMethod[1] doesn't? The addMethod would accomplish the same thing. The addMethod() is really affective for building a library of reusable validation method. However,

[jQuery] Re: Keyboard shortcuts

2007-04-19 Thread Brian Miller
Yeuhda's fix events bears some similarities. It might even be a good thing to combine them, as I'm not sure if the keyboard shortcuts script entirely evens out the differences between browsers. - Brian http://www.openjs.com/scripts/events/keyboard_shortcuts/ This looks really cool. Is

[jQuery] Re: The University of Murcia (Spain) takes jQuery as main JS Library for all new projects

2007-04-19 Thread Dan G. Switzer, II
Jörn, I like the idea.Gonna test if that works out. About the xor-validation, I wonder if this could work: $.validator.addMethod('xor', function(value, element, parameter) { return value $(parameter).is(:blank); }); rules: { field1: { xor: #field2 }, field2: { xor:

[jQuery] Deleting siblings

2007-04-19 Thread [EMAIL PROTECTED]
Hi, I have this HTML tabletr ... tdimg src=images/spacer.gif alt= width=5/td td class=topTab tabSelected style=padding-left: 5px; padding- right: 5px; tabletbodytr td class=tabText id=tab12nooo/td

[jQuery] Re: jQuery Powered Sites - More Sites Added.

2007-04-19 Thread Theo Welch
Thanks, John! And thank *you* for making it possible! Seriously. Without jQuery, that exhibit would not exist. Thanks a lot! -THEO- On Apr 19, 2007, at 3:24 PM, John Resig wrote: Very very nice work! --John On 4/19/07, Theo Welch [EMAIL PROTECTED] wrote: Hi All, I just completed

[jQuery] Re: Deleting siblings

2007-04-19 Thread Leonardo K
This should work: $(td.closeTab).click( function() { if (confirm(Are you sure you want to delete this tab?)) { var parentElt = $(this).parents(td.topTab:first); parentElt.remove(); $(parentElt).next().remove(); $(parentElt).prev().remove(); }

[jQuery] Re: Library showdowns

2007-04-19 Thread Scott Sauyet
Nathan Young -X (natyoung - Artizen at Cisco) wrote: If I understand your problem statement this is something I'd currently solve using closures, is there a way that using currying is fundamentally different or is it a different way of thinking about the same problem? At the risk of

[jQuery] Re: Deleting siblings

2007-04-19 Thread Leonardo K
Sorry, correcting: $(td.closeTab).click( function() { if (confirm(Are you sure you want to delete this tab?)) { var parentElt = $(this).parents(td.topTab:first); $(parentElt).next().remove(); $(parentElt).prev().remove(); parentElt.remove();

[jQuery] Re: Class doesn't support Automation? -OR- I think there's a bug in jquery.dump.js

2007-04-19 Thread Chris Jordan
Okay, I think I figured this one out. I've put up a very simplified page that shows the problem in action, and it was during the creation of this page that I figured out what (or more accurately where) the issue is. view the page here (http://cjordan.us/test/ChrisTest.cfm). My original

[jQuery] Re: Keyboard shortcuts

2007-04-19 Thread Brandon Aaron
Yup. http://rikrikrik.com/jquery/shortkeys/ -- Brandon Aaron On 4/19/07, Glen Lipka [EMAIL PROTECTED] wrote: http://www.openjs.com/scripts/events/keyboard_shortcuts/ This looks really cool. Is there a jQuery plugin like it? Glen

[jQuery] Re: Keyboard shortcuts

2007-04-19 Thread Chris Jordan
That shortkeys plugin is cool! I'm gonna have to remember that one. :o) Chris On Apr 19, 2:49 pm, Leonardo K [EMAIL PROTECTED] wrote: http://sanisoft-demo.com/jquery/plugins/shortaccesskey/ orhttp://rikrikrik.com/jquery/shortkeys/ On 4/19/07, Glen Lipka [EMAIL PROTECTED] wrote:

[jQuery] animate background-position??

2007-04-19 Thread sspboyd
Hi, I've been trying several ways to animate the position of a background image and I'm stuck. This is the code I'm using: $(#header).click(function(){ var bkgPosX=Math.round(Math.random()*(-500)); var bkgPosY=Math.round(Math.random()*(-200)); $(#header).animate({style:

[jQuery] jQuery 1.1.3a / 1.2 ?

2007-04-19 Thread Jonathan Sharp
What's the release status for 1.1.3a (or 1.2)? We're in need of support for expanded namespaces (eg. being able to select foo:bar via $('foo\\\:bar') ) Cheers, -Jonathan

[jQuery] Re: animate background-position??

2007-04-19 Thread Jeffrey Kretz
Background-position is a dual property, containing both the X and Y coordinates. To animate it, you have to animate the X and Y separately. $('#header').animate({backgroundPositionX : bkgPosX , backgroundPositionY: bkgPosY },'slow'); JK -Original Message- From:

[jQuery] Plugin: frameReady updated. Now with better docs and demos ;)

2007-04-19 Thread Daemach
I just updated frameReady to support loading script and stylesheet files in other frames, including nested, dynamically created iframes if necessary. frameReady loads jQuery in the target frame(s) by default, so you can run any jQuery function in the target frame as if you were dealing with the

[jQuery] Treeview persistence (cookies) and a dynamic (PHP/MySQL built) UL - not holding state

2007-04-19 Thread withinreach
I'm working with Treeview, latest version, needing the cookie/ persistence feature for a project. Sample demo works fine on my local machine (I can click on 2nd tree, change what's open/closed, browse to another page, then return (BACK button), and the tree holds its state. Great! Can't get it

[jQuery] Re: jQuery 1.1.3a / 1.2 ?

2007-04-19 Thread John Resig
I've been doing a lot of traveling (past 10 days), and now I'm sick. Maybe this weekend, but I'm not completely sure. In your case, I don't think the escaping will solve the : issue - since : denotes a namespace (and I'm fairly certain that it isn't treated identically in all browsers). Travel

[jQuery] Using Interface.Droppable

2007-04-19 Thread faz
Ciao to all and sorry for my english, I m very new to jquery and his plugin Interface, I m trying to use drag and drop, but after a drop, if I clone a tag or I substitute his html with element having the same css class, the new elemnt are not sensible to the drag or drop behaviour attached to the

[jQuery] manipulating TEXAREA content

2007-04-19 Thread Dug Falby
Hi all, I wonder if I could get your opinion on whether or not something is possible and if it is, is there a really compact way of doing it with jquery? I would like to make a character counter for a textarea input. I would like the string that is the number of chars typed in the box to

[jQuery] Re: manipulating TEXAREA content

2007-04-19 Thread Chris W. Parker
On Thursday, April 19, 2007 3:44 PM Dug Falby said: Hi all, I wonder if I could get your opinion on whether or not something is possible and if it is, is there a really compact way of doing it with jquery? I would like to make a character counter for a textarea input. I would like the

[jQuery] Drupal and JQuery

2007-04-19 Thread merc
Hello everybody, I am in the middle of developing a karma module for Drupal (amazingly, it doesn't have one already and we need one for Free Software Magazine). While I know Drupa quite well, I know nothing about Javascript and JQuery. I am finding things a little difficult, to be honest. I

[jQuery] Re: animate background-position??

2007-04-19 Thread sspboyd
Yeah, I thought that might be it but unfortunately it is not. There is no backgroundPositionX or backgroundPositionY. http://www.w3.org/TR/CSS2/colors.html#background-properties There is however background-position-x but that property is a Microsoft extension.

[jQuery] Re: .change doesn't match cloned elements?

2007-04-19 Thread [EMAIL PROTECTED]
Did I find a bug, or is there just nobody that knows how to fix it? On Apr 19, 1:43 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm trying to get flexible (array) select boxes in a form working, but i'm having some troubles with the cloned ones. The end-use idea is to auto-populate

  1   2   >