[jQuery] break in $.each

2007-01-04 Thread Andreas Wahlin
Is there a way to break the $.each loops? I'd like it to be $.each(object, function() { break; }); but it doesen't seem so. Andreas ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] noob q - using $().html

2007-01-04 Thread Daniel McBrearty
On 1/4/07, Karl Swedberg [EMAIL PROTECTED] wrote: I should have mentioned that I changed the HTML as well. I added an ID to the submit button (submit-member). Notice how the event is being triggered now: $('#submit-member').click(function() {...}); yes, I have that, and the event is happening

Re: [jQuery] noob q - using $().html

2007-01-04 Thread Daniel McBrearty
and yes, I've gone over to using a button type, and will likely cut out the form tags too. thanks for that suggestion Doug. -- Daniel McBrearty email : danielmcbrearty at gmail.com www.engoi.com : the multi - language vocab trainer BTW : 0873928131

Re: [jQuery] noob q - using $().html

2007-01-04 Thread Daniel McBrearty
OK, I've fixed it. I also had a table which was used to align elements which I had omitted for clarity. I looked up prev(), and saw that it looks for the unique previous element ... removed the table and all is OK. My code us now this: (in myapp.js ) $(document).ready(function() {

[jQuery] Events on Document versus preventing Text Selection

2007-01-04 Thread Paul Bakaus
Hi guys, I have a really really strange problem. I have the following case, which I think is actually a browser bug that occurs in all major browsers: 1.) I have a mousemove event attached to the document 2.) If I move out of the window holding a key pressed, the event still fires, which is what

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Dan Atkinson
Christof, I'm afraid that I simply don't take Safari users into account. Hardly a great thing, but I focus on three browsers: Firefox and IE7, and then IE6. In that order. The work I do is targetted at corporate users who run Windows 2000 and Firefox, and all the JS work I do is for those users.

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread Webunity | Gilles van den Hoven
Gavin M. Roy wrote: I've released 0.11 of the jquery-modalContent plugin with the following changes: 2006-12-19 patch from Tim Saker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 1) Keyboard events are now only permitted on visible elements belonging to the modal layer (child elements).

[jQuery] Memory game

2007-01-04 Thread Peter Bengtsson
Has anybody written a game of Memory with jQuery that I can save myself a lot of work from? For those who can't remember how the game was played, here's an aweful example: http://www.queendom.com/mindgames/mindstretching/memory-games/memory-game1/index.html -- Peter Bengtsson, work

[jQuery] re. Wildcards

2007-01-04 Thread Bruce MacKay
Thanks Aaron, Jörn for your responses. Aaron - your solution gave me what I was after - I'd seen that [...] structure in a couple of posts in Nabble but I couldn't figure out how to use it (or even if it was what I needed). Jörn - in my context I'm using a class element (class=deleteA) in

[jQuery] Interface elements / Command Key

2007-01-04 Thread Daniel Lorch
Hi I have a suggestion to make for the interface elements plugin. I hope it is ok to post it here, since the interface elements website does not have a forum on its own (yet). Selections can be done with CTRL-click, but CTRL-click on the Mac simulates the right mouse button. So whenever I do a

Re: [jQuery] Interface elements / Command Key

2007-01-04 Thread Stefan Petre
Hi Daniel, Thx for your suggestion. I will update the code. Stefan   Daniel Lorch wrote: Hi I have a suggestion to make for the interface elements plugin. I hope it is ok to post it here, since the interface elements website does not have a forum on its own (yet). Selections can be done

[jQuery] Effects question

2007-01-04 Thread Hodicska Gergely
Hi! A colleague of mine yesterday sent this mail, but didn't arrive to the list. Now I try to resend it. Best Regards, Felhő --- Hi, I've just started working with jQuery (switched over from prototype) and while I'm enjoying the experience very much, I've run into

Re: [jQuery] Please wait.. tutorial

2007-01-04 Thread Mike Alsup
since blockUI is generally a very useful thing i'd like to propose a fairly simple workaround: just don't do the blending when firefox/linux is detected - only display the popup. @bander: Thanks for the feedback. 3 seconds is an interesting value because that's exactly how long the server

Re: [jQuery] center() plugin

2007-01-04 Thread Mike Alsup
I can't seem to find the center() plugin that is listed at visualjquery.com, anyone know where it is? http://jquery.com/dev/svn/trunk/plugins/center/center.js?format=txt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Please wait.. tutorial

2007-01-04 Thread Sam Collett
On 04/01/07, Mike Alsup [EMAIL PROTECTED] wrote: since blockUI is generally a very useful thing i'd like to propose a fairly simple workaround: just don't do the blending when firefox/linux is detected - only display the popup. @bander: Thanks for the feedback. 3 seconds is an

Re: [jQuery] break in $.each

2007-01-04 Thread Klaus Hartl
Andreas Wahlin schrieb: Is there a way to break the $.each loops? I'd like it to be $.each(object, function() { break; }); but it doesen't seem so. Andreas ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] noob q - using $().html

2007-01-04 Thread Klaus Hartl
Doug Tabacco schrieb: True, but if it's not meant to be submittable, you could always just remove the form tags as well. I always think of graceful degradation when building scripts/pages. With JavaScript off any form is submittable, no matter if it is meant to be or not. From the initial

Re: [jQuery] Dimensions plugin myths ... was: Please wait.. tutorial

2007-01-04 Thread Klaus Hartl
Brandon Aaron schrieb: The dimensions plugin does not overwrite anything anymore. It only *extends*. If you are currently using the .height() and .width() methods from the core and then include dimensions.js, it will *not* break anything. If it does, then please log it in the bug tracker so

Re: [jQuery] Please wait.. tutorial

2007-01-04 Thread Mike Alsup
Perhaps a better option would be for the overlay to use the same background (image or colour) as the page? The effect would be the same as having a page with only the loading message on it. I think that would be rather jarring visually. The page should remain visible, just not usable. For

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread Klaus Hartl
Webunity | Gilles van den Hoven schrieb: Gavin M. Roy wrote: I've released 0.11 of the jquery-modalContent plugin with the following changes: 2006-12-19 patch from Tim Saker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 1) Keyboard events are now only permitted on visible elements

Re: [jQuery] break in $.each

2007-01-04 Thread Sam Collett
On 04/01/07, Klaus Hartl [EMAIL PROTECTED] wrote: Andreas Wahlin schrieb: Is there a way to break the $.each loops? I'd like it to be $.each(object, function() { break; }); but it doesen't seem so. Andreas ___ jQuery

Re: [jQuery] break in $.each

2007-01-04 Thread Mike Alsup
Also, why does a string get returned as an array instead of a string? I think that's just a firebug thing. It sees that the object has a length prop and treats it like an array. But more interesting is that your test did not produce the expected results.

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread Webunity | Gilles van den Hoven
Wow, lots of code... for my Thickbox adaption the following worked fine: html, body { min-height: 100%; } #yourDiv { height: 100%; } #yourDiv has to be a direct child of the body... Ah, thanks. But what if i want to overlay an overlay? Gilles

[jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Mika Tuupola
Upon upgrading to jQuery 1.0.4 some of my slideUp/Down elements started to flicker. With 1.0.3 this problem did not exist. http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown5.html http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown6.html (Click the blue box in the

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread smoore
Giles, by any chance do you have an example of overlaying an overlay? I'd be interested in seeing how that worked. Scott Webunity | Gilles van den Hoven wrote: Wow, lots of code... for my Thickbox adaption the following worked fine: html, body { min-height: 100%; } #yourDiv {

[jQuery] Basic Javascript Question

2007-01-04 Thread Shane Graber - jQuery
I've just begun using javascript and jquery and I'm very impressed with what can be acheived using it. Thank you for an excellent product! :) This may seem like a basic question but I've just started working with javascript and am learning as I go. Why is it that $(document).ready(function()

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread Webunity | Gilles van den Hoven
smoore wrote: Giles, by any chance do you have an example of overlaying an overlay? I'd be interested in seeing how that worked. It was just theoretical ;) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Brian Litzinger
I noticed it Firefox, but surprisingly it doesn't happen for me in Safari. I'm injecting html into a div then sliding it down, and I assumed I might not have written the code correctly, but I also noticed it on normal elements as well. Brian Mika Tuupola wrote: Upon upgrading to jQuery

[jQuery] Interface: Sortables ghosted item doesn't take the css correctly

2007-01-04 Thread Brian Litzinger
I have a sortable list which contains quite a bit of html which includes a child ul, and I noticed when I drag the element not all the css styles are retained in the ghosted item. For example the child ul has the list-type: none, but when its drug the bullets appear. A couple elements with

Re: [jQuery] Dimensions plugin myths ... was: Please wait.. tutorial

2007-01-04 Thread Brandon Aaron
On 1/4/07, Klaus Hartl [EMAIL PROTECTED] wrote: Brandon Aaron schrieb: The dimensions plugin does not overwrite anything anymore. It only *extends*. If you are currently using the .height() and .width() methods from the core and then include dimensions.js, it will *not* break anything. If

Re: [jQuery] Error: 'nodeName is null or not an object' (What am I doing wrong?)

2007-01-04 Thread Christopher Jordan
Let me see what I can come up with. The app is not public, but maybe I can throw something together that demonstrates the problem and put it on my website. Cheers, Chris bmsterling wrote: Is there a way we can see this in action, I looked at the code and nothing jumps out at me. --

Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Brandon Aaron
I'm not actually able to reproduce the flicker on Firefox 2 on mac or Firefox 1.5 on pc with either link. However, I do believe it is possible to have a flicker if the system is bogged down and here is why. Previous to 1.0.4 there were problems with nested and dynamically loaded html into

Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-04 Thread Klaus Hartl
Webunity | Gilles van den Hoven schrieb: Wow, lots of code... for my Thickbox adaption the following worked fine: html, body { min-height: 100%; } #yourDiv { height: 100%; } #yourDiv has to be a direct child of the body... Ah, thanks. But what if i want to overlay an

Re: [jQuery] Basic Javascript Question

2007-01-04 Thread Klaus Hartl
Shane Graber - jQuery schrieb: I've just begun using javascript and jquery and I'm very impressed with what can be acheived using it. Thank you for an excellent product! :) This may seem like a basic question but I've just started working with javascript and am learning as I go. Why is

Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Jeremy Dill
Ahh.. This might explain why 1.0.4 breaks a hack I made to fix an IE bug. I create an iframe element to shield DHTML layers absolutely positioned over select boxes. I was using $().show(10) to force the expansion of the Iframe within the box. This gives the box the exact dimensions required to

Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Brandon Aaron
Just use the bgiframe plugin found in the plugins folder in SVN (http://jquery.com/dev/svn/trunk/plugins/bgiframe/bgiframe.js?format=txt) It will take care of the proper height, width, etc. -- Brandon Aaron On 1/4/07, Jeremy Dill [EMAIL PROTECTED] wrote: Ahh.. This might explain why 1.0.4

[jQuery] Tablesorter jquery plugin modification

2007-01-04 Thread sesilu nitram anier
Hi, Your tablesorter jquery plugin make my life more easy. In our site we use a lot of tables and Your plugin help us vey much. But, we have tables with to much th with colspan in thead, and your plugin don't work with these. I make small modification to your jquery.tablesorte plugin to correct

[jQuery] Thickbox to be updated?

2007-01-04 Thread Sam Collett
Is this likely to be updated? The last version was for 1.0.2 of jQuery and I have come across a few bugs with it. For instance, I tried it on a page with little content and the overlay did not cover everything (i.e. white background at the bottom). Also, if you shrink the browser (tested on

[jQuery] Determining if an explicit width/height is set

2007-01-04 Thread Dave Methvin
I know this was asked before but I don't think it was answered. Is there a way to determine if a width was applied to an element? I can get the _current_ width via .css() or .curCSS and let's say it's 421px. I need to know whether that came from a inline or stylesheet rule width: 421px or that

Re: [jQuery] Determining if an explicit width/height is set

2007-01-04 Thread Brandon Aaron
Currently you could use the private method $.curCSS(element, property) to get the value contained within the style sheet. Just using .css() will use the private method $.css(element, property) which when looking for height or width it will calculate it. This is something on the table of proposals

Re: [jQuery] break in $.each

2007-01-04 Thread Michael Geary
Done a test (requires Firebug - or Firebug lite (which I presume would also work)). var foo = [one, 2, three, new Date()]; $.each(foo, function() { if(this === 2) return false; console.log(typeof this); } ) This logs: [o, n, e] 2

Re: [jQuery] Determining if an explicit width/height is set

2007-01-04 Thread Dave Methvin
Currently you could use the private method $.curCSS(element, property) to get the value contained within the style sheet. I tried that, but .curCSS also uses the calculated width (.currentStyle or .getComputedStyle) which retrieves a value without saying where or how it got that value. It could

[jQuery] attr() throws error

2007-01-04 Thread Jeremy Dill
When using the following code: alert($('#ContactSelect').attr('tabIndex')); I get [TypeError: elem has no properties.] when ContactSelect does not exist on the page. To avoid this error, I am doing this: if ($('*').index(document.getElementById('ContactSelect'))!=-1)

[jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Arne-Kolja Bachstein
Hi there, is there any easy possibility to send a GET request like when sending it via normal html? I am trying to simply load an URL with some GET parameters, but I cannot load it in the foreground, but only with getting a result set which represents the whole HTML code. I already tried via

Re: [jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Mike Alsup
is there any easy possibility to send a GET request like when sending it via normal html? I am trying to simply load an URL with some GET parameters, but I cannot load it in the foreground, but only with getting a result set which represents the whole HTML code. That sounds like the default

[jQuery] My .click() is not working... :o(

2007-01-04 Thread Christopher Jordan
I've got a stumper... well it's a stumper to me. I'm hoping someone here can help me with it. I posted the problem before, but it's slightly different now. In the function to follow, I'm adding a div element to the DOM that represents a row. Each row has a unique ID. For each of these divs

Re: [jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Arne-Kolja Bachstein
Mike Alsup schrieb: is there any easy possibility to send a GET request like when sending it via normal html? I am trying to simply load an URL with some GET parameters, but I cannot load it in the foreground, but only with getting a result set which represents the whole HTML code.

[jQuery] Fake Page Reload

2007-01-04 Thread fidoogle
I'm developing a test site for a major bank using jQuery, but the folks are not used to seeing the screen change so fast. I am using show/hide to show different screens. They are not happy with the screens showing so fast because they think the web users will not notice the differences in the

Re: [jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Ⓙⓐⓚⓔ
are you loading an entire html file into a body? ouch... that would insert the scripts too, which would re-execute.. and loop infinitely, you might want to get 'just the guts' and then insert that. On 1/4/07, Arne-Kolja Bachstein [EMAIL PROTECTED] wrote: Hi there, is there any easy

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Brandon Aaron
You could wrap the everything in a DIV and then call .hide() on that div. Pretty interesting request ... I want the application to be slower! lol... -- Brandon Aaron On 1/4/07, fidoogle [EMAIL PROTECTED] wrote: I'm developing a test site for a major bank using jQuery, but the folks are not

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Jonathan Sharp
What about absolutely positioning a div with a white background over everything witha z-index of like 1. Just flash it for like 500 miliseconds and viola. -js On 1/4/07, fidoogle [EMAIL PROTECTED] wrote: I'm developing a test site for a major bank using jQuery, but the folks are not

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Karl Swedberg
Why don't use just do something like .hide('slow') and .show('slow')? Or you could try Klaus Hartl's excellent Tabs plugin: Info: http://www.stilbuero.de/2006/11/05/tabs-version-2/ Demo: http://www.stilbuero.de/jquery/tabs/ --Karl _ Karl Swedberg www.englishrules.com

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Christopher Jordan
Have you tried implementing a loading message? Perhaps using the block UI plug-in? This would overlay the entire screen with a transparent (semi-transparent?) layer over which you could put a message like Please Wait Then when the call returns you can unblock the UI and change the page...

Re: [jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Mike Alsup
No, you didn't really. But I have to use some JS to do this, because the html form won't work that way. I am using a CMS that builds a form around all the content which prevents a form from being usable in the usual way, because nested forms don't work. So I have to manually read out the

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Michael E. Carluen
Instead of faking a reload, why don't you just add a status text message that would signal the user of what has just occurred... then status fades after a few seconds. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of fidoogle Sent: Thursday, January

[jQuery] A couple of simple questions.

2007-01-04 Thread Christopher Jordan
Hi folks, How can I tell what class (or classes) an element has? For instance I've got an elements like: div class=classA classB/div div class=classA classC/div How can I select all elements that have classA and ClassB but not classC? I'd also like to know how to select all items of a

Re: [jQuery] attr() throws error

2007-01-04 Thread Klaus Hartl
Jeremy Dill schrieb: When using the following code: alert($('#ContactSelect').attr('tabIndex')); I get [TypeError: elem has no properties.] when ContactSelect does not exist on the page. To avoid this error, I am doing this: if

Re: [jQuery] My .click() is not working... :o(

2007-01-04 Thread Ⓙⓐⓚⓔ
if ThisIndex is off by one .. you'd see the missing last click symptom... it's hard to tell because the code is large and I can't see if the classes get set correctly... you can simple slam the click on all the elements... it is overkill but that may shed some more light. On 1/4/07, Christopher

Re: [jQuery] A couple of simple questions.

2007-01-04 Thread Klaus Hartl
Christopher Jordan schrieb: Hi folks, How can I tell what class (or classes) an element has? For instance I've got an elements like: div class=classA classB/div div class=classA classC/div How can I select all elements that have classA and ClassB but not classC? $('div.classA,

Re: [jQuery] My .click() is not working... :o(

2007-01-04 Thread Christopher Jordan
Thanks Jake. I've been thinking that something is off by one, but I can't tell where it's getting that way. I've been putting debugging alerts all over the place. It seems to loop through the requisite number of times. :o/ I'll give something like you suggest a go... see what that tells me.

Re: [jQuery] My .click() is not working... :o(

2007-01-04 Thread Ⓙⓐⓚⓔ
Christopher, When I have a problem like this, I take a peek at what's really going on with firebug... I was turned on to firebug by the folks here first... it makes debugging almost fun! Jake On 1/4/07, Christopher Jordan [EMAIL PROTECTED] wrote: Thanks Jake. I've been thinking that something

Re: [jQuery] A couple of simple questions.

2007-01-04 Thread Christopher Jordan
Klaus Hartl wrote: Christopher Jordan schrieb: Hi folks, How can I tell what class (or classes) an element has? For instance I've got an elements like: div class=classA classB/div div class=classA classC/div How can I select all elements that have classA and ClassB but not classC?

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Matt Stith
or even better, use a slower effect, like slideUp, hide ('slow') or something, which would draw the users attention On 1/4/07, Michael E. Carluen [EMAIL PROTECTED] wrote: Instead of faking a reload, why don't you just add a status text message that would signal the user of what has just

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, I'm afraid that I simply don't take Safari users into account. Hardly a great thing, but I focus on three browsers: Firefox and IE7, and then IE6. In that order. The work I do is targetted at corporate users who run Windows 2000 and Firefox, and all the JS work I do is for those users.

Re: [jQuery] break in $.each

2007-01-04 Thread Michael Geary
Would you like an Array iterator that works the way you'd expect? Here is a simple one: Array.prototype.each = function( yields ) { for( var i = 0, n = this.length; i n; i++ ) { if( yields( this[i], i ) === false ) break; } };

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Dan Atkinson
That's a good, workable solution! Cheers, Dan Christof Donat wrote: Hi, I'm afraid that I simply don't take Safari users into account. Hardly a great thing, but I focus on three browsers: Firefox and IE7, and then IE6. In that order. The work I do is targetted at corporate users who

Re: [jQuery] My .click() is not working... :o(

2007-01-04 Thread Christopher Jordan
I'd love to do that, but my app doesn't work in FF... :o( Know of a good (and free) javascript console debugger for IE? Chris Ⓙⓐⓚⓔ wrote: Christopher, When I have a problem like this, I take a peek at what's really going on with firebug... I was turned on to firebug by the folks here first...

Re: [jQuery] Submit form and load URL (foreground)

2007-01-04 Thread Arne-Kolja Bachstein
Mike Alsup schrieb: No, you didn't really. But I have to use some JS to do this, because the html form won't work that way. I am using a CMS that builds a form around all the content which prevents a form from being usable in the usual way, because nested forms don't work. So I have to

[jQuery] Selectors..

2007-01-04 Thread spinnach
do jquery selectors support something like 'select every [EMAIL PROTECTED] OR password]', eg: $('[EMAIL PROTECTED]|password]) ? .. i know i can select them like $('[EMAIL PROTECTED],[EMAIL PROTECTED]'), but the other method could be faster, if supported, i think :)..

Re: [jQuery] best practice OOP for use with jQuery

2007-01-04 Thread Jörn Zaefferer
Briz schrieb: I'm mostly interested in how to cleanly and reliably deal with scope issues in callbacks. I haven't read every detail of your example. Some suggestions: - Do not extend Object.prototype. That can give you quite a lot of trouble - Try to gather all necessary callbacks inside the

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Michael Geary
I'm afraid that I simply don't take Safari users into account. Hardly a great thing, but I focus on three browsers: Firefox and IE7, and then IE6. In that order. The work I do is targetted at corporate users who run Windows 2000 and Firefox, and all the JS work I do is for those

[jQuery] Q: Extending Autocomplete Plugin...

2007-01-04 Thread Dan G. Switzer, II
I'm relatively new to jQuery. I've been playing around w/the API a bit and slowly implementing it into some work. Today I've been making some modifications to the Autocomplete library to meet certain requirements of a project. One of the modifications I've made is to allow local data to be passed

Re: [jQuery] Memory game

2007-01-04 Thread Jörn Zaefferer
Peter Bengtsson schrieb: Has anybody written a game of Memory with jQuery that I can save myself a lot of work from? For those who can't remember how the game was played, here's an aweful example: http://www.queendom.com/mindgames/mindstretching/memory-games/memory-game1/index.html I

Re: [jQuery] Effects question

2007-01-04 Thread Jörn Zaefferer
Hodicska Gergely schrieb: As far as I can see, this is because invoking the effect changes the display style of my element to block. My question is, is this the intended/desired behaviour or should this be considered a bug? Is there maybe a way to circumvent this changing of the display

Re: [jQuery] Stop page scroll when using slideUp/slideDown

2007-01-04 Thread smoore
Another thing I'm noticing is that IE breaks the link underline when using the below code. But if you then click anywhere else on the page after clicking the link, the underline reappears. And if you change 'var all_link' to $(this).html( # Hide All My Items ); it breaks in IE but works as

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Jörn Zaefferer
Michael Geary schrieb: Hmm... This would make a nice patch for jQuery itself - when it concatenates all the files to make the various dist versions, add this line to the end of the merged code: window.jQuery_onload jQuery_onload(); John et al, what do you think? The implementation is

Re: [jQuery] best practice OOP for use with jQuery

2007-01-04 Thread Felix Geisendörfer
- Use your object function (jQuery.foo) only as a constructor, try to put all methods into jQuery.foo.prototype (less stuff in cunstructor - better OO design) Obviously you can't access self from your methods, so you have to design everything well enough to be able to work without self Hmm

[jQuery] Dynamically removing an inline script block

2007-01-04 Thread Bruce MacKay
Hello folks, I'm seeking help in dynamically REMOVING an inline script block within the head tags. My current application involves a case study editor, wherein users add/delete/edit branches to a decision tree. The visual representation of the tree is generated by COOLjsTree

Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Jörn Zaefferer
Jeremy Dill schrieb: I have intentions of someday creating a jquery plugin to replace select boxes with customizable css dropdowns (while maintaining the selectbox hidden in form). There are already at least two implementations, though both work-in-progress, afaik. I think one was written by

Re: [jQuery] break in $.each

2007-01-04 Thread Jörn Zaefferer
Klaus Hartl schrieb: Andreas Wahlin schrieb: Is there a way to break the $.each loops? I'd like it to be $.each(object, function() { break; }); but it doesen't seem so. Andreas ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Q: Extending Autocomplete Plugin...

2007-01-04 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: jQuery.fn.autocompleteLocal = function(data, options) { return jQuery.fn.autocomplete(null, options, data); } But this doesn't work. How can I extend the jQuery.fn.autocomplete plug-in to do what I want? Your example doesn't make much sense. Maybe something

Re: [jQuery] best practice OOP for use with jQuery

2007-01-04 Thread Jörn Zaefferer
Felix Geisendörfer schrieb: Personally I prefer wrapping all of my class code inside a function over using prototype to extend it. By using the prototype you force yourself to design without relying on the closure everywhere. If this results in a better design or not is more or less personal

Re: [jQuery] Dynamically removing an inline script block

2007-01-04 Thread Andy Matthews
$('script').remote(); Should do the trick right? Assuming that you put that before the call to Mike's function (which probably adds script tags). Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x865 Direct: 615.627.9865 Fax: 615.467.6249 [EMAIL PROTECTED]

Re: [jQuery] break in $.each

2007-01-04 Thread Michael Geary
Andreas, if I remember correctly, the following should work: $.each(object, function() { return false; }); That isn't supported. The necessary code was removed due to unsolved problems. Actually the stuff that Michael just posted would help a lot to solve it, though I'm not

Re: [jQuery] best practice OOP for use with jQuery

2007-01-04 Thread Briz
Thanks, gentlemen. This is very helpful; exactly the kind of advice I was looking for. Zörn, re: changing Object.prototype, I just did that for this example so ie wouldn't throw an error when using .toSource(). I'm investigating this because jQuery has allowed me more time to think about better

Re: [jQuery] break in $.each

2007-01-04 Thread Jörn Zaefferer
Michael Geary schrieb: The code I posted does solve this problem completely - simply use objectEach instead of $.each, and change your callback function to take explicit parameters instead of using this. Using this in an object iterator doesn't make much sense anyway. You need two arguments

Re: [jQuery] Q: Extending Autocomplete Plugin...

2007-01-04 Thread Dan G. Switzer, II
Jörn, That was it. I'm having trouble figuring out the namespace of the plug-ins. Thanks! -Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer Sent: Thursday, January 04, 2007 5:05 PM To: jQuery Discussion. Subject: Re: [jQuery] Q:

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, That looks really dodgy, sorry. What if the browser downloads script and script2 at the same time, and script2 finishes first? It doesn't. script2 is not downloaded at all, it is like a inline script. As you might know scripts are evaluated in the order they are in the HTML code, that

Re: [jQuery] Dynamically removing an inline script block

2007-01-04 Thread Andy Matthews
You could also read in the file using Coldfusion or PHP and remove the script block that way. - Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x865 Direct: 615.627.9865 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com -Original Message- From: [EMAIL

Re: [jQuery] Dynamically removing an inline script block

2007-01-04 Thread Christof Donat
Hi, I'm seeking help in dynamically REMOVING an inline script block within the head tags. I guess you whant to remove values in a variable. You should not do that by removing script-tags, because that does not remove the variables in it. Send your data as JSON and write a refresh function

[jQuery] Bug in Nifty Corner Plugin

2007-01-04 Thread Olaf Bosch
Hi all, i found a little Bug in the great Nifty Corners Plugin, found at, http://labs.pb-projects.de/nifty/index.html The function same-height works not correct, see the Demo: http://olaf-bosch.de/bugs/jquery/nifty/ Cane we fix that? To know well, correct selektor also does not work, i must

Re: [jQuery] New large site using jquery

2007-01-04 Thread Hodicska Gergely
Hi, The new front-end platform is running on PHP 5 with the Smarty Template Engine (http://smarty.php.net) for templating, presentation plugins and front-end caching. Sorry for the offtopic, but maybe Template Lite would be a better choice in case of a high traffic site.

Re: [jQuery] Please wait.. tutorial

2007-01-04 Thread Mike Alsup
I think that's just getting too fancy for this plugin. This is meant to be a very low overhead solution and I'd like to get the size down to 1K if possible. Well, I couldn't get it under 1K, but it's under 2! (packed) I've made the following changes to blockUI: - ghosting is not performed

Re: [jQuery] Selectors..

2007-01-04 Thread Mike Alsup
do jquery selectors support something like 'select every [EMAIL PROTECTED] OR password]', eg: $('[EMAIL PROTECTED]|password]) ? .. i know i can select them like $('[EMAIL PROTECTED],[EMAIL PROTECTED]'), but the other method could be faster, if supported, i think :).. I think you can do

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, As you might know scripts are evaluated in the order they are in the HTML code, that is that script will be evaluated before script2 is. Interesting - is that guaranteed even when the scripts are added dynamically? Well, I don't know about any guarantees, but it works in all test I

[jQuery] setting an attribute... I *thought* this was how to do it...

2007-01-04 Thread Christopher Jordan
Hi folks, I've got another simple question. Is this not how you set an element's attribute? [from inside an .each()] $(this).attr(AttributeName, Value); I thought that worked... I thought it had worked for me in the past. Is there any reason that this wouldn't work: var i = 1;

Re: [jQuery] Selectors..

2007-01-04 Thread spinnach
..that's basically the same as $('[EMAIL PROTECTED],[EMAIL PROTECTED]'), but the docs say using :text is faster.. but it would be nice to have the ability to select elements in such manner ( eg. $('[EMAIL PROTECTED]|bar]') or $('[EMAIL PROTECTED]|bar]') ) i had a need for such things a few

Re: [jQuery] Fake Page Reload

2007-01-04 Thread Chris W. Parker
On Thursday, January 04, 2007 9:41 AM fidoogle said: They are not happy with the screens showing so fast because they think the web users will not notice the differences in the screens. They've asked me to put in page reloads. In their minds they want the code to go back to the server to

Re: [jQuery] break in $.each

2007-01-04 Thread Aaron Heimlich
I just took a look at the code for $.each and noticed that is passes two arguments to the callback, the name/index of the current item and the item itself (in that order). Test page: http://aheimlich.freepgs.com/tests/jquery/each-test/ On 1/4/07, Michael Geary [EMAIL PROTECTED] wrote:

Re: [jQuery] Effects question

2007-01-04 Thread Hodicska Gergely
Hi, This is a necessary limitation. May I ask you to explain why is this necessary. (We user earlier prototype and scriptaculos did not use this approach.) (Sorry for mentioning prototype on this mail list, I'm just curious about this topic.) A possible workaround is to put the inline

  1   2   >