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
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
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
?
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
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
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
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
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
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
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
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];
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
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
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.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
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. 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
http://codingforums.com/showthread.php?t=160798
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
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:
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
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 div and
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
instead of banging my head against the wall
Greg
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
The code now is like this:
div id=dialog title=Create Manifest
form id=myForm action=pl/
newload.pl method=post
table
tdChest:/td
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
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(){ getResults
(); }).change
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
);
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 = {
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
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
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
'/.
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.
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
({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
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
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
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
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,
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
, this[k]);
}
}
};
Is there an explanation of this limitation ?
TIA
/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
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
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
?
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 do exactly
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 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
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
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
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
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!
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
60 matches
Mail list logo