Thanks for the reply Dave, I've actually just snipped this section out
of the plug-in code. there is indeed a "return false;" at the end of
the submit function. So the form isn't actually submitting and forcing
a redirect.
Any other ideas? :)
On Nov 13, 12:07 pm, Dave Methvin wrote:
> My guess:
Hmm, I'm confused. I have a plugin which has this code:
$(this).submit(function(){
$(this).fadeOut("slow");
});
And it doesn't fade the form. But when I change it to:
$(this).submit(function(){
$(this).hide();
});
It does.
Why?
with solid evidence!
Great feedback, cheers.
Joel.
Hello,
You would still need to wrap that "this" in a jQuery object, otherwise
it refers to a DOM object. At that point, I would think that referring
to an existing jQuery object, as Superfish currently does, would be
preferrable. Are you able to test this, to be sure?
Thanks
Joel Birch
Hi everyone,
I'm wondering if someone could take a quick look at this slightly
modified plugin that I'm using on a site. It seems to work fine in
most browsers, but in IE8 it's real jittery.
It's a plugin that works pretty much the same as jqZoom.
Any help would be greatly appreciated.
http://j
Thanks, I'll check it out. :)
On Oct 21, 3:59 pm, James wrote:
> Try giving this article a read about plugin development
> pattern:http://www.learningjquery.com/2007/10/a-plugin-development-pattern
>
> That should answer your questions.
>
> On Oct 21, 10:46
the way your code is currently structured.
> You'd have to move the settings variable outside of your function.
> Something set to like:
>
> $.fn.plugin.settings = { ... }
>
> On Oct 21, 7:28 am, Joel Taylor wrote:
>
>
>
> > Hi, so, I have a pretty basic plugin,
Hi, so, I have a pretty basic plugin, and I'm trying to access a
variable that's set when the plugin is initialized. I'd also like to
change that variable on the fly.
Is it possible?
(function($) {
$.fn.plugin = function(options){
// default settings
var s
Good Day,
I've been working around Jquery for a little while now and I'm
creating a "News Accordion" menu to go on my site. The accordion works
fine in all browsers, however there is a bouncing effect if Click on
the same news article.
Here is the snippet of the first code I was working on:
Cod
I intend to use the blur function when a selection is not made to
clear some hidden field values.
And the result function to set/update those hidden fields when a
selection is made.
With the mouse selection, as both blur and result are triggered
simultaneously, a race condition occurs. This probl
, 10:40 pm, "Joel D'Souza" wrote:
> I have the blur event hooked in to reset hidden field values. The
> autocomplete plugin is set up as below and produces the behavior
> described in the comments:
>
> $("#test").autocomplete(data, {
> formatIt
I have the blur event hooked in to reset hidden field values. The
autocomplete plugin is set up as below and produces the behavior
described in the comments:
$("#test").autocomplete(data, {
formatItem: function(item) {
return item.text;
}
}).result(function(event, item) {
// This exec
Any one have an answer
On Wed, Aug 12, 2009 at 9:49 AM, PictureMan wrote:
> Can anyone see what's wrong with this:
> The behavior that is happening is that it does validate and
> compare..but DOESN'T CHECK FOR LENGTH.
>
> Password: {required: true, minlength: 6},
>re
IS that correct sytnax??
On Fri, Jul 31, 2009 at 7:08 PM, Joel Polsky wrote:
> Like this? (Which doesn't work)
>
> $("input[name=PlannedInvitationsOther]").focus(function(){
>
> $("input[name=PlannedInvitations][value=Other]").attr('checked'
Like this? (Which doesn't work)
$("input[name=PlannedInvitationsOther]").focus(function(){
$("input[name=PlannedInvitations][value=Other]").attr('checked','checked');
}
);
On Fri, Jul 31, 2009 at 7:00 PM, FrenchiInLA wrote:
>
>
> You should have .attr('checked','checked'), by the way you
Ah.. one darn missing suqiggly can ruin the whole darn thing...
Another question, related to that...
I want when the user clicks inside the text box, that the matching radio
button becomes the selected button. Hence if they selected 100
invitations,but then decided they want 10,000, thus have to
Can anyone shine more light on this???
On Thu, Jul 30, 2009 at 3:28 PM, Joel Polsky wrote:
>
>
> On Thu, Jul 30, 2009 at 1:16 PM, Brett Ritter wrote:
>
>>
>> On Thu, Jul 30, 2009 at 11:11 AM, PictureMan
>> wrote:
>> > It works great in FF, but not in IE!!!
On Thu, Jul 30, 2009 at 1:16 PM, Brett Ritter wrote:
>
> On Thu, Jul 30, 2009 at 11:11 AM, PictureMan
> wrote:
> > It works great in FF, but not in IE!!! What can I do to fix? There's
> > too much code to post online. But I can tell you about it's
> > conctruction.. It's a mix of ColdFusioin and
I'm sorry, I just found this thread. Ryo has found the correct
solution. I overlooked that Supposition hooked into $.superfish. Sorry
for the inconvenience, folks!
Joel Birch.
On Jul 6, 8:14 pm, Ryo INOUE wrote:
> In the changelog.txt for Superfish it is said that
addClass('current');
}
/* call that from within the links' click event handler... */
$('#nav a').bind('click',function(){
updatePathClass(this);
/* code for other click actions here */
return false;
});
Hope this helps.
Joel Birch.
You know those sites that have the "Your download will begin in 10
seconds" - and then it brings up a download window?
How could you do that with jQuery - I've been trying several methods
with the ajax functions and php headers
Any ideas out there?
Joel
Hello,
I really think that the space is caused by the space character you
have between the opening li tag and the opening anchor tag. Let us
know if removing this doesn't solve your issue.
Joel Birch.
return false;
});
Otherwise, if you do want the links to go to another page, just delete
the 'return false;'. Hope this helps.
Joel Birch.
e greatly appreciated!
Hello,
This sounds like a CSS issue so you might be better off asking for
help in a dedicated CSS group. Also, a link to an example page would
help people figure out where your problem lies.
Joel Birch.
Hello,
This is a common IE z-index bug. Here is a page which details it and
provides the solution.
http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/
For everyone else's information, you can always find the link to that
page from the Superfish FAQ page. Hope this helps.
the CSS that hides the submenus. Otherwise, obviously you won't be
able to see the submenus in IE6. Then work on getting the CSS right
cross-browsers before re-enabling the hiding CSS and the Superfish JS.
Joel.
Hmmm, is that so? Can you get the other ul elements to show properly
with JS disabled? If not then the problem is in your CSS. Otherwise,
I'll try and wrap my mind around what is occurring in the plugin code.
Joel.
jQuery's animation functions apply display:none to the ul elements
when they are hidden. Therefore, it's good use left:-999em for when JS
is disabled, but I don't know a solution for when it is.
Joel.
Hi Jesse,
Does this also happen when JavaScript is disabled? Knowing this will
help narrow down the problem to being soley a CSS issue. I don't have
access to Windows at the moment.
Joel.
ut I don't have any examples to show you unfortunately.
Joel.
7;s
templates. Solve your problem by adding the id to your Superfish
selector in order to increase its 'specificity', like this:
#pillmenu .sf-menu li { background: #BDD2FF url('../images/
normal_bg.png') repeat-x 0 0; }
Joel Birch.
the anchor element for this.
> • Move the hover flyout “button” to butt up against the parent.
> Currently there is a gap between the left edge of the parent and the
> right edge of the flyout.
In Firefox, your menu already does this. The 'left' property on the
submenu 'ul' controls this.
Joel.
Hi Bruno,
Have a look at my Superfish menu plugin. Specifically, check out the
nav-bar demonstration as it behaves precisely like you described.
http://users.tpg.com.au/j_birch/plugins/superfish/#examples
Joel Birch.
u are seeing in IE6 is due to that browser not being capable of
displaying CSS-only dropdowns.
I have now changed the paths so that example.html works correctly when
browsed to online. I hope this avoids further confusion. Thanks for
the feedback.
Joel Birch.
Thanks Jorn! That worked. :) Phew.
On Jan 29, 12:05 pm, Jörn Zaefferer
wrote:
> Try this:
>
> $(".validate").each(function() {
> $(this).validate();
>
> });
>
> Jörn
>
> On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor wrote:
>
> > hi all - so I&
hi all - so I'm using the 'validate' plugin, and I seem to have an
issue where if I have multiple forms, the plugin only validates the
first form.
$('.validate').validate();
Obviously I have multiple forms, so I'm using a class selector. But
when I'm testing the form, the validate plugin throws
ror is without seeing your page.
Please read the Superfish documentation at
http://users.tpg.com.au/j_birch/plugins/superfish/
then if you still have a problem, post a link to your page here so we
can help you.
Joel Birch.
Hello, it appears that you have the #pillmenu li elements' background
set to transparent, which is easy to see by using Firebug. For further
CSS issues, you will get better help from a devoted CSS group.
Joel Birch.
Hello,
It is impossible to know where your error lies without seeing your
page. Please post a link to it.
Joel Birch.
Hi Bob,
To add two multiple classes to one element, you put them both within
the one class attribute and separate them with a space, like so:
...
Hope this clears it up for you.
Joel Birch.
e CSS */ }
$('#triggeringElement').hover(
function(){
$('#targetElement').toggleClass('hoverClass');
},
function(){
$('#targetElement').toggleClass('hoverClass');
}
);
Joel.
u would like an animation which does not
involve an opacity fade, in which case you can alter the 'animation'
parameter to {'height':'show} which will animate the height only.
Hope this helps.
Joel Birch.
Sorry for missing your question Mike. Unfortunately there is no SVN
repository at this time.
Joel.
.
2. This has to do with making sure you are applying the same :hover
styles that apply the highlight to your li.sfHover styles, as the
sfHover class remains on the parent li for as long as nested elements
are hovered.
Joel Birch.
give it the mouseout delay and IE6 support, etc.
Joel Birch.
Hello,
You need to include the jQuery JS file before the Superfish JS file.
That should fix the JS errors you are getting. Also, make sure your
menu works without JS first (your CSS should allow for that in all
modern browsers, (not IE6)), as yours currently does not.
Joel Birch.
r menu CSS questions to a
dedicated CSS list, as there is nothing jQuery specific about the
Superfish CSS.
Joel Birch.
I don't know off the top of my head. Do you have a link you could show
me please?
Joel.
9-99"
versions:
Masked Input Plugin 1.2.1
Richfaces 3.2.1.GA
Tks,
Joel Lobo
blogdojoellobo.blogspot.com
Fortaleza - Brazil
Hello,
This one has been solved before. Here is the link to the thread:
http://icanhaz.com/superfish
Enjoy!
Joel Birch.
JQuery users,
I'm receiving the following error:
Error: [Exception... "Could not convert JavaScript argument arg 0
[nsIDOMViewCSS.getComputedStyle]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://REMOVED.net/jquery-1.2.6.min.js :: anonymous :: line 22" data
Hello,
Looking at the source of that page I notice you are initialising
Superfish twice. If you delete the first block (the one without the
pathClass option) I think that should fix your problem.
Joel Birch.
No problem. If you view that page again you should see this
information added to the end of the plugin description. Hope this is
sufficient. Thanks for the suggestion.
Joel Birch.
;
>
>
> $('#cat').parents('.wanted')
>
> - ricardo
>
> On Dec 11, 2:01 am, Joel Taylor wrote:
>
> > Is there a better way to get a parents parent than to just do repeated
> > '.parent()' ??
Is there a better way to get a parents parent than to just do repeated
'.parent()' ??
Hey, not only do I not mind, but I am overjoyed that you are using
Superfish for this! Everyone should feel free to use Superfish however
they want. Nice work.
Joel BIrch.
On Dec 9, 1:21 am, Soylent <[EMAIL PROTECTED]> wrote:
> I don't know if any of you use Joomla, but I
Hello,
You have a trailing comma after 'dropShadows: true'. This may well be
causing the problem in IE.
Joel Birch
Hi Arun,
The option you need to change is 'speed', which is the speed of the
animation. If you set that to 1 millisecond, the animation will be
effectively instantaneous.
speed:1
Joel Birch.
oint to the images if you prefer to
keep them elsewhere.
Hope this helps.
Joel Birch.
ure it out far more easily.
Joel Birch.
If you provide a set of files that I can instantly run locally without
having to alter urls, etc., I'll be able to edit them and try to debug
your problem.
Joel Birch.
Sorry, but I won't be working on this. It seems more like a fault of
the IE7 script really, considering that its purpose is to make IE6
behave like IE7, and Superfish works fine in IE7.
Joel Birch.
Simply add a width on the submenu ul elements so that they all span
the full width of the menu. Those uls should also have a solid
background.
Joel Birch.
thoroughly tested to avoid a minefield of such problems across a wide
variety of browsers.
Joel Birch.
You are correct that Superfish does not have a disable function. You
would have to manually remove the classes from the DOM, and also
unbind the hover, blur and focus events on the anchors.
Joel Birch.
help you figure something out.
Joel Birch.
I don't have an example to point you to, but it is definitely
possible. How easy it is will depend on your CSS skills though. I
guess you should start with the version that has the third tier
vertical, and adjust that third tier to be more like the second.
Joel.
t('ul.sf-menu a').bind('focus',function(){
this.blur();
});
});
Hope this helps.
Joel Birch.
Have a look at this Superfish extension called "Supposition". It is an
effort to achieve exactly what you are asking for, although it comes
with no guarantees or support.
http://users.tpg.com.au/j_birch/plugins/superfish/supposition-test/
Joel Birch.
Hello,
Your fix is good except that it won't work in IE6. You might instead
try setting background:none for all .sf-sub-indicator elements, then
restoring the arrows to the deeper nested ones using a selector with
greater specificity. ie:
sf-menu li ul a .sf-sub-indicator { ...
Joel Birch.
Do the submenus still appear 100% width if you remove the Superfish JS
code so that the menu is pure CSS plus IE7.js ?
Joel Birch.
> I have the following:
>
> if (subject == '---') {
> if(!$('label[for="Subject",class="Error"]').length) {
> $('#Subject').parent().after(' generated="true" class="Error">Required field');
> }
> }
>
> I need to check if a label with for="Subject" and class="Error"
> exists:
>
>
> Hi everyone, I've been playing with jQuery a lot lately but my skills
> could use a lot of work. I recently made this small snippet of script
> to show and hide tablerows from a link that looks like this:
>
> 1
>
> this will show:
>
>
> etc
>
>
> Javascript:
>
> $(function(){
> $('.box
> I have the following on a JQuery Code:
>
> $('').appendTo('#Themes')
> .append(subject)
> .append('')
> .append(levels)
> .append('')
>
> How can I add
>
> .append(subject)
> .append('')
>
> only if subject is not empty and
>
> .append(levels)
> .append('')
>
> only if
> I have an object created using json_encode and via the console.log
> entry as suggested, I can see that it is correct. I have a backend
> program that I'm wanting to pass this object to, so that it can do a
> json_decode and then process that data. When I try to pass the
> object to it, usi
Hello,
My suggestion is to try putting the Superfish CSS before the script
tags rather than after them in the source code.
Joel Birch.
Hello,
The option you need to change is 'speed'. Try setting it to 'fast' or
even 1 (which would be 1 millisecond) for effectively no animation.
The 'delay' option only affects how long the submenus stay open after mouseout.
Joel Birch.
Hello,
You need to use .find() instead of .filter() for what you are trying
to do. Another thing to consider would be to simply add and remove a
class on hover, rather than applying the styles directly.
Joel Birch.
Hi Bob,
You seem to be missing some very important CSS. The submenu ul
elements must be position absolute. Also, I don't see any 'top' or
'left' values or hover rules for them. Please refer to the original
demo CSS files for further clues.
Joel Birch
On 23/10/2008, Bob
to the top right of that, as it
would appear on top of the li image. Or maybe I'm not visualising what
you intend to do properly.
Joel Birch.
some look to me like they would run into the bugs
that I did during my experimentation, while others look more
promising, although I haven't tested them.
Joel Birch.
Hi Dom,
Simply alter the line in the setTimeout function to this:
$('ul.sf-menu li.current > ul').fadeOut('slow');
Note that I have altered both the method and the selector here.
Joel Birch.
nav-aboutus.sfHover { background-image: ...
Notice that you will need to add the .sfHover selector in addition to
each :hover selector in order to support IE6. It also has the added
bonus of applying your desired affect when using the keyboard to tab
through the menu.
Joel Birch.
Hi Jess,
I guess I have replied too late, but it looks like you solved the
problem, so that's great. Hope you made your deadline.
Joel Birch.
;Chercher dans le site...');
});
$(window).load(function() {
setTimeout(function() {
$('ul.sf-menu li.current').hideSuperfishUl();
},2000);
});
I removed the autoArrows and dropShadow settings as you had them set
to their default values anyway.
Joel Birch.
Nicely done - thanks for showing us this. I guess this should be an
official part of Superfish considering that that all the other
animate() parameters are exposed options. I'll include this in the
next update. Thanks again.
Joel Birch.
t is well
worth the time to check it out.
If you still have problems, please show us a link to your page and we
can quickly point out where the problem is.
Joel Birch.
Please see your original thread for my reply.
Joel Birch.
Simply add
float:left; to your div while keeping your width:100%; and it will
work fine. You could even get rid of the div and just add width:100%;
to the main menu ul.
This is nothing to do with jQuery - just simple CSS.
Joel Birch.
t.
>
> What I'm missing here?
Can you post some code so we can see how the custom JS files are
attached to the content you pull in with .load()?
--
joel
Hi David,
I found that there is CSS in your stylesheet.css file that makes the
anchor elements collapse in width rather than expanding to the full
width as they should, being display:block. If you delete that file you
should see the difference there. My guess is that because you are
using absolut
it in the page. It overrides
jQuery's regular hover() function.
Joel Birch.
Hi Luke,
Have you looked at using the pathClass option built into Superfish?
It is demonstrated on the nav bar demo found on the Superfish
documentation page.
Joel Birch.
2008/10/6 iguana007 <[EMAIL PROTECTED]>:
>
> Hello there, I would like ask You if there is any possibility
/2007/09/18/png8-the-clear-winner/
Joel Birch.
2008/10/8 brna <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'd like to change the direction of the white arrow, but as I save it
> on Photoshop or Fireworks (I've tryed many PNG-8 savings
> configuration), I'm loosing th
is supposed
to.
Joel Birch.
Hi Dave,
When I visited the site the content looked completely unstyled and the
CSS was not applied to the menu. Maybe I'm too late to check it out
and you have changed things around since your original post?
Joel Birch.
(because I thought it was a thing of the
past!). I suggest searching for older threads that describe the issue.
There's definitely a solution to be found.
Joel.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
Or for better performance:
$('ul.nav').superfish()
.find('ul').bgIframe({opacity:false})
.find('li:has(ul)').addClass('isparent');
No .end() needed this way either.
Hi Ettiene,
You need to add an .end() to before you add the find('ul').bgIframe() like so:
$(document).ready(function(){
$("ul.nav").superfish()
.find(">li>ul>li:has(ul)").addClass("isparent").end()
.find('ul').bgIframe({opacity:false});
});
Joel Birch.
Does this solve your problem or am I missing something else?
Joel Birch.
1 - 100 of 596 matches
Mail list logo