[jQuery] dumping JS objects
I just do JSON.stringify(object). Works great, and the code is already sitting there. May as well use it. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] dumping JS objects
--- Robb Irrgang <robb.at.subdue.com@jquery.at.vikas.mailshell.com>
[jQuery] Internet Explorer CSS dillemma
I'm wrapping up my script from heck(tm) and at john's recommendation I stripped the IDs from of the items, opting instead to use addClass and removeClass on mouseover and mouseout (and onclick for 'pressed states') to toggle graphics. using :hover would work great for most objects however IE6 support for it is still iffy on non-anchors. so... this was the route i picked. now, irony of ironies, IE6 freaks out and applies the first defined .down class to all objects that get class .down. example from
[jQuery] dumping JS objects
not specifically a jquery question - but something that's bothering me any way... is there any easy way to dump the values of an object (var foo = {}) to an alert or to i..e. firebug? i'm tired of seeing [object] in my alerts while debugging. R _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Ajax Plugin... (XSLT)
<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I really digg jQuery and am glad you added the Ajax Plugin. It would be great if you added one more argument for an optional error handler function. Anyway nice job! I created an extension for XSLT handling that I'm using, I added it below, maybe someone else finds it usefull? This will allow you to do something like this: function get_some_xml_translate_and_fill_it_into_an_element(id)
[jQuery] Element Ready
http://muffinresearch.co.uk/archives/2006/04/12/element-ready/
[jQuery] Distorted bold fonts in IE if combining $.load and $.fadeIn
Hi jQuerians, when loading content with $.load into a container and then fading that container in oncomplete, IE shows distorted fonts if these fonts are to be displayed bold... You can see this here: http://stilbuero.de/demo/jquery/loading.html You can already see the distorted font as soon as the animation starts (click on "Load"), so maybe this has nothing to do with $.load at all. This is the code I use: $("#output div").fadeOut("slow", function() { $("#output div").load("ahah.html", function()
[jQuery] append or remove Table rows in IE
First, thank you again for straightening out the license issues. Made my day. For the record, I was able to integrate jQuery, it's AJAX plug-in, build an AJAX server for JSON and get jQuery to work with it, all it about an hour. I fucking love jQuery. However, there's an issue with append, remove, etc in IE when dealing with tables, and I'm not entirely sure how to work around it. Normally, when manipulating tables in IE, I have to do something like: var tbody = document.getElementById(id).getElementsByTagName('tbody')
[jQuery] CC License Questions
> Excellent points - I didn't realize that it was the MIT
[jQuery] CC License Questions
Question: jQuery is currently being distrubuted under a CC Share Alike license. I'm a little unclear on what this requires. I'll be integrating jQuery into my companies internal CMS for AJAX and browser effects, and need some documentation ensuring the higher- ups it's OK to use. Could I get a firm answer on whether the license: a.) Requires our firm to open-source and distribute our CMS product, as it will make calls/rely on jQuery for client side interaction. b.) If we choose open-source our CMS,
[jQuery] $() does not find button
Hi, I found another little bug in jQuery today: $() does not find button elements... demo see here: http://stilbuero.de/demo/jquery/button.html Regards, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $() does not find button
$.Select uses "button" to get <input type=button> elements and "password" for <input type=password> etc. Also, "input" retrieves select and textarea elements as well. Do a lot of people use that functionality? The "button" issue has bitten me as well, I'd prefer to see the other groupings handled with a special pseudo-class or something. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Klaus Hartl Sent: Tuesday, April 11, 2006 4:02 PM To:
[jQuery] CC License Questions
Yup, that sounds great John. Matthew -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of John Resig Sent: Wednesday, 12 April 2006 3:10 a.m. To: jQuery Discussion. Subject: Re: [jQuery] CC License Questions How does something like this license sound? I tweaked the license found at this URL to suit our needs: http://www.jclark.com/xml/copying.txt ----- Copyright (c) 2006 jQuery (http://jquery.com/) Permission is hereby granted, free of charge,
[jQuery] Safari: $.post/$.get with empty response/ check for status of response?
Hi jQuerians, if you use $.post/$get, you must always return a response, otherwise Safari does not play in the game... Other browsers assume an empty response. Safari although seems to respond nothing. status, statusText and so on are undefined. So even if you don't need the response for anything because for example you posted something to be saved somewhere in a database, you must at least send an empty string " " as response. I assume, this is the correct behavior anyway, otherwise it would be
[jQuery] Compression of jquery code?
> From: Charles Roper
[jQuery] Compression of jquery code?
> From: Charles Roper
[jQuery] Another jQuery OS application
BakeSale - Simply Shopping Cart http://bakesale.jeepen.net/ We went through several generations of JS libraries (ahah, moo.ajax, prototype) before finding jQuery. Needless to say jQuery enabled us to write the smallest amount of code for the same effects. Most stuff we did was for Ajax but we did manage to squeeze in a couple of small usability enhancements like alternate row coloring for tables: $("tr:nth-child(odd)").addClass("or"); Thanks to John for a world-class JS library and for his patient
[jQuery] Compression of jquery code?
> From: John Resig
[jQuery] Compression of jquery code?
As I'm getting closer to the point where my code actually works on this project i'm doing, I've started to try to compress the code using Dean Edwards' packer. ( http://dean.edwards.name/packer/ ) however, the resulting code doesn't actually run; there's probably a semicolon missing somewhere, but I can't quite figure out how jqueric code works with dean's rules of 'have a semicolon everywhere you possibly can'. snippet: dn.mousedown(function(){ this.p.dd=true; this.p.sDn(); return
[jQuery] Compression of jquery code?
> From: Robb Irrgang
[jQuery] Resize Effect
Hello Hopefully not too off-topic for this list: Maybe someone else here tried something like that before, maybe eben with jQuery and can give some hints. I have a webpage which is basically formatted like this: +-----------------+ | | | Content Block 1 | | | +-----------------+ | | | Content Block 2 | | | +-----------------+ | | | More Content | .... Now, the site allows via user interaction to change the layout of things (toggling between less or more verbose display of information) within Content
[jQuery] Resize image to custom dimensions
*ponder* I have a dynamically injected <img src="..." width="[W]" height="[H]" /> tag I would like to slowly grow from 0 to W pixels wide, keeping the height intact (the opacity transision is nice too, though not strictly necessary). The difficult bit is that my dimensions above are smaller than those of the actual image; it's a scaled-down version, and it seems that $(...).show( duration ) somehow finds the actual image dimensions, which are frequently way larger than those I want to end up at.
[jQuery] problem with AJAX/AHAH load() function
> From: Michael Raichelson
[jQuery] problem with AJAX/AHAH load() function
Okay, I'm trying to load in a remote HTML fragment using $().load() and I've been staring at the thing for too long. It looks like the code is exactly the same as the other times I've used it, but for some reason it breaks down in this instance. the code: http://xappot.ath.cx/home.nifkin.com/home.js the page: http://xappot.ath.cx/home.nifkin.com/ Instead of getting my "working on stuff" then being replaced with the load()-ed content, it spins while it redirects the browser off-site following the
[jQuery] Browser jQuery causing errors using 'Back' button
> From: Joel Birch
[jQuery] Browser jQuery causing errors using 'Back' button
Hi jQueryers, I am using jQuery for a small site for a florist that is about to go live very soon. I have loved using it and is has come in very handy for creating a cross-browser fading highlight around the thumbnails of the gallery. However, I have noticed that if you click on a thumbnail and go to the relevant page, then navigate "Back" using the browser Back button, I get javascript errors to the tune of "Error: this.parentNode has no properties" and indicates that it comes from jQuery.js line
[jQuery] Safari bug: return false in click()
Hi, it seems to me that in Safari "return false" doesn't work in a function attached via click(), for example: $("p a").click(function() { doSomething(this); return false; }); Here's a test page: http://stilbuero.de/demo/jquery/click.html Safari (2.03) still follows the link there... submit() is okay! Regards, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery for Plazes/Problem with fadeIn/fadeOut
Hi there, we are now using jQuery for Plazes: http://beta.plazes.com/people/ A mixture of Google Maps API and jQuery... :-) Was fun to use jQuery! Although there's one problem at that page with IE: The list on the left shall fadeIn/fadeOut whenever it is updated. This does not work in IE (hasLayout is set). I got the feeling, that this sometimes happens when a container loads new content via $.load. Maybe someone has an idea? I cannot reproduce that with a simple test case... The regarding code looks
[jQuery] Problems in Safari
Hi, have their been significant changes to jQuery lately? Since at least today I get an error in Safari (2.03), when using something like the following: $(document).ready(function() {...}; $("#search-input").focus(toggleValue); ... The error is: Object (result of expression $) does not allow calls. Happy coding, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] A minor $.apply() snafu
John and friends, when I submitted my patch a while back that added a $.apply() function, I screwed up the order of the arguments. I defined the function as: $.apply( object, method, args ) I should have defined it as: $.apply( method, object, args ) So, this note is a heads-up that I would like to submit another patch to correct this. The function is not documented, so hopefully not too much code outside of jQuery itself uses it. Why does the argument order make any difference? In one sense, of
[jQuery] A delay method?
So, Clarke was right! :-) Here's the funny part: Some time ago when this same request came up, my inner conversation went something like this: "No, you can't do that. Hmm... But who says you always have to return the same 'this' object? What if you returned a shadow object instead, that had all the same methods but just stacked them up in a queue instead? Yeah, that would work... Naw... Is this really a good idea? It requires every method to be duplicated, seems like a lot of overhead when there's
[jQuery] view site n IE
Hey, I've just noticed that I can't read the last string in pages at jquery.com if I'm looking from IE. Look at the screenshot attached. Pavel._______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] A delay method?
For other ideas about time-based special effects, there may be some nuggets in the Microsoft HTML+TIME stuff that they now seem to have abandoned: http://msdn.microsoft.com/workshop/author/behaviors/reference/time2/htime_re ference_entry.asp There are a couple of samples here: http://msdn.microsoft.com/library/en-us/dntime/html/timeanimation.asp http://msdn.microsoft.com/library/en-us/dntime/html/htmltime.asp The syntax is XML-based and mostly declarative, but there may be some nuggets in there.
[jQuery] Higher order functions
Can't you just use a simply XPath method? Try this: $("//p[@class='commented-by']//a[@rel='nofollow']").get() That should give you all the nodes you need, without having to use further filter/grep methods. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Higher order functions
XPath is definitely a handy language to know when it comes to node selection in JQuery. I wish it came to me naturally but I am not there yet. It's very much like the mindset of using regular expressions on strings. Now I see code that tries to parse a string with indexOf/substring and think, "Why don't they use a RegExp?" -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of phillip.oldham@kilo75.com Sent: Friday, April 07, 2006 3:05 AM To:
[jQuery] A minor $.apply() snafu
Let's definitely avoid the PHP disease of having totally inconsistent functions, naming, and parameter order. So far I think we have. So $.apply exists to support those implementations that don't have function.apply, such as IE5? How about if you just implement it as function.apply instead? if ( !Function.prototype.apply ) Function.prototype.apply = function(obj,args) { ... } -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Michael Geary
[jQuery] Something for the jquery rewrite section ;)
<div>just found this link</div> <div> </div> <div><a href="http://www.eatpixels.com/mooshow/example1.html">http://www.eatpixels.com/mooshow/example1.html</a></div> <div> </div> <div>now ho would we go about building up the photoarray using jquery by getting all images with a certain class and dropping them into a new array, using the src title width and height attributes.</div> <div> </div> <div>would this be possible with jquery.</div> <div> </div> <div>I know tyou can build up an array wit $(img.myimg
[jQuery] A delay method?
<div>Dang jquery is slick. Most of my work is bottlenecked between the server and browser, and every xtra kb helps.</div> <div>A feature request - how about a chainable delay method like</div> <div> </div> <div>$('div').hide("slow").delay("500").show("slow");</div> <div> </div> <div>Where the 500 would be milliseconds delay. - I think this would be a useful effect method to incorporate.</div> <div>Also I notice that the hide, show, etc.. functions use "slow" and "fast", etc... to for how long they
[jQuery] A delay method?
> A feature request - how about a chainable delay method like
[jQuery] Rounded and beveled corners
I have some sort of bug, er, unique behavior there and will try to figure out what it is in the next few days. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of David Olinsky Sent: Thursday, April 06, 2006 3:34 PM To: discuss@jquery.com Subject: [jQuery] Rounded and beveled corners Dave- Looks great in Safari now. However, I did notice another unique behavior when using corner(). I posted an example at (http://davandi.com/jquery/jquery_corner_test.php).
Next Page