[jQuery] Re: Newbie Question: Finding and manipulating an element

2010-03-02 Thread Greg Tarnoff
Aaron, Not sure if you caught it, but I screwed up some quotes in my code snippet (stupid iphone). It should be: $('ul.foo li ul').addClass("bar"); On Mar 1, 9:25 am, Aaron Johnson wrote: > Greg, Nathan, Thanks very much for your help! > > On 1 March 2010 14:58,

[jQuery] Re: Newbie Question: Finding and manipulating an element

2010-03-01 Thread Greg Tarnoff
This will add the class for you. Put it in the document ready function if you want it on page load or in whatever function you want to call it from. $('ul.foo li 'ul").addClass("bar"); On Mar 1, 5:06 am, Aaron Johnson wrote: > Hello... > > I have an unordered list containing nested lists... > >

[jQuery] Re: how to get href value

2010-01-23 Thread Greg Tarnoff
t does a single if > statement asking "was this a link?" > > On Jan 23, 10:52 am, Amos King wrote: > > > > > Greg, I'm not sure how your's is much diffrent then the original. > > > On Sat, Jan 23, 2010 at 7:04 AM, Greg Tarnoff wrote: > >

[jQuery] Re: how to get href value

2010-01-23 Thread Greg Tarnoff
Actually all of these are slow. The last example will run anytime you click the page. You only want to run this if they click an A element. So attach a click event to A. Try this: $(document).ready(function(){ $('a').click(function(){ alert($(this).attr('href');); }); }); only do the e.preven

[jQuery] Re: tabs in one line, on small resolution

2010-01-13 Thread Greg Tarnoff
Another option is using the CSS min-width to set a minimum width in case they make the window smaller, this will prevent the block from wrapping.. this will mean two things: 1) Side scrolling in 800x600, but let's be real you shouldn't have to support that these days anyway. 2) Min-width does

[jQuery] Re: Lessons learned with sliding menus and lightbox

2009-12-19 Thread Greg Tarnoff
Erik, Nice of you to post this lesson for others, but I hate to say you could have saved yourself lots of time with one simple line of code. jquery.noConflict(); http://docs.jquery.com/Core/jQuery.noConflict This gives control of the $ namespace back to whichever library calls it. By loading m

[jQuery] Load Superfish menu with AJAX

2009-12-17 Thread Greg-J
I am using Superfish for a 4 tiered menu which, when complete, will consist of several hundred individual links. As to not be penalized by the big G, I want to load this menu via AJAX. My question then is, how would I go about doing this so that the menu is loaded into it's container div and then s

[jQuery] Re: NEED HELP::siblings isssue in jquery

2009-12-10 Thread Greg Tarnoff
Easier yet, give your UL an ID then $('#myID li a').click(function() { $('#myID li a').removeClass("bg"); $(this).addClass("bg"); }); --Greg

[jQuery] Re: 508 accessibility for tabs

2009-12-09 Thread Greg Tarnoff
First, don't use a # as your href instead put #yoursectionID. This will give the A element an automatic click to the ID it is tied to if the JS is turned off (likely the case if screen reader is in use). Next read this: http://www.w3.org/WAI/intro/aria. JAWS 10+ supports aria, or Advanced Rich Int

[jQuery] Re: Opacity for background, but not for the element inside

2009-12-07 Thread Greg Tarnoff
Sorry, I should have been more clear. Setting work to .6 and the children to 1 won't work. The children then become 100% of their parent. Also opacity can't be set beyond 100%, so you can't go 1.4. I have tried all of these before in previous projects with absolute fail. That being said, other co

[jQuery] Re: Opacity for background, but not for the element inside

2009-12-06 Thread Greg Tarnoff
The problem is in the way browsers render opacity. The spec reads that only the element and not children should have the reduced opacity, however none of the browsers have implemented this at last check (maybe safari 4+). Your best bet is to apply a background image with the designated opacity as

[jQuery] Re: Functions

2009-11-17 Thread Greg Tarnoff
You are kind of defeating the purpose of Jquery if you put the call to the function in an A element. Does the parent of the A element in question have an ID? You could then call $('parent a'). If there is more than one A in there you can target it with other selectors (http://docs.jquery.com/Select

[jQuery] Re: Konami Code >:]

2009-11-17 Thread Greg Tarnoff
Love it, although I had to make some modifications to get it to work. Your function without the {} brackets didn't run, also add in the key '13' as this is the enter key (aka start). [code] $(function (){ var press = 0, keys = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13]; $(document).keydown(

[jQuery] Re: namespacing jQuery

2009-10-28 Thread El Greg
ce conditions. > > You're not putting the noConflict call inside a $(document).ready() or the > like, are you? It should be directly executed in a <script> tag: > > <script type="text/javascript" src="my.jquery.js"> > >     var jq = jQuery.

[jQuery] Re: namespacing jQuery

2009-10-27 Thread El Greg
Conflict > > var j = *jQuery.noConflict*(); > // Do something with jQuery > j("div p").hide <http://docs.jquery.com/Effects/hide>(); > // Do something with another library's $() > $("content").style.display = 'none'; > > -Dan > >

[jQuery] namespacing jQuery

2009-10-27 Thread El Greg
I'm interested in namespacing jQuery to something like $myjQ. or myjQ. $ and wondering what the best way is to do it. I will potentially be using my version of jQuery on other pages that are running other versions of jQuery - hence the idea to rename it completely so that I have control over ver

[jQuery] history plugin in IE6 calls two links on using backbutton

2009-10-22 Thread Greg
I don't know if this is an error in the plugin or in my implementation. (This plugin could use documentation on how it functions) Using plugin: http://plugins.jquery.com/project/issues/history I have a program that creates a form divided into various pages. Each page is denoted with a specific

[jQuery] Re: Jquery onload complete like function

2009-10-21 Thread Greg Riley
I believe you could do $("#formId").ready(function(){ doWhatever (); }); Of course you can select the form however you want to. On Oct 21, 3:16 pm, Edgar Méndez. wrote: > I wonder if there´s some function that execute when all the elements > of the form are loaded, some like an onload complete

[jQuery] Re: Json works in firefox but not in ie

2009-10-19 Thread Greg Riley
You are setting options inside a function and then trying to reference it outside of that function. Try putting var options = ''; before that first line. On Oct 19, 10:22 am, Patrik wrote: > Hi, > I have this code and it works well in firefox but in IE it dosn't. > How do I make it work in IE?

jquery-en@googlegroups.com

2009-10-19 Thread Greg Riley
http://codingforums.com/showthread.php?t=160798

[jQuery] Re: Event Not Triggering On External JS Files

2009-08-25 Thread Greg
s domain (which could be the reason). On Aug 25, 9:44 pm, James wrote: > Does it work if you put your jquery library at the top? (In the > ) > > On Aug 25, 12:31 pm, Greg wrote: > > > I built a small JavaScript file that does some HTML and CSS > > manipulation when you ho

[jQuery] Event Not Triggering On External JS Files

2009-08-25 Thread Greg
I built a small JavaScript file that does some HTML and CSS manipulation when you hover over any tag with a certain class. It works great when running on the same server, but if I try to use the JS as an external script, the hover event isn't triggering. Here is my external JS file code: $(docu

[jQuery] Hooking up click() callbacks in IE with an 'each' loop

2009-08-12 Thread Greg Johnston
quot;.item").attr("id").replace("item-div-", ""); It then uses this idnum for various purposes. When I click ANY 'openlink', therefore 'idnum' comes out to the ID of the last 'item' DIV on the page. Is there a known bug with interaction between 'each' and events? Is there something I'm doing wrong? Any ideas would be greatly appreciated. Thanks, Greg Johnston

[jQuery] How do I re-locate the jcarousel module on the page?

2009-07-31 Thread Greg
Crazy reallybut I have been trying to re-position the module on my > html page and I can't get it to move to where I want it. I have tried > the following: > > - Creating a new page with only the example carousel on the page > - Wrapping the entire module, from "id="wrap" down in a and >

[jQuery] Re: Dialog and document.write

2009-07-22 Thread Greg Evans
Thanks, that worked like a charm :) On Jul 22, 2009, at 12:42 PM, Eric Garside wrote: Don't use document.write If you're using jQuery, you can insert the text using jQuery's "html" function. On Jul 22, 3:08 pm, Greg Evans wrote: Thanks for all the help everyo

[jQuery] Dialog and document.write

2009-07-22 Thread Greg Evans
r ask instead of banging my head against the wall Greg

[jQuery] Re: jquery, php question (Probably the wrong place to ask)

2009-07-22 Thread Greg Evans
or if that looks too confusing, use single quotes inside, like this: document.write(""); On Jul 21, 5:16 pm, Greg Evans wrote: The code now is like this: action="pl/ newload.pl" method="post"

[jQuery] Re: jquery, php question (Probably the wrong place to ask)

2009-07-21 Thread Greg Evans
The code now is like this: Chest: NAME="Aircraft">

[jQuery] Re: Newbie Question....

2009-07-17 Thread Greg Evans
ave to learn PHP while I am in the process of learning the things I need for jQuery, but I can if I need to. Any advice/help/examples would be greatly appreciated., Greg Evans

[jQuery] Newbie question

2009-07-16 Thread Greg Evans
or jQuery, but I can if I need to. Any advice/help/examples would be greatly appreciated., Greg Evans

[jQuery] namespace content

2009-07-10 Thread Greg
Does anyone know if this plugin works with RSS feeds with namespaces? Also, many RSS feeds have CDATA included. How does the plugin work with CDATA? An example RSS feed is: "http://sports.yahoo.com/mlb/ rss.xml".

[jQuery] Ajax firing at page load

2009-06-17 Thread Greg F
Hi, This script (below) is firing at page load. Are there any ideas how not to get it to fire until and event happens. Thanks for the help. Greg $(document).ready(function () { if($('#DrainStackDiameter').val() != null){ $('#PowerPipeConfigurations').change(function(){ getR

[jQuery] Re: jQuery in OfficeLive

2009-06-07 Thread Greg Graham
I am guessing you did not upload the jquery.js and jquery.bgpos.js files to your Live site. Your page would work locally because you have the files on your computer, but since the urls you are using are relative, the files must be on the same computer that your HTML is on. Therefore, you need to c

[jQuery] Tip: Setting textarea value in IE7

2009-04-23 Thread Greg Glockner
$("textarea").text("foo"); Note that this problem seems to be limited to IE7 - I don't have this problem in IE6 or IE8, or with other browsers. Hope this is helpful. Cheers, Greg.

[jQuery] jQuery checkbox checked attribute only enters in IE

2009-03-19 Thread Greg Kass
I have the following code (this is a minimized version of the actual code to demonstrate what is happening). The code inserts form fields from data contained in an object: jQuery(document).ready(function() { var fieldName = "optin"; var attrib = { "

[jQuery] Re: test for css selector capability?

2009-03-02 Thread Greg Glockner
four major browsers: WebKit (Safari/Chrome), Gecko (Firefox), Trident (IE) and Presto (Opera). Cheers, Greg. On Feb 9, 7:16 am, Aaron Gundel wrote: > jQuery.browseris deprecated in 1.3 + (don't use it). > > JQuery now uses feature detection.  This is a more extensible way of > detec

[jQuery] Re: Bug in FAQs for checkboxes

2009-01-24 Thread Greg Glockner
eone should research this issue. Thanks, Greg Glockner. On Jan 24, 8:24 pm, Greg Glockner wrote: > Hi, after some painful debugging, I determined that there is a bug in > the jQuery FAQs about how to clear a checkbox.  Specifically, if you > have a strict XHTML document, you *cannot* use .

[jQuery] Bug in FAQs for checkboxes

2009-01-24 Thread Greg Glockner
Hi, after some painful debugging, I determined that there is a bug in the jQuery FAQs about how to clear a checkbox. Specifically, if you have a strict XHTML document, you *cannot* use .attr("checked","") to clear a checkbox. Instead, you must use .removeAttr("checked"). See the following PHP co

[jQuery] New tags in Opera

2009-01-22 Thread Greg Glockner
ry 1.3.x is now case sensitive in some areas that jQuery 1.2.x was not, so if you use a selector like "img", you might not match IMG in Opera. Hope this will help others. Cheers, Greg.

[jQuery] Buggy Animation

2008-10-11 Thread Greg G
I have some animation in the top navigation bar of my website [http:// www.silverchild.com/index_2.htm]. When I view the site in Firefox, the animation works every time you click a button. In IE, the animation does not get triggered consistently after the first click. In fact, after a few clicks

[jQuery] Re: Opacity in IE

2008-10-07 Thread Greg G
And the answer is: Because I had a line in the animation color: "#White" which IE choked on but Firefox had no problem with. On Oct 6, 2:12 pm, Greg G <[EMAIL PROTECTED]> wrote: > I have some animation I'm working on that works fine in Firefox but > not in IE.  I h

[jQuery] Re: Opacity in IE

2008-10-06 Thread Greg G
eed for all that code: > > $('.blowUp').animate({left:'-25%',top:'-50%',padding:'1em',opacity: > 0}).css({left:0,top:0,padding:'0.75em 0',opacity:1}); > > On Oct 6, 3:12 pm, Greg G <[EMAIL PROTECTED]> wrote: > > > I h

[jQuery] Opacity in IE

2008-10-06 Thread Greg G
I have some animation I'm working on that works fine in Firefox but not in IE. I have two issues: Part of the animation is fading out an element. I want to integrate this with the animate function and not use the fade out option. I've tried using filter : "alpha(opacity..." but that didn't hel

[jQuery] Re: Using a Select Tag as a Pager for Cycle Plugin

2008-08-28 Thread Greg
Thanks for the advice, Mike. It really did feel like overkill but I couldn't put my finger on a simpler solution. Just needed that second pair of eyeballs! On Aug 28, 6:49 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > I'm working on store that sells floor signs and in the cart area, I > > want

[jQuery] Leveraging a Select tag to drive Cycle Plugin Slideshow

2008-08-28 Thread Greg
Has anyone used a Select tag to act as the paging mechanism for a Cycle slideshow? In reference to: http://www.malsup.com/jquery/cycle/pager.html Basically I want control over the pager's tab names (they seem to default to 1, 2, 3 etc.). Thanks in advance! p.s. if you have a better idea, here

[jQuery] Using a Select Tag as a Pager for Cycle Plugin

2008-08-28 Thread Greg
I'm working on store that sells floor signs and in the cart area, I want the user to be able to pick a sign label and see the image pop up next to them. Then I'll let them do this over and over in the cart so they can order signs with different labels. I tried the jQuery plugin Cycle and got it

[jQuery] Re: Augmentation of Object.prototype

2008-07-22 Thread Greg
: "The problem with Object.prototype.begetObject is that it trips up incompetent programs[..]" [1] http://oreilly.com/catalog/9780596517748/ /Greg On Jul 22, 2:37 pm, Gordon <[EMAIL PROTECTED]> wrote: > Playing around with the prototypes of built in objects is considered a

[jQuery] Re: Augmentation of Object.prototype

2008-07-22 Thread Greg
7;t assume that object.prototype has been augmented ? Maybe it will reduce the performance a bit ... but is it significance ? /Greg On Jul 22, 5:01 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > Greg, you can't extend Object.prototype. It will break more than just > jQuery. A

[jQuery] Augmentation of Object.prototype

2008-07-22 Thread Greg
)) { f(k, this[k]); } } }; Is there an explanation of this limitation ? TIA /Greg

[jQuery] Re: unsubscribe me

2008-07-02 Thread Greg Hemphill
and your password is... just kidding I don't know your password. On Jul 2, 2008, at 1:07 PM, spicyj wrote: > > Your username is [EMAIL PROTECTED] > > On Jul 2, 11:05 am, "Rohit Mandlik" <[EMAIL PROTECTED]> wrote: >> Hi, >> >> How can i unsubscribe from this forum so i will not get more mails >

[jQuery] Re: DOM changes persist after page reload in FF?

2008-06-25 Thread Greg
Hi Jake, I'm afraid not. This is on an admin only template on the live client CMS since it's using a copy of live data. I could job up a test page elsewhere but the relevant bit of the html is posted below. Cheers Greg https://www.paypal.com/cgi-bin/webscr"; > htt

[jQuery] AJAX request pending after TCP connection closed

2008-06-06 Thread Greg
firebug.png Does anyone have any idea about this issue? TIA /Greg

[jQuery] Re: need help superfish jquery for Joel Birch

2008-05-30 Thread Greg
Yes it's work ! Thank'S a lot Joel On 30 mai, 05:46, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Hello, > > This is an easy one to answer. You just need to include the > "hoverIntent" plugin by Brian Cherne. Simply link to the plugin using > a script tag and Superfish will automatically use it to

[jQuery] need help superfish jquery for Joel Birch

2008-05-29 Thread Greg
Hi ! Need help for parameter timed delay on mouseOver not mouse out We want small delay before menu drop down 1 second for example our test : http://infoclick.ca/newweb/ Our Goal http://www.target.com/ if you put your mouse from left to right (women to Sell All) menu doesn't open put if you

[jQuery] append does not work if the HTML is not correct

2008-04-01 Thread Greg G
Append stopped working for me today suddenly. I want to add a post for others who may have had the same problem I had. If append suddenly stops working, or you can't get it to work in the first place, make sure that the HTML is perfectly formatted. I added an extra div tag to the html that FF i

[jQuery] Can't grab text element

2008-03-24 Thread Greg G
I have a web page that renders radio buttons with text after it. I want to take that text and wrap a label tag around it but I can't grab the text. Here is the HTML: Yes No I can get the radio object and I can get an array the radio objects siblings using ("#radio").each( function(){ $(this).si

[jQuery] Problem with validation

2008-03-09 Thread Greg Baker
I'm making a call to my validate() function when the document loads, passing it an array of the following format: [field_id] => [rule], [message] I am looping on field_id, assigning a blur function that checks the rule (which is a regexp), displaying a div if the regexp check fails... function v

[jQuery] ui calendar missing

2007-10-20 Thread Greg Warner
>From the ui.jquery.com page... 2 3404 Not Found 4 5Not Found 6The requested URL /view/trunk/ui/calendar/jquery-calendar.js was not found on this server. 7 8Apache/2.0.59 (Unix) Server at dev.jquery.com Port 80 9 10 I believe several of the other components are broken too.

[jQuery] opacity in animations

2007-10-09 Thread Greg Warner
When I call superfish like this: $(".nav").superfish({animation : {opacity: .5}}); ... it always animates from dark to light on the first time you access a menu, and then on subsequent accesses, it's already at opacity: .5, so it doesn't animate anything. So, how can I achieve what I want, whic

[jQuery] superfish: how do I turn off animations

2007-10-09 Thread Greg Warner
Silly Question: How do I call superfish so that it doesn't animate anything? I tried passing it an empty object {}, but that didn't work. Thanks!

[jQuery] superfish entire page 'fades' on mouseover (firefox mac os x)

2007-10-03 Thread Greg Warner
happen in safari or opera, nor with ff for windows. Nor does it happen with suckerfish with ff for mac. Any ideas? Or is anybody experiencing the same effect? Greg PS> Test here: http://users.tpg.com.au/j_birch/plugins/superfish/

[jQuery] Save reference to a element

2007-10-02 Thread Greg Warner
I want a user to be able to reference (by clicking) an element on a web page and then save a reference to that element in a database for later retrieval. What's the best way to do this? (Assume that the html page will never change). I could save some sort of path (body > div > div > ul > li > a.