[jQuery] Re: Loading external text in to a text area?

2009-09-07 Thread Nic Hubbard
If you use $.ajax and the success option, you could do: $(''+html+' wrote: > Hello, I would like to know if I can load a small text from a external source > into a textarea. > the external source is a php that will write some clean text depending on the > vars received. > I know load() can do t

[jQuery] Using serialize() with one form field

2009-08-17 Thread Nic Hubbard
Is it possible to use serialize with just one form field? I am constructing a url to send with $.post and I need to convert the spaces and special characters of a field. Currently this does not seem to work: var news_letter_email = $('#newsletter_email').serialize(); Ideas for how this can be

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread Nic Hubbard
th val(). You don't > have to loop through each option to find which is selected. > > >     1 >     2 > > > var myVal = $("#mySelect").val(); // 1 or 2 > > On Aug 12, 1:18 pm, Nic Hubbard wrote: > > > I am confused about how to do this the rig

[jQuery] Get vars from one event function to another

2009-08-12 Thread Nic Hubbard
I am confused about how to do this the right way. I have a change event which grabs the value of the selected option list and sets that as a var. But, I would like to add that to the end of my post string when I submit the form, how would I do this? $('select').change(function() { $('s

[jQuery] Re: Using .live and .each

2009-08-06 Thread Nic Hubbard
using ajax. On Aug 5, 5:14 pm, James wrote: > It's not clear what you want to do. You said you are "not using ajax" > but you have content "brought in through ajax". What exactly do you > need $.live for? For what browser event? > > On Aug 5, 1:17 pm, Nic Hu

[jQuery] Re: Using .live and .each

2009-08-05 Thread Nic Hubbard
Anyone? Someone must have done this... On Aug 5, 11:32 am, Nic Hubbard wrote: > I have a script that runs when I load the page which converts some > dates.  I am not using ajax as well, and I need to use .live to > convert the dates that I brought in through ajax.  How would I > c

[jQuery] Using .live and .each

2009-08-05 Thread Nic Hubbard
I have a script that runs when I load the page which converts some dates. I am not using ajax as well, and I need to use .live to convert the dates that I brought in through ajax. How would I combine .live with .each and make it work? if ($("span.ISODate").length > 0) { $("span.ISODate"

[jQuery] Re: jQuery and javascript objects

2009-07-07 Thread Nic Hubbard
Is it possible to use the .each() function on an object that came from JSON? On Jul 7, 11:54 pm, Nic Hubbard wrote: > I have some JSON that I returned from my server.  I then converted it > to an object using eval.  It is only then that I can start > manipulating it with jQuery

[jQuery] jQuery and javascript objects

2009-07-07 Thread Nic Hubbard
I have some JSON that I returned from my server. I then converted it to an object using eval. It is only then that I can start manipulating it with jQuery (trust me). Currently the multilevel object is set in a var. Is there a way that I can then have jQuery use this, to get values from it? O

[jQuery] Re: Live() event doesnot refresh the class of the event which was changed dynamically.

2009-07-05 Thread Nic Hubbard
Pretty sure that you have to create a new .live() event for your expected class. So, you would need to do: $(".newClass").live("mouseover", function(){ //clickable function here.. }); On Jul 5, 12:30 am, Sanam wrote: > Hello, >      I got this problem

[jQuery] Start Animation from Center of Screen

2009-06-30 Thread Nic Hubbard
I have some animated text using the top and left css properties. But, everything starts from the top left of my screen. How could I make the animation start from the center, and then float out from there? Example Page: http://www.puc.edu/media/reasons/who-is-god jQuery Code: $(document).ready

[jQuery] Re: Float Image on Page

2009-06-30 Thread Nic Hubbard
I figured it out, I just used the .each function so that each floater would get a random value. :) On Jun 29, 9:41 pm, Nic Hubbard wrote: > Is there a way to make this more random?  Meaning, if I have multiple > images, using the above script they all kind of go on the same >

[jQuery] Re: Float Image on Page

2009-06-29 Thread Nic Hubbard
gt; > } > floater(); > }); > > Hope that can give you someplace to start. > > On Jun 29, 4:32 pm, Nic Hubbard wrote: > > > I have been trying to find a solution to this for a while, but all I > > can find is about style:float which is not what I want. > >

[jQuery] Re: Float Image on Page

2009-06-29 Thread Nic Hubbard
7;,'marginLeft':(Math.random() * $(window).width()) + 'px'}, > 2000,'linear',function(){ >                 setTimeout(floater,10); >          } ); > > } > floater(); > }); > > Hope that can give you someplace to start. > > On Jun 29,

[jQuery] Float Image on Page

2009-06-29 Thread Nic Hubbard
I have been trying to find a solution to this for a while, but all I can find is about style:float which is not what I want. I would like to animate an image randomly around the screen. So, it could slowly float across the screen, and would randomly choose its motion. Any ideas?

[jQuery] Re: Object as Function argument

2009-06-24 Thread Nic Hubbard
pe = { >     defaults : { test : 'nothing' } > > }; > > new test(); > new test({test: 'hello world'}); > > On Jun 24, 8:07 am, Nic Hubbard wrote: > > > > > I have used an object in the past as a function argument, but this was > > for a plugin

[jQuery] Object as Function argument

2009-06-23 Thread Nic Hubbard
I have used an object in the past as a function argument, but this was for a plugin that I wrote. Using it in the architecture of a plugin it worked. BUT, this time, I just want to write a normal function, but still use an object to set defaults and pass in changes to those defaults through as a

[jQuery] Looping through getJSON data

2009-06-23 Thread Nic Hubbard
I am returning data from the .getJSON() function and trying to write is all out in the body. But, for some reason this is not working at all. What have I done wrong? $.getJSON(api_url, params, function(data, texStatus) { // Check our array

[jQuery] Re: Array to JSON?

2009-06-23 Thread Nic Hubbard
t really counts. > > JSON is > > On Jun 22, 7:01 pm, Nic Hubbard wrote: > > > > > Yeah, I am not too hot on using a plugin for this.  I had hoped there > > was just a quick function that I could pass in an array and return > > JSON. > > > On Jun 22,

[jQuery] Re: Array to JSON?

2009-06-22 Thread Nic Hubbard
Yeah, I am not too hot on using a plugin for this. I had hoped there was just a quick function that I could pass in an array and return JSON. On Jun 22, 8:28 am, diogobaeder wrote: > Hmmm... why would one use this plugin if we have Douglas Crockford's > json2.org, which is the original JSON lib

[jQuery] Array to JSON?

2009-06-21 Thread Nic Hubbard
I have been trying to figure out how I could go from an associative array to JSON. Is there a function for this?

[jQuery] getJSON items

2009-06-19 Thread Nic Hubbard
It is possible to have getJSON() grab all of the data pairs and put them into a js array? Rather than having to know the names of the data?

[jQuery] Loop through XML to find children

2009-06-19 Thread Nic Hubbard
I have an XML structure like the following: 1 2 3 This XML gets returned to me after an ajax post, so I can get the tags using: $(xml).find('item').each(function() { var 1 = $(this).children('attr1').text(); var 2 = $(this).children('attr2').text(); } But, what if I don't want to set th

[jQuery] Random Image from Array

2009-06-08 Thread Nic Hubbard
I have some image URLs stored in an array. I then want to be able to print out one of those image URLs randomly on page load. What would be the best method to do this in jQuery? My array looks like: var theImages = new Array() theImages[1] = 'http://www.puc.edu/__data/assets/image/0014/16007/

[jQuery] Re: Hover image under flash element.....

2009-06-02 Thread Nic Hubbard
You need to use the wmode for your flash element. Setting wmode to opaque should fix this. On Jun 2, 5:38 am, Warrick wrote: > I am trying to place several hover/tool tips using jQuery in a page > that contains a flash elemnt to the right. When viewed in a browser > the hover/tool tip appears p

[jQuery] Pass var to click event

2009-05-25 Thread Nic Hubbard
I am having trouble passing a variable into a function used within a click event. I am doing the following: var test = 'Works!'; $('#action_confirm').click(function(test) { alert(test); }); I keep getting undefined. What am I doing wrong?

[jQuery] Submit form when hitting enter

2009-05-20 Thread Nic Hubbard
I have a form that I built, and I replaced the submit button with an image. When you click the image, it calls the .submit() jQuery function and submits the form. Because I am not using the normal submit input button, hitting enter in most browsers won't submit the form. I think that users are

[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-29 Thread Nic Hubbard
sup wrote: > Nic, Are you still having a problem with this?  Your pause and resume > anchors appear to be working just fine. > > Mike > > On Apr 27, 3:04 am, Nic Hubbard wrote: > > > Really?  No one knows why the cycle pause is not working?  Someone > > must b

[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-27 Thread Nic Hubbard
Really? No one knows why the cycle pause is not working? Someone must be using this! On Apr 24, 8:25 am, Nic Hubbard wrote: > Anyone? > > On Apr 23, 9:44 pm, Nic Hubbard wrote: > > > Shawn, > > > Yes, I havepauseon hover set, and this is correctly working.  It is

[jQuery] Re: Safari Layout Issues

2009-04-24 Thread Nic Hubbard
Ok, sorry guys, I realized I had come .css files below my .js files, this was causing the conflict in Safari. On Apr 24, 12:55 pm, Nic Hubbard wrote: > Here is the cycle code I am using: > > if ($('#home_exhibition_hold').length) { >                 $('#h

[jQuery] Re: Safari Layout Issues

2009-04-24 Thread Nic Hubbard
pause: 0, pager: '#slide_pager' }); } if ($('.home_slides').length < 2) { $('#slide_pager').hide(); } On Apr 24, 12:54 pm, Nic Hubbard wrote: > For some strange reason I a

[jQuery] Safari Layout Issues

2009-04-24 Thread Nic Hubbard
For some strange reason I am only having layout issues in Safari, even IE6 renders the page correctly! I have using jQuery Cycle on the page, and I am starting to wonder if that is what is causing the layout issue. Example: http://www.caldwellsnyder.com/home It seems that the div #home_exhibit

[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-24 Thread Nic Hubbard
Anyone? On Apr 23, 9:44 pm, Nic Hubbard wrote: > Shawn, > > Yes, I have pause on hover set, and this is correctly working.  It is > when the overlay comes up, and it is suppose to pause the current > image, which, my code seems to be correct to do so $ > ('#artistCyc

[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-23 Thread Nic Hubbard
want the pause option here.  I think you want to > progamatically start/stop the cycling.  See the section "Manually > Pausing a slideshow" athttp://malsup.com/jquery/cycle/int2.html. > > HTH. > > Shawn > > Nic Hubbard wrote: > > I am using the cycle plugin, bu

[jQuery] Cycle Plugin - Can't Get Pause To Work

2009-04-23 Thread Nic Hubbard
I am using the cycle plugin, but for some reason I can't get the pause feature to work. I am showing a hidden div, and when I do, I need to pause the slideshow. Here is what I am using: $('#artistCycleParent').cycle({ fx: 'fade', speed:3000,

[jQuery] Supersized Plugin Image Preload

2009-04-20 Thread Nic Hubbard
I am currently using the supersized plugin (http://buildinternet.com/ 2009/02/supersized-full-screen-backgroundslideshow-jquery-plugin/) to have a full screen, correct ratio scaling image background. It works very well. Only problem is, all the images try to load at the some time, and give a ver

[jQuery] Re: show if class matches current body id

2009-04-18 Thread Nic Hubbard
function initMenu() { if ($('body').attr('id') === $('#menu ul').attr('class')) { $('#menu ul').hide(); $('#menu ul.test').show(); $('#menu li a').click( function() { $(this).next().togg

[jQuery] Re: Custom Callback not using jQuery object

2009-04-16 Thread Nic Hubbard
quot; inside the function. > The second argument of apply is an array, in which you can pass > parameters. So: > > function myFunc(param1, param2, param3){ >   alert(this + ' is equal to ' + (param1 + param2 + param3)); > > } > > myFunc.apply(12, [2,4,6]); // alerts

[jQuery] Re: Creating an ajax status

2009-04-16 Thread Nic Hubbard
I got this working, thanks guys. On Apr 16, 10:19 am, Donny Kurnia wrote: > Nic Hubbard wrote: > > I have a number of GET and POST ajax calls that do various things my > > script.  For each one, I would like to set a status that is a string, > > so that I can out put that

[jQuery] Re: CTRL+S to Insert Record PHP+JQUERY

2009-04-16 Thread Nic Hubbard
http://jshotkeys.googlepages.com/test-static-01.html On Apr 15, 10:24 pm, bharani kumar wrote: > Hi All , > Can u please tell , > > How to implement  in jquery, php,, > > Insert record after pressed the CTRL+S in keyboard , > > Thanks > > -- > உங்கள் நண்பன் > பரணி  குமார் > > Regards > B.S.Bhara

[jQuery] Creating an ajax status

2009-04-16 Thread Nic Hubbard
I have a number of GET and POST ajax calls that do various things my script. For each one, I would like to set a status that is a string, so that I can out put that to the user. So, it might look like this: Ajax POST Posting to page Ajax GET Getting content page Ajax POST Sending data to page

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
    complete: AjaxRequestComplete >     }); > > On Apr 15, 4:53 pm, Nic Hubbard wrote: > > > I am interested in this as well.  How could I send a string to the > > success GotNewData function? > > > On Feb 26, 9:50 am, P Burrows wrote: > > > > Is anyone a

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
I am interested in this as well. How could I send a string to the success GotNewData function? On Feb 26, 9:50 am, P Burrows wrote: > Is anyone aware of a way to pass some additional context information to the > "success" function of an ajax request? > For instance, here is my code which works

[jQuery] Re: Check value when adding to array

2009-04-13 Thread Nic Hubbard
> var arr = $.map($('input'),function(n,i){ >         return n.name+'='+(n.name.indexOf('_test')!=-1?'some_value':n.value); > > }); > > On Apr 13, 5:27 pm, Nic Hubbard wrote: > > > I have input values that I am adding to a array.  I would

[jQuery] Re: Check value when adding to array

2009-04-13 Thread Nic Hubbard
Tried the following, but did not seem to work: if ($("input[name*='delete_linkid']",this)) { alert('it does!'); } On Apr 13, 5:27 pm, Nic Hubbard wrote: > I have input values that I am adding to a array.  I would like to be > able to check if any of th

[jQuery] Check value when adding to array

2009-04-13 Thread Nic Hubbard
I have input values that I am adding to a array. I would like to be able to check if any of them end in _test and if so, I need to set a specific value. Is there any, in an if statement, to check if an attribute of one of the input fields ends with _test? main_form.find('input').each(function()

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
You are right, that did work. Thanks, I really appreciate your help on this! Had you run into this issue before? On Apr 13, 3:33 pm, Ryan wrote: > In my tests wrapping your full test html page in the div seems to > work. Not pretty but works. > > On Apr 13, 11:29 pm, Nic Hu

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
> to your function. Its a bit of an ugly hack I know. > > Having played with it a bit now. I think your probably right about it > being a jquery bug. It might be worthwhile exploring which function > the problem lies with then submitting it to the jquery team. > > R > >

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
; R > > On Apr 13, 10:22 pm, Nic Hubbard wrote: > > > Could this be a jQuery bug? > > > On Apr 13, 2:13 pm, James wrote: > > > > I still haven't figured it out, but playing around and setting the > > > ajax response as a jquery object, $(html), and m

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
rt( $html.get(5).action ); >                 } >         }); > > }); > > Using Firebug and looking at the attributes of the object I've found > that the form is on the 5th-index of the object, for your test page. > Though this still doesn't really help much > >

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
Ok, my test now reflects your suggestions. But, sadly, none of that helped, it is still returning undefined. :( On Apr 13, 1:03 pm, Nic Luciano wrote: > Hey Nic, > > I have a couple small recommendations- hopefully one will fix the issue. > > Try using $.get() instead of $.aj

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Luciano
Hey Nic, I have a couple small recommendations- hopefully one will fix the issue. Try using $.get() instead of $.ajax, and specify "type" option as "html"- alternatively, you can use $.load() if your ultimate purpose is to inject this HTML into DOM. In addition rather tha

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
in, but usually getting it using 'form' worked. > > That said, since the response isn't in the DOM yet, I'm not sure if that > might present an issue (too/instead). > > - Jack > > Nic Hubbard wrote: > > Yes, this is very odd. I have tried it quite a few w

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
#x27;m getting the same > results as you (I can get #test2, but not #test). I've even truncated > the response down to as if you're only receiving the part and > it still doesn't work. I'd be interested in seeing what happens here > too. > > On Apr 13,

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
Nope, that returns undefined as well. :( On Apr 13, 11:34 am, Nathan wrote: > You could try changing this: alert($(html).find("#test").attr > ('action')); > To This: alert($("#test").attr('action')); > > On Apr 13, 9:47 am, Nic H

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
Test page to show the problem: http://www.puc.edu/dev/tests/ajax-test On Apr 13, 9:33 am, Nic Hubbard wrote: > I am pulling my hair out over this.  I swear that this is a bug. > > For some reason, I CANNOT target any forms within the html response. > I have tried very simple exa

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
text jQuery: success: function(html){ alert($(html).find("#test").attr('action')); alert($(html).find("#test2").text()); } #test2 works, but #test never does, and it seems this is because it is a form. Have I done something wrong here? Can I not target a form?

[jQuery] Finding ID within Ajax response

2009-04-12 Thread Nic Hubbard
I have an ajax GET call that returns the HTML of a page on my server. Within that page is a form with a specific ID. I know it is there, I can see it in the response in Firebug, but when I try to get attributes of that ID, it always returns undefined! What have I done wrong here? success: funct

[jQuery] Get var out of ajax scope

2009-04-09 Thread Nic Hubbard
I have an $.ajax() call that I am using to GET some text from a page on my site. I have put it in a variable with the success function. How can I move that var up and out of the $.ajax function so I can use it in other parts of my script? Thanks.

[jQuery] Re: .split an elements attribute

2009-04-09 Thread Nic Hubbard
Ah, thank you! Not sure what I was thinking. On Apr 9, 3:04 pm, mkmanning wrote: > Try alert( typeof(link_path) ) and you'll see it's a function. Try > link_path.toString() and then split it. > > On Apr 9, 2:54 pm, Nic Hubbard wrote: > > > I am getting the attri

[jQuery] .split an elements attribute

2009-04-09 Thread Nic Hubbard
I am getting the attribute of an image on a page. It is the onclick attribute, but I need some text from the onclick function. (Sounds strange, but I do). Using the following works totally fine: var link_path = $(html).find("img[alt='Show in Asset Map']").attr ('onclick'); alert(link_path); >F

[jQuery] Checking each div to see if it contains specific text

2009-04-09 Thread Nic Hubbard
I have a list of container divs that have children. I want to check for specific text in one child element, and if that is found, then hide another child element. For some reason what I have is not working: $('.exhibition_item_body').each(function () { if ($(this).children(".checkRecept

[jQuery] Re: Ignore first item in XML

2009-04-07 Thread Nic Hubbard
Hmmm, what a great idea. Not sure what I was thinking. I will go that route. :) On Apr 7, 5:05 pm, James wrote: > Why not just keep what you have and add an additional conditional > check to see whether the node has an ID attribute or not? If not, > ignore the node. > > On Apr

[jQuery] Ignore first item in XML

2009-04-07 Thread Nic Hubbard
I am grabbing some XML from our server, then writing that out with tags in the browser, all using the jquery .ajax() function. By design, our server wraps items with a parent of the same name, like: test 1 test 2 Because my function checks for each test tag, it finds the first parent, but re

[jQuery] Re: Create array from li text

2009-04-06 Thread Nic Hubbard
text, sry. > > - Jack > > Jack Killpatrick wrote: > > maybe something like this: > > > var ar = []; > > $('#yourList li').each(function(){ > >     ar.push( $(this).text() ); > > }); > > > - Jack > > > Nic Hubbard wrote: > >>

[jQuery] Re: Create array from li text

2009-04-06 Thread Nic Hubbard
 pm, Nic Hubbard wrote: > What would be the correct method to create an array from the text > inside items? > > Is below, the best method, or would it even work? > > var array_test = $(#test li).text().makeArray();

[jQuery] Create array from li text

2009-04-05 Thread Nic Hubbard
What would be the correct method to create an array from the text inside items? Is below, the best method, or would it even work? var array_test = $(#test li).text().makeArray();

[jQuery] Re: Combining Selectors

2009-04-05 Thread Nic Hubbard
m is. > > Since concatenating "this" to a string doesn't work, how do you fix it? Use > the second argument to the $ function: > > $( selector, context ) > > Like this: > > alert( $( " input[type='submit']", this ).attr('id') ); >

[jQuery] Combining Selectors

2009-04-05 Thread Nic Hubbard
I am confused why the following is returning undefined: alert($(this + " input[type='submit']").attr('id')); This is within the context of a plugin that I built. Removing the this makes it correctly find the input, why I want to narrow the scope.

[jQuery] Re: Position Div over Quicktime Movie

2009-03-29 Thread Nic Hubbard
Seriously? On Mar 26, 2:57 pm, Saira Zaheer wrote: > http://tinyurl.com/dar2ld > > http://tinyurl.com/cvjkqa > > http://tinyurl.com/ae56nz > > On 3/26/09, Nic Hubbard wrote: > > > > > Anyone? > > > On Mar 24, 4:41 pm, Nic Hubbard wrote: > > &

[jQuery] Re: Position Div over Quicktime Movie

2009-03-26 Thread Nic Hubbard
Anyone? On Mar 24, 4:41 pm, Nic Hubbard wrote: > Does anyone know of any jQuery/javascript trickery that can help with > positioning a div over a quicktime movie?  So far, I found found that > it is not possible.  But, it seems that there has to be some way to do > this! > &g

[jQuery] Re: jQuery.preload - Getting Link Mode To Work

2009-03-25 Thread Nic Hubbard
de it loop through the matching jQuery set and put all the rel > values into an array, which you use for preloading. > > On Mar 24, 1:19 pm, Nic Hubbard wrote: > > > Anyone? > > > On Mar 23, 2:08 pm, Nic Hubbard wrote: > > > > I seem to be having issues with getting li

[jQuery] Position Div over Quicktime Movie

2009-03-24 Thread Nic Hubbard
Does anyone know of any jQuery/javascript trickery that can help with positioning a div over a quicktime movie? So far, I found found that it is not possible. But, it seems that there has to be some way to do this! Has anyone done this before?

[jQuery] Re: jQuery.preload - Getting Link Mode To Work

2009-03-24 Thread Nic Hubbard
Anyone? On Mar 23, 2:08 pm, Nic Hubbard wrote: > I seem to be having issues with getting link mode to work with Ariel > Flesler's preload plugin.  I have a hidden menu, which shows a hidden > div when you mouse over a nav item.  This then shows a list of names, > and I am

[jQuery] jQuery right before tag?

2009-03-23 Thread Nic Hubbard
I am working on optimizing my page for speed. And, in doing this, I am wondering if I should put jQuery, as well as my other .js files right before the tag, similar to google analytics files. Is this a good idea? Or will this not work?

[jQuery] jQuery.preload - Getting Link Mode To Work

2009-03-23 Thread Nic Hubbard
I seem to be having issues with getting link mode to work with Ariel Flesler's preload plugin. I have a hidden menu, which shows a hidden div when you mouse over a nav item. This then shows a list of names, and I am using the preload plugin to load up a thumbnail image for each of the names. Cu

[jQuery] Re: Invalid Argument in IE7/8

2009-03-14 Thread Nic Hubbard
Anyone? I still can't figure out why jScroll Pane is causing the Invalid Argument. On Mar 13, 9:38 am, Henry wrote: > Nic Hubbard wrote: > > Ok, I removed all instances of the cycle plugin when it is > > not needed.  But, this has not fixed the problem in IE7/8. > >

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
e error is gone, and the rest of my functions work perfectly. Ideas? On Mar 13, 9:38 am, Henry wrote: > Nic Hubbard wrote: > > Ok, I removed all instances of the cycle plugin when it is > > not needed.  But, this has not fixed the problem in IE7/8. > > > Why would it be sayi

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
Hmm, I am not sure this is happeningbut I will look through my scripts. On Mar 13, 9:38 am, Henry wrote: > Nic Hubbard wrote: > > Ok, I removed all instances of the cycle plugin when it is > > not needed.  But, this has not fixed the problem in IE7/8. > > > Why

[jQuery] Should I test if an element exists?

2009-03-13 Thread Nic Hubbard
I have a .js file that I wrote for my whole sites. Part of it only pertain to certain pages, so some of the selectors would not find anything on other pages. This file is included in all pages, so my question is, should I check if a selector exists first, before I run each script? I am thinking

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
ute of those elements that are not > defined. > > On Mar 13, 8:36 am, Nic Hubbard wrote: > > > My page is throwing an invalid argument error on line 23 of jQuery, > > version 1.2.6.  Is there any reason this should be happening?  It > > seems that because of this,

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
se elements that are not > defined. > > On Mar 13, 8:36 am, Nic Hubbard wrote: > > > My page is throwing an invalid argument error on line 23 of jQuery, > > version 1.2.6.  Is there any reason this should be happening?  It > > seems that because of this, the rest of my scr

[jQuery] Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
My page is throwing an invalid argument error on line 23 of jQuery, version 1.2.6. Is there any reason this should be happening? It seems that because of this, the rest of my script is not running. I am using the cycle plugin as well as jScroll Panel. Example: http://67.207.148.241/home

[jQuery] Re: jScoll Pane and Hidden Divs

2009-03-13 Thread Nic Hubbard
Yes. http://67.207.148.241/exhibitions Roll your mouse over exhibitions. On Mar 13, 3:45 am, Alexandre Plennevaux wrote: > can u put up an online demo somewhere?  (http://jsbin.com/) > > On Fri, Mar 13, 2009 at 8:55 AM, Nic Hubbard wrote: > > > Well, I had thought of that

[jQuery] Re: jScoll Pane and Hidden Divs

2009-03-13 Thread Nic Hubbard
d > also position it outside the view port, initialise it, hide it, then > position it back in the viewport to avoid the initial display. > > On Fri, Mar 13, 2009 at 6:43 AM, Nic Hubbard wrote: > > > I have a hidden div that uses the .fadeIn() function when a link is > > click

[jQuery] jScoll Pane and Hidden Divs

2009-03-12 Thread Nic Hubbard
I have a hidden div that uses the .fadeIn() function when a link is clicked. Inside this is a div that uses jScroll Pane. But, for some reason when I hide that parent div first, jScroll pane won't work. It seems like it might not be initialized inside a hidden div. Is this true? Any ideas on

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
ns p').slice(total_artists_col * 2 , (total_artists_col * 3) + total_artists_mod).addClass('third'); // Now lets wrap those in some divs $('p.first').wrapAll(''); $('p.second').wrapAll(''); $('p.third').w

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
Sure Jack, I would be happy to give it a try. Let me know what I need to do. On Mar 3, 5:24 pm, Jack Killpatrick wrote: > Nic, I've got an almost-completed "listcols". If you'd like to give it a > try, let me know and I'll get you a pre-release copy. It split

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
Would it be a better idea to use the .slice() function rather than what I have? Couldn't I just use the same math function to calculate the number of items in each column? On Mar 3, 11:59 am, Nic Hubbard wrote: > I understand now, and I appreciate your help. > > A new problem h

[jQuery] Re: Show/Hide Menu

2009-03-03 Thread Nic Hubbard
Hmm, it looks nice to me. :) On Mar 3, 3:20 pm, Jack Killpatrick wrote: > great! but the important part: is it a nice or a bad puppy? > > - Jack > > Nic Hubbard wrote: > > Yes!  That is exactly what I was looking for!  I have implemented it > > and it works perfectly

[jQuery] Re: Show/Hide Menu

2009-03-03 Thread Nic Hubbard
Yes! That is exactly what I was looking for! I have implemented it and it works perfectly, thank you! On Mar 3, 9:54 am, Jack Killpatrick wrote: > Here's an example of a way to handle that: > > http://www.ihwy.com/Labs/demos/Current/image-hover-menu.aspx > > - Jack &

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
Content Content Content This way, it will group them properly when I use the wrapAll function. Is there a way to do it this way? Thanks again for your help! On Mar 3, 11:02 am, brian wrote: > On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard wrote: > > > Should I keep the division by 10

[jQuery] Re: Building Columns From A List Of Items

2009-03-03 Thread Nic Hubbard
Should I keep the division by 10 on the Math function? On Mar 3, 10:08 am, brian wrote: > The division by 10 is your problem. Try: > > $(this).addClass(classNames[(i + 3) % 3]); > > On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote: > > > I have a list of names wrapped

[jQuery] Re: Show/Hide Menu

2009-03-03 Thread Nic Hubbard
out > > - Jack > > Nic Hubbard wrote: > > I have a menu that is activated on mouseover a link.  The menu is a > > hidden div which appears.  My problem now is how to remove/hide that > > div when a user move their mouse off of the menu.  I have tried adding > > a mouse

[jQuery] Show/Hide Menu

2009-03-02 Thread Nic Hubbard
I have a menu that is activated on mouseover a link. The menu is a hidden div which appears. My problem now is how to remove/hide that div when a user move their mouse off of the menu. I have tried adding a mouseout event to the div, but because there are child divs inside that div, any mousing

[jQuery] Building Columns From A List Of Items

2009-03-02 Thread Nic Hubbard
I have a list of names wrapped in tags that are sorted in alphabetical order. I am trying to build 3 even columns out of these. There are 63 items, so each column should have 21 items. I have a script that kind of works, but it is making my items out of order, as it is somehow grouping them in

[jQuery] Re: Apply class to range of child elements

2009-03-02 Thread Nic Hubbard
>             else if (i>19&&i<30){$(link).addClass('third');} > > >                 else if (i>29&&i<40){$(link).addClass('fourth');} > > >         }) > > > > Here's a more 'jQuery' way: > > >

[jQuery] Cycle Plugin and Loading Images

2009-03-02 Thread Nic Hubbard
I have a question about the Cycle plugin. I have a slideshow with many large images. Is it possible to preload these or somehow load them at the time of the transition? I am just wanting to figure out a way so that all of my images don't have to load at the same time and cause long page loads.

[jQuery] jCarousel Effects

2009-03-01 Thread Nic Hubbard
I am wanting to use jCarousel but I am wondering if the only option for effects is to use the easing plugin? Or, is there a way to just simply specify the fade effect?

[jQuery] Re: Slideshow Using Ajax

2009-03-01 Thread Nic Hubbard
Actually, it looks like jCarousel might do what I want... On Mar 1, 9:53 pm, mkmanning wrote: > @Nic, can you explain what you're trying to acheive? If you know the > images' urls, then you can just cycle through them and update an img > tag's src attribute for a slide

  1   2   >