[jQuery] Re: Toggle on TR.onclick but not on content link

2007-12-06 Thread Freud
Hi Karl, Thanks a lot, that's exactly what I needed. Freud -- View this message in context: http://www.nabble.com/Toggle-on-TR.onclick-but-not-on-content-link-tf4956507s27240.html#a14208303 Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Code Review For Cloning Exercise

2007-12-06 Thread Lee Hinde
Hi; I've sussed out a solution with cloning rows that are are part of a form submit and I'd appreciate any feedback you might have. Here's an image to follow along with: http://www.hinde.net/images/jqueryhelpgraph.png I have an application where users enroll in a class. After a search is done,

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Glen Lipka
Ok, I updated it. I made it Very jQuery. $("input[type=checkbox]").click(function(){ divClass = $(this).attr("class"); if ($(this).is(":checked")) { $("#" + divClass).show(); } else if($(this).not(":checked")) { $("#" + divClass).hide(); } }); I refactored it three time

[jQuery] ajax post request in custom method?

2007-12-06 Thread [EMAIL PROTECTED]
Hi, I've made a custom method with addMethod to check a captcha. Basically, the captcha image is made in php and its value is sent to a session variable. So I make an AJAX post request to a php page which checks the input's value against that session variable. verify: function(value, element)

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Glen Lipka
Ahh, I think I get it. Input 1 and 2 both are controlling the first div. Input 3 controls div 2 input 4 controls div 3 input 5 controls div 4 Yes? I can modify the demo. Glen On Dec 6, 2007 2:46 PM, Ryan <[EMAIL PROTECTED]> wrote: > > This part works: > Select X, get Div 1 > or > Select Y, ge

[jQuery] Re: hiding page elements instantly on page load

2007-12-06 Thread sperks
I've always found the best solution is to build the navigation as you would like it to appear without JavaScript enabled and then manipulate it with jQuery. Since the css doesn't have to wait for the DOM to be built like jQuery, the effects will kick in instantly. Example: link 1 li

[jQuery] Re: newbie question

2007-12-06 Thread Karl Swedberg
To get "this" to chain with the .click() method, you need to wrap it in $() so it looks like: $(this) Better still, don't bother with the .each(). $("[EMAIL PROTECTED]'button'].button1").click(function(){MyFunc(this);}); --Karl _ Karl Swedberg www.englishrules.com www.lear

[jQuery] Code feedback... Callbacks for timing...

2007-12-06 Thread Micky Hulse
Hi all, I hope my question is not too silly... I just wanted to get a little feedback -- basically wondering what I am doing wrong here: .. $('#' + what).fadeOut('slow', function() { $(this).load(this.href, {'targ': what}, function() { $(this).fadeIn('slow'); }); }); .. Basically, I want

[jQuery] Re: [PLUGINS] More from DZone

2007-12-06 Thread Guy Fraser
Rey Bango wrote: > Splitter by Dave Methvin > > http://methvin.com/jquery/splitter/default.html It's a pity there isn't an easy way to deal with "snapping" of divs to their containing element... Something like: $('#div1').snap('top'); // sets width to that of container and snaps the div to t

[jQuery] Trying to create a horizontal menu...

2007-12-06 Thread Travis
Basically, I got it to where I hide all visible "ul li ul" but I only want to do that when a user hovers over the root "ul li a", In other words, I only want it active on the first set of "ul li a", not the sub menus. I want "ul li ul li a" to remain visible when I hover over a "ul li ul li a".

[jQuery] Re: Can figure out the diference between input button and button

2007-12-06 Thread Ryan
My question has been hijacked with another! :) On Dec 6, 4:36 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote: > Perhaps try instead of ...>. > > Haven't tested, but it looks like maybe your form is trying to submit before > the AJAX gets a chance to resolve. > > - jake > > On Dec 6, 2007 1:53 PM

[jQuery] pull in link url as well as image url from xml file when loading images dynamically

2007-12-06 Thread [EMAIL PROTECTED]
I'm able to use the dynamic loading method to create an xml file via php that gives me the list of image urls. However, i'd also like to pull in another node from the xml file 'pid' to help me construct the link that will be associated with each image. the xml i'm creating is below: 11

[jQuery] Re: global error handler

2007-12-06 Thread charlie
> I ended up doing modifications to the jQuery core to make this > possible. Thank you for the response. I think I'll try my callback method described (sorta) above, if no one else can come up with a better solution. I'd rather write more code now and stay on the upgrade path!

[jQuery] newbie question

2007-12-06 Thread FrenchiINLA
I have a javascript function like MyFunc(btn), and I would like to associate a click event to all my button with button1 class in the page to this function. I tried the following code and is not working for me: $("[EMAIL PROTECTED]'button'].button1").each(function() { this.click(f

[jQuery] Re: hiding page elements instantly on page load

2007-12-06 Thread bytte
Thanks guys. I use the document.ready function. Actually, it only happens on IE (both 6 and 7), not on Firefox or Safari. I used the "display:none" css rule tiphipps pointed out and now I have the opposite problem: the current menu is hidden and after a second pops out. It's not ideal, but it's a

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Guy Fraser
[EMAIL PROTECTED] wrote: > Although I keep coming up against the following: > > 1. Is jQuery going to be here for the long term? > 2. Why not use prototype, what are the benefits of jQuery over it? > We're hitting those two questions on a regular basis. The first is pretty easy to deal with -

[jQuery] Re: Data containing ? at the start getting converted to jsonp.... by ajax() call

2007-12-06 Thread Ben Bennett
Sadly... no. If I were to do that then I would get double escaped data... The code that converts an object to a serialized form is already calling encodeURIComponent on the key names and the values... (see http://dev.jquery.com/browser/trunk/jquery/src/ajax.js line 454ish) -ben On Dec 6, 3:27

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Ryan
This part works: Select X, get Div 1 or Select Y, get Div 1 or Select X and Y, get Div1 This part doesn't: When X and Y are selected, Div1 is showing If X is unselected and Y remains selected, Div1 is still showing Basically, if X and Y are selected and then X is unselected, I want Div1 to remai

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Sean Catchpole
Freudian slip, of course I had intended to either say, increases development speed, or decreases development time. Thanks for correcting me. ~Sean On Dec 6, 2007 3:51 PM, tlphipps <[EMAIL PROTECTED]> wrote: > > Sorry, I have to say it: > ** > jQuery simplifies and reduces code size, and offers a

[jQuery] Autocomplete bigiframe

2007-12-06 Thread Shelane Enos
Has anyone found a way to solve this display problem on IE: http://education.llnl.gov/jquery/bigiframe.png Demoed here: http://education.llnl.gov/jquery/adv_auto3.lasso (type mod)

[jQuery] Re: autocomplete bug when focus called

2007-12-06 Thread Shelane Enos
So that I can optimize my autocomplete, I'd like your opinion. There are cases where there might be a couple hundred results - even if the full name of a person is typed in (like "Miller" or "Johnson"). Most of the time there are *that* many. But as I type, "Mi" ... "l" ... "e", the results are

[jQuery] Re: Can figure out the diference between input button and button

2007-12-06 Thread Jake McGraw
Perhaps try instead of . Haven't tested, but it looks like maybe your form is trying to submit before the AJAX gets a chance to resolve. - jake On Dec 6, 2007 1:53 PM, Marcelo Wolfgang <[EMAIL PROTECTED]> wrote: > > Hi list > > Long time lurker, first time poster, so here it goes: > > I have a

[jQuery] Re: cluetip plugin prevents click event

2007-12-06 Thread Karl Swedberg
Ahh. Music to my ears. :-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 6, 2007, at 3:36 PM, Dan wrote: Thanks Karl for the modification. This works perfectly for me too! -Dan On Dec 6, 1:38 pm, Spencer <[EMAIL PROTECTED]> wrote: Karl, Than

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread tlphipps
Sorry, I have to say it: ** > jQuery simplifies and reduces code size, and offers a plugin system ** > that rapidly increases development time. I would prefer it to DECREASE my development time! :) On Dec 6, 12:55 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Dugg > > _ > > From: jquery

[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread Eridius
Cool, thanks. Now if i want to extend the $.paginator to add a function so i could don't something like this this.go_to_page(this.options.current_page); would i do: $.paginator.extend( { go_to_page: function(number) { this.option.new_pag

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Glen Lipka
I dont get it. :) Say it again as a use case: 1. click on X 2. expect results: div Y does something. Glen On Dec 6, 2007 11:22 AM, Ryan <[EMAIL PROTECTED]> wrote: > > Actually, what I need it to do is show one instance of Div 4, not > two. I'm using the div for a text field, so I only need to

[jQuery] Re: cluetip plugin prevents click event

2007-12-06 Thread Dan
Thanks Karl for the modification. This works perfectly for me too! -Dan On Dec 6, 1:38 pm, Spencer <[EMAIL PROTECTED]> wrote: > Karl, > > Thank you for making the modification. I'm trying to do the same thing > as driven. Your modification works great in my situation. > > Spencer > > On Dec 6,

[jQuery] Re: Passing extra data to AJAX handler functions

2007-12-06 Thread RobRoy
Can anyone think of a way to pass the value of a variable, not a reference to that variable (since the value of the variable might change after the AJAX request is sent) to an anonymous function defined for a success callback for AJAX? Or, is the only way to do this to have my /ajax/asset/insert c

[jQuery] Possible to do specific ajaxStart/Stop effects??

2007-12-06 Thread tjholowaychuk
Im puzzled by this part.. when you do something such as $ ('img').ajaxStart(function(){ // code }); this is called every time an ajax request is sent.. what if i just want it related to a specific ajax request only? this does not seem very piratical to have everything change at once

[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread John Resig
Do $.extend instead of $.fn.extend to get the result that you want. --John On Dec 6, 2007 4:02 PM, Eridius <[EMAIL PROTECTED]> wrote: > > > Ok, I have looked at other code and still get get it to work > > (function($) > { > $.fn.extend( > { > paginator: function(options) >

[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread Eridius
Ok, I have looked at other code and still get get it to work (function($) { $.fn.extend( { paginator: function(options) { $.extend(this.options, options); //this.go_to_page(this.options.current_page);

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Jörn Zaefferer
Sean Catchpole schrieb: 2. Why not use prototype, what are the benefits of jQuery over it? jQuery simplifies and reduces code size, and offers a plugin system that rapidly increases development time. Yeah, and instead of 10 lines of pure JavaScript, it reads your mind and produces 5000

[jQuery] Re: Data containing ? at the start getting converted to jsonp.... by ajax() call

2007-12-06 Thread Benjamin Sterling
I am doing something encodeURIComponent(url) in a wordpress plugin, would that help? On 12/6/07, Ben Bennett <[EMAIL PROTECTED]> wrote: > > > Sadly. That doesn't do it either. > > I am deliberately trying to send a ? (since the bug occurred when a > user typed it into an input box that I use as th

[jQuery] Re: jChess

2007-12-06 Thread Chris Jordan
aldur, Let's see a demo, dude! :o) -Chris On Dec 6, 2007 9:05 AM, aldur <[EMAIL PROTECTED]> wrote: > > > > > > > > $(document).ready( >function(){ >$("#chessboard").chess(); >} > ); > > >table.board{border:1px solid black} >table.board td{

[jQuery] Cluetip bug in IE7 - browsers title displays

2007-12-06 Thread Spencer
I'm trying to use the Cluetip plugin to display data on mouseover of the tr tag. The data displayed is stored in the title attribute. It works great in FireFox, but in IE7 the browsers default title displays along with the Cluetip. Am I missing an option that would allow Cluetip to override the

[jQuery] Re: horizontal accordion menu

2007-12-06 Thread sherman
Thanks for the response. That plugin has equal width for all content areas. I need my content areas to only be as wide as the content inside that specific area. See my example to know what im talking about: http://architexture.ca/_burnkit/index.html You will notice Approach is the widest, so th

[jQuery] Can figure out the diference between input button and button

2007-12-06 Thread Marcelo Wolfgang
Hi list Long time lurker, first time poster, so here it goes: I have a simple form that call a $.get, if I have a my code works but if I have a it doesn't ... can anyone tell me what I'm doing wrong? here's the code: $(document).ready(function(){ $("#btSubmit").click(fu

[jQuery] Re: Datepicker and autocomplete not playing nice together?

2007-12-06 Thread Dan M
Shawn, What is the order in which you're importing the js files? Dan On Dec 3, 7:12 pm, Shawn <[EMAIL PROTECTED]> wrote: > Sorry, maybe this was misleading. I have a form that looks something > like so: > > Employee: > > Start Date: ___ # > > The employee

[jQuery] Remy's been hiding something

2007-12-06 Thread Rey Bango
So stud jQuery coder Remy Sharp has been hiding something. Something that he let out of the bad today. Its a new site that will help designers become proficient in jQuery. http://jqueryfordesigners.com/ Very stealthy Remy! Rey...

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Ryan
Actually, what I need it to do is show one instance of Div 4, not two. I'm using the div for a text field, so I only need to show one version of it. The checkboxes showing the div are independent of each other in value, but have the same corresponding text field which should be filled out if eit

[jQuery] Re: Error in Ajax Queue plugin

2007-12-06 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Well I tried it, and it seems to work, however it triggers the 'error' handler too: If you'd be actually using the version I pointed to, there would be an error saying $.ajaxQueue is not a function. Please check that you are actually using the right version. And

[jQuery] Re: autocomplete bug when focus called

2007-12-06 Thread Jörn Zaefferer
Shelane Enos schrieb: Sorry it took a while. I had a very busy day. This example shows the focus bug: http://education.llnl.gov/jquery/adv_auto2.lasso This example shows the other bug: http://education.llnl.gov/jquery/adv_auto3.lasso This bug is the bug where the first set of results will ove

[jQuery] Making a jQuery plugin

2007-12-06 Thread Eridius
I can't seem to remember since it has been ahile since I want to do this, how do i make a jQuery plug that i can access like var paginator = $.paginator({/*data*/}); paginator.next_page(); //etc... currently my code is like this: (function($) { initialize= function(options) {

[jQuery] Re: cluetip plugin prevents click event

2007-12-06 Thread Spencer
Karl, Thank you for making the modification. I'm trying to do the same thing as driven. Your modification works great in my situation. Spencer On Dec 6, 9:30 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi guys, > > The default is to return false on a link click if the href and the > tipA

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Benjamin Sterling
Thanks for explaining that Dave. On 12/6/07, Equand <[EMAIL PROTECTED]> wrote: > > > yeah i'm using ajax ) thank you very much, now i see i was using > pretty unstable selector, thank you ;) > > On Dec 6, 7:17 pm, David Serduke <[EMAIL PROTECTED]> wrote: > > jQuery only takes two parameters on $()

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Andy Matthews
Dugg _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Thursday, December 06, 2007 12:53 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations Wow, the "digg this story" thing worked. :) http://dig

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Glen Lipka
Wow, the "digg this story" thing worked. :) http://digg.com/programming/Getting_jQuery_into_Big_Corporations Glen On Dec 6, 2007 10:12 AM, Sean Catchpole <[EMAIL PROTECTED]> wrote: > > > 1. Is jQuery going to be here for the long term? > Yes, with a large and active community jQuery is in it fo

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread Equand
yeah i'm using ajax ) thank you very much, now i see i was using pretty unstable selector, thank you ;) On Dec 6, 7:17 pm, David Serduke <[EMAIL PROTECTED]> wrote: > jQuery only takes two parameters on $(). (the second one is optional) > > $(expression, context) > > http://docs.jquery.com/Core/jQ

[jQuery] Re: horizontal accordion menu

2007-12-06 Thread Glen Lipka
Possibly a styled version of the horizontal accordion plugin? http://dev.portalzine.de/index?/Horizontal_Accordion--print Glen On Dec 6, 2007 10:16 AM, sherman <[EMAIL PROTECTED]> wrote: > > > The menu needs a specific width set for the "contentwidth" portion of the > slider. > > Do you know ho

[jQuery] Re: Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Glen Lipka
I whipped a demo. Does this do what you want? http://www.commadot.com/jquery/checkBoxShow.php Couple of tips: 1. Try to avoid putting onclick handlers in your html. jQuery does this really easily and makes your html easier to read. 2. getElementByID can be expressed as $("#yourID").dos

[jQuery] Re: Strange unwanted delay problem

2007-12-06 Thread Glen Lipka
I am having trouble reproducing the error. I see a different weird behavior. Hover on the links or not doesnt seem to change this. If I mouse over the column and mouseout before it finishes animating, then it never closes. Could you elaborate a little on the problem you are seeing? I am in FF G

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread David Serduke
jQuery only takes two parameters on $(). (the second one is optional) $(expression, context) http://docs.jquery.com/Core/jQuery#expressioncontext so your first attempt had 3 parameters. The last one was ignored. The second one became the context so jQuery was looking for a tag in the string "

[jQuery] Re: Data containing ? at the start getting converted to jsonp.... by ajax() call

2007-12-06 Thread Ben Bennett
Sadly. That doesn't do it either. I am deliberately trying to send a ? (since the bug occurred when a user typed it into an input box that I use as the basis of an AJAX request). The bug occurs because jQuery is treating =? as a special string, but it can happen for mundane reasons, and there is

[jQuery] Re: horizontal accordion menu

2007-12-06 Thread sherman
The menu needs a specific width set for the "contentwidth" portion of the slider. Do you know how I could make my content widths variable? or to just display the content inside the container? Does this make sense? Here is a link to the code: http://architexture.ca/_burnkit/index.html You wil

[jQuery] Re: [NEWS] Getting jQuery Adopted in Corporations

2007-12-06 Thread Sean Catchpole
> 1. Is jQuery going to be here for the long term? Yes, with a large and active community jQuery is in it for the long run. Help is always easy to find. > 2. Why not use prototype, what are the benefits of jQuery over it? jQuery simplifies and reduces code size, and offers a plugin system that ra

[jQuery] Re: hover and className

2007-12-06 Thread DaveG
Glen Lipka wrote: Well it sounds like you are in a better place than last week. :) Absolutely -- thanks for your help.

[jQuery] Re: Sortable + Draggable/Sortable

2007-12-06 Thread Guy Fraser
danielpunt wrote: > Hi all, > > I have two unordered lists and both its listitems are draggable and > droppable on the other list. Until this point everything is working > exactly as it should. > > But, one of the lists should be sortable, and thats where it goes > wrong. The list isn't sortable an

[jQuery] Show/Hide Div with checkbox options providing same results

2007-12-06 Thread Ryan
I'm completely versed in the show/hide options available, but have a problem I haven't been able to figure out. I'm hoping jquery will have the answer. I have 5 checkbox input options, the first two options providing the same show div. For example,