[jQuery] Re: Is mouse inside a div?

2009-11-16 Thread Shane Riley
You can attach the mouseenter event to the div like this: $('div').mouseenter(function() { // Do stuff }); Documentation is at http://docs.jquery.com/Events/mouseenter On Nov 15, 3:30 pm, Tom Lobato tomlob...@gmail.com wrote:   Hi,   in first, these days I started to play with jquery and I`m

[jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Shane Riley
of this. HTH Morten -Original Message- From: Shane Riley [mailto:shanerileydoti...@gmail.com] Sent: Saturday, November 07, 2009 1:19 PM To: jQuery (English) Subject: [jQuery] Plugin Authoring Code Example Incorrect I created a jQuery plugin for the sake of learning the process

Re: [jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Shane Riley
() { /* do something */ }); 2) this.each(function() { /* do something */ }); return this; --Karl On Nov 8, 2009, at 12:56 PM, Morten Maxild wrote: Exactly...looks correct:-) -Original Message- From: Shane Riley [mailto:shanerileydoti...@gmail.com] Sent: Sunday, November 08, 2009 6:44 PM

[jQuery] Re: border appears around jquery slideshow in IE

2009-11-07 Thread Shane Riley
You can place the images each in a container and use those containers as the slides instead. Then the Cycle plugin isn't messing around with the PNG filter applied by your iepngfix.htc. ie: div id=slideshow div class=slideimg src=./images/showcase.png alt= //div div class=slideimg

[jQuery] Re: Disabling parent link if children present

2009-09-25 Thread Shane Riley
Are you wanting to just hide the anchor element for link 4 but keep links 4a to 4c visible? Here's a quick example of that scenario: $(function() { $(ul#nav li ul).each(function(i) { $(a:first, $(this).parent()).hide();

[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function:

[jQuery] Each function gives errors in IE6

2009-09-24 Thread Shane Riley
I've got a simple each function that finds every subnav and assigns it a vertical position equal to half of the subnav's height. This works great in all modern browsers, but in IE6 I get errors from each of the two lines within the function. Here's the problem function:

[jQuery] Re: Each function gives errors in IE6

2009-09-24 Thread Shane Riley
Weird double post. Found the issue. For some reason declaring the variable worked. So I changed it to: var top = (parseInt($(this).height()) / 2) - 6; On Sep 24, 7:31 am, Shane Riley shanerileydoti...@gmail.com wrote: I've got a simple each function that finds every subnav and assigns

[jQuery] Re: jQuery not working with content that is loaded in.

2009-08-11 Thread Shane Riley
If you're using the latest jQuery, you can bind most events with .live () to ensure that your events are attached when the new content is loaded in. Note that this doesn't work for all events, though. On Aug 11, 12:03 pm, cz231 cz2...@gmail.com wrote: Hi, I'm building an online application,

[jQuery] Selector :eq(x) issuing warning in FF

2009-07-02 Thread Shane Riley
When calling this jQuery: $(#homepage-slides img:eq(0)).fadeOut(300, function() { $(#homepage-slides img:eq(1)).fadeIn(300, function() { $(#homepage- slides img:eq(0)).remove(); }); }); I'm getting this warning in the Web Developer toolbar in Firefox: Warning: Unknown pseudo-class or

[jQuery] Re: Background color is being applied when using Cycle plugin

2009-04-23 Thread Shane Riley
). In Internet Explorer the default value of Cycle's 'cleartype' option is true in recent versions of the plugin. So to use the undocumented option you would do this: $('#slideshow').cycle({ cleartypeNoBg: true }); Hope this helps with the problem you're having. Mike On Apr 22, 6:00 pm, Shane

[jQuery] Re: Alternate $.load

2009-04-22 Thread Shane Riley
You can use a number of Ajax functions built in to JQuery depending on your specific needs. Check them out at http://docs.jquery.com/Ajax. If all you're looking to do is insert one file into another, load is normally the way to go, unless you're looking to place the loaded file before, after, or

[jQuery] Background color is being applied when using Cycle plugin

2009-04-22 Thread Shane Riley
I've been using Mike Alsup's Cycle plugin on a large number of projects, and one of the most recent ones is giving me trouble in IE. In this example, the slide container seems to have a background color applied to it, and there is neither a background property added to it nor is there any

[jQuery] Re: Alternate $.load

2009-04-22 Thread Shane Riley
();}            }); how I can get for example content only from div with id=header2 ? On 23 апр, 01:55, Shane Riley shanerileydoti...@gmail.com wrote: You can use a number of Ajax functions built in to JQuery depending on your specific needs. Check them out athttp://docs.jquery.com/Ajax

[jQuery] Re: SlideToggle Callback Help

2009-04-22 Thread Shane Riley
So what you're trying to do is ensure that the slideToggle is done animating before you add/remove a class? If so, you'd do something like this: $('.open-post-info').click(function() { var id = $(this).attr('id'); $('.post-info-' + id).slideToggle(medium,

[jQuery] Re: 1.3.2 td class selector only picks the first td

2009-04-22 Thread Shane Riley
There's definitely nothing wrong with the JQuery. Can you post a test case so that we can see all of the pieces to the puzzle? On Apr 22, 7:07 pm, Richard D. Worth rdwo...@gmail.com wrote: Your code looks fine, and I wasn't able to reproduce what you're describing: http://jsbin.com/ucaqi -

[jQuery] attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
I'm wanting to read in the exact string that's contained in an anchor's href attribute in order to use it as the POST variable list for an Ajax call to a PHP script, however in IE6 and 7 the string read from the href attribute ends up being the absolute path, not just the href attribute. Here's

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
think I'm going to have to move the contents of href to rel instead. On Mar 25, 11:43 am, Martijn Houtman martijn.hout...@gmail.com wrote: On Mar 25, 2009, at 4:32 PM, Shane Riley wrote: I'm wanting to read in the exact string that's contained in an anchor's href attribute in order to use

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
the site (it's a backend system for very specific clients). They want to add all sorts of animations and effects like everyone wants to do once they see JQuery animations in action. On Mar 25, 12:14 pm, Martijn Houtman martijn.hout...@gmail.com wrote: On Mar 25, 2009, at 5:04 PM, Shane Riley wrote

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Swedbergwww.englishrules.comwww.learningjquery.com On Mar 25, 2009, at 12:21 PM, Shane Riley wrote: Ha! I looked at your post too fast, and didn't notice that it was pure Javascript. Sorry. I'll try it and see. The way I currently have it will not work with javascript turned off either. I'm doing

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
After replacing $(this).attr(href) with this.getAttribute(href, 2) I get the same result. If I output the attribute, IE still shows the absolute path. On Mar 25, 2:21 pm, Shane Riley shanerileydoti...@gmail.com wrote: Karl, I'm pretty sure I'm reading you right, but are you saying that by all

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
with   javascript, they're both reporting the fully qualified URL. Which version of IE are you testing in? --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Mar 25, 2009, at 2:21 PM, Shane Riley wrote: Karl, I'm pretty sure I'm reading you right, but are you

[jQuery] Re: attr(href) giving full path instead of relative in IE

2009-03-25 Thread Shane Riley
Right, it's not hard, it was just unexpected is all. I guess I've gotten used to JQuery working the same in all browsers. I've got it working now with some old-fashioned Javascript. Thanks! On Mar 25, 3:20 pm, Shane Riley shanerileydoti...@gmail.com wrote: Alright, so your example shows

[jQuery] Re: Malsup's Cycle plugin exhibiting strange behavior

2009-03-12 Thread Shane Riley
This obviously is not a solid, permanent fix, but I found that if I set the images to a fixed width and height in the CSS it didn't exhibit this behavior. On Mar 12, 7:32 am, Mike Alsup mal...@gmail.com wrote: hi there, i got the same problem actually appearing on: * windows vista home

[jQuery] Re: Malsup's Cycle plugin exhibiting strange behavior

2009-03-12 Thread Shane Riley
That was my initial issue as well, however my client agreed to same- height images. Does anyone know if a previous version has these issues? I don't remember ever seeing this happen in the older versions. On Mar 12, 8:31 am, id404 ttarp...@googlemail.com wrote: @shane: it's not so easy because

[jQuery] Malsup's Cycle plugin exhibiting strange behavior

2009-03-08 Thread Shane Riley
I've got an instance of Mike Alsup's Cycle slideshow working on the homepage of a project I'm finishing up, and I'm having different issues with it depending on the browser being used. All of the issues seem to be happening in Mac only browsers. Here's the site I'm having trouble with:

[jQuery] Re: Malsup's Cycle plugin exhibiting strange behavior

2009-03-08 Thread Shane Riley
That looks to have done it. Thanks! On Mar 8, 1:12 pm, Mike Alsup mal...@gmail.com wrote: The first issue is in FF 3.0.7 on Mac. Occasionally, the first image appears no problem, however the remaining images show up extremely small. I tried setting a fixed width and height to the images,

[jQuery] Re: Drop down menu disappears when you hover over Cycle slideshow area

2009-03-08 Thread Shane Riley
Nevermind, I've changed it to toggle onclick instead. On Mar 7, 9:12 am, Shane Riley shanerileydoti...@gmail.com wrote: I've tried getting this to work properly in IE with a variety of different methods, and none are working. The page in question is here:http://elixir.biz/coders/marlins

[jQuery] Re: Malsup's Cycle plugin exhibiting strange behavior

2009-03-08 Thread Shane Riley
Actually, now the client has said that the issue still appears in FF 3 on Windows. I'm installing a new copy on a virtual machine to test it now, but is it possible there's still unresolved issues with the sizing?

[jQuery] Drop down menu disappears when you hover over Cycle slideshow area

2009-03-07 Thread Shane Riley
I've tried getting this to work properly in IE with a variety of different methods, and none are working. The page in question is here: http://elixir.biz/coders/marlins/incoming/photos.php If you hover over the blue team text it will display a drop-down menu. However, in IE6 and IE7 once you've

[jQuery] Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Shane Riley
I've got a project where I've got two slideshows on one page, and they're identical markup. Instead of adding IDs to each and making two separate cycle references, I wanted to attach the next and previous slide events on two specific links grouped with the slideshow container. I'm wondering

[jQuery] Re: Creating a reusable Cycle plugin powered slideshow

2009-02-12 Thread Shane Riley
Actually, I had figured out a solution almost like what you've got here after your Twitter replies. Here's what I used to make it work: $(.slideshow ul).each(function() { e = $(this); p = $(p.controls, $(this).parent()); e.cycle(

[jQuery] Re: Selection by CSS background-color

2009-01-29 Thread Shane Riley
I'm pretty sure this is going to require using string functions to locate the background-color property for testing. You could use .css (background-color) to read in the color attribute, but it will be in RGB form as shown in the documentation's demo at http://docs.jquery.com/CSS/css#name.