[jQuery] Problems getting border width
--
[jQuery] prototype $H()
> Does jquery have something like $H() ?
[jQuery] datePicker plugin IE memory leak fixed
Hi, I have just released an updated version of my date picker plugin: http://kelvinluck.com/assets/jquery/datePicker/ Thanks to Sean McKenna who reported a memory leak in IE. This turned out to be a pretty major one but relatively easy to fix and so I'd recommend anyone using the date picker to upgrade ASAP... I would like some advise on the cause of the problem and if there is a more robust solution. Basically, when the calendar opens IE uses a bunch more memory (~35MB on my system). When you switch
[jQuery] [@name^='foo'] doesn't works
I have the following code: $("[@name^=foo]").each(function() { this.checked = x; }); or $("[@name^='foo']").each(function() { this.checked = x; }); or $("input[@name^='foo']").each(function() { this.checked = x; }); Code doesn't works Error: z has no properties Source file: jquery-latest.pack.js Line: 12 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Bug in expression?
Hi, I have a node hierarchy like this: <div class="a"> <div></div> <div></div> </div> $("div.a/div") will select (correctly) the two child divs while $(".a/div") selects three divs (also selects parent div). Is this a bug? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] [NewBie]Is there something basic functions/classes extension in jQuery, just like Array, String, etc
I know that prototype extends built-in classes , just like array, string, etc, so many things can be easily processed. Does jquery has the same things? I can only found that the API seems aimed to jQuery instance, and there are no more extensions applied to built-in classes. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad _______________________________________________ jQuery mailing
[jQuery] Understanding $.ajaxTimeout
Me again, can someone please explain, how exactly does $.ajaxTimeout work? I have tried this: $.ajaxTimeout(5000); Waiting for 5 seconds after a $.ajax() call to a not available server, none of the callback methods (complete, success, error) gets called!? BTW: where are all the $.* functions (specially the $.ajax* ones) documented? I have looked in http://jquery.com/api/ but I can't find no section there. Fighting my way through the nabble archive... Thanks, Arash _______________________________________________
[jQuery] Greybox demo throws JS errors
> Whoops, I forget to remove some lines I used for debugging, here is the
[jQuery] Problems getting border width
As John says, the situation with getting border dimensions on elements is a mess (like margin and padding) and there are limits to the amount of lipstick jQuery can put on this pig. Here are the results of my experiments with jQuery().css() on IE6, IE7RC1, FF1.5, and Opera 9.1. 1) The shortcut properties such as border or borderWidth are no good for getting exact dimensions, so ignore them. Instead, get each side's information individually with borderLeftWidth etc. 2) IE6 and Opera yield nonsense
[jQuery] IE5 Compatibility
John, are you definitely going to drop IE5 compatibility? I'm starting a new website and I had to go back to simple Javascript because I wasn't able to run jQuery (tried 1.0a and latest SVN) on IE5. I know it's an old and awfully buggy browser but my work will be rejected if it doesn't run on it. BTW, going back to simple Javascript is a PITA when you've used jQuery :) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Using JQuery in our site
> > From: Michael Geary
[jQuery] Using JQuery in our site
> From: Albert Garcia
[jQuery] ] inside attr value
jQuery current version cant handle something like this: $("input[@name='foo[bar]']") which I filed under bug #185 [1]. I now wrote a hack and would appreciate if you could test it. I saw testcases in the comments, so I think you have some way to do this? Furthermore the above code should be added to those testcases. [1] http://jquery.com/dev/bugs/bug/185/ Any comments / improvements / possible bugs are appriciated. PS: Thanks for this awesome piece of code! -- Milian Wolff http://milianw.de _______________________________________________
[jQuery] Greybox demo throws JS errors
> http://jquery.com/blog/2006/02/10/greybox-redux/
[jQuery] play shanghai w/ jquery
Hi jQueriers, I've just programmed a small shanghai game in jQuery at http://www.jquery.info/IMG/html/shanghai.html however I tested it only on a Mac (Safari and FF); Dave (on the irc channel) tells me the CSS are not working properly on MSIE. If someone can correct this, I'll be able to publish the code "for real". Needless to say, improvements are very welcome, especially CSS/effects. The to-do list would be: - debug on IE :-( - document the code - create random board at init - have nice images
[jQuery] Basic JS extensions: String
Hi folks, just uploaded a set of extensions to the String object. Until now, there is no way yet to generate documentation like it is done with jQuery, therefore the presentation is not too interessting. You can see the test suite running here: http://joern.jquery.com/sandbox/stringTest.html (together with links for uncompressed and compressed version). All functions have inline documentation with examples. Does this make any sense at all? Would you consider those extensions usful? And, the most
[jQuery] Using JQuery in our site
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=578204711-09092006><FONT face=Arial size=2>I will thanks JQuery developers community & specially John for this incredible library. </FONT></SPAN></DIV> <DIV><SPAN class=578204711-09092006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=578204711-09092006><FONT
[jQuery] Plugin model question
When a point is completely missed in the documentation, it's usually because it's obvious to the writer and almost all the readers. I'll dive in and ask the obvious. The plugin skeleton shown below is taken from the plugin model overview at : http://jquery.com/plugins/Authoring/ new function() { var privatedata = 42; $.fn.mypluginmethod = function() {}; $.myplugin = { publicmethod1: function() {}, publicmethod2: function() {} }; function privatehelper() {} }(); 1 - I see jQuery coders like to encapsulate
[jQuery] problems with :not() and attribute values
I get an error in jQuery when I do this: <div> <span exclude="true"><span foo="bar">not me</span></span> <span foo="baz">me</span> </div> $('span').filter('[@foo]:not([@exclude="true"]>*)'); however, I don't get the error with: $('span').filter('[@foo]:not([@exclude]>*)'); which is basically the same, except that i removed the value for the "exclude" attribute. The error is: '1' is null or not an object thrown from line 698: // :not() is a special case that can be optomized by // keeping it
[jQuery] $.ajax with success, error and complete
Hi, I am using $.ajax and have defined handlers for success, error and complete. The complete handler handles the response body, which is simply html I want to render into the page. Question: The complete handler is also fired after error. How can I prevent to render a 404 message from the server into the page and instead use some nicer message...? I thought of using the success handler for rendering, but the parameter passed to this function is the XmlHttpRequest object and not the response body.
[jQuery] 64 bit Linux Firefox problems
If this has been covered on this list or I am posting to the wrong place, I apologize in advanced. Has anyone else run into the issue that when you click the "Run" button on the jquery.com homepage, that it does not expand fully. It only does it about 1/3 to half the way. And the only way that I can seem to get it to expand fully is to click the "Configure your download". Then the configure your download does not expand but the "Run" from above expands fully. I seems that it is limited to Firefox
[jQuery] mootools
I posted the problem the other day, and it was suggested to me to put up a sample page to help the community see the issue. You're comment about auto height/width probably does have something to do with it. The problem: I have 3 div's side-by-side, two floated left. The idea is to put a button in the middle DIV, that will 'collapse' or 'expand' the left div. This is a common GUI element that you see all the time in programs like Dreamweaver and others. The right Div should expand to fill the space.
[jQuery] code explanation for loading content in place holders
A few weeks ago I asked for information about how to move xml data into a place holder div in a master document, it was pointed out to me that this approach would lead to difficulties. John offered to explain the code below I would greatly appreciate an explanation and perhaps an example of the code below
[jQuery] running jquery inside a thickbox iframe
Hi folks I've had a go trying to run jquery code inside a thickbox iframe (loaded content from AJAX) with no success. It is possible to run ordinary javascript through onlick handlers, but I can't seem to get jquery to work. Does anyone know if this is even possible? cheers, steve _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery website suggestion
Hi, I really appreciate what you guys have done with jquery - it's a well though out, elegant project. I have a simple suggestion for your <a href="http://jquery.com">jquery.com</a> webpage: when one opens "Configure you download" options, could you put in file sizes so that one sees how many bytes one is saving by leaving out/adding certain libraries? You might want to calculate the total as wel when selections change. Also, the <a href="http://visualjquery.com">visualjquery.com</a> site might benefit
[jQuery] mootools
I think mootools is a roll-up of various moo.fx versions plus some new features. According to this: http://mad4milk.net/entry/mootools-and-extending-html-elements-with-ie -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Rey Bango Sent: Friday, September 08, 2006 3:30 PM To: mail@mmjaeger.com; jQuery Discussion. Subject: Re: [jQuery] mootools The site or the tool suite? Cause moo.fx has been around for quite some time. Rey... Marco M. Jaeger
[jQuery] Problems with embedded scripts
Unfortunately, removing the <![CDATA[ ... ]]> doesn't cure the problem. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] Sent: September 8, 2006 4:24 PM To: jQuery Discussion. Subject: Re: [jQuery] Problems with embedded scripts
[jQuery] mootools
You're probably right. I'm setting up a page that has some nice moo effects next to some jquery-interface counterparts. The jquery ones are acting a bit wonky in certain circumstances. If the active Jquery community can help me figure out the issues, and reproduce the moo effects, we could probably convert some more moo-ers to Jquery. I'll have the page up in a few days. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of John Resig Sent: Friday,
[jQuery] Problems with embedded scripts
Hmmm ... good point! I'll do some more testing. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] Sent: September 8, 2006 4:24 PM To: jQuery Discussion. Subject: Re: [jQuery] Problems with embedded scripts
[jQuery] How do I select the previous and next sibling of a
I hope this post ends up in the right place. I have not got the hang of that yet. Better yet this works and a lot shorter $("#a2").click(function(event) { $(jQuery.sibling(this).prev).css("border","solid 1px red"); $("UL", jQuery.sibling(this).next).css("border","solid 1px red"); }); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Selection Help
Hi there, This is my first message to the JQuery Discussion list, so first of let me say a big "Thank you" to all that help push the development of JQuery. You have been doing a most excellent job and brought myself back to using JavaScript functionality in my webpages. Anyway, back to my issuse - im trying to use JQuery and the Interface plugin to allow for a simple SlideToggle function work over a number of menu items. At the moment i am using the following $(document).ready(function(){ $("#navBar
[jQuery] Problems with embedded scripts
Thanks for the suggestion ... The original problem wasn't that the <script> wasn't running - rather it was never inserted in the DOM by MSIE. A pseudocode format of the original page before the AJAX call is: <body> <div> </div> <!-- more html content --> </body> For whatever reason, when AJAX is used to load HTML inside the <div> so that the resulting page looks like: <body> <div> <div> <script> <!-- script content --> </script> <!--
[jQuery] mootools
The point of the question was probably because people have wanted, in the past, to use some effect or application that required moo.fx, but also wanted to use another effect or application that used jquery on the same page. There were conflicts because moo depended on prototype, which conflicted with jquery. As I recall, there were some guides published on how to make prototype an jquery co-habitate. Since moo doesn't depend on prototype now, the hope was that they _might_ be able to co-exist, but
[jQuery] Using hide method
Hello there! I'm trying to hide the first row with > $('tbody tr').eq(0).hide('slow') But this code throws an error (eq function doesn't exist). > $('tbody tr').get(0).hide('slow') Does not work either. How do I use "eq" with "hide" method? -- Nando Vieira bloggin' @ http://simplesideias.com.br _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problems with embedded scripts
I'm creating a web application that uses jQuery to populate a series of <div/>s in an HTML page using AJAX. All the JavaScript libraries and some "global" scripting is linked in the <head/> of the HTML document. Within the HTML <div/>s that are returned via AJAX, jQuery scripts that are specific to the contents of the <div/> are included. For example: <div class="panel"> <script type="text/javascript">//<![CDATA[ $('#report-submit').click(function() { $('#report-form').ajaxSubmit(function()
[jQuery] Problems with embedded scripts
OK ... after a few hours of reading and testing - I found an article on deferring Javascript execution (http://www.websiteoptimization.com/speed/tweak/defer/). It didn't have a solution, but when explaining the problem to two of my colleagues, I hit upon a simple solution ... move the JavaScript so that it is no longer embedded in the <div/> but instead, it occurs after it. This way, MSIE will still parse the script from the returned HTML, and execute it after the HTML is rendered. Working example:
[jQuery] mootools
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
[jQuery] setting "name" attribute
I'm not sure if this already came up in the mailing list, I couldn't find it. As you know, setting the "name" attribute on an input field cannot be done in IE like: $('input').set('name', 'something'); Is it the intent of jQuery to deal with browser inconsistencies like this? Because a workaround would increase the codebase size (maybe slightly, maybe not) but it would also increase its reliability. Since it has to work dynamically, the workaround not only needs to create it differently, perhaps
[jQuery] Documentation
Hey guys, The documentation is now complete, thanks to the tireless efforts of John Resig. You can see the final Visual Docs for the current release at <a href="http://www.visualjquery.com">http://www.visualjquery.com </a>. Also, I just posted at my blog about the importance of good documentation, which we most definitely have here at jQuery (in fact, it's one of the reasons I love jQuery so much). Check my post out at <a href="http://www.yehudakatz.com"> http://www.yehudakatz.com</a><br clear="all">
[jQuery] Thickbox and Accordion in one page
Hi there.. I am using the ThickBox in a web application. I also want to use the menu accordion. However both plugins require a different version of jQuery. Thickbox uses 1.0 alpha while The Accordion uses the latest version. I can’t get them both to work in one document with one jQuery library. Accordion : http://markc.renta.net/jquery/all_in_head.html Can anyone help? -- View this message in context: http://www.nabble.com/Thickbox-and-Accordion-in-one-page-tf2239690.html#a6210909 Sent from the JQuery
Next Page