[jQuery] Re: Cluetip and Firefox 3.0.5

2009-01-13 Thread Charlie Griefer
I'm going to change my identity and move far, far, away after this, but i figured some people might be wondering what's up, and you all deserve an answer. i was helping a friend troubleshoot some JS earlier, and disabled javascript in Firefox. It's been nice knowing you. Gotta go pack :) On Tue,

[jQuery] Re: Cluetip and Firefox 3.0.5

2009-01-13 Thread charlie griefer
nevermind... Karl was kind enough to let Matt Quackenbush out of timeout... he viewed my page in FF 3.0.5 and saw the cluetips. Something must be off with my FF install (can't imagine what tho...). Sorry for the false alarm :) On Jan 13, 10:50 pm, "Charlie Griefer" wrote: > Hi all... > Been usi

[jQuery] Cluetip and Firefox 3.0.5

2009-01-13 Thread Charlie Griefer
Hi all... Been using the cluetip plugin (very cool... thanks to all the contributors) without a hitch. Updated to firefox 3.0.5 and it seems to have stopped working. Still works in IE, so that rules out pathing and other issues... but in FF 3.0.5, when I hover over an image that should invoke a c

[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Sagar Arya
hey thanks so much.. :-) Cheers ! Aryan On Wed, Jan 14, 2009 at 10:26 AM, Karl Swedberg wrote: > good eye, Ricardo! thanks for the back up. :-) > > --Karl > > > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > > On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrot

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Charlie Griefer
FWIW, Danny Goodman's JavaScript Bible was the JS book that made the light go on over my head (as far as JS is concerned). I'd also maybe recommend picking up one of the jQuery books. I've not read either of the two yet, but Manning publishes one and IMO their stuff is top notch. On Tue, Jan 13,

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Nikola
Ahh, sorry about that UI always comes to mind when I think of visual presentation, ie. fading, exploding, animating etc..

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Karl Rudd
Perhaps it might be beneficial for you to get a few good books on JavaScript and learn more that way. It may be an easier route for you than having to ask the list some of the "simpler" questions. Unfortunately I can't actually personally recommend you any books, when I started JavaScript they we

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
It's JS that I know little about. My sites are CSS based in their layouts. I have no problem with the CSS, it's just the syntax and some of the basic operation of JS that takes a while to understand. And keep in mind, that even quantum physicist had to learn about gravity before he could underst

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
Ø You couldn't afford a contract with me. And you know this how? Ø Really? Seriously? You just proved in this very thread that you _don't_ read the docs Wrong answer…I had two windows open to the docs and two on Google searching blogs for explanations. I usually do search and wr

[jQuery] Re: @name deprecated?

2009-01-13 Thread MorningZ
I ask of absolutely nothing of John i simply stated that i was disappointed by the sparse change log, and that i was holding off on upgrading my important projects until i knew more in depth what to look for. and rest assured that i do not sit here and think i know everything about jQuery

[jQuery] Re: @name deprecated?

2009-01-13 Thread Karl Rudd
Guys, it's probably a good time for a "time out". This is doing no one any good, least of all those reading the list. (See my post in the other thread.) Karl Rudd On Wed, Jan 14, 2009 at 4:15 PM, Rick Faircloth wrote: > > Well, I'm sure John will run all his documentation by you to make > sure

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Karl Rudd
Guys, it's probably a good time for a "time out". This is doing no one any good, least of all those reading the list. I understand MorningZ and Matt Quackenbush's frustration, I often feel the same way about a lot of the posts on the list, Rick's included. No offence intended Rick. I can see that

[jQuery] Re: @name deprecated?

2009-01-13 Thread Rick Faircloth
Well, I'm sure John will run all his documentation by you to make sure it's up to your standards. And while I may not be able to offer you any specific knowledge concerning jQuery, since you obviously know everything and never have any questions that you can't find answers to, I most certainly ca

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Matt Quackenbush
On Tue, Jan 13, 2009 at 10:54 PM, Rick Faircloth wrote: > If you are sick and tired of helping me, then don't. > > I don't remember having any contract with you. > You couldn't afford a contract with me. And, fyi, I do help myself…I do read the docs and search > > for blogs, tutorials etc. >

[jQuery] Re: @name deprecated?

2009-01-13 Thread MorningZ
Rick... you are the last person in the world who should give me, or anyone else for that matter, ANY jQuery-related advice And i personally was/am disappointed by the lack of documentation for my purposes i wasn't saying everyone felt this way, just me and if that doesn't matter much...

[jQuery] Re: @name deprecated?

2009-01-13 Thread Rick Faircloth
MorningZ... It would be appreciated if you would bother to read the change logs before asking questions or making any commentary. Obviously, as John suggested, you haven't bothered to read what has been offered, so what you have likely done if a "more comprehensive change log" had been created..

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
I help myself, too, but often times, answers that are offered to problems aren't correct, so you'll certainly hear "that didn't work" if you post an incorrect answer to a question. > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf O

[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Karl Swedberg
good eye, Ricardo! thanks for the back up. :-) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 13, 2009, at 5:54 PM, Ricardo Tomasi wrote: You're missing a parenthesis when closing the anonymous function: }(); should be })(); And I'm guessing '$' is

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
If you are sick and tired of helping me, then don't. I don't remember having any contract with you. And, fyi, I do help myself.I do read the docs and search for blogs, tutorials etc. But it's much quicker to just ask a question if I'm not sure where to look for an answer. Again, when yo

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Karl Swedberg
Is it possible to have a variable for the number of pixels by which the menu animates (and doubling it when necessary), rather than calling animate twice? Also, .animate() is part of jQuery core, so you've posted to the correct group. ;-) --Karl Karl Swedberg www.englishrule

[jQuery] Re: ClueTip - display image in tip

2009-01-13 Thread Karl Swedberg
title="This is a description | " Hmm. I can see how that would be a major problem. I wouldn't recommend trying to put a dom element into a title attribute. Also, the browser will see the title attribute as: title="This is a description | you can optionally call the cluetip method with a

[jQuery] Re: @name deprecated?

2009-01-13 Thread MorningZ
So 5 things changed in this release? I was hoping for a more comprehensive change log. i've wanted to see "sizzle" in action on a very busy site i have jQuery running on, but the bottom line is i was/still-am scared to death to make the change from 1.2.6 to 1.3 because i have no idea what ha

[jQuery] Re: Jquery 1.2.3 does not return a type for radio controls?

2009-01-13 Thread Karl Swedberg
hmm. that doesn't sound right to me. I just put up a test page using jQuery 1.2.3, and it identified radio controls just fine: http://test.learningjquery.com/123.html Can we see the HTML? Maybe something else is going on. --Karl Karl Swedberg www.englishrules.com www.learningjqu

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread MorningZ
that's exactly the point i was reaching at some people, myself included, point out a syntax error in the posted code... only to have it changed to as suggested and then a new post of "that didn't work!"... there's no effort shown to understanding why $ ("this") and $(this) are two totally diffe

[jQuery] Re: @name deprecated?

2009-01-13 Thread John Resig
> "Why disappointingly?" > > Because 1.2 to 1.3 is a big major release... and there's a few post to > "test test test", but there's no indication of what to test for.. > what's changed what could break Huh? Did you miss the beta 1 post where we outlined everything that could've broken? h

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Matt Quackenbush
Has it ever occurred to you that maybe, just maybe, people are sick and tired of helping you when you refuse to help yourself? On Tue, Jan 13, 2009 at 10:32 PM, Rick Faircloth wrote: > > This is a completely different part of the problem. > The other parts have been solved, but I couldn't make se

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
Thanks for the answer as well as the reference, Karl. Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Karl Rudd > Sent: Tuesday, January 13, 2009 10:35 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: In this cod

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
This is a completely different part of the problem. The other parts have been solved, but I couldn't make sense of the success part. If you don't want to help, don't respond. And if you really are concerned about the number of posts, contribute to making them unnecessary by helping with the prob

[jQuery] Re: @name deprecated?

2009-01-13 Thread MorningZ
"Why disappointingly?" Because 1.2 to 1.3 is a big major release... and there's a few post to "test test test", but there's no indication of what to test for.. what's changed what could break On Jan 13, 6:40 pm, Dave Methvin wrote: > > So, just to clarify, 1.3 is where @name becomes

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread MorningZ
How many posts about the same exact problem *really* need to be made? this is like 3 or 4 posts so far on you not understanding your problem with your "update-button" items

[jQuery] Re: Multiple instace of Dialog

2009-01-13 Thread Richard D. Worth
What do you mean by "to work with every ID bttn1"? Ids need to be unique, so there should only be one button with that id. Other than that, are you looking to create multiple dialogs and have each of them open at the same time? Or you want to create a dialog if any button is pressed, but from a dy

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Karl Rudd
If you check the documentation you'll see that "this" in the "success" function will be "the options for this ajax request". http://docs.jquery.com/Ajax/jQuery.ajax#options Karl Rudd On Wed, Jan 14, 2009 at 2:31 PM, Rick Faircloth wrote: > > Would it still be referring to the '.update-button t

[jQuery] Re: jQuery Interface - Multiple Windows (Chrome/Safari problems...)

2009-01-13 Thread Richard D. Worth
Interface has long been abandoned, as it was never updated to work with more recent versions of jQuery (1.2+). If you haven't already, you may want to take a look at jQuery UI: http://ui.jquery.com/ - Richard On Tue, Jan 13, 2009 at 7:19 AM, Luke Moody wrote: > > Hi all, > > I'm fairly new to j

[jQuery] Re: wild card $('d...@id^=x_div_]') question

2009-01-13 Thread Karl Rudd
Inside an "each" called function the "this" variable will be each (raw) element that's in the list. So to alert the id of each DIV selected: x = $('div[id^=x_div_]'); x.each( function(i) { alert(this.id); } Note that it's the "raw" DOM element, so if you want to do anything with it using jQue

[jQuery] In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Rick Faircloth
Would it still be referring to the '.update-button that was clicked in the second line? Thanks, Rick $(document).ready(function() { $('.update-button').click(function(){ var formval = { tour_url: $(thi

[jQuery] wildcard match question

2009-01-13 Thread Davis
i want to "grep" a pattern of DIV id with x_div_ wildcard ev_enquiry = $('d...@id^=x_div_]'); ev_enquiry.each( function(i) { altert(this.i); how can i pass each of DIV id to alert()? as this.i not work.. thanks/Davis.

[jQuery] wild card $('d...@id^=x_div_]') question

2009-01-13 Thread ywkyee
hello, i am new from jquery and want search a wildcard DIV id pattern then with following purpose x = $('d...@id^=x_div_]'); x.each( function(i) { alert(this.i); } i want to display each of DIV id , how can i pass in that parameter? Many thanks/Davis. -- View this message in context: htt

[jQuery] Re: Selector help

2009-01-13 Thread brian
You could maybe follow with not(). What are you trying to do? On Tue, Jan 13, 2009 at 5:26 PM, km...@fensys.com wrote: > > I'm using a attribute selector and I want to combine the *= with the ! > = on href. Is there any way to do this? >

[jQuery] Re: Passing vars to function

2009-01-13 Thread Maginot Junior
Hmm thanks for the help! This help me understand more of how jquery works, just to keep update, I did the follow to workaround: $("#artigos_listagem li:even").addClass('even'); $("#artigos_listagem li").mouseover(function(e){ $(this).css({ backgroun

[jQuery] Re: Issue with loading content once using AJAX and display it as a SimpleModal (plugin)

2009-01-13 Thread Eric Martin
Martin, Try using the persist:true option: $("#content").modal({persist:true}); Let me know if that does not fix your issue. -Eric On Jan 13, 11:10 am, "mh.karls...@gmail.com" wrote: > I'm using AJAX to load content into a DIV and display it as a simple > modal (using the SimpleModal plugin)

[jQuery] Re: using jLint

2009-01-13 Thread roxstyle
i forgot to mention that i did a search in this group and all references were from 2006. On Jan 13, 6:37 pm, roxstyle wrote: > Does anyone use jLint? > I am leaning to use and debug jquery. Using firebug , Yslow lists > jLint. I dont get any errors indicated in FF, but in jLint i keep > getting

[jQuery] using jLint

2009-01-13 Thread roxstyle
Does anyone use jLint? I am leaning to use and debug jquery. Using firebug , Yslow lists jLint. I dont get any errors indicated in FF, but in jLint i keep getting this reference to the jquery library --- JSLint Report for: http://www.roxstyle.com/projects/blssi/cms/mapping-tool-v1/map

[jQuery] submit form

2009-01-13 Thread bob
Hi, $('#myFormSubmit').bind('click', validateForm); validateForm = function(event){ if(???=='form'){ alert('form validation processing'); if(???=='myForm'){} } } How do I get string 'form' and form name 'myForm' to check whether form was submitted? I know t

[jQuery] Re: $(window).bind('resize', fn) not working in IE

2009-01-13 Thread Dave Methvin
Do you have a simple test case? Resize works for me in IE.

[jQuery] Re: createElement, get its value

2009-01-13 Thread Kean
using jQuery 1.3 This will most probably work. $('#grabMe').live('click', function() { alert($(this).html()); }); On Jan 13, 5:41 pm, Kean wrote: > Hmmm, you must understand event listener(bind) does not work like CSS > where DOM nodes added in the future cannot be listened right now. > Th

[jQuery] Re: Capture a click outside of a specific object?

2009-01-13 Thread Kean
You might want to look at live and die method now posted in jQuery documentation. On Jan 13, 11:32 am, riotbrrd wrote: > Hi all, > > Is there a simple way to capture a click event in a window/document > and then determine whether the click was inside an element #foo, or > outside of that element

[jQuery] Re: createElement, get its value

2009-01-13 Thread Kean
Hmmm, you must understand event listener(bind) does not work like CSS where DOM nodes added in the future cannot be listened right now. That's where event delegation comes it. http://www.learningjquery.com/2008/03/working-with-events-part-1 On Jan 13, 4:58 pm, sam wrote: > $('#grabMe') will s

[jQuery] Re: Can't figure out how to traverse the DOM to these values...

2009-01-13 Thread Kean
So far reading all your post today points to one thing in common. You don't really distinguish between types of objects (ie array, string, objects etc) https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference Go there and learn about objects first. Hope it helps. On Jan 13, 5:04 pm, sam

[jQuery] Re: $(window).bind('resize', fn) not working in IE

2009-01-13 Thread Kean
try $(window).resize(fn); On Jan 13, 3:54 pm, sam wrote: > Can anyone verify that $(window).bind('resize', fn) doesn't work in > IE?  $(window).bind('scroll', fn) works fine for me, but not resize. > > I'm using 1.2.6. > > Thanks.

[jQuery] Re: Can't figure out how to traverse the DOM to these values...

2009-01-13 Thread sam
I didn't read your whole post. However, you should read the docs to be sure functions are returning what you think they are returning. .attr("one param") will return a String of that attribute... so you cannot then call ".val()" because .val() is not a method that String has. .val() should work

[jQuery] Re: createElement, get its value

2009-01-13 Thread sam
$('#grabMe') will search the document for an element with ID "grabMe" Have you added grabMe to the document? On Jan 13, 6:00 pm, CrustyDOD wrote: > Hey! > > I've created one div with FlyDOM plugin which uses createElement > function to add stuff to DOM. Now the problem is that once i add the >

[jQuery] Re: blockUI - Bug overlapping fixed elements

2009-01-13 Thread Mike Alsup
> There seems to be a bug that when you have a fixed element attached to > the bottom of the window and then try to block an element that goes > below the bottom of the window (scrolls) it overlaps onto the fixed > element.. its easier to show a picture:http://i44.tinypic.com/2z4wocn.jpg > > Any i

[jQuery] createElement, get its value

2009-01-13 Thread CrustyDOD
Hey! I've created one div with FlyDOM plugin which uses createElement function to add stuff to DOM. Now the problem is that once i add the element, i cannot access it in anyway. For example with FlyDOM plugin i create: It works! After the JS for creating element i have this: $('#grabMe').click(

[jQuery] Re: Capture a click outside of a specific object?

2009-01-13 Thread sam
What you're describing is a pattern called "event delegation." It is actually quite efficient, since you don't have to bind an event to each object, but rather 1 event to a larger object: $(document.body).click(function(){ var target = $(event.target); if (target.is("#foo")){ //it

[jQuery] blockUI - Bug overlapping fixed elements

2009-01-13 Thread Beaver6813
Hey guys, There seems to be a bug that when you have a fixed element attached to the bottom of the window and then try to block an element that goes below the bottom of the window (scrolls) it overlaps onto the fixed element.. its easier to show a picture: http://i44.tinypic.com/2z4wocn.jpg Any i

[jQuery] $(window).bind('resize', fn) not working in IE

2009-01-13 Thread sam
Can anyone verify that $(window).bind('resize', fn) doesn't work in IE? $(window).bind('scroll', fn) works fine for me, but not resize. I'm using 1.2.6. Thanks.

[jQuery] [validate plugin] Conflict in using validation plugin with custom submit code

2009-01-13 Thread Fledder
hi, Like others I seem to have ran into the "double-click to submit problem". Allow me to explain: I have a registration form which validates just fine using the excellent validate plugin. It's working perfectly. However, I now want to run some custom code after the validation event. Specificall

[jQuery] Can't figure out how to traverse the DOM to these values...

2009-01-13 Thread Rick Faircloth
Starting from the input with the class "update-button" in the next to the bottom line of the HTML/CFML below, I'm trying to traverse one line up to the input with two classes, the second being the important one, "update-input". I've tried using: $('.update-button).parent().next('.update-input').a

[jQuery] Weirdest thing on Firefox 3 on MacOSX

2009-01-13 Thread yellow1912
I encounter a rather weird problem where my plugin would run on all platforms except Firefox 3 on MacOSX, and since I don't have Mac I can not debug it. (this plugin uses jquery 1.2.6 and jq form, jq validation and livequery plugins.) This is still under development I can not post the link direct

[jQuery] Re: @name deprecated?

2009-01-13 Thread Dave Methvin
> So, just to clarify, 1.3 is where @name becomes deprecated? The @attr has been deprecated (advised to be avoided) for some time; 1.3 is where it is no longer supported. > Should I go ahead and make the "@name" change if I am still using > 1.2.6... Or, should I wait until I upgrade to 1.3.x? S

[jQuery] Re: hoverIntent like delays when using mouseenter, mouseleave

2009-01-13 Thread Brian Cherne
Hi Ted, when hoverIntent was written (almost 2 years ago) jQuery didn't have mouseenter or mouseleave. The hover method at the time did ignore over/out events from child elements and hoverIntent has that code as well -- so it simulates mouseenter and mouseleave in that respect. So you could write:

[jQuery] Re: @name deprecated?

2009-01-13 Thread Micky Hulse
Thanks all! So, just to clarify, 1.3 is where @name becomes deprecated? Should I go ahead and make the "@name" change if I am still using v. 1.2.6... Or, should I wait until I upgrade to 1.3.x? Many many thanks! Cheers, Micky

[jQuery] Re: $('.classname') returns NULL in IE

2009-01-13 Thread Ricardo Tomasi
Are you by any chance loading other libraries in the same page? If you could post the offending page someone might spot the problem. On Jan 13, 1:06 pm, DEfusion wrote: > I have a document which is almost valid HTML (with the HTML 4 > transitional doctype), the only warnings I'm currently getti

[jQuery] Re: IE Problem with (function($)

2009-01-13 Thread Ricardo Tomasi
You're missing a parenthesis when closing the anonymous function: }(); should be })(); And I'm guessing '$' is there for jQuery, so that should actually be })(jQuery); - ricardo On Jan 13, 3:56 pm, "Sagar Arya" wrote: > may be i should check with the other files and let you know... thanks fo

[jQuery] Re: Selector Question

2009-01-13 Thread Michael Geary
Do you have Firebug? If not, get it and enable the Console and Script tabs, then enter these statements into the console input line, one at a time with Enter after each one: $("button") $("button")[0] $( $("button")[0] ) Each one will log an object to the console log. Click on each of these ob

[jQuery] Re: @name deprecated?

2009-01-13 Thread Ricardo Tomasi
Why disappointingly? This and the event bubbling were mentioned because these are changes very likely to cause problems. Everything else should remain compatible. But I do understand your complaint for the lack of comment on other changes, as for the live() method. Anyway the release is just behi

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Ricardo Tomasi
It's a mess. It's best to return false from the function or use e.preventDefault(): $(document).ready(function() { $('.update-link').click(function(e) { $(this).parent().hide() .next().next().fadeIn(500); e.preventDefault(); //same effect as 'return false'

[jQuery] Re: Code simplification?

2009-01-13 Thread Ricardo Tomasi
This way you'll have to repeat it for each element anyway. The important thing is to have access to all of them at once, doesn't matter if by a common class or doing it manually: var $submenus = $ ('.nav_sub_default, .nav_sub_products, .nav_sub_markets, .nav_sub_tools_support, .nav_sub_news_even

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Rick Faircloth
Thanks, Charlie! Perfecto! Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Charlie Griefer Sent: Tuesday, January 13, 2009 4:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: How to make this work for multiple elements with same class w

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Rick Faircloth
Thanks for the reply, Milos… Charlie Griefer suggested using “return false” also, but suggested putting it in the js method, itself. Works perfectly! Thanks for the suggestion. It’s good to know I’ve got two ways to approach this in case one doesn’t work. Rick From: jquery-en@goog

[jQuery] how to get page number from tablesorterPager?

2009-01-13 Thread ploceus
I'm using tablesorterPager plugin and got stuck. When the table is large, it breaks up the table and displays the page number at the bottom. For example, 3 of 7. This was done using html input tag. How do I extract the current page number and total number of pages? Instead of using html input ta

[jQuery] How can I center the horizontal submenu in the Superfish nav-bar style?

2009-01-13 Thread moritz
I really would like to use Superfish's horizontal nav-bar style - I especially like the memory feature for the current page, but instead of the submenu entries being left aligned, I would need the submenu being centered around the selected main menu. Is there a way for me to achieve such a feat?

[jQuery] Capture a click outside of a specific object?

2009-01-13 Thread riotbrrd
Hi all, Is there a simple way to capture a click event in a window/document and then determine whether the click was inside an element #foo, or outside of that element? Thanks! -Kim

[jQuery] Selector help

2009-01-13 Thread km...@fensys.com
I'm using a attribute selector and I want to combine the *= with the ! = on href. Is there any way to do this?

[jQuery] Removing an Image from slide show

2009-01-13 Thread Peter Dillon
I need to remove the first image from my slide show when i use $ ('#overlay').remove(); the image is removed, but an empty space appears in the slideshow. Is there a removeSlide method or something similar? Peter

[jQuery] Selector Question

2009-01-13 Thread bittermonkey
I'm fairly new to the framework and I've been messing around a bit. These below confuses me. 1. Why is this snippet not working? Firefox's error console throws an error saying < $("button")[0].bind is not a function > $("button")[0].bind("click", function(event){alert(this)}); 2. And why do

[jQuery] Issue with loading content once using AJAX and display it as a SimpleModal (plugin)

2009-01-13 Thread mh.karls...@gmail.com
I'm using AJAX to load content into a DIV and display it as a simple modal (using the SimpleModal plugin). In order to limit the requests to the server I would like to only load the content once, but that's when I run into trouble. Let me show you the code and then I will explain what happens. HT

[jQuery] Selector Question

2009-01-13 Thread bittermonkey
Why does this work? $($("button")[0]).bind("click", function(event){return AlertOnClick (this + " not " + $("button")[0]);}); And why does this DOESN'T? $("button")[0].bind("click", function(event){return AlertOnClick(this + " not " + $("button")[0]);});

[jQuery] Re: Cycle Plugin - play/pause button?

2009-01-13 Thread amuhlou
Just in case anyone out there finds this post like I did and is still a little lost, here's what I finally figured out after much trial, error, and research (my jQuery knowledge is still limited so there are still a lot of basic methods I don't know). $('#pauseBtn').toggle(function() {

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Nikola
What about doing something similar to what Karl Swedberg did in his animated scrolling example? http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Charlie Griefer
what about a return false; in the js method itself? $(this).parent().next().next().fadeIn(500); return false; hopefully somebody can elaborate, but i'd heard that using the javascript "pseudo-protocol" isn't really... "proper"? On Tue, Jan 13, 2009 at 1:35 PM, Miloš Rašić wrote: > Instead of hr

[jQuery] Re: @name deprecated?

2009-01-13 Thread MorningZ
Disappointingly, the "@" name thing was the only thing announced on the official announcement of these pre-releases http://blog.jquery.com/2009/01/05/help-test-jquery-13-beta-2/ On Jan 13, 4:15 pm, Kean wrote: > Yes > > On Jan 13, 1:10 pm, Micky Hulse wrote: > > > Does this: > > > $('inp...@

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Josh Nathanson
A sneaky way to do it would be to remove the href attribute altogether, and create a css class that makes the link appear to be hyperlinked: a.fake-link { text-decoration: underline; cursor: pointer; color: [your link color here] } Then add that class to your "non-href" links as desired. -- Jos

[jQuery] Re: Jquery 1.2.3 does not return a type for radio controls?

2009-01-13 Thread Miloš Rašić
I have no idea if there is a bug like that, but I use this kind of construction to determine if an element is something I need it to be: if ($('#element_id:radio').attr('id')=='element_id') You can use many other : selectors to check if an element is something like an input of a type or visible or

[jQuery] Re: Code simplification?

2009-01-13 Thread Miloš Rašić
MorningZ is absolutely right, but if you notice that a certain class is used only by a single element, you should make it an id, which is equally usable by CSS and jQuery. For example, if those s are part of navigation menu as they seem to be, I would have On Tue, Jan 13, 2009 at 8:31 PM, Morni

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Miloš Rašić
Instead of href="##", put href="javascript: return false". It will work, but be warned that FF will generate a warning because return is not inside a function. On Tue, Jan 13, 2009 at 10:06 PM, Rick Faircloth wrote: > > Thanks, Josh... > > You were almost perfect. I just needed to add one more .

[jQuery] Re: .animate() queue without pause between animations

2009-01-13 Thread Miloš Rašić
Here's the function I use to rotate the menu: http://paste.pocoo.org/show/99509/ The icons are located inside divs with ids 'pos_1' through 'pos_5', 'pos_1' being the leftmost icon, and 'pos_5' being the rightmost icon. The all have class 'pos'. The problematic case occurs when the user clicks on

[jQuery] Re: using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-13 Thread legofish
That's pretty useful Balazs, for some reason I couldn't get it to worked though. I saved your plugin bit that appears in that link in a file and named it jquery.asynceach.js and linked it to the page. Anyway, I'll play around with it a little more to see where the problem is. Thanks again On Jan

[jQuery] Re: @name deprecated?

2009-01-13 Thread Kean
Yes On Jan 13, 1:10 pm, Micky Hulse wrote: > Does this: > > $('inp...@name="status"]').attr($attr_options_01); > > Need to be this: > > $('input[name="status"]').attr($attr_options_01); > > With the latest version of jQuery? > > I was reading somewhere on this group about this type of change? >

[jQuery] Re: split email address into 2 fields; syntax error...

2009-01-13 Thread typenerd
sure enough that did the trick, thanks for the help. I see where I went wrong now. Also the text still updates even without the @ sign, so I lucked out there! -- View this message in context: http://www.nabble.com/split-email-address-into-2-fields--syntax-error...-tp21444282s27240p21444626.htm

[jQuery] @name deprecated?

2009-01-13 Thread Micky Hulse
Does this: $('inp...@name="status"]').attr($attr_options_01); Need to be this: $('input[name="status"]').attr($attr_options_01); With the latest version of jQuery? I was reading somewhere on this group about this type of change? Any other similar changes I should be aware of? Thanks! Micky

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Rick Faircloth
Thanks, Josh... You were almost perfect. I just needed to add one more .next to the second line: $(this).parent().next().next().fadeIn(500); then it worked. Another question however, is how to keep the page from going back to the top every time the Update link is clicked. I've got two ## as

[jQuery] Re: Code simplification?

2009-01-13 Thread Kean
Try this if you can't change your html (function($) { $.fn.replaceClass = function(class1, class2){ $(this).removeClass(class1).addClass(class2); } })(jQuery); $('.nav_company').hoverIntent(function() { // toggle display of company sub menu content panel $ ('.nav_sub

[jQuery] Re: split email address into 2 fields; syntax error...

2009-01-13 Thread MorningZ
this not valid syntax var name_bit = email_addy.(split("@")[0]); try var name_bit = email_addy.split("@")[0]; to note, either piece of code would produce undesirable results if the user doesn't enter a "@" in the field.. you should check for that as well On Jan 13, 3:52 pm, typenerd wrote:

[jQuery] split email address into 2 fields; syntax error...

2009-01-13 Thread typenerd
$(document).ready(function(){ $("#email").change(function () { var email_addy = $('#email').val(); var name_bit = email_addy.(split("@")[0]); $('#username').val

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Josh Nathanson
Rick - I think you want $(this).parent().hide() rather than prev, and $(this).parent().next() rather than next(). Prev and next look at the sibling level. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: T

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Rick Faircloth
Ok...made that change, but no difference in the execution. Here's the relevant js and html/cf: $(document).ready(function() { $('.update-link').click(function() { $(this).prev('.options').hide(); $(this).n

[jQuery] Post values to an outside website

2009-01-13 Thread WhoButSB
Hello all, I have 2 websites which i'm working on. One website has a simple email newsletter page (Site A) and another is a new website i just created with the newsletter sign up form (Site B). I was wondering if it would be possible to send the form from Site B and have it post the data Site A

[jQuery] Jquery 1.2.3 does not return a type for radio controls?

2009-01-13 Thread Scott Sharkey
Hi All, I'm stuck with Jquery 1.2.3 in a trac-based application. I'm trying to get the type of a form control, to determine what mechanism I should use to set it's value (ie, text controls use .val(), checkboxes get .attr("checked", "checked") etc.). When I fetch my list of controls, and l

[jQuery] Re: Anyway to highlight words accents-insensitive?

2009-01-13 Thread Alex Tercete
Just for the record, there's another bug with IE when you search for a pattern (let's say "e") in a sentence containing two or more occurences of this pattern together (for example: "Feel"). This is due to a strange way (I call it a bug) that IE has to deal with the split () method. I suggest that

  1   2   >