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!
> 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
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.
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.
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
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
//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
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
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
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
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
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
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
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
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
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
. 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
. 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
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?
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
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
>
//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
>
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
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
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
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
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
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
);
});
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
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
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
> >> 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
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
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
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
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
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
37 matches
Mail list logo