Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Andreas Wahlin
For instance the use of the setInterval() to make ready() work semi-nicely with Safari, or when to use filter in IE to implement the standard opacity property. There's no way to quickly and easily detect when these should be applied except for detecting the browser. Not true I think ... this

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Klaus Hartl
Andreas Wahlin schrieb: For instance the use of the setInterval() to make ready() work semi-nicely with Safari, or when to use filter in IE to implement the standard opacity property. There's no way to quickly and easily detect when these should be applied except for detecting the browser.

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Christof Donat
Hi, Mozilla added document.all if I remember correctly. And so on... You can use document.all with Mozilla, but if(document.all) ... else ... still choses the else path. It is opera that has problems with it - I trapped into it. To detect IE (which is 90% of what I need) I now use

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Klaus Hartl
Christof Donat schrieb: Hi, Mozilla added document.all if I remember correctly. And so on... You can use document.all with Mozilla, but if(document.all) ... else ... still choses the else path. It is opera that has problems with it - I trapped into it. To detect IE (which is 90%

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Andreas Wahlin
This discussion is becoming somewhat separated from the subject, but what about conditional comments? ANdreas ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] http://www.acko.net/blog/jquery-menu-scout -- jQuery Menu Scout

2006-12-11 Thread Dan Atkinson
This is good, but did you have to put the link in only the title?! Ⓙⓐⓚⓔ wrote: saw this today, about jquery on drupal.org! -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View

[jQuery] plugin to store and fetch JSON in class

2006-12-11 Thread Andreas Wahlin
I discovered that the meta-data plugin wasn't all I wanted, so I wrote a very small plugin to store and fetch json from the class attribute. $(element).json() will return a json-string stored in the class attribute from the first matched element $(elements).json(string) will set the

Re: [jQuery] IE6 fadeIn/fadeOut Problem (css prob?)

2006-12-11 Thread Brandon Aaron
Can you get the latest from SVN and see if that fixes the problem? -- Brandon Aaron On 12/9/06, stargate [EMAIL PROTECTED] wrote: Hello, i have a problem with the fadeout/fadein function on IE with jquery.I'm not really sure if this has something to do with jquery, but as far as i figured

Re: [jQuery] IE6 fadeIn/fadeOut Problem (css prob?)

2006-12-11 Thread Brandon Aaron
On 12/9/06, Brice Burgess [EMAIL PROTECTED] wrote: Glen Lipka wrote: I didn't analyze the whole thing, but just a quick question: Have you considered using the fadeTo() function? it works better than messing with the opacity in the CSS. Glen In jQ 1.0.3 + you can also use

Re: [jQuery] Custom Jquery Builds

2006-12-11 Thread Pje
Anyone know if there is a plan to have it in the main site? I think that custom builds its a great tool. A good example of custom builds its the one from mootools. (http://mootools.net/download/release) On 12/9/06, Karl Swedberg [EMAIL PROTECTED] wrote: On Dec 9, 2006, at 2:57 PM, Scottus

Re: [jQuery] Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Jessica O'Donnell
Can someone please delete my email from this thing? I have tried to cancel many times. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Skinner Sent: Monday, December 11, 2006 8:58 AM To: discuss@jquery.com Subject: [jQuery] Trouble with $(expr,

Re: [jQuery] Ajax updating a div

2006-12-11 Thread Rey Bango
Hi Simon, I'm not sure if you received a reply on this as I didn't see one but here's some sample code that may help: $('#throbberSearch') .ajaxStart(function(){ $(searchResultsDiv).hide(); $(this).show(); }) .ajaxStop(function(){ $(this).hide(); $(searchResultsDiv).show();

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread richard . b
On Monday 11 December 2006 02:50, John Resig wrote: If object detection was completely feasible, that'd be great. Unfortunately, it doesn't work in many real-world instances. For example, how do you do an object detection for things that aren't objects? Object detection is used in jQuery,

Re: [jQuery] Efforts to Convert Folks to jQuery

2006-12-11 Thread Jonathan Sharp
On 12/10/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: David schrieb: Dave Methvin schreef: jQuery: Write less and do more jQuery: Say no more (for Monty Python fans) jQuery: Web programming, short and sweet As long as we are making slogans. I will give it a shot as well jQuery : the

[jQuery] problem with modalContent plugin

2006-12-11 Thread Jeremy Bratton
I'm trying to use the Glyphix modalContent plugin and having some issues. The examples on the plugin page work fine, but when I try to use it in my own code -- even a simple example -- I get an error message: e.style has no properties jquery.js (line 389) anonymous jquery.js (line 389)

Re: [jQuery] problem with modalContent plugin

2006-12-11 Thread Mike Alsup
Any ideas? Or, could anybody provide the simplest working example so that I can try that here and compare with my code? Here's a simple example: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml;

[jQuery] Confused with tablesorter and tablepager plugins

2006-12-11 Thread Joan Piedra
Hey guys and guls! This is my first post in the list, and I'm starting with jQuery, it is an awesome framework, great work developers and my congratulations to the developers. So I'm getting into it and implementing jQuery with a CMS I made, but I had a little problem with tablesorter and

Re: [jQuery] Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Michael Geary
From: Adam Skinner I'm trying to reference an element from within an iframe. The following normal javascript code works: var iframeDoc = window.frames[iframeName].document; var data = iframeDoc.getElementById(iframeElement); I'm trying to jqueryize the data variable as

Re: [jQuery] Custom Jquery Builds

2006-12-11 Thread Alex Cook
It's been discussed, but I believe most energy is being spent on finalizing 1.1 at the moment... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pje Sent: Monday, December 11, 2006 6:01 AM To: jQuery Discussion. Subject: Re: [jQuery] Custom

Re: [jQuery] problem with modalContent plugin

2006-12-11 Thread Dave Methvin
Basically, it seems that my code calls $('#a_div_id').modalContent() which calls $(window).height() and that ends up trying to reference window.style in a swap function and window.style is null. Maybe you're missing an include for the dimensions plugin? The dimensions.js plugin allows you to

Re: [jQuery] Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Dave Methvin
I'm trying to reference an element from within an iframe. The following normal javascript code works: var iframeDoc = window.frames[iframeName].document; var data = iframeDoc.getElementById(iframeElement); I'm trying to jqueryize the data variable as follows (using the actual

[jQuery] Problems applying styles to tooltip plugin

2006-12-11 Thread jyl
This is using the tooltip plugin from bassistance.de. Test page: http://fjsoftllc.com/testpage.html In IE6 I am seeing the red background of the extra class but not transparency or the font family or font size I asked for. In Mozilla, I see the bigger font size (60pt, sorry) but the tooltip

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Yeah, that makes sense, use browser detection to catch those few hard to detect bugs, but use object detection by default. Wouldn't it be a good idea to re-write the event functions something like this? (Just an example, not tested in jquery) : fix:

Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Jörn Zaefferer
Dave Methvin schrieb: The #id notation in a selector always uses document.getElementById; in your case it's the wrong document (the document that contains the iframe, not the document of the iframe). One workaround would be to select the object manually when you create the jQuery object,

Re: [jQuery] problem with modalContent plugin

2006-12-11 Thread Jeremy Bratton
On 12/11/06, Mike Alsup [EMAIL PROTECTED] wrote: Here's a simple example: ... script type=text/javascript src=dimensions.js/script On 12/11/06, Dave Methvin [EMAIL PROTECTED] wrote: Basically, it seems that my code calls $('#a_div_id').modalContent() which calls $(window).height() and that

Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Dave Methvin
I'm just wondering if we could implement an at least not-that-slow-if-used-often approach to simulate getElementById eg. on XML docs. I think you could just change this: if ( m[1] == # ) { // Ummm,

[jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread digital spaghetti
Hey folks, I'm pretty happy with the setup over at http://getjquery.org now - I have groups up and running (so working groups can be created), buddy lists for the social element and a few other cool things so go check it out. Apologies for the length of this email also, but I'm typing this as I

Re: [jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread Jessica O'Donnell
Please help me! I can't get my name off of this mailing list! I have tried to remove at least 10 times. This is my work email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of digital spaghetti Sent: Monday, December 11, 2006 2:22 PM To:

Re: [jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread Christopher Jordan
Jessica, Follow the link below and it should get you to a page where you can manage your jQuery discussion subscription options (including removing yourself). This works just fine, as I just removed an address for myself just this last weekend, and added a different address. I hope this

[jQuery] Traverse Question

2006-12-11 Thread Anaurag Gupta
Greetings. How is it I can traverse to the first previous element from a given specific element? So if I click on image, I can find from the position within the DOM of that image, the first paragraph that precedes it? Thanks Muchly.

Re: [jQuery] Traverse Question

2006-12-11 Thread Choan C. Gálvez
On 12/11/06, Anaurag Gupta [EMAIL PROTECTED] wrote: Greetings. How is it I can traverse to the first previous element from a given specific element? So if I click on image, I can find from the position within the DOM of that image, the first paragraph that precedes it? This should work:

Re: [jQuery] InterfaceElements/Sortables - Help with mousedown bindings

2006-12-11 Thread tony rasmus
Thank you, Karl, for all your help so far. For anyone who has a similar issue... In idrag.js, I commented out the *second* call to onselectstart and everything worked perfect (when combined with Karl's recommendation of stopPropagation): 466: if (window.ActiveXObject) { 467:

Re: [jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread Scottus
Hi I am new to the list, and this open source promotion thing but shouldn't the first thing on a getJquery.com Site be the cool button and link that I should put on my site that uses jquery. I clicked around and I couldn't find them, if they don't exist that should be job #1. On 12/11/06,

Re: [jQuery] Traverse Question

2006-12-11 Thread Anaurag Gupta
Felix Geisendörfer How about: $(#yourimage).prev(p:last); Nope. Again, am trying to find the first occurance of P, working backwards from the Img. body pdon't find me/p tabletrtdpdon't find me/p/tdtdpFind Me!/p/td/tr/table img id=yourimage src=# / pdon't find me/p /body Thanks in

Re: [jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread Stephen Woodbridge
Hi, GetjQuery.org looks great, but it is missing the most important thing! It needs a prominent [GetjQuery] or [Download] link to get jQuery. The rest only matters after I can Get It :) Thanks for your efforts. Great start! -Steve digital spaghetti wrote: Hey folks, I'm pretty happy with

Re: [jQuery] Traverse Question

2006-12-11 Thread Brandon Aaron
If you markup stays the same as it is with a table behind the image then you can use it like so: $('#yourimage').prev('table').find('p:last'); But I bet your markup is not going to stay the same. This is just going to require some interesting logic that will take lots of time to parse. You'll

Re: [jQuery] Simulate getElementById(), was: Trouble with $(expr, context) and iframe documents

2006-12-11 Thread Jörn Zaefferer
Dave Methvin schrieb: I'm just wondering if we could implement an at least not-that-slow-if-used-often approach to simulate getElementById eg. on XML docs. I think you could just change this: if ( m[1] == # ) {

Re: [jQuery] Traverse Question

2006-12-11 Thread Jörn Zaefferer
Brandon Aaron schrieb: But I bet your markup is not going to stay the same. This is just going to require some interesting logic that will take lots of time to parse. You'll have to climb the tree and if not a P, then check its children and repeat. You could start with nextUntil() and

Re: [jQuery] Traverse Question

2006-12-11 Thread Karl Swedberg
Hmm. This one is tricky if it can be either a previous sibling of #yourimage or a descendant of a previous sibling. If you know it'll be a descendant of a previous sibling, you could do this: $('#yourimage').prev().find('p:last'); At least it works for your example. ;) --Karl

[jQuery] using .load() and getting a 404 response

2006-12-11 Thread Jeff L
Hi all, I was wondering about using the .load() method with jQuery. I have some code that works great, however if for some reason the page that is being loaded using .load returns a 404 status, jQuery doesn't seem to recognize this - the code just continues executing. It likely won't be a huge

Re: [jQuery] using .load() and getting a 404 response

2006-12-11 Thread Jörn Zaefferer
Jeff L schrieb: Hi all, I was wondering about using the .load() method with jQuery. I have some code that works great, however if for some reason the page that is being loaded using .load returns a 404 status, jQuery doesn't seem to recognize this - the code just continues executing.

Re: [jQuery] Traverse Question

2006-12-11 Thread Dave Methvin
But I bet your markup is not going to stay the same. This is just going to require some interesting logic that will take lots of time to parse. You'll have to climb the tree and if not a P, then check its children and repeat. Another approach would be to leave some relation in the markup

Re: [jQuery] using .load() and getting a 404 response

2006-12-11 Thread Dave Methvin
I was wondering about using the .load() method with jQuery. I have some code that works great, however if for some reason the page that is being loaded using .load returns a 404 status, jQuery doesn't seem to recognize this - the code just continues executing. You may want to use

[jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer
Hey folks, I've got a problem where I'm trying to use the selectable plugin (very cool, btw) and it isn't working the second time content is loaded onto the page.. here's what's happening. I have a page that has a list of tags on it. When the user clicks on a tag, it loads a series of images

Re: [jQuery] Traverse Question

2006-12-11 Thread Ⓙⓐⓚⓔ
Since there is no simple relation to use, you can do this find all the p|img tags and loop thru them. when you have found 'this' img, the last p found in the loop is the one you want. On 12/11/06, Anaurag Gupta [EMAIL PROTECTED] wrote: Felix Geisendörfer How about:

Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jyl
You need to reapply the functionality each time a new #content element is created. Presumably you delete and recreate it (I didnt read the code carefully enough to be sure... :) ). Hey folks, I've got a problem where I'm trying to use the selectable plugin (very cool, btw) and it isn't

Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer
I was re-applying the functionality.. I'm worried that it's trying to apply it before the content actually gets created.. is there any way to force the order? and if I go $(#content).load() does the stuff inside #content get deleted automatically? On 12/11/06, [EMAIL PROTECTED] [EMAIL

Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread Chris Domigan
and if I go $(#content).load() does the stuff inside #content get deleted automatically? Yes - load() overwrites the contents of the element. Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Interface Sortables and Toggling Lists

2006-12-11 Thread Chris Domigan
I assume you're only adding sortability once, not each time toggle() is called? Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] selectable not working after loading content through .load the second time

2006-12-11 Thread jason schleifer
that's what I thought.. so the select command should work just fine.. On 12/11/06, Chris Domigan [EMAIL PROTECTED] wrote: and if I go $(#content).load() does the stuff inside #content get deleted automatically? Yes - load() overwrites the contents of the element. Chris

[jQuery] passing functions

2006-12-11 Thread dmoshal
Hi, Firstly - wow, what an amazing piece of work - Kudos! I've been more productive with jQuery in a day than I've been with YUI, and GWT in weeks. Question: how does one pass a function into jQuery, ie given: function foo(){} I want to assign it to the element's onclick handler:

[jQuery] Another jQuery use sighted in the wild

2006-12-11 Thread Karl Rudd
It looks likes screenshot gallery on the Mass Effect site is using Cody's Thickbox. http://masseffect.bioware.com/gallery/ While it seems to be a case of jQuery tagging along for the ride, it's still nice to see it in use on more and more sites. Karl Rudd

Re: [jQuery] passing functions

2006-12-11 Thread Aaron Heimlich
On 12/11/06, dmoshal [EMAIL PROTECTED] wrote: given: function foo(){} I want to assign it to the element's onclick handler: $(elem).click (foo) which doesn't seem to work? Well, that *should* work. Are you sure that there aren't any scope issues at play here? What kind of error messages

Re: [jQuery] passing functions

2006-12-11 Thread Karl Rudd
That should work. You'll need to show us code that is a little more specific. Karl Rudd On 12/12/06, dmoshal [EMAIL PROTECTED] wrote: Hi, Firstly - wow, what an amazing piece of work - Kudos! I've been more productive with jQuery in a day than I've been with YUI, and GWT in weeks.

Re: [jQuery] passing functions

2006-12-11 Thread dmoshal
thanks for the prompt responses. the problem in more detail: function bar(f) { $(elem).click (f) } bar (new foo()) results in this error in Firebug: - c[j].apply is not a function handle(click clientX=0, clientY=0) [Break on this error] if ( c[j].apply( this, args ) ===

Re: [jQuery] passing functions

2006-12-11 Thread dmoshal
Karl, using object literals seems to work: var a = { foo: function() { } } function bar (a) { $(elem).click (a.foo) } bar (a) Dave Karl Rudd wrote: That should work. You'll need to show us code that is a little more specific. Karl Rudd On 12/12/06, dmoshal

Re: [jQuery] passing functions

2006-12-11 Thread Blair McKenzie
I assume foo is a function? Remember that fn != foo() != new foo(). Instead of bar (new foo()) try bar (foo) Blair On 12/12/06, dmoshal [EMAIL PROTECTED] wrote: thanks for the prompt responses. the problem in more detail: function bar(f) { $(elem).click (f) } bar (new foo()) results

Re: [jQuery] passing functions

2006-12-11 Thread Aaron Heimlich
On 12/11/06, dmoshal [EMAIL PROTECTED] wrote: function bar(f) { $(elem).click (f) } bar (new foo()) You're passing an object into bar, not a function -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery

Re: [jQuery] passing functions

2006-12-11 Thread bmsterling
I had to do something similar today, and I did something like function myfunction(f){ $(element).click(function(){eval(f+(););}); } that was off the cuff, but that should work. -- View this message in context: http://www.nabble.com/passing-functions-tf2805241.html#a7827322 Sent from the

Re: [jQuery] passing functions

2006-12-11 Thread dmoshal
Excellent, didn't think of that one thx Dave bmsterling wrote: I had to do something similar today, and I did something like function myfunction(f){ $(element).click(function(){eval(f+(););}); } that was off the cuff, but that should work. -- View this message in context:

Re: [jQuery] passing functions

2006-12-11 Thread Aaron Heimlich
If you don't mind my asking, what exactly are you trying to do? You shouldn't need all this hackery just to pass function references around. On 12/11/06, dmoshal [EMAIL PROTECTED] wrote: Excellent, didn't think of that one thx Dave bmsterling wrote: I had to do something similar today,

[jQuery] Memory leak

2006-12-11 Thread Ethan Hannagan
Hi, Can you help me spot what is causing the memory leak in the following code? If I click reload, bind, and clean several times, the memory allocation for IE stays still. But if I click in the reload bind and then clean, several times, the memory allocation keeps climbing. I appreciate any

[jQuery] Is it a bug

2006-12-11 Thread Johnny
Hi, guys I have a problem when i use jquery's ajax module. My jquery code is here: $(document).ready(function() { $(div#test).load(xml_to_page.jsp,{class:Img,sn:1}); }); xml_to_page.jsp is file transform xml to html String xml = \\xml\\ + class + .xml; String xsl =

[jQuery] Problem about ajax readyState

2006-12-11 Thread 齐永恒
Hi . i use jQuery ajax , in some times, the ajax submit was wrong, but some time,it is right. so i log the trace. good stat log: xml.readyState:1 istimeout:undefined jQuery.ajax(options) end Wait for a response to come back and istimeout:undefined xml: xml.readyState:2 istimeout:undefined Wait

Re: [jQuery] Is it a bug

2006-12-11 Thread Erik Beeson
doesn't display in FireFox, and i use DOM Inspect, the div#test actually have content. Are you saying the div DOES have content, it just isn't displaying? --Erik ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Is it a bug

2006-12-11 Thread Johnny
yeah Erik Beeson wrote: doesn't display in FireFox, and i use DOM Inspect, the div#test actually have content. Are you saying the div DOES have content, it just isn't displaying? --Erik ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] passing functions

2006-12-11 Thread Michael Geary
I had to do something similar today, and I did something like function myfunction(f){ $(element).click(function(){eval(f+(););}); } that was off the cuff, but that should work. That would be the ticket if f is a string containing the name of a function. But why not just pass a