[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 wrote: > Hi, > > I'm building an online application, and I want one

[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: $(".subnav").each(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: $(".subnav").each(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 wrote: > I've got a simple each function that finds every subnav and assigns it > a vertical positi

[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] 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

[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: Also, be sure to give your slides fixed dimensions. I'm seeing a common issue with implem

[jQuery] Plugin Authoring Code Example Incorrect

2009-11-07 Thread Shane Riley
I created a jQuery plugin for the sake of learning the process and got it working no problem. In the plugin authoring docs it says that if you return true inside the each method, you can continue using jQuery chaining. However the code example above has the return this statement at the end of the p

[jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Shane Riley
and you can take > advantage 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] Pl

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: 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 wrote: >   Hi, >   in first, these days I started to play with jquery and I`m > impressed, excell

[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. Fir

[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 either

[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] 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] 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: http://elix

[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 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, but > > that

[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 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/incoming/

[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] 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 wrote: > > hi there, i got the same problem actually appearing on: > > * windows vista home premium > > * fire

[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 wrote: > @shane: it's not so easy because all images have differe

[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 ex

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

2009-03-25 Thread Shane Riley
e link to be followed. I think I'm going to have to move the contents of href to rel instead. On Mar 25, 11:43 am, Martijn Houtman wrote: > On Mar 25, 2009, at 4:32 PM, Shane Riley wrote: > > > > > > > I'm wanting to read in the exact string that's conta

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

2009-03-25 Thread Shane Riley
bled to use 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 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
t this works in every case except when the href is set > via JavaScript. In that case, I'm not sure anything can be done. > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Mar 25, 2009, at 12:21 PM, Shane Riley wrote: > > >

[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 wrote: > Karl, I'm pretty sure I'm reading you right, but are you say

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

2009-03-25 Thread Shane Riley
g the   > fully qualified URL. For #3, in which I injected the link 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 > >

[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 wrote: > Alright, so your example shows the actual str

[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 i

[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 backgrou

[jQuery] Re: Alternate $.load

2009-04-22 Thread Shane Riley
er . ""; >  ?> > Some text in header2 ... > > > > and Am using $.ajax: > > $.ajax({url: 'temp.php', >             cache: false, >             error:  function(msg) {alert("Error Saved: " + msg);}, >             success: function(msg)

[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", functio

[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" wrote: > Your code looks fine, and I wasn't able to reproduce what you're describing: > > http://jsbin.com/ucaqi > > - Richard > >

[jQuery] Re: form.action equivalent in jQuery

2009-04-22 Thread Shane Riley
You should also ensure that the form submits whether or not the UA has Javascript enabled. I'd make sure the form action is populated unless the URL where the form is located can handle the form processing (ie submitting to itself) or ensure that there is a PHP file capable of processing the reque

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

2009-04-23 Thread Shane Riley
acity filter after each slide transition). 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 w