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,
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...
>
>
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:
>
>
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
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
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
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
Easier yet, give your UL an ID then
$('#myID li a').click(function() {
$('#myID li a').removeClass("bg");
$(this).addClass("bg");
});
--Greg
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
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
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
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
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(
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.
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
>
>
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
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
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
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?
http://codingforums.com/showthread.php?t=160798
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
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
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
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
>
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
r ask instead of banging my head against the wall
Greg
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"
The code now is like this:
Chest:
NAME="Aircraft">
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
or jQuery, but I can if I need
to.
Any advice/help/examples would be greatly appreciated.,
Greg Evans
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".
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
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
$("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.
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 = {
"
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
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 .
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
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.
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
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
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
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
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
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
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
: "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
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
)) {
f(k, this[k]);
}
}
};
Is there an explanation of this limitation ?
TIA
/Greg
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
>
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
firebug.png
Does anyone have any idea about this issue?
TIA
/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
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
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
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
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
>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.
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
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!
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/
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.
62 matches
Mail list logo