[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
I am using v1.3.2 I replaced var aIndex = $(this).attr('href'); with var aIndex = +this.href.match( /\d+$/ )[0]; and it works now. Thanks for the help!

[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
> So add this code right before that line: > >         alert( aIndex ); >         alert( typeof aIndex ); >         alert( data ); >         alert( data.items ); >         alert( data.items.length ); >         alert( data.items[aIndex] ); >         alert( data.items[aIndex].b

[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
ing on how the AJAX call ends. > > Michel Belleville > > 2009/11/17 roryreiff > > > Could it have something to do with the 'data' variable not being > > available to the function that I have placed inside the $.getJSON > > call? Is there a way to force it to pass on/be available to my > > ppButton.click(...) function? This is all I can think of for now.

[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
Could it have something to do with the 'data' variable not being available to the function that I have placed inside the $.getJSON call? Is there a way to force it to pass on/be available to my ppButton.click(...) function? This is all I can think of for now.

[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
u didn't expect, or in a format you didn't exepct, or > that the data.items[0].background didn't fit the provided format. > > Michel Belleville > > 2009/11/17 roryreiff > > > //This code is withing a larger function, but the error is coming into > > play wh

[jQuery] Re: IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
u didn't expect, or in a format you didn't exepct, or > that the data.items[0].background didn't fit the provided format. > > Michel Belleville > > 2009/11/17 roryreiff > > > //This code is withing a larger function, but the error is coming into > > play wh

[jQuery] IE 7 error with $.getJSON data elements

2009-11-17 Thread roryreiff
//This code is withing a larger function, but the error is coming into play when the 'ppButton' is clicked // It throws the following error in IE 7 (6 not yet tested): // // Error: 'data.items[...].background' is null or not an object // Code: 0 // var PP = $('.pomonaPeople'); $.getJSON("/dev/hom

[jQuery] Re: better way to access JSON than with $.getJSON on each button press

2009-11-12 Thread roryreiff
Thanks Scott...you have given me some food for thought. On Nov 12, 9:18 am, Scott Sauyet wrote: > >     function getData(url) { > >         var storedData; > >         return function(callback) { > >             if (storedData) callback(storedData) > >             else $.getJSON(url, function(dat

[jQuery] Re: better way to access JSON than with $.getJSON on each button press

2009-11-12 Thread roryreiff
Thanks Scott...you have given me some food for thought. On Nov 12, 9:18 am, Scott Sauyet wrote: > >     function getData(url) { > >         var storedData; > >         return function(callback) { > >             if (storedData) callback(storedData) > >             else $.getJSON(url, function(dat

[jQuery] better way to access JSON than with $.getJSON on each button press

2009-11-10 Thread roryreiff
Hi, I have created a function that binds behavior to a set of links, the result of clicking being that the container div of the navigations gets a new background image, and eventually gets html injected into the div as well (currently that part is not coded)... Given the following function, it se

[jQuery] dynamic loading of content from json file: questions about performance and best practices

2009-09-15 Thread roryreiff
Hello, I am in the process of creating a slideshow/gallery of 5 'panes', each of which will have some interactive content with hover/click behaviour and hidden/animated sections of content that can be accessed and manipulated. Currently, the gallery is pulling in each 'pane' from a json file. It

[jQuery] Re: help with indexing items with random variable to appear in correct order

2009-09-14 Thread roryreiff
On Sep 14, 10:43 am, roryreiff wrote: > I would also be interested in comments/suggestions about how this code > or even approach could be simplified/improved. It seems pretty > lightweight and simple to me, but I have very little idea about it's > performance and am curious if I a

[jQuery] Re: help with indexing items with random variable to appear in correct order

2009-09-14 Thread roryreiff
tless. On Sep 14, 10:28 am, roryreiff wrote: > Hello, > > Below is a script I am working on for a slideshow for a set of 5 divs. > I am generating a random number to represent the index of the starting > div, i.e. the one that gets displayed in the middle. All of the other > 4 di

[jQuery] help with indexing items with random variable to appear in correct order

2009-09-14 Thread roryreiff
Hello, Below is a script I am working on for a slideshow for a set of 5 divs. I am generating a random number to represent the index of the starting div, i.e. the one that gets displayed in the middle. All of the other 4 divs get relative indexes so that they appear either to the left or right of

[jQuery] Re: something amiss with json call/file

2009-09-14 Thread roryreiff
The problem ended up being my call to .getJson and something about how jQuery was recogzing the url as being cross domain. I changed the call to the file to be relative and it is working now. Thanks for the help. On Sep 11, 4:57 pm, Scott Haneda wrote: > Maybe your use of appendTo is wrong, I ju

[jQuery] something amiss with json call/file

2009-09-11 Thread roryreiff
Hello, I have the following code: // pull in json feed and inject panes into page $.getJSON("http://www.pomona.edu/dev/home/spotlight.json";, function(data){ $.each(data.items, function(i,item){ $('').appendTo('#spotlight-pa

[jQuery] Re: retrieving item description of link from JSON file

2009-07-06 Thread roryreiff
. I think if it's something that the visitors would use > very often, I would have it in the HTML. > > On Jul 6, 10:25 am, roryreiff wrote: > > > I would also like to add that it would be very easy to bake in the > > description fields into the title tags...but for a sit

[jQuery] Re: retrieving item description of link from JSON file

2009-07-06 Thread roryreiff
. I think if it's something that the visitors would use > very often, I would have it in the HTML. > > On Jul 6, 10:25 am, roryreiff wrote: > > > I would also like to add that it would be very easy to bake in the > > description fields into the title tags...but for a sit

[jQuery] Re: retrieving item description of link from JSON file

2009-07-06 Thread roryreiff
I would also like to add that it would be very easy to bake in the description fields into the title tags...but for a sitemap of a very large site, I am thinking this will bloat the html to be very obese (We will easily have well over 5,000 pages). Any thoughts on this as well?

[jQuery] [tooltip] retrieving item description of link from JSON file

2009-07-06 Thread roryreiff
Hi there, For our sitemap, I am attempting to create functionality that when a user hovers over a link, a description is shown in a tooltip, similar to how a video and it's description show on hover at netflix.com. Our sitemap has a sister json file, that has the description fields in it. My thin

[jQuery] Re: question about approaching an interactive image gallery

2009-04-28 Thread roryreiff
alled. Any ideas what the problem is I am having? Thanks... Code: http://www.pomona.edu/dev/spock/spock-feed-3.js Code in action: http://www.pomona.edu/dev/spock/index-3.asp -Rory On Apr 27, 10:19 am, roryreiff wrote: > I have approached a solution, or at least am very close. I have run >

[jQuery] Re: question about approaching an interactive image gallery

2009-04-27 Thread roryreiff
//malsup.com/jquery/cycle/ > > http://code.google.com/p/agile-carousel/ > > On Apr 15, 11:43 am,roryreiff wrote: > > > Hi there, > > > I want to start developing a simple interactive image gallery for a > > home page. My goal is for it to behave similar to SlideViewer >

[jQuery] basic image gallery, running into a few problems

2009-04-24 Thread roryreiff
Hello there, I have created a simply navigable image gallery with a bit of json, as well as .animate() and altering the margin of elements. Currently, I am pulling in the 5 most recent images with a tag of 'spock' from flickr. It seems to be working fine, except that when clicking through very fa

[jQuery] question about approaching an interactive image gallery

2009-04-15 Thread roryreiff
Hi there, I want to start developing a simple interactive image gallery for a home page. My goal is for it to behave similar to SlideViewer (http:// www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html) in it's functionality, except that instead of clicking on a lis

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-04-01 Thread roryreiff
ml2009, I seem to have it working within the confines of validating multiple email addresses within the plugin's reg exp. I made the validation check run only if the email length is greater than one...this takes care of the case when a user has a comma after the last email address (i.e., this pre

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-04-01 Thread roryreiff
ml2009, I seem to have it working within the confines of validating multiple email addresses within the plugin's reg exp. I made the validation check run only if the email length is greater than one...this takes care of the case when a user has a comma after the last email address (i.e., this pre

[jQuery] Re: tooltip container flowing off page in Safari 4, not resizing as should

2009-03-30 Thread roryreiff
Does anyone know if this can be easily addressed? It is Safari 4 Mac, to be precise. Thanks, On Mar 10, 8:52 am, roryreiff wrote: > Hi there, > > In my implementation of the tooltip plugin, I have notice that in > Safari 4 the tooltip does not resize when the cursor moves

[jQuery] Re: tooltip container flowing off page in Safari 4, not resizing as should

2009-03-30 Thread roryreiff
Does anyone know if this can be easily addressed? It is Safari 4 Mac, to be precise. Thanks, On Mar 10, 8:52 am, roryreiff wrote: > Hi there, > > In my implementation of the tooltip plugin, I have notice that in > Safari 4 the tooltip does not resize when the cursor moves

[jQuery] Re: making variable in [tooltip] plugin available to Shadowbox

2009-03-11 Thread roryreiff
); }); On Mar 10, 1:46 pm, BB wrote: > Hiroryreiff, > > maybe you store the title-attribut from the current element in a > variable and add it when the tooltip hides. > > If this doesn't work try to set the title in the rel-attribut: > rel="shadowbox;title='Ha

[jQuery] making variable in [tooltip] plugin available to Shadowbox

2009-03-10 Thread roryreiff
Hi there, I am using the tooltip plugin successfully, though I have run into a problem in that I have another plugin, Shadowbox, that needs to access the title attributes that tooltip if blasting away. Is there any way to make the tooltip variable 'tooltipText' global such that I can call it from

[jQuery] [tooltip] tooltip container flowing off page in Safari 4, not resizing as should

2009-03-10 Thread roryreiff
Hi there, In my implementation of the tooltip plugin, I have notice that in Safari 4 the tooltip does not resize when the cursor moves against the window. That is, I have track set to true as default, so initially the tooltip formats so that it does not overflow over the side of the window, but t

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-17 Thread roryreiff
> >> I'm new to jQuery as well. In other languages, you would take the > >> string that holds all of the emails and do a 'split' on commas. This > >> should give you an array where each element is an individual email. > >> From there, just validate each e

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-17 Thread roryreiff
inputs in the to field. It seems to only be taking into consideration the first. Perhaps the problem exists in using a for loop? Is that loop ending as soon as a well formed email address is encountered? Thanks so much for the help, On Feb 16, 8:03 pm, RobG wrote: > On Feb 17, 10:53 am, roryre

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-16 Thread roryreiff
Allow me to show you what I have so far. It seems to validate base on the first email, but none of the successive ones, in regards to the to field: http://www.pomona.edu/asp/mailthis-redux.asp On Feb 16, 4:53 pm, roryreiff wrote: > So far, I have adapted this: > > email: funct

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-16 Thread roryreiff
validate each element. > How to do this in jQuery, someone more experienced than I may be able > to help with. > > On Feb 13, 11:28 am,roryreiff wrote: > > > Hi there, > > > I am using the Validation plugin to validate a form that emails the > > current pages URL to the r

[jQuery] [validate] jQuery validation question: validating multiple email inputs

2009-02-13 Thread roryreiff
Hi there, I am using the Validation plugin to validate a form that emails the current pages URL to the recipients entered in to the "email to" field. I want to validate that field for multiple emails addressed separated by commas...and ideas on how to do this? I'm a bit new to jQuery so I am a li

[jQuery] [validate] multiple email addresses in single input

2009-02-04 Thread roryreiff
Hi there, I was wondering how I might approach altering the jQuery Validate plugin to allow for an input with multiple email addresses, separated by commas, that validates each email address as being correct. I'm still a bit new to jQuery/javascript, so I'm curious as to how exactly I might appro