[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: $('textarea'+html+'/textarea').appendTo('#yourDiv'); On Sep 7, 10:48 am, ximo wallas igguan...@yahoo.com 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

[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] 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() {

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

2009-08-12 Thread Nic Hubbard
with val(). You don't have to loop through each option to find which is selected. select id=mySelect     option value=11/option     option value=22/option /select var myVal = $(#mySelect).val(); // 1 or 2 On Aug 12, 1:18 pm, Nic Hubbard nnhubb...@gmail.com wrote: I am confused about how to do

[jQuery] Re: Using .live and .each

2009-08-06 Thread Nic Hubbard
for content being added using ajax. On Aug 5, 5:14 pm, James james.gp@gmail.com 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 Hubbard

[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) {

[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 nnhubb...@gmail.com 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

[jQuery] jQuery and javascript objects

2009-07-08 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?

[jQuery] Re: jQuery and javascript objects

2009-07-08 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 nnhubb...@gmail.com 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] 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 kcssm2...@gmail.com wrote: Hello,      I got

[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 nnhubb...@gmail.com 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] 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: script

[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: Float Image on Page

2009-06-29 Thread Nic Hubbard
() * $(window).width()) + 'px'}, 2000,'linear',function(){                 setTimeout(floater,10);          } ); } floater(); }); Hope that can give you someplace to start. On Jun 29, 4:32 pm, Nic Hubbard nnhubb...@gmail.com wrote: I have been trying to find a solution to this for a while

[jQuery] Re: Float Image on Page

2009-06-29 Thread Nic Hubbard
29, 4:32 pm, Nic Hubbard nnhubb...@gmail.com 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. I would like to animate an image randomly around the screen.  So, it could slowly float across the screen

[jQuery] Object as Function argument

2009-06-24 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

[jQuery] Re: Object as Function argument

2009-06-24 Thread Nic Hubbard
= {     defaults : { test : 'nothing' } }; new test(); new test({test: 'hello world'}); On Jun 24, 8:07 am, Nic Hubbard nnhubb...@gmail.com wrote: 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

[jQuery] Re: Array to JSON?

2009-06-23 Thread Nic Hubbard
it? This is what really counts. JSON is On Jun 22, 7:01 pm, Nic Hubbard nnhubb...@gmail.com 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, 8:28 am, diogobaeder diogobae

[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-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 diogobae...@gmail.com wrote: Hmmm... why would one use this plugin if we have Douglas Crockford's json2.org, which is

[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] Loop through XML to find children

2009-06-19 Thread Nic Hubbard
I have an XML structure like the following: item attr11/attr1 attr22/attr2 attr33/attr3 /item 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 =

[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] 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 warric...@gmail.com 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

[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
...@gmail.com 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 nnhubb...@gmail.com wrote: Really?  No one knows why the cycle pause is not working?  Someone must be using this! On Apr 24

[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 nnhubb...@gmail.com wrote: Anyone? On Apr 23, 9:44 pm, Nic Hubbard nnhubb...@gmail.com wrote: Shawn, Yes, I havepauseon hover set, and this is correctly working

[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 nnhubb...@gmail.com 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 $ ('#artistCycleParent

[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

[jQuery] Re: Safari Layout Issues

2009-04-24 Thread Nic Hubbard
, pager: '#slide_pager' }); } if ($('.home_slides').length 2) { $('#slide_pager').hide(); } On Apr 24, 12:54 pm, Nic Hubbard nnhubb...@gmail.com wrote: For some strange reason I am only having layout issues in Safari, even IE6

[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 nnhubb...@gmail.com wrote: Here is the cycle code I am using: if ($('#home_exhibition_hold').length) {                 $('#home_exhibition_hold

[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] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-23 Thread Nic Hubbard
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, 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

[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

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

[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

[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 bharanikumariyer...@gmail.com wrote: Hi All , Can u please tell , How to implement  in jquery, php,, Insert record after pressed the CTRL+S in keyboard , Thanks -- உங்கள் நண்பன் பரணி  குமார்

[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 donnykur...@gmail.com 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

[jQuery] Re: Custom Callback not using jQuery object

2009-04-16 Thread Nic Hubbard
(this + ' is equal to ' + (param1 + param2 + param3)); } myFunc.apply(12, [2,4,6]); // alerts 12 is equal to 12 I hope I answered your question, but I fear I may have just rambled at you. :( On Feb 25, 4:24 pm, Nic Hubbard nnhubb...@gmail.com wrote: Ha!  That worked perfectly!  Thanks, I really

[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 pburr...@gmail.com 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

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

2009-04-15 Thread Nic Hubbard
    }); On Apr 15, 4:53 pm, Nic Hubbard nnhubb...@gmail.com 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 pburr...@gmail.com wrote: Is anyone aware of a way to pass some additional context information

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
12, 4:35 pm, Nic Hubbard nnhubb...@gmail.com wrote: 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

[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 nnhubb...@gmail.com 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

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
' 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 ways, but I can never target the form.  Any other ideas? It is frustrating because I really

[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 nsear...@gmail.com 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 Hubbard nnhubb...@gmail.com wrote: Test page to show

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
and I'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 form part and it still doesn't work. I'd be interested in seeing what happens here too. On Apr 13, 6:47 am, Nic Hubbard nnhubb...@gmail.com wrote

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
of this helps... cheers! Nic Luciano Senior Web Developer @ AdaptiveBluehttp://www.twitter.com/niclucianohttp://www.linkedin.com/in/nicluciano On Mon, Apr 13, 2009 at 3:35 PM, Nic Hubbard nnhubb...@gmail.com wrote: Nope, that does not work either. On Apr 13, 12:20 pm, Jack Killpatrick j

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
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 alert( $(html).get(5).action ); On Apr 13, 10:28 am, Nic Hubbard nnhubb...@gmail.com wrote: Ok, my test now reflects your suggestions.  But, sadly, none of that helped

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
On Apr 13, 10:22 pm, Nic Hubbard nnhubb...@gmail.com wrote: Could this be a jQuery bug? On Apr 13, 2:13 pm, James james.gp@gmail.com wrote: I still haven't figured it out, but playing around and setting the ajax response as a jquery object, $(html), and making it global so I can

[jQuery] Re: Finding ID within Ajax response

2009-04-13 Thread Nic Hubbard
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 On Apr 13, 10:55 pm, Nic Hubbard nnhubb...@gmail.com wrote

[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 ryank...@gmail.com 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 Hubbard

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

[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 nnhubb...@gmail.com wrote: 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

[jQuery] Re: Check value when adding to array

2009-04-13 Thread Nic Hubbard
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 nnhubb...@gmail.com wrote: 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

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

[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

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

[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 michaell...@gmail.com 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 nnhubb...@gmail.com wrote: I am getting

[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 li 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 test id=1test 1/test test id=2test 2/test /test Because my function checks for each

[jQuery] Re: Ignore first item in XML

2009-04-07 Thread Nic Hubbard
. On Apr 7, 1:59 pm, Nic Hubbard nnhubb...@gmail.com wrote: I am grabbing some XML from our server, then writing that out with li 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 test id=1test 1/test

[jQuery] Create array from li text

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

[jQuery] Re: Create array from li text

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

[jQuery] Re: Create array from li text

2009-04-06 Thread Nic Hubbard
: maybe something like this: var ar = []; $('#yourList li').each(function(){     ar.push( $(this).text() ); }); - Jack Nic Hubbard wrote: A better explanation: I have a var that contains some html.  Within that there are li elements that I need to strip the text out of and put

[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: Combining Selectors

2009-04-05 Thread Nic Hubbard
work, how do you fix it? Use the second argument to the $ function: $( selector, context ) Like this: alert( $( input[type='submit'], this ).attr('id') ); -Mike From: Nic Hubbard I am confused why the following is returning undefined: alert($(this + input[type='submit']).attr('id

[jQuery] Re: Position Div over Quicktime Movie

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

[jQuery] Re: Position Div over Quicktime Movie

2009-03-26 Thread Nic Hubbard
Anyone? On Mar 24, 4:41 pm, Nic Hubbard nnhubb...@gmail.com 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! Has

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

2009-03-25 Thread Nic Hubbard
for preloading. On Mar 24, 1:19 pm, Nic Hubbard nnhubb...@gmail.com wrote: Anyone? On Mar 23, 2:08 pm, Nic Hubbard nnhubb...@gmail.com 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

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

2009-03-24 Thread Nic Hubbard
Anyone? On Mar 23, 2:08 pm, Nic Hubbard nnhubb...@gmail.com 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 using

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

[jQuery] jQuery right before /body 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 /body tag, similar to google analytics files. Is this a good idea? Or will this not work?

[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 rcornf...@raindrop.co.uk 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

[jQuery] Re: jScoll Pane and Hidden Divs

2009-03-13 Thread Nic Hubbard
could 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 nnhubb...@gmail.com wrote: I have a hidden div that uses the .fadeIn() function when a link is clicked

[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 aplennev...@gmail.com wrote: can u put up an online demo somewhere?  (http://jsbin.com/) On Fri, Mar 13, 2009 at 8:55 AM, Nic Hubbard nnhubb...@gmail.com wrote: Well, I had

[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: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
that are not defined. On Mar 13, 8:36 am, Nic Hubbard nnhubb...@gmail.com 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 script is not running. I am using the cycle

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
that are not defined. On Mar 13, 8:36 am, Nic Hubbard nnhubb...@gmail.com 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 script is not running. I am using

[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

[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 rcornf...@raindrop.co.uk 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

[jQuery] Re: Invalid Argument in IE7/8

2009-03-13 Thread Nic Hubbard
is gone, and the rest of my functions work perfectly. Ideas? On Mar 13, 9:38 am, Henry rcornf...@raindrop.co.uk 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 saying that jQuery.js

[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: Show/Hide Menu

2009-03-03 Thread Nic Hubbard
#overout - 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 mouseout event to the div, but because

[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 bally.z...@gmail.com 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 nnhubb...@gmail.com wrote: I have a list of names

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

2009-03-03 Thread Nic Hubbard
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 bally.z...@gmail.com wrote: On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard nnhubb...@gmail.com wrote: Should I keep the division by 10

[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 j...@ihwy.com wrote: Here's an example of a way to handle that: http://www.ihwy.com/Labs/demos/Current/image-hover-menu.aspx - Jack Nic Hubbard wrote

[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 j...@ihwy.com wrote: great! but the important part: is it a nice or a bad puppy? g - Jack Nic Hubbard wrote: Yes!  That is exactly what I was looking for!  I have implemented it and it works perfectly, thank you! On Mar

[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 nnhubb...@gmail.com wrote: I understand now, and I appreciate your help. A new problem

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

2009-03-03 Thread Nic Hubbard
if it would meet your needs for this situation, but throwing it out there in case you want to give it a try. - Jack Nic Hubbard wrote: I have a list of names wrapped in p tags that are sorted in alphabetical order.  I am trying to build 3 even columns out of these.  There are 63 items, so

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

2009-03-03 Thread Nic Hubbard
...@gmail.com wrote: On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard nnhubb...@gmail.com wrote: Should I keep the division by 10 on the Math function? No, as i said, that's the problem. There's not only no need for it, but it's giving you results you don't want. Quick: what's zero divided by ten

[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] Re: Apply class to range of child elements

2009-03-02 Thread Nic Hubbard
(10)').addClass('first');         $('a:gt(9):lt(10)').addClass('second');         $('a:gt(19):lt(10)').addClass('third');         $('a:gt(29):lt(10)').addClass('fourth'); Which is better? The first takes a little over half as long as the second. On Feb 25, 10:45 pm, Nic Hubbard

[jQuery] Building Columns From A List Of Items

2009-03-02 Thread Nic Hubbard
I have a list of names wrapped in p 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

[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

[jQuery] Slideshow Using Ajax

2009-03-01 Thread Nic Hubbard
I have been searching for a jQuery slideshow plugin that can load in images using ajax. But I am having a really hard time finding one. Does anyone have any recommendations for one?

[jQuery] Re: Slideshow Using Ajax

2009-03-01 Thread Nic Hubbard
-image:url( On Mar 2, 5:53 am, Nic Hubbard nnhubb...@gmail.com wrote: I have been searching for a jQuery slideshow plugin that can load in images using ajax.  But I am having a really hard time finding one. Does anyone have any recommendations for one?

[jQuery] Re: Slideshow Using Ajax

2009-03-01 Thread Nic Hubbard
. On Mar 1, 8:57 pm, Ami aminad...@gmail.com wrote: There is no way to load images in AJAX. AJAX is only for text (Like JS/ CSS/JSON/XML,...) You can use AJAX to load the image source, and put it in img src=, or div style=background-image:url( On Mar 2, 5:53 am, Nic Hubbard nnhubb

  1   2   >