[jQuery] Re: Nesting toddle div's

2008-11-16 Thread sinkingfish
That's great, thanks Richard. Thanks for the explanation too, really helped to show me where i was going wrong. Brian Richard D. Worth-2 wrote: This should work: $(div.togglecontainer div.togglebutton).click(function() { $(this).siblings(div.toggletarget).slideToggle();

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread Jörn Zaefferer
I mean $().ajaxSend(function() { }); Jörn On Sun, Nov 16, 2008 at 1:24 AM, shapper [EMAIL PROTECTED] wrote: Hi Jorn, You mean using: $.ajax({ beforeSend: function(){ } }); And in before send get the value of the text box and add it to the ajax validate request of the

[jQuery] Destroying parent tag when restoring original value.

2008-11-16 Thread Rage9
Having a heck of a time figuring this out, I have made a few fields (td'seditable, so when you click on them it puts in a form with a text box and a button to submit, and a button to undo it. Well when I undo it, everything looks fine but the data is trapped in another set of td tags. Is their

[jQuery] Do DOM generated links treat their containers differently then hard coded?

2008-11-16 Thread Majorchamp
I have this test page up: http://btk.name/misc/links.html Basically, I am using Jquery and a Cycle plugin to allow the user to paginate via links through content. Simple enough. However, as you can see (at least in Firefox 3), the DOM generated links (via the plugin) keep going in 1 line

[jQuery] delayed tooltip hiding

2008-11-16 Thread martin
I'm trying to implement my own tooltip plugin with an optional delayed hiding on mouseout event. This wouldn't be a problem if the tooltip wasn't displaying so frequently a need it to. I want to use it in a chat room where messages are starting with users' nicks which are links and on mouseover

[jQuery] Re: How to pass arguments from link to ajax function

2008-11-16 Thread balavignesh
Hi leap ! I want to pass arguments from link to jquery function , like follow $(#view).click(function(){ ... ...logic to send the values using jquery ajax... ... }); Any suggestion , ... Regards, Balavignesh

[jQuery] non-programmer

2008-11-16 Thread ncriptide
I've been a graphic designer for the past 25 years. Only programming I know is HTML and a little CSS. I'm about to try my hand at learning JavaScript and AJAX . . . . should I learn JavaScript first - and then learn JQuery, or will I be okay just diving into JQuery? Just to let you know - being

[jQuery] SerialScroll won't scroll

2008-11-16 Thread patrick91
Hi I've this markup: http://dpaste.com/91124/ and this js (from init.js): http://dpaste.com/91126/ with firebug i get no errors but when I click on the a the div won't scroll :( can you help me?

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
That does not work. This is what I have: function confSubmit(form) { if (confirm(Are you sure you want to submit the form?)) { $(#employmentForm).submit(); }else{ return false; } }//End of confSubmit function The form validates and submits anyway. Notice in the title I indicate that I am

[jQuery] Re: Do DOM generated links treat their containers differently then hard coded?

2008-11-16 Thread Mike Alsup
I have this test page up:http://btk.name/misc/links.html Basically, I am using Jquery and a Cycle plugin to allow the user to paginate via links through content. Simple enough. However, as you can see (at least in Firefox 3), the DOM generated links (via the plugin) keep going in 1 line

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread Jörn Zaefferer
Could you show your complete code, eg. provide a testpage? Jörn On Sun, Nov 16, 2008 at 3:21 PM, flycast [EMAIL PROTECTED] wrote: That does not work. This is what I have: function confSubmit(form) { if (confirm(Are you sure you want to submit the form?)) { $(#employmentForm).submit();

[jQuery] how to switch event on single function

2008-11-16 Thread balavignesh
Hi friends, I am capturing the button link click on the same function , like follow... code:- $(a, #view).click(function(){ -- code for links (a)... --- code for button (#view) common for both link button }); To do like the above , how can i

[jQuery] Re: non-programmer

2008-11-16 Thread CodingCyborg
Hello, From my personal experience, I learned basic javascript sometime last year. Then about a month ago a friend showed me this cool thing he found called jQuery. jQuery allowed me to do everything I had learned about javascript with a simple .nameofthing such has .hide() or .animate() which

[jQuery] Re: non-programmer

2008-11-16 Thread diego valobra
Hi ncriptide, take a look at these links, http://en.wikipedia.org/wiki/JavaScript http://www.w3schools.com/js/default.asp maybe useful Diego 2008/11/16 ncriptide [EMAIL PROTECTED] I've been a graphic designer for the past 25 years. Only programming I know is HTML and a little CSS. I'm

[jQuery] Re: Do DOM generated links treat their containers differently then hard coded?

2008-11-16 Thread Majorchamp
Thanks Mike, I found that out later last night while investigating. Since I couldn't alter your code to actually add a space at the end where the link is written out, I just went with display: inline-block; and that seemed to fix the issue. I will check it out in Safari, etc... and see if the

[jQuery] iterate array and create callback

2008-11-16 Thread bob
Is it possible to iterate over the array and create functions as follows? It did not seem to work for me. var menu = ['home','news','sport','music']; for(var i=0; imenu.length;i++) { $('#'+menu[i]+'_header').click(function(){ alert(i); alert(menu[i]+'_header clicked');

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
I do not want to post a page publicly. The code is very long.

[jQuery] Re: Do DOM generated links treat their containers differently then hard coded?

2008-11-16 Thread Majorchamp
In regards to my last post, I can't understand why adding a space at the end of the link would't work. If I added any text at all, it didn't take var $a = (typeof opts.pagerAnchorBuilder == 'function') ? $(opts.pagerAnchorBuilder(i,el)) : $('a href=#'+(i+1)+'/a'); This

[jQuery] Ajax / XmlHttpRequest Problems with some routers / providers ( MTU) ( No jQuery problem!)

2008-11-16 Thread [EMAIL PROTECTED]
Hi, we're running a recently launched website ( http://www.smashdown.net). We're using AJAX requests (in JSON) to communicate with our servers. A couple of customers complained about that some functionalities on our website are not working. We've found out that some AJAX requests does simply

[jQuery] combined functionallity: validate + confirm form

2008-11-16 Thread Miguel Griffa
Hi I'd like to have a form that uses validate plugin, but uses submit confirmation too. ideally this would be a js confirm or a custom function, but that's a minor issue. My question is: is there a way to extend validate (or plug in) a custom confirmation fuction? or: is there a way of

[jQuery] Help in using JQUERY BLOCKUI

2008-11-16 Thread uniquegodwin
Hello, I am trying to use the Jquery BLOCKUI pluginbut with no success... As per the examples on that page,I tried passing my custom message,etcit doesn't work. No matter what I try,it only displays the default Please Wait... message :-( What could possibly be the cause of this symptom??

[jQuery] Re: Help in using JQUERY BLOCKUI

2008-11-16 Thread Mike Alsup
I am trying to use the Jquery BLOCKUI pluginbut with no success... As per the examples on that page,I tried passing my custom message,etcit doesn't work. No matter what I try,it only displays the default Please Wait... message :-( What version of the plugin are you using? What

[jQuery] [jQuery][Treeview] How can I create ROOT node for the tree

2008-11-16 Thread Pham Anh Tuan
Hi all, Anyone knows how to create ROOT node for the tree, sth like below ROOT --- I want to create this Node - Home - Campany Thanks for reading and looking your all help :) bowlkhin

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Here is the JS code. I have removed a bunch of Validation rules to shorten it up. The code at the bottom is the problem. $(document).ready(function(){ $(#employmentForm).validate({ debug: false, rules: { emp_applicationDate: {

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Here is the code. I have removed a bunch of Validation rules to make it shorter. The problem code is at the bottom. $(document).ready(function(){ $(#testForm).validate({ debug: false, rules: { emp_applicationDate: {

[jQuery] Re: delayed tooltip hiding

2008-11-16 Thread martin
It looks I solved it. For those who could have same problem, the solution was to store timer ids in an array instead of storing it in one variable. on mouseout you need to push a new id into array and on mouseover just check the array length. If there were any items, shift them in a for loop and

[jQuery] Re: combined functionallity: validate + confirm form

2008-11-16 Thread Jörn Zaefferer
Try this: $(...).validate({ submitHandler: function(form) { if (confirm(Really?) { form.submit(); } } }); Jörn On Sun, Nov 16, 2008 at 4:36 PM, Miguel Griffa [EMAIL PROTECTED] wrote: Hi I'd like to have a form that uses validate plugin, but uses submit confirmation too.

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread Jörn Zaefferer
Just posted to a different thread, but should work here, too: $(...).validate({ submitHandler: function(form) { if (confirm(Really?) { form.submit(); } } }); Jörn On Sun, Nov 16, 2008 at 5:33 PM, flycast [EMAIL PROTECTED] wrote: Here is the code. I have removed a bunch of

[jQuery] Re: jqRevolve - new, simplistic carousel-like plugin released!

2008-11-16 Thread Andrea - Aosta
The web site don't work (Safari e FF under MAC). On Nov 12, 11:38 pm, Brice Burgess [EMAIL PROTECTED] wrote: Ladies and Gentlemen,   I'm writing to inform you all of a new addition to the jQuery plugin family... Please welcome jqRevolve!   jqRevolve is a carousel-like plugin for jQuery. It

[jQuery] Re: [jQuery][Treeview] How can I create ROOT node for the tree

2008-11-16 Thread Dirceu Barquette
Hi, I've been developing this plugin: http://sourceforge.net/projects/jqtreevial/ download the demo version and enjoy. Dirceu Barquette 2008/11/16 Pham Anh Tuan [EMAIL PROTECTED] Hi all, Anyone knows how to create ROOT node for the tree, sth like below ROOT --- I want to create this

[jQuery] Re: Help in using JQUERY BLOCKUI

2008-11-16 Thread uniquegodwin
I downloaded just today...the latest available on the site...V2 I tried copying and pasting the lines from the site after adding the javascript reference on to my webpage.. Usage is very simple; to block user activity for the page: $.blockUI(); Blocking with a custom message: $.blockUI({

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread shapper
Sorry, is there any example using validate for this? To be honest I am completely lost on how to do this ... Thank You, Miguel On Nov 16, 10:39 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: I mean $().ajaxSend(function() { }); Jörn On Sun, Nov 16, 2008 at 1:24 AM, shapper [EMAIL

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread Jörn Zaefferer
This would add the username to all requests: $().ajaxSend(function(event, XMLHttpRequest, ajaxOptions) { ajaxOptions.data.username = $(#username).val(); }); Jörn On Sun, Nov 16, 2008 at 7:18 PM, shapper [EMAIL PROTECTED] wrote: Sorry, is there any example using validate for this? To be

[jQuery] Re: how to switch event on single function

2008-11-16 Thread ricardobeat
$(a, #view).click(function(){ if (this.id == view) { //code for button } else { //code for links } //common }); You can also use 3 distinct functions for the same effect: $(a, #view) .click(function(){ //common }).filter('a').click(function(){ //links

[jQuery] Re: image toggle

2008-11-16 Thread ricardobeat
It's easier to just add a class to all the headers, then use $ ('.menuheaders').click(...); On Nov 16, 12:43 am, bob [EMAIL PROTECTED] wrote: Thanks ricardo, Is it possible to do something like this? It did not seem to work for me. var menu = ['home','news','sport','music']; for(var i=0;

[jQuery] Re: iterate array and create callback

2008-11-16 Thread ricardobeat
see response at the original thread: http://groups.google.com/group/jquery-en/browse_thread/thread/37906be6845780c2?hl=en On Nov 16, 1:43 pm, bob [EMAIL PROTECTED] wrote: Is it possible to iterate over the array and create functions as follows? It did not seem to work for me. var menu =

[jQuery] Re: Pause after .load request

2008-11-16 Thread ricardobeat
There is no 'delay' or 'pause' in Javascript, you have to use a timeout or interval. Maybe this will work (interval, vars passed with a closure, if instead of while): $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; slideTimer =

[jQuery] Re: non-programmer

2008-11-16 Thread Isaak Malik
Starting off with a framework is never a good way to get to learn a technology, even if you start with jQuery you'll still have to learn the JavaScript syntax, built-in functions, and all the rest.. Moreover, there is a basic you have to know before using jQuery because jQuery is not a language

[jQuery] Its possible to do this??

2008-11-16 Thread SoutlinK
Hi. I am new with jQuery, and i want to know if its possible to do the follow. var row = $(.flexigrid .bDiv #socios .trSelected:first); $(row + td:first).css(color, red); Or something like that. I mean. I have a row selected in jQuery. Now I want to go for each column, of this row without

[jQuery] Re: jeditable autocomplete - time to revisit?

2008-11-16 Thread tennis_blues
yes, thanks...this is exactly what i needed! your jeditable is great On Nov 14, 2:24 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That is exactly why I posted. I noticed that you had done a lot of work on inputs. Unfortunately I could not figure out how to do it myself from reading through

[jQuery] Jquery how to get attribute from a HttpServletRequest

2008-11-16 Thread Mazi
Hallo all: I got this piece of code: $(#faq).click(function () { var url = $.get(faq, { pagina: page }); alert(url); }); On faq responds a Servlet tha set an attribute on the request request.setAttribute(pageFAQ, pageFAQ); After the get jqeury print me [object XmlHttpRequest I

[jQuery] Re: Help in using JQUERY BLOCKUI

2008-11-16 Thread Mike Alsup
But,no matter what I add,it shows only Please wait. It doesn't display the text I add... What should I do to make it work? I think you need to post a link to what you have. Obviously the plugin does work per the sample pages, so maybe it's just a typo on your part or something.

[jQuery] Why is the behavior only attached to the first select?

2008-11-16 Thread Fluffy Convict
I'm trying to attach a function to all selects that have the custom goto-attribute. It works for the first one, but the behavior isn't being attached to the second select. Any ideas how to fix it? $(document).ready(function() { $('select[goto]').each(function () { $(this).change(function

[jQuery] Re: jeditable and XHTML?

2008-11-16 Thread Mika Tuupola
On Nov 15, 2008, at 2:24 AM, Rodent of Unusual Size wrote: http://github.com/tuupola/jquery_jeditable/tree/master/ jquery.jeditab... Brilliant! Works a treat now. Ok great :) Thanks for the heads up! You betcha. Who closes the tracker item? i can close. -- Mika Tuupola

[jQuery] Re: Why is the behavior only attached to the first select?

2008-11-16 Thread Jason Huck
This line is the likely culprit, because the css selector is not specific to an individual select element: var selected = $(select option:selected).val(); Try this instead, to constrain the selection within the current context: var selected = $(option:selected, this).val(); Or,

[jQuery] Re: Its possible to do this??

2008-11-16 Thread Mauricio (Maujor) Samy Silva
Try the core jQuery function: jQuery(expression, [context]) http://docs.jquery.com/Core/jQuery#expressioncontext $('td:first', row).css('color', 'red'); Maurício Hi. I am new with jQuery, and i want to know if its possible to do the follow. var row = $(.flexigrid .bDiv #socios

[jQuery] Re: Its possible to do this??

2008-11-16 Thread Jason Huck
If you want to concatenate strings in order to create selectors, don't make them jQuery objects first. In other words, just do this: var row = .flexigrid .bDiv #socios .trSelected:first; $(row + td:first).css(color, red); Also, as long as your ID's are unique, which they should be,

[jQuery] Re: help with jquery add/remove class

2008-11-16 Thread Jason Huck
I would suggest dropping the add-/remove- class stuff entirely in favor of simply switching out the background image. Try something like this: // Attach a click event to every input in the .nav section. $('div.nav input').click(function(){ // Extract the specific floor plan from the

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-16 Thread shapper
In this case I have only the validate request for the password field that also sends the username for the test ... But if I would have various requests, from validate or others, shouldn't I add the username only to the password validate request? Is this possible? Thanks, Miguel On Nov 16,

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread flycast
Thanks! I am having a hard time getting my form to validate now. Would I place my rules here? $(...).validate({ submitHandler: function(form) { if (confirm(Really?)) { rules... messages... etc... form.submit(); }else{ //stuff to do if the form does not validate

[jQuery] ajax loading image and fadeIn content

2008-11-16 Thread led
Hi, i'm just starting in jquery and i need help on this code. I just need to display a message (or image)before the content is loaded and fade that content. Here is the code, and you can see it in action on realferias.com and click the OK button on the left.Thanks. $(document).ready(function() {

[jQuery] [FIX] Google maps and jQuery tabs... My solution.

2008-11-16 Thread Micky Hulse
Hey guys/gals, For some reason, I only have the option to Reply to author on this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/ 484d6cd5fd2a64cd So I am starting a new thread here... For me, the technique Klaus proposed worked when I added display:block: .tabs

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-16 Thread Brandon Aaron
No worries! Glad you got it figured out and sorry I wasn't able to get back to you sooner. :) -- Brandon Aaron On Sat, Nov 15, 2008 at 2:39 PM, n00bert [EMAIL PROTECTED] wrote: Got it sorted. ie doesn't like the selector. Now using a different method, but still with livequery. Sorry to have

[jQuery] Re: Confirming submit using Validate plugin

2008-11-16 Thread Jörn Zaefferer
$(...).validate({ rules: { ...}, messages: { ... }, submitHandler: function(form) { if (confirm(Really?) { form.submit(); } }, otherStuff: ..., etc... }); On Sun, Nov 16, 2008 at 10:09 PM, flycast [EMAIL PROTECTED] wrote: Thanks! I am having a hard time getting my form to

[jQuery] Anyone using flash in his cycle slides?

2008-11-16 Thread Tolis Christomanos
Hello group, I have a problem with the cycle plugin and internet explorer. When i have a slide (div) with flash inside it it keeps playing even when it is not visible (display:none); Any ideas? Thanks in advance

[jQuery] Re: Pause after .load request

2008-11-16 Thread [EMAIL PROTECTED]
I've been trying to play around with this, my javascript knowledge is very limit still (learning!). I keep getting this error: Error: useless setInterval call (missing quotes around argument?) I changed the script after running it a bit, to try and fix the error, still having problems:

[jQuery] need some basic json object help

2008-11-16 Thread Geuis
I've gotten to be fairly intermediate at consuming json objects, such as those I'm retrieving from web api's. However, I'm trying to push the boundaries of what I understand about JSON objects once the client has loaded them. I have been searching around google for the last couple of hours for

[jQuery] Re: Pause after .load request

2008-11-16 Thread ricardobeat
Ah, sorry. I made a mistake, this should work: $(document).ready(function() { var date_reg = $(input#date_requested).val(); var counter = -1; slideTimer = setInterval((function(date_reg,counter){ return function(){ //global var if (counter = date_reg) {

[jQuery] Re: Its possible to do this??

2008-11-16 Thread ricardobeat
That's not always right: in case you're going to reuse that main selector a lot, it's better to make it a jQuery object so you don't need to redo the first part of the query every time. cheers, - ricardo On Nov 16, 6:27 pm, Jason Huck [EMAIL PROTECTED] wrote: If you want to concatenate strings

[jQuery] Convert from mootools to jquery

2008-11-16 Thread gus
Hi i want to know if this code can be converted to jquery. It's a very good hoover pop up with effect code. function initCloseButton(){ var blocks = document.getElementsByTagName(li); for (var i=0; iblocks.length; i++){ if (blocks[i].className.indexOf(roll) !=

[jQuery] ajax error handling troubles

2008-11-16 Thread Davide
$.ajax({ async: true, url: testingURL, success: function () { location.reload(); }, error: function (XMLHttpRequest, textStatus,

[jQuery] Validate. CheckBoxes

2008-11-16 Thread shapper
Hello, I have a list of CheckBoxes: A, B, C, D and E. A, B and C should obey a relation that only one of this three can be selected. So I select A and D and then C, A will be unchecked. D and E don't have any relation. Does anyone knows a plugin that does this? Thanks, Miguel

[jQuery] Re: ajax error handling troubles

2008-11-16 Thread Karl Rudd
The documentation for the ajax error function has this note in the example: // typically only one of textStatus or errorThrown // will have info ( http://docs.jquery.com/Ajax/jQuery.ajax#toptions ) Perhaps check the textStatus as well as the errorThrown? Karl Rudd On Mon, Nov 17, 2008 at

[jQuery] Unit Testable jQuery plugins

2008-11-16 Thread Anup
Hi, A little while back I wrote a post on writing unit testable jQuery plugins: http://www.onenaught.com/posts/85/jquery-tip-to-increase-plugin-flexibility-and-testability I am finding more and more that jQuery code I write can often be turned into plugins. Furthermore, those plugins can be

[jQuery] Re: Its possible to do this??

2008-11-16 Thread Kean
Let me see. I would try the following var row = $(.flexigrid .bDiv #socios .trSelected:first); 1. $(row).find(td:first-child).css(color, red); 2. row.find(td:first-child).css(color, red); 3. $(row).each(function(){ $(this).find(td:first-child).css('color', 'red'); }); 4.

[jQuery] Re: ajax error handling troubles

2008-11-16 Thread Mike Alsup
                $.ajax({                         async: true,                         url: testingURL,                         success: function () {                                 location.reload();                         },                         error: function (XMLHttpRequest,

[jQuery] Re: ajax error handling troubles

2008-11-16 Thread Mike Alsup
errorThrown is for JavaScript errors (think try/catch).  40X responses are not thrown, they are just errors returned from the server and you can get details from the xhr (ie: xhr.statusText). To elaborate slightly, the server could return an XML document with a 200 status code. But if the

[jQuery] Re: need some basic json object help

2008-11-16 Thread RobG
On Nov 17, 8:57 am, Geuis [EMAIL PROTECTED] wrote: I've gotten to be fairly intermediate at consuming json objects, such as those I'm retrieving from web api's. However, I'm trying to push the boundaries of what I understand about JSON objects once the client has loaded them. I have been

[jQuery] Re: need some basic json object help

2008-11-16 Thread Geuis
Thanks for the tips. That helps a bunch. On Nov 16, 6:27 pm, RobG [EMAIL PROTECTED] wrote: On Nov 17, 8:57 am, Geuis [EMAIL PROTECTED] wrote: I've gotten to be fairly intermediate at consuming json objects, such as those I'm retrieving from web api's. However, I'm trying to push the

[jQuery] Question about [Autocomplete]

2008-11-16 Thread MeanStudios
Greetings, I am using this plugin in my web application and I had a quick question. Is there a way to trigger an ajax call if someone selects something from the dropdown list? The ajax call would then fill in some fields below related to what was just selected from the autocomplete field.

[jQuery] Re: image toggle

2008-11-16 Thread bob
Cannot be done something with each? Again, it does not work for me. var menu = ['home','news','sport','music']; $.each(menu, function(index) { $('#'+this+'_header').click(function(){ alert(this+'_header clicked'); }); });