[jQuery] Asp.net __doPostBack errors
First off, I love jQuery and I don't think words can possibly express how much easier it makes my life. Now, Asp.Net forms generate this little bit of javascript it uses to raise events on the server: function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } There's not much I can do about the quality of this snippet-- this is how it is,
[jQuery] Problem with fadeIn() in Safari
Hello John In Safari, in blocks which had "fadeIn" applied to them, text looks very pixelated and un-antialiased and the color is not quite right - as if the fadeIn animation did not set the opacity to 1 afterwards but stopped somewhere at 0.9 oder 0.99 or something like that. Could you maybe investigate this and, if my assumption is right, make it so that it stops at opacity 1.0? :-) -- Markus Peter - SPiN AG warp@spin.de Get Firefox! Smaller, Safer, Faster: http://www.spin.de/ffox _______________________________________________
[jQuery] jQuery and Google AdSense
One more tidbit: looks like the jQuery code is only being applied to items BEFORE the ad code in the markup. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Michael Raichelson Sent: Wednesday, April 05, 2006 10:41 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery and Google AdSense Wow, hmm, that is totally weird. I tried putting together a couple test pages and the jQuery code works maybe 25% of the time on them. Test cases: jQuery
[jQuery] Higher order functions
...Tally-ho! $("p.commented-by a").get() gives me an array of nodes, of which I want to process a subset, matching a programmatic expression, let's say for simplicity's sake, those where node.rel == 'nofollow'. I tried (to little avail) these variants, after a few very light peeks at the JQuery source: $("p.commented-by a").filter(function(){ return this.rel == 'nofollow'; }).get() $("p.commented-by a").grep(function(){ return this.rel == 'nofollow'; }).get() but the first I think only accepted a
[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). It has to do with defined height attributes for a class, which seems to not be picked up by the corner() function. See the link for the visual. -David _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Rounded and beveled corners
The updated version is now here: http://methvin.com/jquery/jq-corner-demo.html http://methvin.com/jquery/jq-corner.js I incorporated Johan's fixes (thanks Johan!) to address the issue with Safari. Also note that Safari appears to require a background color on *some* element up the document tree; the demo page now puts a background of #ccc on the body just to prove that it's working. Separately, I changed the code so that it will generate fewer elements in the case where you only need a top or bottom
[jQuery] Rounded and beveled corners
Dave - Using Safari 2.0.3 it didn't throw back any JS errors in the log. I used a bookmarklet to show all DIV borders with their Ids, and I've attached a screenshot of that (http://davandi.com/img/jquery_css_corners.png). It looks initially like the divs aren't changing color. Also, could you explain the purpose of this part of the code? var t=document.createElement("div"); var b=document.createElement("div"); t.style.backgroundColor = b.style.backgroundColor = "transparent"; It worked on Camino
[jQuery] jQuery and Google AdSense
Wow, hmm, that is totally weird. I tried putting together a couple test pages and the jQuery code works maybe 25% of the time on them. Test cases: jQuery and google ads - http://michaelraichelson.com/hacks/js/jquery-googleads.html jQuery and yahoo ads (exactly the same issue) - http://michaelraichelson.com/hacks/js/jquery-yahooads.html If you strip out the ad code it all works peachy. Something similar actually goes on with a site here at work even when it's not serving google ads on the page but
[jQuery] jQuery and Google AdSense
Do you have an example of what's breaking with it? I used jQuery on a site here at work that also sometimes serves adsense ads but haven't noticed anything specifically wonky about the two together. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Johan Bergström Sent: Wednesday, April 05, 2006 8:54 AM To: discuss@jquery.com Subject: [jQuery] jQuery and Google AdSense Cheers, I did some magic tricks with jQuery in an upcoming application
[jQuery] jQuery and Google AdSense
Cheers, I did some magic tricks with jQuery in an upcoming application which worked like a charm. Today i added AdSense to the application, and now most of the jQuery magic breaks. If i visit page x (which has ads), click on a link to page y, and then use the back button in my browser (heading to x again), everything works. I tried both /src/dev/ and the current stable version of jQuery. Anyone had success with jQuery and AdSense? regards, Johan Bergström _______________________________________________
[jQuery] xml tag with namespace ???
Hello, I try to parse an RSS feed with JQuery and Ajax plugin, and i have some trouble to read tag with namespace (like "<span style="font-weight: bold;">dc:creator</span>"). I am unable to capture content of such tag. Indeed the following query match nothing : $.getXML("./rss.xml", function(xml){ $("creator",xml)... //match nothing $("dc:creator",xml)... //match nothing (normal) }); An other choice, will be to use the getElementsByTagName("creator")
[jQuery] xml tag with namespace ???
Inside $.Select the tag is parsed with this regexp: var re = new RegExp( "^([#.]?)([a-z0-9\\*_-]*)", "i" ); So I think it's just stopping the match at the colon and finding "dc". -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of John Resig Sent: Tuesday, April 04, 2006 10:06 AM To: jQuery Discussion. Subject: Re: [jQuery] xml tag with namespace ??? That's strange... I would've assumed that either one of those options would've worked. I'll
[jQuery] How do I apply JQuery rules to html fragments applied using AJAX's load()?
Hi all How do I apply JQuery rules to html fragments applied using AJAX's load()? Essentially I've got a list of links being loaded in via $().load(), and I need to apply onclick events to the links once they've loaded into the page. I don't want to do it manually for each link though, as I don't specifically "know" what they are. Is there an apply() method or something I can use? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Rounded and beveled corners
> Are you planning on squeezing any NiftyCube-like features in,
[jQuery] Rounded and beveled corners
> Can either of you kindly explain what the code does? All the corner-adorner scripts that I studied work similarly. They create the illusion of a rounded (or other effect) corner by overlaying parts of the adorned div with a color that is the same as the parent's background color. (BTW, that means that all of them look really bad when contained by an element that uses a background image.) The approach I chose, also used by Nifty, is to overlay the element with "strips" that use the parent color
[jQuery] Rounded and beveled corners
Okay, here's my first shot at rounded corners. I also added the ability to do beveled corners since it basically came for free if I did it the dumb way: http://methvin.com/jquery/jq-corner-demo.html I think the bevel case can be done much more efficiently (using fewer inserted elements) with "css border slants", but it was going to take a while to get all the code right, especially in IE. I must say, this is the first time I can recall having a need for trig functions in Javascript. I want this to
[jQuery] Rounded and beveled corners
-- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
I just tried out this technique and it works great. You need to use document.documentElement instead of document: $(document.documentElement).addClass( 'js' ); -Mike > From: John Resig > > That's a very interesting idea - and one that I had not seen > before. I like how they get around the fact that the DOM > isn't loaded by just binding to the document element. > > My biggest issue with integrating this into jQuery (by > default) is that it forces the developer to develop and write > their CSS in
[jQuery] fadeIn text with IE
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi all,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Just another fadeIn question from me - kind of a sequel to our previous issues.</DIV><DIV>Does anyone know what is with IE not executing the fadeIn on elements that contain text? Have a look at the demo page that was created to help resolve our flickering problem (which is solved now thank you John): <FONT class="Apple-style-span" size="3"><SPAN
[jQuery] Basic effect question
Is it possible to execute a function when an effect finished executing eg: $('#divContainer').fadeOut('slow').ready(function(){ alert('faded out') }) This syntax doesn't seems work? Many Thanks _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Basic effect question
<!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.1528" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=281474915-31032006><FONT face=Arial size=2>HI Laurent,</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=281474915-31032006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=281474915-31032006><FONT face=Arial size=2>I
[jQuery] xml post with special characters
Hi, Im developing an application with jQuery ajax-plugin and Struts. Seems that the current xml function dosent handle special characters? (in this case swedish characters) Any one else had this kinds of problems? This application is only run on IE 5.x and above, my guess is that FF handles every aspect of encoding better then IE. Well this is what i had to do to get struts to decode the values correctly. $.xml = function( type, url, data, ret ) { var xml = new XMLHttpRequest(); if ( xml ) { xml.open(type
[jQuery] Retrieve viewport height
Hi all, is there already a function in jQuery to retrieve the viewport's height? I wrote a "plugin" for that, nothing spectactular and maybe it's already in jQuery anyway...: // Return the available content height space in browser window $.viewportHeight = function() { var h = 0; if (typeof(window.innerHeight) == "number") { h = window.innerHeight; } else { if (document.documentElement && document.documentElement.clientHeight) { h = document.documentElement.clientHeight; } else { if (document.body
[jQuery] option in a select
Hi Sorry if this is a newbie question but I'm trying to use jquery for a simple form validation Example I got a select id mySelect how can I check if the selected option value is egual to none ? I tried this but it doesn't seems to work $('destination').find('option').each(function(){ if(this.selected && this.value=='None'){ alert('please select a destination') } }) how do I determine the type of $('mySelect') like document.getElementById('mySelect').type <select
[jQuery] looping through an js array
I've been trying to do a simple loop through an array with no success do I use the right syntaxes var myArray = ['hello','bob','roger'] $(myArray).each(function(i){ alert(this) }) Many Thanks _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Using .center() with Image Crossfade
John, Thanks for the reply. Its all very odd at the moment. Changing the a and img rules to both be position:absolute; does fix the problem, but only once you do a hard refresh after the page has loaded. On first load, the images are anchored top left. I've toyed about with changing the position rules for the a/img elements, but with no luck. I'm guessing is something to do with the center() method. I've tried centering manually: $("#imageContainer img").each(function(){ var w = this.width; var
[jQuery] selectors
hi, what's a clean way to get all elements with class of "abc" that are <input's> except for <input type=submit> . thanks, -brent _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] same height/width (was NiftyCube)
--- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com>
Developer Accounts
Hello All! I've been able to squeeze in some management work on jQuery - so my question is: Who wants a developer account for jQuery? I'm offering two different styles of accounts: - The first is available to anyone who's developing a jQuery plugin. You'll get your own development area and web space. Additionally, you'll be able to check the beta jQuery code out of SVN (for helping to test) but you won't be able to commit. - The second type is a superset of the first - but it includes the ability
[jQuery] How would i make this into a jquery plugin ?
<div>Hi</div> <div> </div> <div>I made a small path animation library a few years ago that i just needed for a project so i rebuild it to the todays standards so that its more unobtrosive :)</div> <div> </div> <div><a href="http://www.schwingnuke.com/pathanimation/sample1.html">http://www.schwingnuke.com/pathanimation/sample1.html</a></div> <div> </div> <div>now how would I go about making thi into a jquery plugin so that i can say </div> <div> </div> <div>$(div.Followe).FollowPath(1) or something</div>
[jQuery] Using .center() with Image Crossfade
Hi all I'm trying to use the .center() method on some images to which I've applied the Image Crossfade from the jQuery blog. At the moment, my code looks somewhat like this: current = 1; if($("#imageContainer img").size() > 0) { $("#imageContainer img").center(); imgs = $("#imageContainer a").set("xOpacity",0).get(); $("#imageContainer a:first").set("xOpacity",0.99).show(); setTimeout(so_xfade,0); } It works fine, other than when an image is fading in/out, it pushes out of place the
[jQuery] Newbie question NiftyCube
<a href="mailto:a.fulciniti@html.it">Alessandro Fulciniti</a> created a very nice lib called niftyCube.( <a href="http://pro.html.it/niftycube/">http://pro.html.it/niftycube/</a> ) But I think when you use this in combination with jquery the library can be simplified. Is there someone who can rewrite the library using the power of jquery and create a nice plugin ;-) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
> > > var newTile=document.createElement("div");
[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
> From: Joel Birch
[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
Hi all, First off thanks for this library - its seems to be the best allrounder I've found. I have a problem with this code: $(document).ready(function() { $("div#main").fadeOut(); $("div#main").fadeIn("slow"); }); Is this the recommended way to have something fade up on page load? I find that the content to fade up flashes before hiding and then fading up. Maybe instead of calling fadeOut() to begin with I should use CSS opacity to make it initially invisible? Sorry if I am just doing
[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
--- John Resig <jeresig.at.gmail.com@jquery.at.vikas.mailshell.com>
[jQuery] same height/width (was NiftyCube)
> Doing this would be very neat: > $("li").sameHeight().sameWidth(); > --John How about something like this instead? $("li").clone("height,width,class,style.color"); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Newbie question NiftyCube
> (btw, it's a Creative Commons license - although I
[jQuery] Newbie question NiftyCube
If nobody else is planning to do this, I'll take a shot. My plan is to rewrite it rather than adapt it. Nifty is GNU license and JQuery is BSD-style. ________________________________ From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Remko van Laarhoven Sent: Tuesday, March 28, 2006 12:43 PM To: discuss@jquery.com Subject: [jQuery] Newbie question NiftyCube Alessandro Fulciniti <mailto:a.fulciniti@html.it> created a very nice lib called niftyCube.( http://pro.html.it/niftycube/
[jQuery] Memory leaks forever
--- Michael Geary <Mike.at.Geary.com@jquery.at.vikas.mailshell.com>
Next Page