[jQuery] Re: Sortables: configurable display-style?

2007-04-30 Thread dfd
Nobody? On 29 Apr., 11:42, dfd <[EMAIL PROTECTED]> wrote: > Hello group, > > i noticed that Sortables always appends a inline-style with hard-coded > displaystyle 'block' , at least for div's, to the dragged object. > Grmpf. Not very usable when your display-style is "table-row" or other > table

[jQuery] Re: newsticker plugin updated

2007-04-30 Thread Sam Collett
On Apr 29, 6:06 pm, millionmonkey <[EMAIL PROTECTED]> wrote: > Sam, thanks for the update. Just in the nick of time for me as > well. > > Newsticker Example:http://www.levelfield.com/newsticker1.html > You example also shows how it can also be used for things other than news as well. Maybe use s

[jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-30 Thread Sam Collett
On Apr 28, 2:38 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: > Looking at the code for newticker, you might/should be able to just > recall $("ul").newsticker() and it should reset the ul. If for some > reason it doesn't work, then this might be the change that the plugin > needs: > stopTicke

[jQuery] Re: Difference of $.getJSON versus $get

2007-04-30 Thread Rob Desbois
Just to add my £0.02 worth: it's not essential to use $.ajax if you want to handle errors. There's a function $.ajaxSetup() available for making global modifications to the default parameters such as error handler. I have a globally included error handler for all pages set up like so: $(document

[jQuery] Re: Several Carousel

2007-04-30 Thread agent2026
Not sure I follow you. You can just give your container div a class, and style it from there. For the prev/next, I think the rule is if they're not included then jCarousel will add them. Otherwise you can add your own, and make your own style rule for those classes. If you're having trouble w

[jQuery] Re: tickbox close window

2007-04-30 Thread Rob Desbois
Are you doing this from a frame? If not then TB_remove() should do it just fine rob On 4/29/07, amircx <[EMAIL PROTECTED]> wrote: hey. im using thickbox and i want that after some proceeses its will close the window without user needs to click ive tried to print out somthing like parent.TB

[jQuery] Central jQuery Plugin Database

2007-04-30 Thread Armin Ronacher
Hi, I visited the mootools webpage yesterday and found their download tool. While this makes no sense for jQuery it's probably a good idea for the jQuery plugins. The plugin Wiki Page is really, really big and if Plugins depend on each other it's not so easy to find the dependencies. What about

[jQuery] Some editor like FCKeditor for Images

2007-04-30 Thread oscar esp
I am using FCKeditor. Now I need to add a photo gallery with some image edit methods (rotate, crop, resize). Any ones know any editor similar to FCKeditor for images? Moreover... I need to implement a Diary (like outllook) any ones know some one in order to be integrted in my web app? Thanks in

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Mike Alsup
Kush, The opacity increases if you call block over and over without calling unblock. That is not new. That doesn't happen in my demo because I call unblock before calling block. Yes, I noticed that the border is also blocked in IE6, but I don't see why that is a problem. Your page looks good

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread Mike Alsup
imatts, I'm not sure I understand. Are you manually modifying text in the editor and then clicking the submit button? Or are you modifying the text via JavaScript? Could you post a page that demonstrates the problem? Mike I've just noticed that if I submit the form again without changing a

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett
On Apr 28, 9:39 am, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > On Apr 24, 2:54 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:> Hi, > > > I'd like to announce the beta release of v2 of mydatePickerplugin for > > jQuery. This release is a complete rewrite which makes the date picker > > co

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Sam Collett
On Apr 30, 12:25 pm, Sam Collett <[EMAIL PROTECTED]> wrote: > On Apr 28, 9:39 am, "R. Rajesh Jeba Anbiah" > > <[EMAIL PROTECTED]> wrote: > > On Apr 24, 2:54 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:> Hi, > > > > I'd like to announce the beta release of v2 of mydatePickerplugin for > > > jQuery

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread R. Rajesh Jeba Anbiah
On Apr 30, 4:30 pm, Sam Collett <[EMAIL PROTECTED]> wrote: > On Apr 30, 12:25 pm, Sam Collett <[EMAIL PROTECTED]> wrote: > > On Apr 28, 9:39 am, "R.RajeshJebaAnbiah" > > <[EMAIL PROTECTED]> wrote: > > > On Apr 24, 2:54 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote:> Hi, > > > > > I'd like to announc

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread imatts
Hi Mike. Thanks for your reply. Just modifying the test in the editor and then clicking submit. The code is very simple: // prepare the form when the DOM is ready $(document).ready(function() { var options = { target: '#output1', // target element(s) to be updated with server respo

[jQuery] Re: behaviors?

2007-04-30 Thread Brandon Aaron
Thanks Mike! I updated the test/example page to make a call to 'bind' instead of just 'click'. This illustrates how you can pass along any number of extra arguments to the action/method/plugin. -- Brandon Aaron. On 4/28/07, Mike Alsup <[EMAIL PROTECTED]> wrote: Brandon, That is really slick

[jQuery] Re: Recommended way to overload jquery method?

2007-04-30 Thread George
Hi Jörn, this technique seems like a good idea though I'm not sure I follow what you did in the metadata plugin. Would you be able provide an example here of how you would overload the trim function in the same way as the earlier posting? Many thanks, George On Apr 23, 7:14 pm, Jörn Zaefferer <

[jQuery] Re: Recommended way to overload jquery method?

2007-04-30 Thread Jörn Zaefferer
George schrieb: Hi Jörn, this technique seems like a good idea though I'm not sure I follow what you did in the metadata plugin. Would you be able provide an example here of how you would overload the trim function in the same way as the earlier posting? Sure thing. (function($) { v

[jQuery] $().load() and redirect

2007-04-30 Thread ATom
I need load external page with AJAX, I used JQuery $().load(url) syntax, but external page sometimes use HTTP redirect to another location (in the same domain). Exist any way, how I can force Jquery to follow redirect?

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Kelvin Luck
Hi, On Mon, April 30, 2007 12:25 pm, Sam Collett wrote: > > Several features in that picker that look like they would be handy in > Kelvin's that aren't in yet are: > > Keyboard Navigation I've been thinking about this... It's not a priority for me currently because I'm not sure that it would be

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread Mike Alsup
Hi Matt, I don't know anything about the FCKeditor (but somehow it seems inappropriate to say its name out loud at work), so I can't imagine why it isn't working on the first pass. However, you can "force" its data w/o modifying the plugin by doing something like this (assuming the element *nam

[jQuery] Re: datePicker v2 beta

2007-04-30 Thread Kelvin Luck
On Mon, April 30, 2007 12:30 pm, Sam Collett wrote: > Just thought of something else - an onDateChanged event. Could be > useful for date pickers that depend on each other (i.e. a date range, > defined by two pickers - 'picker2' has to be a later date than > 'picker1') > I'm guessing you didn't

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Kush Murod
I meant it is blocked in IE but not in FF -Kush Mike Alsup wrote: > Kush, > > The opacity increases if you call block over and over without calling > unblock. That is not new. That doesn't happen in my demo because I > call unblock before calling block. > > Yes, I noticed that the border is also

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Kush Murod
Sorry I meant to say border is also blocked in IE but not in FF Kush Murod wrote: I meant it is blocked in IE but not in FF -Kush Mike Alsup wrote: Kush, The opacity increases if you call block over and over without calling unblock. That is not new. That doesn't happen in my demo because

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Mike Alsup
Yes, I know. But still, blocking the border seems like it really shouldn't matter. Is this causing you problems? Mike On 4/30/07, Kush Murod <[EMAIL PROTECTED]> wrote: I meant it is blocked in IE but not in FF -Kush Mike Alsup wrote: Kush, The opacity increases if you call block ove

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread Mike Alsup
Ooops. This is obviously wrong: if (a[i].name = 'editor') { It should be: if (a[i].name == 'editor') { Mike

[jQuery] How to manage a response ...

2007-04-30 Thread Massimiliano Marini
Hi all, sorry for my bad subject, I try to explain in a better way my question, I'm using jQuery with Smarty and PHP, I've a form with username and password fields for a simple authentication Username : Password : $('#formLogIn').ajaxForm({ target: '#responseLogIn',

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread imatts
Mike. Thanks again for the reply! I can see what you're doing with this code, and I was sure it would work, but for some reason it doesn't?! No errors, just left with the same default text again. In fact I added alert(a[i].value); to your function just to make sure it was working, and yes, it doe

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread imatts
Mike, you're a genius, thanks. I should have spotted that! - It works now. Thanks again, that's made my day! (and I've learned some stuff.) Cheers. Matt. malsup wrote: > > > Ooops. This is obviously wrong: > >> if (a[i].name = 'editor') { > > It should be: > >

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Dan G. Switzer, II
Jeffrey, >I'm having some troubles with extended characters (copyright symbol, etc.) >being submitted to the server as a part of a CMS I am writing. > >For example, the javascript "escape" command will convert the copyright >symbol to %A9. However, the server receiving the ajax POST needs to see

[jQuery] Re: JQuery, Form plugin and FCKeditor

2007-04-30 Thread Mike Alsup
Glad to help and glad that it's working now. Cheers! Mike Mike, you're a genius, thanks. I should have spotted that! - It works now. Thanks again, that's made my day! (and I've learned some stuff.) Cheers. Matt.

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Kush Murod
Hi Mike, Sorry to bug all the time :( FF looks fine, but in IE overlay is not positioned properly http://khurshid.com/jquery/sandbox/blockUI/ Cheers, Kush Mike Alsup wrote: Yes, I know. But still, blocking the border seems like it really shouldn't matter. Is this causing you problems? Mike

[jQuery] Re: cant get autocomplete to work

2007-04-30 Thread bdee1
can anyone help On Apr 26, 2:19 pm, bdee1 <[EMAIL PROTECTED]> wrote: > i have been tryign for a while to get autocomplete to work on a page > of my internal website with no success. i have used it before on > other sites but for some reason i can't get it to work here: > > i know that the au

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Mike Alsup
JK, JavaScript encodes data in UTF-8. Your server will need to account for that if you're going to use AJAX. Mike I'm having some troubles with extended characters (copyright symbol, etc.) being submitted to the server as a part of a CMS I am writing. For example, the javascript "escape" c

[jQuery] Re: Sortables: configurable display-style?

2007-04-30 Thread Dan G. Switzer, II
Frank, >> i noticed that Sortables always appends a inline-style with hard-coded >> displaystyle 'block' , at least for div's, to the dragged object. >> Grmpf. Not very usable when your display-style is "table-row" or other >> table-like styles... >> >> It would be nice if we could have configur

[jQuery] Pagination ajax

2007-04-30 Thread Sebastián V . Würtz
i have a block with css button like a pagination code: 1 2 3 Last Next » and i have this script $(document).ready(function(){ navigation(); }); function navigation() { $('.nav_paginacion ul li a').each(function(i) { $(this).click(function(){ $.ge

[jQuery] Re: BlockUI - IE block() offset problem, calculated incorrectly maybe?

2007-04-30 Thread Mike Alsup
Hmm, yeah something is still weird there. I'll look into it. Mike On 4/30/07, Kush Murod <[EMAIL PROTECTED]> wrote: Hi Mike, Sorry to bug all the time :( FF looks fine, but in IE overlay is not positioned properly http://khurshid.com/jquery/sandbox/blockUI/ Cheers, Kush Mike Alsup wrote: >

[jQuery] Re: Pagination ajax

2007-04-30 Thread Sean Catchpole
I may have misinterpreted what you are trying to do, but perhaps this will work: $(navigation); function navigation() { $('.nav_paginacion ul li a').click(function() { $.get( this.href, function(data) { $("#comment_block").html(data); navigation(); }); return false; }); }

[jQuery] Re: behaviors?

2007-04-30 Thread John Resig
Excellent Brandon, this is a great start. I suspect that in order to get a full "behavior" plugin (one the feels natural) it'll require a lot of code extensions. Hmm... I wonder if there's anything that can be added to jQuery proper to ease the process. --John On 4/28/07, Brandon Aaron <[EMAIL

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

2007-04-30 Thread Kevin Scholl
A small site I designed and developed, launched last week: http://www.shoshintech.com/ Uses jQuery for the navigation, linking the default top level of the breadcrumb, and automatically closing any popup window when leaving the given parent page or opening a new popup window (see the About Us >

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

2007-04-30 Thread Kevin Scholl
A small site I designed and developed, launched last week: http://www.shoshintech.com/ Uses jQuery for the navigation, adding the "Print this page" link next to the breadcrumb (since it relies on javascript), and automatically closing any popup window when leavingthe given parent page or opening

[jQuery] Re: behaviors?

2007-04-30 Thread Scott Sauyet
John Resig wrote: > Excellent Brandon, this is a great start. I suspect that in order to > get a full "behavior" plugin (one the feels natural) it'll require a > lot of code extensions. Hmm... I wonder if there's anything that can > be added to jQuery proper to ease the process. Do the browsers o

[jQuery] Interface Droppables/Sortables

2007-04-30 Thread real
Hi, I have two unordered lists, one that needs to be both sortable and droppable at the same time, and the other one is just a droppable. Currently I can get it to work by making both UL sortables, so the LIs can be moved between both lists fine. Here's the problem though: I need to use the onDr

[jQuery] Re: behaviors?

2007-04-30 Thread Aaron Heimlich
Well, DOM2 does define "Mutation Events"[1], which seem to be what you're looking for, but I dunno how many browsers actually support them. You could trigger custom events inside append(), prepend(), etc., but I dunno how well that will run. [1] http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-200

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Jeffrey Kretz
Thanks very much. Its possible I misunderstood the problem. Here's the full symptom I ran into. 1. If you type a copyright character (ALT-0169 in windows), and use the Javascript escape function on it, you get %A9. escape("C")=="%A9" 2. Passed in a form POST, my .NET server decodes it as an e

[jQuery] change element's name

2007-04-30 Thread Lambari
Hello, I'm trying to change a element's name and id. I've managed to change the ID but it seems that jQuery can't change the name. here is my code: $("#custom_"+i).attr("id", "custom_"+cnt ); // working $("#custom_title_"+i).attr("name", "custom_title_"+cnt ); // not working $("#custom_content_"

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Dan G. Switzer, II
>1. If you type a copyright character (ALT-0169 in windows), and use the >Javascript escape function on it, you get %A9. escape("C")=="%A9" Use encodeURI() instead to correctly encode the characters. -Dan

[jQuery] Re: behaviors?

2007-04-30 Thread Scott Sauyet
Aaron Heimlich wrote: Well, DOM2 does define "Mutation Events"[1], which seem to be what you're looking for, but I dunno how many browsers actually support them. You could trigger custom events inside append(), prepend(), etc., but I dunno how well that will run. They don't seem well support

[jQuery] Help with Interface Blind

2007-04-30 Thread ryanod
I would like to use the Interface Blind plugin. I have it on my page, but when you first arrive, it is visible. I would like it to be hidden. Then, when the user clicks 'login', it drops in. How can I do this? Ryan OD

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Jeffrey Kretz
Thanks for this. Unfortunately, I must be barking up the wrong tree. The .NET server still decoded the Request.Form collection UTF8 no matter what I set the charset to on the XML post. And '%A9' is decoded to an empty string on UTF8. I guess I could write my own method to replace the javascrip

[jQuery] Re: behaviors?

2007-04-30 Thread Brandon Aaron
Yeah I have an idea... I'm going to go see if it works. :) -- Brandon Aaron On 4/30/07, John Resig <[EMAIL PROTECTED]> wrote: Excellent Brandon, this is a great start. I suspect that in order to get a full "behavior" plugin (one the feels natural) it'll require a lot of code extensions. Hmm..

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Jeffrey Kretz
Wow! I feel simultaneously grateful and foolish. That totally solved my problem. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 30, 2007 9:57 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: UT

[jQuery] jqModal via POST ?

2007-04-30 Thread Brian Cherne
Has anyone implemented jqModal (or something like it) via the POST method? I really enjoy how simple jqModal is for calling modal dialogs and I want to use it on a secure web page. In order to get the right information from the server I'll need to send in params... ideally params that are protect

[jQuery] Re: change element's name

2007-04-30 Thread Karl Swedberg
On Apr 30, 2007, at 12:38 PM, Lambari wrote: Hello, I'm trying to change a element's name and id. I've managed to change the ID but it seems that jQuery can't change the name. here is my code: $("#custom_"+i).attr("id", "custom_"+cnt ); // working $("#custom_title_"+i).attr("name", "custom_t

[jQuery] Re: behaviors?

2007-04-30 Thread Brandon Aaron
Okay ... I've created a jQuery.fn.behavior() and jQuery.fn.unbehavior(). I haven't checked anything in yet but I have uploaded it to here: http://brandon.jquery.com/plugins/behavior/test/test.html I also added a pretty rough $.behavior.find() so that unbehavior will work. The only extension I n

[jQuery] Re: change element's name

2007-04-30 Thread Lambari
Hi! thanks for your help. I wasn't getting any error and there was an id with the same name (but I just would like to change the name to submit the page and handle it in a php script). Your suggestion fixed the problem :) thanks! -bigo On Apr 30, 3:07 pm, Karl Swedberg <[EMAIL PROTECTED]> wrot

[jQuery] Re: behaviors?

2007-04-30 Thread Mike Alsup
Brandon, This is really, really cool! I think this is functionality that belongs in core as it solves an extremely common use case (and addresses the most commonly asked question regarding ajax usage). Awesome job! Mike Okay ... I've created a jQuery.fn.behavior() and jQuery.fn.unbehavior(

[jQuery] Re: Autocomplete Question

2007-04-30 Thread Jeff Fleitz
Hey Dan, I am playing around with your suggestions below on how to implement multiple autocomplete calls on one form using your implementation. I have added the second argument (input) in the callback as you suggested, but am stumped about where in the code to pass the input reference from? I hav

[jQuery] A simple Comparison

2007-04-30 Thread Mario Moura
Hi Folks I am trying a simple Comparison. IF ($('.field_image04').find(".imagefield-edit-image-row") == null ) When I test in differents .class (.field_image04, .field_image03..) I receive empty, null results or a random text result. What I need is just do if have result or else do anothe

[jQuery] Re: Autocomplete Question

2007-04-30 Thread Dan G. Switzer, II
Jeff, >I am playing around with your suggestions below on how to implement >multiple autocomplete calls on one form using your implementation. I >have added the second argument (input) in the callback as you >suggested, but am stumped about where in the code to pass the input >reference from? I h

[jQuery] Re: A simple Comparison

2007-04-30 Thread Mario Moura
Ok Done If someone is looking for this: $(".field_image03']").children().is(".imagefield-edit-image-row"); return true or false Thanks for all Mario 2007/4/30, Mario Moura <[EMAIL PROTECTED]>: Hi Folks I am trying a simple Comparison. IF ($('.field_image04').find(".imagefield-edit-image

[jQuery] Re: behaviors?

2007-04-30 Thread Brandon Aaron
Thanks Mike! My vote is to expose the selector and context on the jQuery object as properties and leave this as an "official" plugin ... at least for now. John, what are your thoughts about adding the selector and context properties to jQuery? I know this isn't the first time I've wanted to get

[jQuery] An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Dan G. Switzer, II
Guys, It occurred to me last night with the growing list of plug-ins and the fact that so many plug-ins now are dependant on other plug-ins, that we should try to add a couple of functions to the jQuery core for registering plug-ins and detecting if a plug-in has been registered. So, to register

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Alexandre Plennevaux
It seems like inevitable to me too, Dan. If for example, $.plugin.find(["dimension","blockui","below"]); fails, it would output a message "Error: plugin requires ". -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: lu

[jQuery] Re: UTF-7 Ajax form

2007-04-30 Thread Jeffrey Kretz
And if anyone else on a .NET environment runs into this, the server-side HttpUtility.UrlEncode/URLDecode does NOT match the client-side javascript encodeURI/decodeURI, making it hard to pass data back and forth. The remedy is to reference the Jscript 8.0 library to your project, and use the Micro

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane
Jörn, I believe I found a bug in the new autocompleter. Line 157 has: var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass); This throws a javascript error if jQuery.noConflict() has been called: $(input).attr is not a function changing it to var $input = jQuery(input)

[jQuery] Re: jqModal via POST ?

2007-04-30 Thread Erik Beeson
Sure, just use ajax, load the result into a div, and show the div with jqModal. --Erik On 4/30/07, Brian Cherne <[EMAIL PROTECTED]> wrote: Has anyone implemented jqModal (or something like it) via the POST method? I really enjoy how simple jqModal is for calling modal dialogs and I want to u

[jQuery] Detecting key presses.

2007-04-30 Thread MikeR
I am wondering if using the keyup() jQuery event handler on (for example) and input field.. if there is a way to detect which key was pressed? IE: keycode 38, 40, etc.

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane Enos
Also, a few other issues. If the default caching is set at 10 and matcheSubset default is true, why is it making a second call to the server when I add a new letter. First input: cap Additional letter: i Then a new query goes out to the server: http://education.llnl.gov/jQuery/pages

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane Enos
Forgot to add my example link: http://education.llnl.gov/jQuery/ajax.html Click auto complete (unknown if this is working at all in IE right now). Definitely in FF. Your plugin is the second example. On 4/30/07 2:35 PM, "Shelane Enos" <[EMAIL PROTECTED]> wrote: > > Also, a few other issues.

[jQuery] Re: Detecting key presses.

2007-04-30 Thread MikeR
Oops, sorry folks! I answered my own question. I should have experimented a little more before posting :|. In case anyone else happens to wonder how, here is a very basic snippet: $(document).ready(function() { $('#test').keyup(function(e) { alert("A key was pressed");

[jQuery] Using a variable in a selector

2007-04-30 Thread poorgeek
I'm having the hardest time trying to figure out how to use a variable in a selector. I have the following code that works as part of a basic accordion menu but with a twist that if someone links to the page using an internal link then that section of the menu defaults to open. $(document).ready(

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Jörn Zaefferer
Shelane, thanks for your reports! That helps a lot. In detail: I believe I found a bug in the new autocompleter. Line 157 has: var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass); Good catch, fixed. If the default caching is set at 10 and matcheSubset default is

[jQuery] Getting the value of a select option by it's text

2007-04-30 Thread David
Hi, I have an odd problem that I'm trying to solve with jQuery. I have select box with multiple options. Each of the options has a value, which is a database id, and text which is what is displayed in the select box, e.g.: Please select: --- Phone me for payment details

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Guys, It occurred to me last night with the growing list of plug-ins and the fact that so many plug-ins now are dependant on other plug-ins, that we should try to add a couple of functions to the jQuery core for registering plug-ins and detecting if a plug-in has bee

[jQuery] Re: Using a variable in a selector

2007-04-30 Thread Jörn Zaefferer
poorgeek schrieb: I'm having the hardest time trying to figure out how to use a variable in a selector. I have the following code that works as part of a basic accordion menu but with a twist that if someone links to the page using an internal link then that section of the menu defaults to open.

[jQuery] Re: Getting the value of a select option by it's text

2007-04-30 Thread Jörn Zaefferer
David, Can anyone think of a way I can do this with jQuery? have you check the contains method? http://docs.jquery.com/DOM/Traversing#contains.28_str_.29 That should work for your case. -- Jörn Zaefferer http://bassistance.de

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane Enos
Ok, I tried the width thing by initially putting "300px" and nothing happened. Then I entered 300 and it worked fine. Can you place in the documentation the expected value type (an integer value). Or maybe allow people to set measurement types if you detect it's not an integer. I don't notice

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Brandon Aaron
I believe Yehuda has been working on something like Dan describes: http://dev.jquery.com/browser/branches/yehuda-dev/register.js I think I like what Jörn presents but not the name. It makes me think it would load the necessary files. Maybe $.required(). -- Brandon Aaron On 4/30/07, Jörn Zaeffe

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Dan G. Switzer, II
Shelane, >I don't notice my little indicator when it's doing the lookup. The file >that I have in my css file is there. Maybe my results are coming back too >fast :-) The odds are you the path you have in your CSS to the indicator icon is wrong. Remember the image path is relative from the CSS

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane Enos
That's why I did this: .ac_loading { background: ('/resources/images/indicator.gif') right center no-repeat; } On 4/30/07 3:42 PM, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > > Shelane, > >> I don't notice my little indicator when it's doing the lookup. The file >> that I have in my

[jQuery] Multiple draggable (interface) drag/drop question

2007-04-30 Thread dennis
I have gotten drag/ drop working with one draggable. I need to know the right way to do multiple draggables. I have a gallery app that will display rows of thumbnail images, and I need to be able to drag some subset of those into the dropbox. I have code working, like that below. I *CAN* make mu

[jQuery] Re: jqModal via POST ?

2007-04-30 Thread Brian Cherne
I basically have a ton of modal dialogs, some will require GET, some will require POST, and my initial thinking is to treat them all the same (send them all to jqModal). Then hack the plug-in (add a setting/configurable option) to strip params from the HREF and send them via POST. It wouldn't be t

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Dan G. Switzer, II
Shelane, >That's why I did this: >.ac_loading { >background: ('/resources/images/indicator.gif') right center no-repeat; >} Firefox is reporting the .ac_loading class as: .ac_loading { } I'm looking at: http://education.llnl.gov/jQuery/ajax.html -Dan

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Dan G. Switzer, II
Jörn, >// Implementation: >$.require = function(names) { > $.each(names.split(","), function(i, n) { > if( !$.fn[n] || $[n] ) > throw "required plugin " + n + " not found"; > }); >} >// Usage: >$.require("autocomplete,dimensions"); I was thinking o

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Dan G. Switzer, II
Brandon, >I believe Yehuda has been working on something like Dan describes: >http://dev.jquery.com/browser/branches/yehuda-dev/register.js > >I think I like what Jörn presents but not the name. It makes me think >it would load the necessary files. Maybe $.required(). I was just thinking of some

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-30 Thread Shelane Enos
Yes, I had a malformed style :-( I fixed it. I should have checked with firebug. That's for the extra pair of eyes. On 4/30/07 4:11 PM, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > > Shelane, > >> That's why I did this: >> .ac_loading { >>background: ('/resources/images/indicator.

[jQuery] Re: Getting the value of a select option by it's text

2007-04-30 Thread David
Hi, Thanks for the suggestion Jorn. That didn't work for me at first, it just returned me the object I already had, ie. the select element. But when I changed the selector to "#payment_method option" the magic started to happen. Thanks again, David Jörn Zaefferer wrote: David, Can anyon

[jQuery] Re: Keyboard shortcuts

2007-04-30 Thread DaveG
Did you get a chance to work on this? No hurry, I'd just like to use it if it's available. ~ ~ Dave Gilles (Webunity) wrote: Yes i've ported this to jQuery, i'll add it to SVN tonight. It has thesame options as the keyboard_shortcuts, but i've improved (cleaned up) the code a lot. You can b

[jQuery] .attr()

2007-04-30 Thread Ariel Jakobovits
I am looking for an explanation as to why .attr('id') executed on an array of jQuery elements does not return an array of ids.

[jQuery] Re: .attr()

2007-04-30 Thread Mike Alsup
That's just not what it does. Getter methods like that generally return the value for the first matched element. If you want a plugin to return all the values in an array you can write it like this (untested): jQuery.fn.attrs = function(key,val) { if (val != undefined) return this.ea

[jQuery] serialize() output in key/value pairs

2007-04-30 Thread [EMAIL PROTECTED]
Is there a way to easily convert a string of parameters [name=John&location=Boston] into key/value pairs [{name: "John", location: "Boston"}]? I found the FastSerialize plugin, but it claims that the native one is much faster, and doesn't require the extra plugin code. What I want to be able to

[jQuery] Re: serialize() output in key/value pairs

2007-04-30 Thread Erik Beeson
How about (untested): $.get("page.php?" + $("input").serialize()); --Erik On 4/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a way to easily convert a string of parameters [name=John&location=Boston] into key/value pairs [{name: "John", location: "Boston"}]? I found the FastS

[jQuery] Re: Multiple draggable (interface) drag/drop question

2007-04-30 Thread Erik Beeson
I don't get what the problem is. Are you wanting different settings on the draggables? If the issues is just how to apply Draggable to bunch of elements, just do $('.dropaccept').Draggable(...) Your droppable settings appear to be identical except for the function parameter name, which is an irr

[jQuery] Re: Using a variable in a selector

2007-04-30 Thread Justin Stockton
window.location returns the current URL in the browser's locator. window.location.hash refers to the specific part of the page that the URL refers too (the part that follow the #). So if you're visiting http://example.org/index.html#foo then window.location would return http://example.org/index.ht

[jQuery] Re: .attr()

2007-04-30 Thread Ariel Jakobovits
Thanks for the response Mike. That "Getter methods like that generally return the value for the first matched element" doesn't make sense to me. Why? There's no need for this altered behavior. It breaks the jQuery model in my opinion. Unless I am missing something. Everything else in jQuery o

[jQuery] Re: .attr()

2007-04-30 Thread Karl Rudd
It does "break the model" in some sense, but I think that is only because the API seems to be built from actual use rather than on a theorectical structure. I can't honestly remember ever needing a list of the attributes of the objects I have selected. Mostly because you usually want to act on e

[jQuery] Re: An idea for a jQuery core addition - Plugin Registering...

2007-04-30 Thread Christof Donat
Hi, > // Implementation: > $.require = function(names) { > $.each(names.split(","), function(i, n) { > if( !$.fn[n] || $[n] ) > throw "required plugin " + n + " not found"; > }); > } > // Usage: > $.require("autocomplete,dimensions"); Why not use O

[jQuery] OT: Suppress Apache Authentication

2007-04-30 Thread Sean Catchpole
Simple problem: I add an image from an external site to the page and sometimes the site is protected by Apache authentication so it pops up a login box. This is really annoying, any ideas on how this can be suppressed. All creative suggestions accepted. ~Sean

[jQuery] demo request: Page Content Menu

2007-04-30 Thread Ariel Jakobovits
Hey Joel, :), how about a demo page for 'Page Content Menu'?