Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-24 Thread Klaus Hartl
Choan C. Gálvez schrieb: On 10/24/06, Truppe Steven [EMAIL PROTECTED] wrote: i'm using the center plugin to center images inside a div. But i have to call it with a timeout like this: $(document).ready(function(){ setTimeout(doCenter(),1000); }); function doCenter(){

Re: [jQuery] Another update for form.js

2006-10-24 Thread Jörn Zaefferer
Hi Mike! before: Callback method to be invoked before the form is submitted. default value: null after:Callback method to be invoked after the form has been successfully submitted. default value: null Could you add some documentation about the parameters for

[jQuery] scrolling window when draggable leaves viewport?

2006-10-24 Thread Eckhard Rotte
Hi there, is it possible to get a scrolling feature for any drag/droppable? For Example: If you leave the viewport with an object and the document body is longer or wider than the viewport, the document scrolls connected to the mouse position. You can see a good example at this YUI demo:

Re: [jQuery] OT: Anyone know of a good tree control

2006-10-24 Thread Jörn Zaefferer
Kevin, that looks great! I bet those dotted numbers could be dynamically generated too! The numbers are useful when displaying the tree without JS. And while we are at it, remove the two buttons, or rather display them only when scripts are enabled. -- Jörn Zaefferer http://bassistance.de

[jQuery] jEditable question

2006-10-24 Thread Barry Nauta
Hi all, I have recently discovered jquery and jeditable. When using jeditable, I discovered two things: - Using firefox 1.0.8 jeditable does not return. I can edit my text and the changes are saved in the database. However, after hitting the enter butting (and thus submitting the changes),

Re: [jQuery] jEditable question

2006-10-24 Thread Miel Soeterbroek
Barry, I've added some code to show an error message. Quite ugly solution though: I catch all returned text, and look for the following string '[error]', if it's found, I revert the form field text and alert the error. The trick is to format the error texts well (ie containing the search

Re: [jQuery] new plugin: SIFR (Flash Image Replacement)

2006-10-24 Thread Oliver Boermans
I will give this a spin at work - thanks Gilles! On 22/10/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote: Hi guys, http://gilles.jquery.com/sifr/ enjoy ;) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Another update for form.js

2006-10-24 Thread Mike Alsup
Could you add some documentation about the parameters for those callbacks? Hi Jörn, The inline docs have more details about the callback args. I only posted the bit that itemized the available options. Thanks. Mike ___ jQuery mailing list

Re: [jQuery] Window Dialogues

2006-10-24 Thread Mike Alsup
It is allready pretty big in filesize, but i wanted as much flexibility as possible, meaning you can set: isDraggable, isResizable, hasTitlebar, hasStatusbar etc.etc. I think i can have a demo ready tomorrow late in the evening. Cool. Thanks Gilles!

Re: [jQuery] Expressions: Search for children within context

2006-10-24 Thread Brian Miller
Two thoughts: $( '* dt', context ); OR Just put an ID on the particulat dl that you want to use as the context. :) $( dl#foo dt ); - Brian Hi jQueryians, how do I search for a children within a context? In other words, how to translate this: $(context).children(dt)... into

[jQuery] ajaxError and response content

2006-10-24 Thread Robert Wagner
hi, server responses with like status header 500 will trigger ajaxerrors. is it possible to get the response content of such errors? i think that would actualy be nice. so one could check these responses before falling back to a generic message as in the documentation example:

[jQuery] url and uri

2006-10-24 Thread Enquest
Can somebody explain me how to read url's uri whit jquery... I want to change thing when ?id=1 etc with jquery. Enquest ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] jQuery and OOP

2006-10-24 Thread Kolman Nándor
Hi, I am new to jQuery, and I have a question concerning object oriented programming. I have created a sample scenario. In the HTML code I add a button: input type=button value=Count id=btnCounter / In js, I create a class called Counter. In the constructor I add an event handler to the click

Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-24 Thread Truppe Steven
The problem is that i need to center it vertical and horizontal. And i haven't found a crossbrowser way of doing that. The $(window).load works fine !! Truppe Steven ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Window Dialogues

2006-10-24 Thread Rey Bango
Oh yeah! Get er done Gilles! w00t! I asked for that awhile back as well. I love that plugin for Prototype. [EMAIL PROTECTED] wrote: Anyone know of any good movable, expandable and minimzable window dialogs (like http://prototype-window.xilinus.com/index.html for Prototype) I am allready

Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-24 Thread Giuliano Marcangelo
Steven,maybe this page will be of some assistance toyouhttp://www.pmob.co.uk/pob/hoz-vert-center.htmgiuliano On 24/10/06, Truppe Steven [EMAIL PROTECTED] wrote: The problem is that i need to center it vertical and horizontal. And ihaven't found a crossbrowser way of doing that.The $(window).load

Re: [jQuery] Expressions: Search for children within context

2006-10-24 Thread Jörn Zaefferer
Hi Brian! Two thoughts: $( '* dt', context ); Wouldn't that select all elements within context first, and then all dt children of those elements? Just put an ID on the particulat dl that you want to use as the context. :) $( dl#foo dt ); The context is the current jQuery selection

Re: [jQuery] Expressions: Search for children within context

2006-10-24 Thread Klaus Hartl
Two thoughts: $( '* dt', context ); Wouldn't that select all elements within context first, and then all dt children of those elements? That would select all dt elements that are a child of some element, which can (should) only be a dl element. If you had nested dls there it would

Re: [jQuery] Why do i need a delay in $(document).ready when using the center plugin ?

2006-10-24 Thread Klaus Hartl
Truppe Steven schrieb: The problem is that i need to center it vertical and horizontal. And i haven't found a crossbrowser way of doing that. The $(window).load works fine !! My first email doesn't get trough and there was an error of mine anyway...: Here's how I would do centering which

Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola
On Oct 24, 2006, at 12:06, Barry Nauta wrote: - Using firefox 1.0.8 jeditable does not return. I can edit my text and the changes are saved in the database. However, after hitting the enter butting (and thus submitting the changes), the busy icon is show forever, it does not return.

Re: [jQuery] jEditable question

2006-10-24 Thread Barry Nauta
1.0.8 is already a bit old. Will downgrade from 1.5.x series and try it out. It is indeed ;-) Nevertheless it would be great if this can be fixed. By the way, you do not mention that it works with IE on your website. It does work on XP SP2 with version 6.0.2900and some more version

Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola
On Oct 24, 2006, at 14:43, Robert Wagner wrote: how about that: if an error occours, let the server send a 500 header and the error message as a content. header(HTTP/1.1 500 Internal Server Error); print(this cannot be done.); Agreed. I find error headers to be more elegant and universal

Re: [jQuery] A question about ajaxStart and Stop

2006-10-24 Thread Mats Lindblad
You mean, initilized? Not executed ... right?Does not work for me.On 10/24/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:anywhere, it just has to be executed before the ajax call!Start simple, make sure your jq works in other contexts. On 10/23/06, Mats Lindblad [EMAIL PROTECTED] wrote: But where do I

Re: [jQuery] jEditable question

2006-10-24 Thread Barry Nauta
On Tuesday 24 October 2006 15:58, Mika Tuupola wrote: On Oct 24, 2006, at 14:43, Robert Wagner wrote: how about that: if an error occours, let the server send a 500 header and the error message as a content. header(HTTP/1.1 500 Internal Server Error); print(this cannot be done.);

Re: [jQuery] url and uri

2006-10-24 Thread Sean O
Check this recent thread for more info on this: http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf2481232.html#a6939213 ___ SEAN O code enquest wrote: Can somebody explain me how to read url's uri whit jquery... I want to change thing when ?id=1 etc with jquery.

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Michael Geary
Do you really need an object at all? This (pun intended) would do the same thing as all the code you listed: $(function() { var $btn = $('#btnCounter'), nr = 0; $btn.click( function() { $btn.attr( 'value', nr++ ); }); }); -Mike From: Kolman Nándor I am new

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Chris Ovenden
Nice question, Kolman. AFAIK, and I would love to hear different, is that this (ha ha) is the proper way to do it in Ecmascript languages. In fact, in 'neater' OOP languages like Java the same problem would occur if you had two parallel sets of objects, as we have here with the DOM and

Re: [jQuery] Window Dialogues

2006-10-24 Thread Chris Ovenden
Looks horrid in IE7 while the fake window is being built. On 10/24/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Wow that is pretty! But so big and unpleasantly written! I look forward to a jq version! On 10/23/06, Yehuda Katz [EMAIL PROTECTED] wrote: Anyone know of any good movable, expandable and

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Kolman Nándor
That is really nice and handy you wrote :), but I am writing a complex ajax application. I just created a simple scenario to show what I want. So yes, I really need it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Geary Sent: Tuesday,

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Brandon Aaron
It is somewhat ugly but it is JavaScript. Perhaps it would be helpful if jQuery had a method like Prototype's bind or Dojo's hitch. Is there a reason why jQuery doesn't have something similar? -- Brandon Aaron On 10/24/06, Kolman Nándor [EMAIL PROTECTED] wrote: Hi, I am new to jQuery, and I

Re: [jQuery] jEditable question

2006-10-24 Thread Robert Wagner
2006/10/24, Barry Nauta [EMAIL PROTECTED]: On Tuesday 24 October 2006 15:58, Mika Tuupola wrote: On Oct 24, 2006, at 14:43, Robert Wagner wrote: how about that: if an error occours, let the server send a 500 header and the error message as a content. header(HTTP/1.1 500 Internal

Re: [jQuery] jEditable question

2006-10-24 Thread Barry Nauta
that was my attempt too at first. error checking = application logic = write my own structures etc. but then think about error handling as a very basic thing that is already implementet in webserver, ajax functions etc. why not using this infrastructure? it's straightforward, ready to use...

Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola
On Oct 24, 2006, at 17:54, Robert Wagner wrote: Just my $0.02: I find this odd. Imagine that you want some processing to be done based on the input (i.e. server side email address checking) (We all that was my attempt too at first. error checking = application logic = write my own

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Dave Methvin
Mike's approach can be expanded to a complex ajax application. Closures and element properties are natural ways to associate instance data with elements in jQuery. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kolman Nándor Sent: Tuesday, October 24,

[jQuery] Updating multiple select fields at once

2006-10-24 Thread Andy Matthews
I've got a page which allows a user to set profiles for hours of the day. There are a LOT of dropdowns on this page and I've had some users which say they want to set all the dropdowns to a specific value. Setting them all manually would take a few minutes of time. So the users want to know if

Re: [jQuery] Window Dialogues

2006-10-24 Thread Dan Atkinson
One that's already done in a way. Uses the pre-existing thickbox though. http://bryanbuchs.com/tb_dialog/ wycats wrote: Anyone know of any good movable, expandable and minimzable window dialogs (like http://prototype-window.xilinus.com/index.html for Prototype) -- Yehuda Katz Web

Re: [jQuery] Updating multiple select fields at once

2006-10-24 Thread Dave Methvin
How about something like this? jQuery.fn.selectOption = function(v) { return jQuery.each(function(){ for ( var i=0; i this.options.length; i++ ) if ( this.options[i].value == v ) { this.selectedIndex = i; return; } }; };

Re: [jQuery] Window Dialogues

2006-10-24 Thread bbuchs
Probably not what Yehuda is looking for. My Dialog is essentially a replacement for window.confirm() calls. Dan Atkinson wrote: One that's already done in a way. Uses the pre-existing thickbox though. http://bryanbuchs.com/tb_dialog/ wycats wrote: Anyone know of any good

[jQuery] Drop Down Menu

2006-10-24 Thread [EMAIL PROTECTED]
Hello there: Is there a reliable Drop-Down menu plug-in for JQuery? I've created a quick example here: *http://tinyurl.com/y4qsx5* So far, I cannot figure out how to postpone the SlideUp effect when the mouse goes over the drop down menu itself. Please help, thank you. Roso * *

Re: [jQuery] A question about ajaxStart and Stop

2006-10-24 Thread Ⓙⓐⓚⓔ
by execute I meant execute the bind, not execute the function that was bound You got it right. Perhaps you need to put it up on the web with a link... this extremely simple one works for me: $(html) .ajaxStart(function(){ $(this).background(blue);}) .ajaxStop(function(){

Re: [jQuery] Updating multiple select fields at once

2006-10-24 Thread Andy Matthews
I got this taken care of. jQuery makes it SOOO easy. function changeAll() { var theValue = $('#setallvalues').val(); $('select').val(theValue); } !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED]

Re: [jQuery] jEditable question

2006-10-24 Thread Miel Soeterbroek
Mika In order to keep the code as reusable as possible, i'd just go for the custom callback method, and leave the way of handling the response to the user. That way, i (and perhaps others) will be able to implement quick and dirty error handling, and others can go with JSON or anything else.

Re: [jQuery] jEditable question

2006-10-24 Thread Robert Wagner
2006/10/24, Mika Tuupola [EMAIL PROTECTED]: On Oct 24, 2006, at 17:54, Robert Wagner wrote: Just my $0.02: I find this odd. Imagine that you want some processing to be done based on the input (i.e. server side email address checking) (We all that was my attempt too at first. error

Re: [jQuery] Why doesnt this work ?

2006-10-24 Thread Miel Soeterbroek
Not quite sure (total javascript noob here :) ), but i think the contains method is meant to be fired on an element, not on an attribute value (and any String for that matter) Guru's, correct me if i'm wrong ;) Something like this should work: (not tested btw) var arrowSrc =

[jQuery] Drop Down Menu

2006-10-24 Thread [EMAIL PROTECTED]
There ya go, thanks a lot Kevin. Will have to use that solution instead. I would like to know how to access and manipulate core internal methods and variables. More documentation on that would be extremely welcomed. Thanks again, Roso [EMAIL PROTECTED] wrote: The problem is that the user

Re: [jQuery] Why doesnt this work ?

2006-10-24 Thread stargate
well for a noob this was a great guess and hitting solution ;) Thx a lot Miel! Not quite sure (total javascript noob here :) ), but i think the contains method is meant to be fired on an element, not on an attribute value (and any String for that matter) Guru's, correct me if i'm wrong ;)

[jQuery] accordian with text fade out

2006-10-24 Thread Benjamin Sterling
Hey all, Got the accordion script from another site (cant remember where exactly) and modified it to fit my needs, But now I need to have the text fade in once a tab is opened and fade out then close when an other tab is clicked. Here is the link with out the fadeIn/fadeout:

Re: [jQuery] S.L.O.W.

2006-10-24 Thread Brandon Aaron
Could you post a link? -- Brandon Aaron On 10/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anybody know why it takes at least 2 seconds for a page with jQuery to load in IE? That is not the same in Firefox where it seems to work much faster. To make it clear, IE is slow when you

[jQuery] Tabs plugin: custom structure

2006-10-24 Thread Klaus Hartl
Hi all, from the beginning the plugin was relying on a certain HTML structure div id=container ul ... ul div id=tab-1 ... /div ... /div For some more flexibility and being able to apply somewhat advanced styling I have added another option:

Re: [jQuery] Tabs plugin: custom structure

2006-10-24 Thread Klaus Hartl
Hence you could use an ordered list or whatever for your tabs PS: Make it something useful ;-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Tabs plugin: custom structure

2006-10-24 Thread Giuliano Marcangelo
So using an unordered list for the tabs , we could paint the tabs using the sliding doors technique...good idea KlausOn 24/10/06, Klaus Hartl [EMAIL PROTECTED] wrote: Hence you could use an ordered list or whatever for your tabsPS: Make it something useful ;-)--

[jQuery] triggering an event

2006-10-24 Thread Adam van den Hoven
I was wondering having done: $(.foo).click(function (e) {alert (foo);}); Can I force the click event to fire manually, or do I resort to var x = function (e) {alert (foo);} $(#foo).click(x); ele = $(#foo).get(0) x.call( ele, {target:ele}); Adam ___

Re: [jQuery] triggering an event

2006-10-24 Thread Webunity | Gilles van den Hoven
Adam van den Hoven wrote: Can I force the click event to fire manually, or do I resort to I think you can do this with the apply call, although i am unsure how ;) P.s. nice surname ;) ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] triggering an event

2006-10-24 Thread Klaus Hartl
Adam van den Hoven schrieb: I was wondering having done: $(.foo).click(function (e) {alert (foo);}); Can I force the click event to fire manually, or do I resort to var x = function (e) {alert (foo);} $(#foo).click(x); ele = $(#foo).get(0) x.call( ele, {target:ele}); Hi Adam, fire

Re: [jQuery] triggering an event

2006-10-24 Thread Michael Geary
I was wondering having done: $(.foo).click(function (e) {alert (foo);}); Can I force the click event to fire manually, or do I resort to var x = function (e) {alert (foo);} $(#foo).click(x); ele = $(#foo).get(0) x.call( ele, {target:ele}); You can use either of these (they do the

Re: [jQuery] triggering an event

2006-10-24 Thread Dave Methvin
Can I force the click event to fire manually? To trigger an event you can use...wait for it...trigger(). :-) $(foo).trigger(click); Or you can call click with no arguments: $(foo).click(); As with a real click, the this will be pointing to the element. I'm not sure about the details of the

Re: [jQuery] Blurry Text using JQuery... But only in IE - WORKAROUND

2006-10-24 Thread George Adamson
My problem is that the text in the JTicker plugin is coming in blurry. Yeah it is a bug in IE but you can workaround it by explicitly setting the background color of the blurry elements (to any color other than transparent) George -- View this message in context:

[jQuery] jQuery Talk at Ajaxian

2006-10-24 Thread Yehuda Katz
John's talk at the jQuery conference was excellent, and a good package of arguments for the serious jQuery evangelist. I'm not sure whether the slides are available online, but I'd take a look at them when they become available. -- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325

Re: [jQuery] Short question on how to pass parameters from html to javascript functions

2006-10-24 Thread Klaus Hartl
Truppe Steven schrieb: Hello, i have some javascript that i execute inside a $(document).ready to init stuff need to be done if javascript is available. now i want to pass parameters somehow. My first thought was just to use an standart attribute like a href=.. class=isearchforthis

[jQuery] .appendTemplated plugin (my first!)

2006-10-24 Thread Kurt Mackey
In my perfect world, all data I get from a server will be JSON, and I can format it how I please. Doing that with jQuery is somewhat verbose at the moment, leaving me with awesome code like this: var headlines = $(Journals.HeadlinesContainer); for(i in json){ var li =

Re: [jQuery] jQuery and OOP

2006-10-24 Thread Blair Mitchelmore
A technique you might find slightly less ugly is passing 'this' as an argument when you bind the event. If I recall correctly, jQuery has the ability to pass an arbitrary number of additional arguments as an additional argument array to the event bind function. function Counter() {

Re: [jQuery] jEditable question

2006-10-24 Thread Barry Nauta
1) Add an configuration option what kind of response jEditable expects. This requires less coding from end user. Bad thing is it adds bloat to jEditable since all different response types need their own handlers inside plugin code. Yep, this doesn't sound right to me... Sometimes you just

[jQuery] Function from jquery_auto

2006-10-24 Thread Olaf Bosch
Hello, i find this fine Plugin: http://sputnik.pl/code/javascript/jquery_auto can i use the Auto-submitting SELECTs Function solo? not in the Plugin, i write this, works no: $(document).ready(function() { $('SELECT.Submit').bind('change', this.on_change); function change() { if (this.value)

Re: [jQuery] Drop Down Menu

2006-10-24 Thread Olivier Percebois-Garve
look at http://be.twixt.us/jquery/suckerFish.php olivvv [EMAIL PROTECTED] wrote: Hello there: Is there a reliable Drop-Down menu plug-in for JQuery? I've created a quick example here: *http://tinyurl.com/y4qsx5* So far, I cannot figure out how to postpone the SlideUp effect when the mouse

Re: [jQuery] Drop Down Menu

2006-10-24 Thread Ⓙⓐⓚⓔ
it works except when the item is clicked on, the menu does not retract (un-pop) I had the same problem with my css menu, until I added the snippet: $(.menu ul).click(function(){$(.menu).hide().animate({ height: 'show'}, 100)}); to snap the menu away from the cursor, thus making it no