https://forum.jquery.com/using-jquery , and all forums, show avatars for
the last person
to post on a thread. But when clicked it goes to the original poster’s
page.
They should match or show should show both avatars with
correct links or just kill the links.
a set of plugins to work with textNodes inside the dom. <h1><acronym title="bastard jQuery text children">textNodes</acronym>() & replace() & split() & span() & <acronym title="the method that adds acronyms to a jQuery"> acronyms</acronym>() & more! </h1> get it here: <a href="http://jqueryjs.googlecode.com/svn/trunk/plugins/textNodes/">http://jqueryjs.googlecode.com/svn/trunk/plugins/textNodes/</a> <br clear="all">see it here: <a href="http://cigar.dynalias.org/plugins/textNodes/textNodes.html">http://cigar.dynalias.org/plugins/textNodes/textNodes.html</a> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
javascript:alert("hello there Opera".split(/\b/).length) Firefox says 5 , safari says 6, Opera says 15! it really got me confused while writing some jQuery code! now I use $.browser.opera ? /(\s+)/ : /\b/ ; instead. Ouch, I didn't realize there was that much of a difference!
I'm a bit confused about processData parameter in the ajax call. From the doc it talks about sending a dom node to the server, that sounds pretty strange. What is it used for?<br clear="all"> From the code it looks like a perfect hook to send non utf-8 data (iso-8859-1). Has anyone used it??? -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
Some time ago I was lectured about hijacking a thread... I thought what the ___? Some e-mail programs keep track of the internal headers of e-mails and group them by those headers instead of by the subject. While this can be good if everyone knows about it, and uses it... it can lead to hijacks. So, for us <span style="font-weight: bold;">gmail</span> users, we have to remember to compose a new message , rather then hitting reply and changing the subject.<br clear="all"> and for <span style="font-weight: bold;"> you threaded mailer users</span>, don't assume that a changed subject will be kept together with the other messages. As a side note, for those of you who don't use <span style="font-weight: bold;">gmail </span>, gmail intelligently shades new lines in a reply... so the changes stand out.. and this gets shot to ___ when you use another e-mailler. -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
A minor upgrade. a neat feature to help debugging bound events, like click and keyup... plus clicklogger to report back where your users clicked and when! <a href="http://jqueryjs.googlecode.com/svn/trunk/plugins/debug/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://jqueryjs.googlecode.com/svn/trunk/plugins/debug/</a> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
Gmail deals pretty well with spam, but it has to be told! I mark the spam messages as spam. Gmail gets the idea, and the abuser's mail is all marked spam. If enough people using gmail, just mark the spam as spam... every gmail user will have the spam thrown into the spam folder. (I think!) Responding to spam, no matter how funny or ridiculous , just makes things worse.<br clear="all"> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
over the months, I've re-written my debug library several times. I'm pretty happy with this one. based on code from all over the place! I hope you can all read the attached file.
since the dev list & tickets system is down... I'll post here. What do you think of adding this code to ajax.js? it will allow better loading information for long dynamic(php,perl...) ajax requests diff -u ajax-orig.js ajax.js --- ajax-orig.js 2007-04-12 12:27:36.000000000 -0700 +++ ajax.js 2007-05-07 09:18:19.000000000 -0700 @@ -708,6 +708,10 @@ if(s.async ) xml = null; } + else if (xml && xml.readyState == 3){ + if (s.partial) + s.partial( xml, 'partial' ); + } };
// don't attach the handler to the request, just poll it instead <br clear="all"> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
I use the error callback, but it doesn't get called back when the xml is malformed. Do I need to use the complete callback??<br clear="all"> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
while writing an AJAX application, I was concerned about the little bit of extra time it took to load the xml. I reversed the application to start with the xml, apply an xsl transform, that loads in the jquery scripts, and it's all much faster, with only a few lines of code being changed. http://jpassoc.com/survey/survey.html vs http://jpassoc.com/survey/survey.xml jquery made the change extremely easy! how many of the jquery supported browsers don't do xsl? (or don't do it right) I tested in FF 2, Safari, Opera, and IE 7. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
is there any point to this type code? $('.someclass').ready(function(){...} I don't understand it. I could image some uses for ready outside of the normal $(document) kind... but it all seems to be microseconds of saving. Did I miss something? -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
<a href="http://my.nabaztag.com/">http://my.nabaztag.com/</a> uses jquey and several plugins. the site is as cute as the little net-bunny they sell!<br clear="all"> -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
I casually mentioned 'remote ajax' in another thread... I thought I'd show a demo of it... very simple! it's used to watch woot.com while they are doing rapid sales! <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title> Wootster </title> <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript"> $(function(){ var doit = function(){ $.ajax({ url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx', success: function(data) { var title = '@' + new Date(); $('body').prepend('<div title="'+title+'">' + data + "</div>") var sale = document.title = data.split('\r')[0]; if (!sale.match(/%/)) { $('body').prepend('<h1>See you at 10pm! Woot is not flashing!</h1>') clearInterval(interval) }}})} doit() var interval = setInterval(doit,40000) $('body').click(function(){window.location = "http://www.woot.com/"}) }) </script> </head> <body/> </html> is a simple page that ajaxes a microsummary repeatedly from another site. and http.cgi is: #!/usr/bin/perl use LWP::UserAgent; use CGI; $ua = LWP::UserAgent->new; $ua->agent("NuBrowser/10.7 "); $res = $ua->request(HTTP::Request->new(GET => $ENV{QUERY_STRING} || "http://www.woot.com/DefaultMicrosummary.ashx")); $q = CGI->new; print $q->header($res->headers->{'Content-Type'}),$res->content; -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Don't get me wrong, I use an occasional id. But ids are over used. Sure jQuery selects a single element faster with an id than with a class, but that's only the beginning of a good chain of jquery! With a properly formatted html/xml, you can deal with the ancestors, children, siblings, prev, next, and filter. That's why xml, xsl, xquery, xpath, and jQuery are cool technologies (in my mind) and text files and last millennium javascript programs are not. The reason I'm posting this is I made a reference to this motto, that might be misunderstood. "IDs are a crutch for the weak. Classes are for the strong." Jake _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
previously I coded $(this).parents().add(this) inside a bind('click' function... then continue the chain to look at 'me and my parents' on 1.1 the chain only has the parents, this did not get added. when I break it up , with an .end() and continue the chain, it brings 'me' back to the chain, and I have to each thru this separately. What did I miss? $(this) .attr("target","elsewhere") .parents() .prev('code.json') .each(jsonize) .end() .end() .prev('code.json') .each(jsonize) works, but $(this) .attr("target","elsewhere") .parents() .add(this) .prev('code.json') .each(jsonize) does not. -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Today has been a big day for the mac, and the iphone is about 6 months away. It runs Safari and a mini version of OS X. And it supports widgets! Widgets can be written in javascript, and can run un-encumbered by the normal ajax cross host security restriction! So to get back on target... Has anyone written any jquery widgets? -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/