[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');

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

2009-11-17 Thread roryreiff
, 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 roryre...@gmail.com //This code is withing a larger function, but the error is coming into play when the 'ppButton' is clicked // It throws

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

2009-11-17 Thread roryreiff
, 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 roryre...@gmail.com //This code is withing a larger function, but the error is coming into play when the 'ppButton' is clicked // It throws

[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
Belleville 2009/11/17 roryreiff roryre...@gmail.com 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

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

2009-11-17 Thread roryreiff
( typeof aIndex );         alert( data );         alert( data.items );         alert( data.items.length );         alert( data.items[aIndex] );         alert( data.items[aIndex].background ); What do the alerts say? -Mike On Tue, Nov 17, 2009 at 10:26 AM, roryreiff roryre...@gmail.com wrote

[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: 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 scott.sau...@gmail.com wrote:     function getData(url) {         var storedData;         return function(callback) {             if (storedData) callback(storedData)             else $.getJSON(url,

[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 scott.sau...@gmail.com wrote:     function getData(url) {         var storedData;         return function(callback) {             if (storedData) callback(storedData)             else $.getJSON(url,

[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

[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: 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 talkli...@newgeo.com wrote: Maybe your use of

[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

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

2009-09-14 Thread roryreiff
. On Sep 14, 10:28 am, roryreiff roryre...@gmail.com 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 divs get

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

2009-09-14 Thread roryreiff
, roryreiff roryre...@gmail.com 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 am doing something

[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){ $('div

[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

[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] Re: retrieving item description of link from JSON file

2009-07-06 Thread roryreiff
that the visitors would use very often, I would have it in the HTML. On Jul 6, 10:25 am, roryreiff roryre...@gmail.com 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 sitemap of a very large site, I am thinking this will bloat

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

2009-07-06 Thread roryreiff
that the visitors would use very often, I would have it in the HTML. On Jul 6, 10:25 am, roryreiff roryre...@gmail.com 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 sitemap of a very large site, I am thinking this will bloat

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

2009-04-28 Thread roryreiff
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 roryre...@gmail.com 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
I have approached a solution, or at least am very close. I have run into a problem though... In my initial binds to my forward and backward controls, I am binding the functions backwardClick() and forwardClick(), as well as to each an if statement that calls pause() if my variable 'gallery' is

[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

[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

[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

[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

[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 roryre...@gmail.com 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 roryre...@gmail.com 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
Thanks...this did the trick: $('a[rel^=shadowbox]').each( function(){ var linkRel = $(this).attr('rel'); var linkTitle = $(this).attr('title'); $(this).attr('rel', linkRel + title= + linkTitle); }); On Mar 10, 1:46 pm, BB buchholz.bast...@googlemail.com

[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

[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

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

2009-02-17 Thread roryreiff
am, roryreiff roryre...@gmail.com wrote: So far, I have adapted this: [...] into this: email: function(value, element) {                         var emails = value.split(,);                         for(var emailAddress in emails

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

2009-02-17 Thread roryreiff
Yeah, I actually have that fixed in the posted link, but thanks for pointing that out. So, something else is at error now. On Feb 17, 9:04 am, Stephan Veigl stephan.ve...@gmail.com wrote: Hi is this just a copy paste error, or a real syntax error? You have to quote the comma in your split

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

2009-02-16 Thread roryreiff
So far, I have adapted this: email: function(value, element) { return this.optional(element) || /^((([a-z]|\d|[!#\$%'\*\+\-\/=\? \^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\ $%'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)

[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 roryre...@gmail.com wrote: So far, I have adapted this: email

[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

[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