[jQuery] Jörn's autocomplete - cursor position in IE8 with multiple items

2010-02-01 Thread shane
Can't figure out how to fix cursor position with IE8 when adding multiple items using autocomplete. After adding the first item, the cursor jumps back to the first position and doesnt allow you to properly enter your second item. From Jörn's post there's going to be a list builder to handle this

[jQuery] XML object to JSON

2010-01-24 Thread Shane
: {jQuery1264367243616:2316},2:{jQuery1264367243616:2317},3: {jQuery1264367243616:2318},4:{jQuery1264367243616:2319},. where the jQuery are supposed to be sub nodes. How can I best encode this XML object to JSON? Or does anyone know of a better way to browser cache an XML object? Thanks, Shane.

[jQuery] XML print all nodes ( html() )

2010-01-09 Thread Shane
Is there a way to print out the structure of a jQuery xml element... heres some code $(xml).find(item).each(function(){ if(myid == $(this).find(id).text()){ itemsXML = $(this).html() -- trying to do something like this } } i would like itemsXML to contain

[jQuery] Re: XML print all nodes ( html() )

2010-01-09 Thread Shane
no go. On Jan 9, 10:56 pm, John Arrowwood jarro...@gmail.com wrote: console.log( $('div/').append( $(itemsXML).clone() ).html() ) See if that works. On Sat, Jan 9, 2010 at 7:27 PM, Shane wishiwasmiss...@gmail.com wrote: Is there a way to print out the structure of a jQuery xml element

[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] Plugin Newb: Internal Functions

2009-05-15 Thread Shane
First, a thousand pardons! I see several threads that kinda' address my question, but they're all a little over my head. On the makeGreen function below, is this an acceptable way to implement an internal function? If I'm guessing right, we're operating on an object, so arguments are passed by

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

2009-04-23 Thread Shane Riley
In case anyone was wondering why, here's the solution from Mike Alsup. Hope it helps anyone else with the issue. Hi Shane, There are two cleartype options in Cycle, and unfortunately one of them is not documented (yet). The general purpose of the cleartype logic in Cycle is to workaround

[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
...@englishrules.com wrote: Hi Shane, IE has a second flag argument for getAttribute that, when set to 2, is supposed to get the literal value of the attribute rather than their special-sauce value. So, this.getAttribute('href', 2) *should* get the relative href. (note: no need to do $(this)[0

[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
that means having to do string manipulation since there's no way to grab the actual href string in IE in this case. Thanks for putting up an example. On Mar 25, 3:11 pm, Karl Swedberg k...@englishrules.com wrote: Hi Shane, Yes, I believe you're reading me right. Strange, though. I'm not able

[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] Re: field (min, max) depending on other field value

2009-02-18 Thread Shane
You can use jquery.validator (http://bassistance.de/jquery-plugins/ jquery-plugin-validation/) with a custom validation method on the age field. Here's an example: //custom validation method $.validator.addMethod(contextualAgeValidation, function(value, element, params) { //see if the

[jQuery] Browser locking up -- please help!

2009-02-12 Thread Shane
Thanks for Viewing, I have one page that locks up all browsers except Mac/Safari. It was more complex, but I whittled the jQuery code down to the bare essentials. Even though it's super-simple now, it still hangs for 15 seconds (FireFox is completely non-responsive during this) and ends with a

[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: Browser locking up -- please help!

2009-02-12 Thread Shane
=prop_descriptionpropid=4' class='listitem' td style='width:33%;'1480 Vine St amp; 8th, BLDGbr /Daytona Beach, FL 32117br /ID: 4/td td style='width:33%;'AA: Shane Mills/br /SA: Shane Millsbr / Home Pro Realty Corp/td

[jQuery] Re: Browser locking up -- please help!

2009-02-12 Thread Shane
More: Without filtering the results (pulling every entry from the DB), there are 4550+- entries. I'm wondering if it would just be better to write onClick events for individual row and bypass jQuery altogether here.

[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: Browser locking up -- please help!

2009-02-12 Thread Shane
Thank you, James!! That did the trick. I guess the browser was just having a tough time with all those bindings. Here is what I ended up using: var link; $('table#target').click(function(e){ var targ = $(e.target); if(targ.is(table)){ return; }else if(targ.is(tr)){ link =

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

[jQuery] Re: Thickbox on 1.2.6 or best alternative?

2008-06-08 Thread Shane Graber
Mike: Can you show your site where you've been using it? Shane On Jun 8, 4:44 pm, Mike Alsup [EMAIL PROTECTED] wrote: So you should be able to use it with jQuery, no problem. Indeed, Shadowbox works quite nicely with jQuery. I've been using it for several months.

[jQuery] Thickbox on 1.2.6 or best alternative?

2008-06-05 Thread Shane Graber
What are people using today to create effects like thickbox or lightbox on jQuery 1.2.6? Thickbox is broken on the 1.2.x release and I'm stuck with an old version of jQuery until I find a suitable replacement. What are others using? -- Shane ∞ http://liquid.homelinux.org - I'm so cool

[jQuery] Re: pass multiple form fields to the $.ajaxFileUpload fileElementId

2008-05-06 Thread Shane
As far as I can tell you have to manually add the desired extra variables to the url query string, like so: $.ajaxFileUpload ( { url:'ajax_fileUpload.cfm?createpoloroid=' + $ (#createpoloroid).val() + 'createmedium=' + $ (#createmedium).val(),

[jQuery] Ajax loading/please-wait image

2008-04-25 Thread Shane
Hi, I want to add your typical 'Loading' animated gif to a page while it's updating via ajax. I'm trying to do this in the $.displayCal function below. The $('div#load-wait') element is a div with the img inside. When the page initially loads, I don't see the image at all, even when $.post

[jQuery] Re: Ajax loading/please-wait image

2008-04-25 Thread Shane
Thanks. I'll give it a shot. On Apr 25, 4:30 pm, Ryura [EMAIL PROTECTED] wrote: Instead of using $.post, use $.ajax. This has far more options like beforeSend which will let you control the timing of your image. On Apr 25, 3:29 pm, Shane [EMAIL PROTECTED] wrote: Hi, I want to add your

[jQuery] Fisheye menu on left or right of screen?

2007-05-08 Thread Shane
Hi everyone, Wondering if someone more knowledgeable than me can help me to get the Fisheye interface element working on the left or right of the screen, rather than top and bottom. Thanks, Shane.