[jQuery] Re: Autocomplete plugin: Modifying how the input JSON is read

2008-07-25 Thread Jörn Zaefferer
Take a look at the source code on this example: http://jquery.bassistance.de/autocomplete/demo/json.html Jörn On Tue, Jul 22, 2008 at 10:29 AM, Magnus [EMAIL PROTECTED] wrote: Hi, I use the autocomplete plugin, but don't have a JSON that consists of an simple array with the results. I get

[jQuery] vertical scroll on tbody

2008-07-25 Thread jack
HI, all Is that possible, within a table, I can have a tbody with vertical scrolling feature and keep thead fixed with no scrolling? Thank you in advance! Jack

[jQuery] Tablesorter Plugin: Leave one column untouched

2008-07-25 Thread DavidH
Hi, I'm using the tablesorter plugin. The first column of the table is Position (i.e. 1,2,3 etc). When I sort, I'd like this column to stay the same (e.g. if the table is resorted by a criteria, they are still placed with 1 at the top). Is this possibel or will I have to abandon tablesorter and

[jQuery] Re: Draggable by proxy

2008-07-25 Thread Nathan Cox
Hi, I've been trying to do this same thing (move a draggable around by clicking on something else) but I can't figure out Richard's suggestion. He says to bind document.mousemove and document.mouseup but I can't figure out what to bind it to...what exactly do I need to put in the callback?

[jQuery] Re: for input cloning

2008-07-25 Thread Robin Gruyters
Syam, Thanks for that! works perfectly! Regards, Robin 2008/7/25 Syamsundar [EMAIL PROTECTED]: Robin, Once you clone with 'true', then just unbind the event from this row. Try this: $(document).ready(function() { // When last input-text is click/selected, add new row

[jQuery] Re: finding the exact error when using $.ajax

2008-07-25 Thread Sridhar
I tried turning off Friendly Errors. still it is giving the same error. I am using XMLHttpRequest.status and XMLHttpRequest.statusText in the error function to determine the error. is there any other property that i can use? On Jul 24, 11:59 pm, MorningZ [EMAIL PROTECTED] wrote: Turn off

[jQuery] jqDnR and jqModal - draggable area not working when using ajax

2008-07-25 Thread _danny_
hi i'm using a combination of jqDnR and jqModal to load some content in a draggable modal style window. this content is requested through ajax. everything works fine, using this method: $('#myPopUp').jqm({ajax: 'some-url', trigger: 'a.trigger'}); $('#myPopUp').jqDrag(); the problem is, my

[jQuery] how to format the ajax data from .php

2008-07-25 Thread Andol
i'd like to know is there any available format to re-form the data from the php executing result?

[jQuery] Re: how to make home page like jqueryUI

2008-07-25 Thread Andol
css is needed. On Jul 25, 12:11 pm, Bhaarat Sharma [EMAIL PROTECTED] wrote: Hi I just saw the new homepage for jquery UI.  I must say it looks fantastic. Long time ago I saw a jquery plugin that does something similar to what they have done for their demo section. Does someone know how

[jQuery] Re: getJSON: how to attach failure callback?

2008-07-25 Thread Sridhar
you can use $.ajax(options) function for this. In that function specify the dataType as json. On Jul 24, 7:19 pm, S P Arif Sahari Wibowo [EMAIL PROTECTED] wrote: Hi! I am working with getJSON to get JSON data via HTTP GET request. It works well, but sometime the server itself fail to get the

[jQuery] Re: Draggable by proxy

2008-07-25 Thread Richard D. Worth
You bind them to a callback function that actually moves your element around. Like so: function docmove(ev) { // use ev (event object) to get current mouse position, compare to original // move element based on difference } $(#someTargetElement).mousedown(function(ev) { // use ev to get

[jQuery] Re: how to make home page like jqueryUI

2008-07-25 Thread Richard D. Worth
This is a carousel. It was originally developed just for this site, but Paul (the author) has mentioned plans to release it in the future as a jQuery UI plugin, as there's been some interest in it. See: http://groups.google.com/group/jquery-ui/browse_thread/thread/b57bf99f2abf6079 Until then you

[jQuery] Re: Tablesorter Plugin: Leave one column untouched

2008-07-25 Thread apaella
$(#myTable).tablesorter({ headers: { 1: {sorter: false }} }); $(#myTable).bind(sortEnd,function() { $(#myTable tbody tr).each(function(index, item){ $(td:first, $(item)).html(index+1);

[jQuery] Re: How to select all tag with certain class

2008-07-25 Thread apaella
$(li.highlight-with-red) wouldn't wors?

[jQuery] Re: How to select all tag with certain class

2008-07-25 Thread Richard D. Worth
Same as css. Where $(.highlight-with-red) // selects all elements with class, lis and ps $(li.highlight-with-red) // selects only lis with class - Richard On Fri, Jul 25, 2008 at 1:20 AM, Thalia [EMAIL PROTECTED] wrote: I just want to select all LI with class=highlight-with-red, excluding

[jQuery] missing ] after element list

2008-07-25 Thread [EMAIL PROTECTED]
Hi everyone, I'm pretty new to Javascript and Jquery. Despite my ignorance about Javascript basics, Jquery lets me do useful stuff. I've created a join statement and get a missing ] after element list error in Firefox for PC. I also have a setTimeout statement to prevent unresponsive script

[jQuery] Re: Feedback on new plugin: wrapSelection

2008-07-25 Thread Finding_Zion
I added a demo page to the plugin. http://extra.gnpcb.org/demo/wrapSelection/test.html. I've verified that it works on jquery 1 and higher. Also that it works with Internet Explorer 7 and Firefox 2. Any feedback on problems or things that can be made better would be appreciated. Jeremy On

[jQuery] Re: Jquery Cycle and XML

2008-07-25 Thread Anatalsceo
Thanks, It works great. On 24 juil, 21:13, Mike Alsup [EMAIL PROTECTED] wrote: On Jul 24, 10:41 am, Anatalsceo [EMAIL PROTECTED] wrote: Hello, I've posted an unresponded post few days ago concerning cycle function in jquery. I've change completly the function I was using to be able

[jQuery] jQuery Validation Question on remote rule

2008-07-25 Thread Nimrod
Hi All, I just have few questions about the use of jQuery Validation remote rule. How remote rule treat data being passed through querystring? What is the form of data being passed through querystring? Is it case sensitive? I hope you can give me answers to those questions. Thanks, Nimrod

[jQuery] Re: Feedback on new plugin: wrapSelection

2008-07-25 Thread Richard D. Worth
Really nice. The demo page is a huge help. A quick test revealed an issue: If you start selection on a LI and end on a non-adjacent LI (that is, 1-3, 1-4, 2-4) the first and last will be selected, but the middle one(s) will not. - Richard On Fri, Jul 25, 2008 at 9:49 AM, Finding_Zion [EMAIL

[jQuery] Re: $(this) is powerful, but is it a member of the family?

2008-07-25 Thread Dan G. Switzer, II
I have two jQuery books and scant coverage of $(this) between them. I need to know if $(this) has parents, children and siblings, and if so how to access them. Here's why... I have a page with six one-line forms on it. I put the forms in divs and hide the divs on page load based on the class of

[jQuery] Re: jQuery Validation Question on remote rule

2008-07-25 Thread Jörn Zaefferer
Maybe an example helps to explain, as I'm not sure I understand your question. form id=myform input class=required remote=/unique-username name=firstname value=Pete / /form $(#myform).validate(); Request being sent to server for remote validaiton: GET /unique-username?firstname=Pete The

[jQuery] parsing xml with jquery adding filter

2008-07-25 Thread Anatalsceo
hello, I'm trying to parse some info from an XML file with a filter to get only one part of a the infos. it doesn't seem to work. can someone help. here is my code: function getImageName(marque) { $.get(xml/listeProduits.xml,{},function(xml){ // Build an

[jQuery] Re: Why does my closure not seem to share scope?

2008-07-25 Thread Henry
On Jul 25, 3:17 am, Karl Rudd wrote: The i in the click function (closure) is just a reference to the i outside. That i changes with each iteration of the for loop. If you want to save a copy of the value of i then create a _local_ var _inside_ the closure and assign it the value of i.

[jQuery] :has :hasnot

2008-07-25 Thread spakov
Hi, i'm looking for a selector which made the inverse of the ':has' selector like ':hasnot' I've x div wich have h3 or not, and i 'will be aible to catch the div which has not h3... Actually i use 2 line to show the div i want (by default, all the div are hide):

[jQuery] Re: $(this) is powerful, but is it a member of the family?

2008-07-25 Thread GasGiant
Yes! I was testing next() just as you replied. Thanks, it works. I can now grab a group of ID elements (hid1, hid2, ...) and fire the toggle on just the one that is clicked. Sweet. $('[EMAIL PROTECTED]').click(function() { $(this).next().toggle();

[jQuery] Re: Highlight table when checkbox is checked

2008-07-25 Thread Syamsundar
I guess your checkbox is inside your table row. Something like this: table trtd input type='checkbox' / /td/tr /table If that's the case, the following should work. You can adapt this example to your specific needs too. $(#input:checkbox).click(function(){

[jQuery] $(this) is powerful, but is it a member of the family?

2008-07-25 Thread GasGiant
I have two jQuery books and scant coverage of $(this) between them. I need to know if $(this) has parents, children and siblings, and if so how to access them. Here's why... I have a page with six one-line forms on it. I put the forms in divs and hide the divs on page load based on the class of

[jQuery] Re: After some clicking it won't show up

2008-07-25 Thread Syamsundar
Try this. this should work! $(a.help).click(function() { var showing = $(this.hash).css('display'); $('.help-popup').hide(); if(showing == 'none') $(this.hash).show(); return false; }); Thanks, -Syam IschaGast wrote: may be the following will work. jQuery(function($) {      

[jQuery] How do I run an ajax request on form submit?

2008-07-25 Thread HairyJim
Im new with jQuery and I have quite quickly turned a 54 line script into a 5 line jQuery script :) However all I want to do now is run an ajax request on the form submit but the problem I am finding is that it seems the form gets submitted before the ajax query returns its data - thoughts?

[jQuery] Re: vertical scroll on tbody

2008-07-25 Thread Ariel Flesler
Not in IE. There are certain hacks, that have a table scrollbar overlap the side of the tbody, simulating a tbody scrollbar, and stuff like that. You'll need to google that. -- Ariel Flesler http://flesler.blogspot.com/ On 25 jul, 01:20, jack [EMAIL PROTECTED] wrote: HI, all Is that

[jQuery] Re: .attr not working?

2008-07-25 Thread Dana
Oh sweet, thanks you two, that clears it up for me. I knew I was missing something. Cheers, Dana On Jul 24, 2:52 pm, MorningZ [EMAIL PROTECTED] wrote: And just so it makes sense on why Karl's answers are what they are is that in $('img.thumb').each(function() { var alt =

[jQuery] Animating several elements in order

2008-07-25 Thread linesandwaves
Hi everyone, I'm having the hardest time getting this to work. On a button click, I want to animate every div, one after the other, that is a child of a div with the id mainpage. This is the code I'm using, but I can't seem to make it function correctly: $(#button).click(function(){

[jQuery] Re: :has :hasnot

2008-07-25 Thread Cyril D.
Yes that is working fine ! thanks a lot 2008/7/25 Karl Swedberg [EMAIL PROTECTED]: Hi there, I'm pretty sure you could do it this way: $('div:not(:has(h3))').css('display','block'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 25, 2008, at

[jQuery] Re: Create array from checkbox id's

2008-07-25 Thread hubbs
Still trying to get this to work, but it does not seem to. Will this work getting the id attribute? This was my goal. On Jul 23, 10:53 pm, Ca Phun Ung [EMAIL PROTECTED] wrote: hubbs wrote: Ariel, I tried this but the alert just says object Object, I was expecting it to alert me of each

[jQuery] [validate] Validate elements without actual form

2008-07-25 Thread TypeRA
Does anyone know if there's a way to validate a set of elements (ie within a div) without having to pre-validate the actual form to start with? Problem I have is that I have a page long form and for one part of it (one of the blocks as a div), I am presenting as a dialog (using blockui however

[jQuery] Re: Create array from checkbox id's

2008-07-25 Thread Ariel Flesler
The array does have the ids, but an alert doesn't show the inner content of arrays. Ca Phun Ung's solution seems 100% correct. -- Ariel Flesler http://flesler.blogspot.com/ On 25 jul, 14:57, hubbs [EMAIL PROTECTED] wrote: Still trying to get this to work, but it does not seem to.  Will this

[jQuery] Re: multiple jquery cycle slideshows behaving strangely

2008-07-25 Thread Mike Alsup
Hi I have adapted a script found in the cycle demo website, to add multiple slideshows to a page, however, I am experiencing a problem. I don't see anything wrong with the code you posted. Here's a demo using mostly your code: http://www.malsup.com/jquery/cycle/test/natural.html Mike

[jQuery] Re: Why does my closure not seem to share scope?

2008-07-25 Thread Kalvin
I just tried this and Henry's right... assigning it within the closure doesn't make any difference. Does anyone know of an efficient approach to accomplishing what I'm trying to do, assigning a different click handler per page number? Perhaps I could access the text inside the local span (1, 2,

[jQuery] Hmm... Got stuck at 1 point.

2008-07-25 Thread Fastforward
I got one question mark over my head and I please someone for little help. I have this $j.ajax({ type: POST, url: domain+pages/groups/add/about, data: action=start, error: function(msg){

[jQuery] Re: Hmm... Got stuck at 1 point.

2008-07-25 Thread Mike Alsup
I got one question mark over my head and I please someone for little help. I have this         $j.ajax({           type: POST,           url: domain+pages/groups/add/about,           data: action=start,           error: function(msg){                        

[jQuery] Re: Why does my closure not seem to share scope?

2008-07-25 Thread Matt Kruse
On Jul 25, 7:22 am, Henry [EMAIL PROTECTED] wrote: for (var i = 1; i totalPages + 1; i++) {   $(#pages_panel).append($(span + i + /span)     .click(            (function(x){              return (function(){                pageClicked(x);                console.log(i: + x);              

[jQuery] Re: After some clicking it won't show up

2008-07-25 Thread Sridhar
may be the following will work. jQuery(function($) { $(a.help).bind('click', function(){$('.help-popup').hide();$ (this.hash).show();}); }); On Jul 24, 3:28 pm, IschaGast [EMAIL PROTECTED] wrote: I am busy making something like

[jQuery] Re: First jquery use - problem with collapsing treeview

2008-07-25 Thread Richard Grevers
Thanks Jörn, but having already altered the code which produces the category list to deliver what is needed for one list I don't really want to have to start again - I'd rather get what I have working if possible. On Jul 24, 11:48 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Give this fork a

[jQuery] Re: Why does my closure not seem to share scope?

2008-07-25 Thread Kalvin
Thanks Karl, I really appreciate the help! On Jul 24, 7:17 pm, Karl Rudd [EMAIL PROTECTED] wrote: The i in the click function (closure) is just a reference to the i outside. That i changes with each iteration of the for loop. If you want to save a copy of the value of i then create a _local_