[jQuery] AJAX plugin does not work in IE6
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
[jQuery] How can i read simple text with $.post
Hi, i have several cgi's just returning flat text like 'OK' or 'ERROR in ...' Is there a simple way to retrieve the text via $.post or should i wrap $.xml myself? Something like $.post("bla.xml", $.param({ transid: '12' }), function(xml) { alert ("Hallo "+$(xml).text()); } ); is not working. (bla.xml returns 'OK' with Content-Type: text/xml ) Matthias _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Problem with new AJAX plugin
Hi, first of all: you are doing a really great job - javascript starts getting fun, thanks! I just ran into a problem with the new ajax-plugin, for me post parameters are not working. I'm using firefox 1.5.0.1 on debian testing/unstable connected to a local apache 1.3.34-2. With a simple function like function TestLoad() { $('#id1').load("/bla", { transid: '12' } ); } the script bla did not get the cgi-param transid. After changing the uppercase POST/GET in jquery.js to lowercase it seems to work
[jQuery] Some questions...
Hi! First of all, congratulations for this impressive library, i'm just planning to implement it at some projects i'm involved. I have a couple of questions about it: 1- How can i access the content of an element returned by $() function? For instance, i want to know, using AJAX plugin, if a request was ok or not: $('#upload_results').load("ajax_process.php?param=value"); if ( "OK" == $('#upload_results').innerHTML ) { alert ( "Done" ); { else { alert ( "In process" ); } (this doesn't work) 2- In
[jQuery] jQuery interprets class names as the beginning of classnames
Hello, I found an issue in jQuery. If you search for ".class", it matches all elements with classes that begin with "class" rather than only those who have just that class. An example page can be found here: <a href="http://timcn.de/jQuery/classNameIssue.html">http://timcn.de/jQuery/classNameIssue.html</a> Konstantin Käfer _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] nth-of-type() not working?
Hello there. I've been using the :nth-child(even) CSS selector with success (eg. $('#primary li:nth-child(even)')), but when I came to use nth-of-type jQuery doesn't seem to want to play ball with the odd/even keywords. I've created a test case at http://tinyurl.com/em6j3. If you view the source of that document you'll see I've used $('p:nth-of-type(odd)') but it isn't working, while $('p:nth-of-type(3)') works just fine. According to http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#nth-of-type-pseudo
[jQuery] In the pipeline
Just a teaser for a couple of new goodies I have running and nearly ready to contribute... 1) Leak-free closures! Right now, every page that uses jQuery and has inline event methods leaks memory in IE. For example, Cody's demo page at http://codylindley.com/blogstuff/js/jquery/ leaks about 100-150K each time you reload the page. (Watch the IEXPLORE.EXE memory in Task Manager while you reload the page repeatedly.) My app leaked several megabytes because I have a lot of elements with event methods.
[jQuery] New latest urls
John threw down some goodness on #jquery today. Two brand new URLs for our enjoyment: Raw development version. Use at your own risk: http://jquery.com/src/dev/ Latest Release, uncompressed, perfect for debugging: http://jquery.com/src/debug/ And the original compressed version, now derived from the uncompressed release: http://jquery.com/src/latest/ And my meager contribution... a handy little script for snagging local copies: #!/bin/bash WHERE=. v=$1; v=${v##--}; v=${v##-}; while [ -z "$URL" ];
[jQuery] Ancestors of a node
Is it possible, using jquery, to do something like find the nearest enclosing div of a given node? For example: <script> function test(self) { // somehow find the nearest enclosing 'div' around the 'a'. } </script> <div> ... <div> <!-- Find this one --> ... <a href="#" onclick="test(this)">Press me</a> </div> </div> I tried the ancestor xpath axes but I don't think it's implemented? Any ideas? Chris. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] A plethora of patches
> From: John Resig
[jQuery] A plethora of patches
Here are several patches against today's version of jQuery: http://mg.to/jquery/2006-02-18/ all.zip contains all of the .patch files, which are also found individually in the same directory. The original/ directory contains today's versions of the four jQuery files that the patches are based on. The patched/ directory contains the four files with all the patches applied, along with a bonus: The files are all converted to use tab indentation instead of the mix of tabs and spaces in the originals.
[jQuery] Issue: slideDown & height:auto
I'm having an issue with the effects library. This may be an issue with moofx rather than jQuery implementation of it, so let me know if I should contact moofx instead. Anyway, the problem has to do with hight and width preservation after the slide up/down or hide/show happens. If those values are a fixed size, this works as expected. My boxes require that they are both set to 'auto' after the show or slide down. It seems moofx is setting them to be whatever hight the element was on the first collapse.
[jQuery] Browser compatibility
Is there a list of browsers that are intended to be supported/unsupported anywhere? At the moment, Internet Explorer 5.0 is throwing errors because it doesn't support Array.push. That's easily fixed: // Substitute Array.push() if(!Array.prototype.push) { Array.prototype.push = function() { for (var i = 0; i < arguments.length; i++) { this[this.length] = arguments[i]; } return this[this.length-1]; }; } However, I think it's a general problem that needs solving,
[jQuery] Paragraph with ID
Hi, I want to revisit an example usage of jQuery I was attempting 2 weeks ago. Sample page: <a href="http://www.jojowebdesign.com/skills/javascript/javascript_content.asp">http://www.jojowebdesign.com/skills/javascript/javascript_content.asp </a> I wanted to create a simple open / close section. I got the correct head section script (or is it?): <script type="text/javascript"> $(document).ready(function(){ $("#jQLink").toggle(function(){ $("#jQHide").slideUp("slow"); },function(){
[jQuery] Clean up patch + future plans
I have javascript.options.strict set to true in Firefox to help catch certain types of mistake - it's like -Wall for Javascript. However jQuery generates a dozen or so warnings by itself, which is quite annoying when I'm trying to debug something. Most of the warnings are caused by redeclaring function arguments with var when they are null which I believe is unnecessary. I've attached a patch that cleans these warnings up. What are the future plans for jQuery, by the way? Is there likely to be source
[jQuery] JQuery for retrieving form fields?
Sorry if this seems totally inane, but is anybody using JQuery for retrieving the values of form fields? For the life of me I can't figure out how to get the value of a form field via a JQuery lookup, see the testcase below. Is this a bug, or does the problem lie between the headset? Corey <!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" xml:lang="en" lang="en"> <head> <title>Test</title> <meta
[jQuery] there should be an official IRC chat# and google group
Hi all, Just want you to know that I think JQuery is the best tool a Javascript coder can have. Its nice, lightweight, cross-platform and promotes minimal code-bloat. Although the mailing list for me is getting a little hard to manage and I think it would be better if there was an official JQuery Google Group. Google Groups have the benefit of being archived, easily searchable (providing good results), quick and easy to navigate, includes ratings and even has mailing list features. It would also
[jQuery] Problem with effects and table rows
I'm having a bit of trouble getting table rows to show and hide properly. An example of this problem can be found here: <a href="http://projects.bwoa.net/jquery/help/jquery_rows.html">http://projects.bwoa.net/jquery/help/jquery_rows.html </a> Basically, my problem is two fold: <ol><li>When you click on a toggle checkbox, it shows the row but embeds everything in the first td instead of in the three tds as coded.</li><li>If you click in this order: Toggle row 1, Toggle row 2, Toggle row 1, Toggle
[jQuery] Toggle
Multiple Toggle Sections. I wanted to take my toggle world to the next level and create a couple sections. My instinct tells me I can create a couple more sets in the script to make it happen. <script type="text/javascript"> $(document).ready(function(){ $("#jQLink").toggle(function(){ $(this).html(" +/-"); $("#jQNews").slideUp("slow"); },function(){ $(this).html(" -/+"); $("#jQNews").slideDown("slow"); }); /* $("#jQJSNews").slideUp("slow");
[jQuery] Bug in 'Current' header
In [http://jquery.com/src/latest/]: ... * To use, place this HTML into the <head>...</head> of your web page: * <script type="text/javasript" src="http://jquery.com/src/latest/"></ script> ... Missing a 'c' in "text/javasript". Corey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] OmniWeb fix
It appears OmniWeb (unknown versions, at least 5.1.3) has a bit of trouble with document.defaultView - instead of it being an attribute, it's a function that returns the object that should be the attribute. This causes problems because $.getCSS uses document.defaultView. I've reported the bug to the Omni Group, and I'm attaching a patch for jquery-latest.js to work around the problem. It should be generic enough to fix the problem for all affected browsers, without causing problems if the Omni Group
[jQuery] Parent problem - (I think)
> From: Mark Panay
[jQuery] Parent problem - (I think)
> From: Andrea Ca'Zorzi
[jQuery] Parent problem - (I think)
> From: Andrea Ca'Zorzi
[jQuery] Parent problem - (I think)
> From: John Resig
[jQuery] Parent problem - (I think)
> > From: Mark Panay
[jQuery] Parent problem - (I think)
Hi list. I have a quick question, that I'm sure as usual is me missing something. I have DL with a DD with a class of "extract", there is then another DD with a sub UL and LI -like so <dd class="extract">some text</dd> <dd clas="actions"> <ul><li class="readextract"><a href=""></a></li> I've hidden the extract class with $("dd.extract").hide(); in init - $(document).ready(init); I want to be able to click the link and show or hide (toggle) the extract class. I'm sure it must be simple, but I can't
[jQuery] Extending #ready()
I've been trying to use #bind() to treat #ready() as a first class event handler, but have had no luck. $(document).bind("ready", function() { ... }); What I have is a plugin that bootstraps its functionality into the page onload. I'd like to make this transparent to the end-user. Help? Corey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] 'compiling' custom jquery
Working on a couple small plugins. I'd like to use the compression mechanism used to create latest.js. Is this available anywhere? Corey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Bug in ready() documentation
http://jquery.com/docs/event/ $(document).ready(function(){ // Your code here... )); should be: $(document).ready(function(){ // Your code here... }); Corey _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] CSS class/id naming problem
Hi All, When using JQuery, it seems to dislike underscores in class/id names. For example: $("div.class_name").size() That doesn't return anything. However, if I change it to: $(" div.className").size() It works perfectly (assuming I've changed the actually class name on the div as well). Is this a CSS standards thing? Is underscore not allowed or is it a JQuery bug? Cheers, Brendyn _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Hmm, am I doing something wrong?
Normally that's how I work. But seeing as how the tutorials and the code itself says: * To use, place this HTML into the <head>...</head> of your web page: * <script type="text/javasript" src="http://jquery.com/src/latest/"></script> I thought I'd ask if John had an opinion on the matter. -Mike R.
[jQuery] How do you compress jQuery?
Just curious. Thanks! Rich _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Hmm, am I doing something wrong?
> > From: Michael Geary
[jQuery] Hmm, am I doing something wrong?
> From: Michael Raichelson
[jQuery] Hmm, am I doing something wrong?
Okay, just started using jQuery yesterday for real meaty goodness type things (been playing with it overall for a couple weeks in little bits, mostly the effects stuff). Here's my dilemma: I'm working on a project that uses a standard "appears on mouseover" dropdown menu script (that it needs to match up to other sites by the same company). But it's a little iffy about when it closes by itself, so usually we have to apply onmouseover events to the items around it that will force it to close when
[jQuery] How do you compress jQuery?
Just curious? Thanks! Rich _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] cross-browser compatibility with for attribute
Hi, I love to work with this library because of the beatifully compact code it allows me to write. I think there is a browser compatibility problem with xpath searches using attributes like 'for' and 'class'. These work fine on gecko-based browsers, while you need to use 'htmlFor' and 'className' on IE6/Win. Try this: alert($("//div[@className]").size()); alert($("//div[@class]").size()); and this: alert($("//label[@htmlFor]").size()); alert($("//label[@for]").size()); on Firefox
[jQuery] $(document).ready()
Are you meant to be able to call this several times, to attach multiple event handlers to the single event, as you can with something like addeventListener()? When I attempt to do this, Internet Explorer 6.0 goes into an infinite loop, calling one of the handlers over and over again, although other browsers seem to work correctly. -- Jim _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tutorial for Designers
I've just posted my first JQuery tutorial. It's aimed at designers and XHTML and CSS types that wouldn't normally consider Javascript as an option to "fix" things. It's very basic but emphasizes the simplicity of JQuery. http://www.markpanay.com/blog.html -- Mark Panay www.markpanay.com Jargon Free Web Development _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page