[jQuery] Re: Superfish - sf-breadcrumb question

2008-11-14 Thread John S

Got it working; ended up adding class=sfHover sf-breadcrumb to all
the main nav items.
May not be the correct way to do it, but for this round it'll do.
Seems that the nav rendering is completed before the jquery addClass
can be added.

Page is on a clients secured server so I can't give out the url.



[jQuery] Superfish - sf-breadcrumb question

2008-11-13 Thread John S

This regards using Superfish in a common navigation element.

I'm finding that I need to have sf-breadcrumb on one of the sf-menu
list items in orde for the matching sf-navbar to appear onload. I've
been trying to use jQuery to remove the hard coded class and use
addClass to add sf-breadcrumb to the element that matches the
correct section.

ex: Nav element 1  subnav 1, Nav element 2  subnav 2, etc.

Here's the script I'm using:
code
$jq(#nav).superfish({
   pathClass: 'current'}
 );

$jq(div#navbar  ul#nav  li#Nav_element_1).removeClass(sfHover sf-
breadcrumb);
 // successfully removes classes

$jq(li# + thisSection).addClass(sfHover sf-breadcrumb);
 // adds class to new Nav_element but subnav does not appear until
mouseover

$jq(li# + thisPage).addClass(current);
// highlights correct element in subnav
/code

Any ideas on what I'm missing?



[jQuery] Re: jquery 1.2.3 not working in my application

2008-03-25 Thread John S

Sounds like the jquery.js file isn't being found.
Check your path.

On Mar 25, 6:33 am, nacnez [EMAIL PROTECTED] wrote:
 I have just started learning jquery on the job. I am working on
 existing application which uses jquery 1.2.1. I wanted to use 1.2.3
 for getting better performance. When I do the substitution and load my
 page, I get the following errors

 jQuery(document).ready is not a function

 jQuery(document).triggerHandler is not a function

 I am not sure why these are caused. And both these are very
 fundamental stuff. When I compared 1.2.1 and 1.2.3 versions, the
 1.2.1's ready function does not have a call to triggerHandler where as
 1.2.3's has. Again I am not sure exactly why the addition and why that
 should cause a problem.

 I commented out the triggerHandler call in ready function of 1.2.3 and
 tried out to see if that works. Nope it does not.

 As suggested by Karl Swedberg, I checked whether the jQuery 1.2.3 file
 is accessible through firebug without getting 404. That does happen,
 but my issue persists.

 Please help me out regarding the same. I am sure I am making some
 silly mistake.

 Thanks,
 nacnez


[jQuery] Re: Pretty Horizontal Rules with jQuery

2008-01-10 Thread John S

Very cool!

On Jan 9, 2:45 pm, Hamish Campbell [EMAIL PROTECTED] wrote:
 Hi all,

 Thought I'd share a little piece of code I whipped up this morning.
 This turns hr elements into pretty div based dividers. In action here:

 http://www.deft.co.nz

 Turn js on and off and compare!

 In the HTML:

 hr title=some text! /

 In the JS:

 $(document).ready(function(){
 $('hr').each(function() {
 var divText = $(this).attr('title');
 $(this).before('div class=HR_DIVIDER center' +
 'div class=HR_LEFTnbsp;/div' +
 'div class=HR_RIGHTnbsp;/div' +
 'div class=centerdiv class=HR_TEXT'+divText+'/div/
 div' +
 '/div').remove();
 });

 });

 In the CSS:

 /* HORIZONTAL RULES */
 .center {
 text-align: center;}

 .HR_LEFT {
 background-image: url(hr_left.png);
 background-repeat: no-repeat;
 background-position: left center;
 width: 30px; // width of the hr_left.png image
 float: left;}

 .HR_RIGHT {
 background-image: url(hr_right.png);
 background-repeat: no-repeat;
 background-position: right center;
 width: 30px; // width of the hr_right.png image
 float: right;}

 .HR_DIVIDER {
 margin-top: 15px;
 margin-bottom: 15px;
 background-image: url(hr_mid.png);
 background-repeat: repeat-x;
 background-position: center center;}

 .HR_TEXT {
 margin: auto;
 background-color: #FF;
 width: 120px;

 }


[jQuery] Re: Cornerz - Bullet Proof Curved Corners using Canvas/VML

2008-01-10 Thread John S

Section headers in the demos not working in Opera 9.25 on Windows XP
Pro.
Margins on top and left sides of corner image.

On Jan 10, 8:32 am, Andy Matthews [EMAIL PROTECTED] wrote:
 Demo works flawlessly in IE7. Good job weepy!

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of weepy
 Sent: Thursday, January 10, 2008 3:42 AM
 To: jQuery (English)
 Subject: [jQuery] Re: Cornerz - Bullet Proof Curved Corners using Canvas/VML

 Great stuff Olaf

 I am putting together a test page with all the display/position options
 together so we can test it properly.

 version 0.1 is here:www.parkerfox.co.uk/cornerz/0.1version 0.2 is 
 here:www.parkerfox.co.uk/cornerz/

 I am thinking of reverting back to 0.1 IE html rendering except when the
 layout is fluid.
 0.1 only breaks in IE when the widths and heights are odd (which is not so
 much of a problem for fixed dimensions as padding can be added) However
 version 0.2 doesn't seem to work so well for display: inline

 On Jan 10, 1:27 am, Olaf Bosch [EMAIL PROTECTED] wrote:
  Olaf Bosch schrieb:

   In my FooterBoxes work the Workaround with padding-bottom not in all
   boxes, one have the 1px border ever :(

   All have the same Styles, quirks IE ;)

  Haha, I write this and i have the idea, great.
  The boxes have all a UL in, I change the margin-top +1px and all is
  fine, without the paddingHack.

  GreatPlugin i ever see, my best wishes to you :)

  --
  Viele Grüße, Olaf

  ---
  [EMAIL PROTECTED]://olaf-bosch.dewww.akitafreund.dehttp://oho
  rn.info
  ---


[jQuery] Re: selector in ie7

2008-01-10 Thread John S

Fails in various degrees in everything (IE7, Safari, Opera) except FF.

On Jan 10, 8:57 am, mojo [EMAIL PROTECTED] wrote:
 hi.

 in ff 2.0.0.11 the selector works as expected.
 in ie7 it fails to select anything.

 example on documentation pagehttp://docs.jquery.com/Selectors/attributeEquals
 also look different in said browsers.

 is this a bug?


[jQuery] Re: jCarousel Lite and Thickbox

2008-01-07 Thread John S

I'm currently developing a site for the company I work for (can't post
url at this time) using those plugins.
Very easy to use, I have an image and a link clickable to launch
Thickbox.


On Jan 6, 10:10 am, Andrea - Aosta [EMAIL PROTECTED] wrote:
 Anyone as worked with this two plugin... i want to use a jcarousel
 lite and, with a click on the image, a thickboc effetct... it is
 possible? Thank you