[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 aaron.mw.john...@gmail.com wrote: Greg, Nathan, Thanks very much for your help! On 1 March 2010 14:58, Nathan

[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 aaron.mw.john...@gmail.com wrote: Hello... I have an unordered list containing

[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

[jQuery] Re: how to get href value

2010-01-23 Thread Greg Tarnoff
? On Jan 23, 10:52 am, Amos King amos.l.k...@gmail.com 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 greg.tarn...@gmail.comwrote: Actually all of these are slow. The last example will run anytime you click the page. You

[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

[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

[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

[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

[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

[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

[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];

[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

[jQuery] Re: namespacing jQuery

2009-10-28 Thread El Greg
AM, El Greg greglaval...@gmail.com wrote: Sorry - should have mentioned - I tried using jQuery.noConflict() as well as jQuery.noConflict(true) and reassigning to a variable, but ran into race conditions where another version of jQuery was executing a call before I could call noConflict

[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

[jQuery] Re: namespacing jQuery

2009-10-27 Thread El Greg
/jQuery.noConflict 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 On Tue, Oct 27, 2009 at 10:25 AM, El Greg greglaval...@gmail.com wrote: I'm

[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. edgar9...@gmail.com wrote: I wonder if there´s some function that execute when all the elements of the form are loaded, some like an

[jQuery] Re: Capture Mouse XY

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

[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 patrik.spat...@gmail.com wrote: Hi, I have this code and it works well in firefox but in IE it dosn't. How do

[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:

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

2009-08-25 Thread Greg
could be the reason). On Aug 25, 9:44 pm, James james.gp@gmail.com wrote: Does it work if you put your jquery library at the top? (In the head) On Aug 25, 12:31 pm, Greg greg.heid...@gmail.com wrote: I built a small JavaScript file that does some HTML and CSS manipulation when you hover

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

2009-08-12 Thread Greg Johnston
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 div and

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

2009-07-22 Thread Greg Evans
be like this: document.write(trtdinput type=\text\ name=\c\ + i + \\); or if that looks too confusing, use single quotes inside, like this: document.write(trtdinput type='text' name='c' + i + ''); On Jul 21, 5:16 pm, Greg Evans greg.djr...@gmail.com wrote: The code now is like this: div

[jQuery] Dialog and document.write

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

[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 greg.djr...@gmail.com wrote: Thanks for all the help everyone

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

2009-07-21 Thread Greg Evans
The code now is like this: div id=dialog title=Create Manifest form id=myForm action=pl/ newload.pl method=post table tdChest:/td

[jQuery] Re: Newbie Question....

2009-07-17 Thread Greg Evans
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
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(){ getResults (); }).change

[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

[jQuery] Tip: Setting textarea value in IE7

2009-04-23 Thread Greg Glockner
); 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
browsers: WebKit (Safari/Chrome), Gecko (Firefox), Trident (IE) and Presto (Opera). Cheers, Greg. On Feb 9, 7:16 am, Aaron Gundel aaron.gun...@gmail.com wrote: jQuery.browseris deprecated in 1.3 + (don't use it). JQuery now uses feature detection.  This is a more extensible way of detecting

[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 code

[jQuery] Re: Bug in FAQs for checkboxes

2009-01-24 Thread Greg Glockner
the attribute via the DOM 0 way is able to modify the checked property, while the alternate code (when notxml is false) is unable to modify the checked property. I've got a workaround - to set the DOM checked property directly to true/false, but I thought someone should research this issue. Thanks, Greg

[jQuery] New tags in Opera

2009-01-22 Thread Greg Glockner
'/. I just discovered that jQuery 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

[jQuery] Re: Opacity in IE

2008-10-07 Thread Greg G
({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 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

[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 have two issues: Part

[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

[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] 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,

[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 the

[jQuery] Augmentation of Object.prototype

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

[jQuery] Re: Augmentation of Object.prototype

2008-07-22 Thread Greg
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. As you noted, there is a workaround, but it requres

[jQuery] Re: Augmentation of Object.prototype

2008-07-22 Thread Greg
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 REALLY BAD THING for exactly the reasons

[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 form id='paypal_form_19_add_to_cart_button' method=post action=https

[jQuery] AJAX request pending after TCP connection closed

2008-06-06 Thread Greg
? 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 do exactly

[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

[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: input type=radio name=RadioField type=hidden value=YYes input type=radio name=RadioField type=hidden value=NNo I can get the

[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

[jQuery] ui calendar missing

2007-10-20 Thread Greg Warner
From the ui.jquery.com page... !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN 2htmlhead 3title404 Not Found/title 4/headbody 5h1Not Found/h1 6pThe requested URL /view/trunk/ui/calendar/jquery-calendar.js was not found on this server./p 7hr 8addressApache/2.0.59 (Unix) Server at dev.jquery.com

[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, which

[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
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