[jQuery] [validate] custom error messages from remote method

2009-06-16 Thread david
Hi all. In the new version of jquery.validate (1.5.3) there is an option to get a remote error message from the server for invalid elements. I did not find what should be the exact response from the server for producing such an error message. From the documentation: The response is evaluated as

[jQuery] Re: ajaxSetup and getJSON

2009-06-16 Thread david
Isn't it more a server side question ? I would suggest that you try in the browser location bar to generate the url (by hand) and see if there also the problem consists. If yes then you have first to solve it on the server side. I use in my scripts a session id which i pass through getjson as

[jQuery] Re: [validate] custom error messages from remote method

2009-06-16 Thread Jörn Zaefferer
Nope, not anymore. The check is now more explicit: if (response === true) { ... } else { displayError }, where before if was just if (response) ... Jörn On Tue, Jun 16, 2009 at 8:55 AM, davidmichaelg...@gmail.com wrote: Hi all. In the new version of jquery.validate (1.5.3) there is an option

[jQuery] Re: [validate] custom error messages from remote method

2009-06-16 Thread david
Thanks. mir ist ein licht aufgegangen On Jun 16, 10:57 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Nope, not anymore. The check is now more explicit: if (response === true) { ... } else { displayError }, where before if was just if (response) ... Jörn On Tue, Jun 16, 2009 at

[jQuery] what is wrong with firefox :(

2009-06-16 Thread MadeOfRose
This code works on ie7, but it does not work on firefox. it just shows a alert when focus occur on an element. you can just click something on the page and you will see alert at ie7. var _focusedElement; $(document).ready(function() { $(*).bind(focus, function(e) {

[jQuery] Hide button based on combo value

2009-06-16 Thread ciupaz
Hi all, I have a select option like this: select id=color name=color option value=Select a color/option option value=1Red/option option value=2Green/option option value=3Blue/option option value=4White/option option value=5Black/option /select and a

[jQuery] Re: Hide button based on combo value

2009-06-16 Thread waseem sabjee
$(#color).change(function() { if($(this).val() == 2) { $(#buttons).hide(): } else { $(#buttons).show(); } }); On Tue, Jun 16, 2009 at 11:09 AM, ciupaz luigi.zambe...@gmail.com wrote: Hi all, I have a select option like this: select id=color name=color option value=Select a

[jQuery] Re: Hide button based on combo value

2009-06-16 Thread ciupaz
Perfect, thank you very much Waseem. Luis

[jQuery] History and ajax has me stuck

2009-06-16 Thread Bruce MacKay
Hi folks, I'm having difficulty understanding how to get Klaus's history plugin working in my application.I have an ebook application in which the page has a static index of pages which, when an individual link is clicked, a file is loaded into an adjacent div (#ebook). Upon being

[jQuery] Re: GPL e MIT Jquery

2009-06-16 Thread Jonathan Vanherpe (T T NV)
Egipicio wrote: Good night I think wanting to know if you have GPL on my site .. someone asked the sorce of the whole system if I only mandatory available? obs: The system does not GPL and everything was done by my in php . just plug jquery GPL and that this coupled system ...

[jQuery] How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread San
I want to post some HTML (contained in a div on the page) data using jQuery using $.ajax() method. But it is not working. script language=javascript type=text/javascript function PostHTMLContentTOServer() { var pageData = document.getElementById (MainDiv).innerHTML;

[jQuery] validate plugin - phone number processing prior to validation

2009-06-16 Thread neburton
I want to remove spaces from pasted phone numbers into a phone number field prior to the validation being run. I've applied class=number to the phone number input field, which validates correctly when anything other than numbers are entered or onsubmit. I've also created an event handler that

[jQuery] validate plugin - phone number processing prior to validation

2009-06-16 Thread neburton
I want to remove spaces from pasted phone numbers into a phone number field prior to the validation being run. I've applied class=number to the phone number input field, which validates correctly when anything other than numbers are entered or onsubmit. I've also created an event handler that

[jQuery] - Superfish menu screws up my menu..

2009-06-16 Thread Faraz Khan
What is causing superfish to screw up my menu here: http://www.ramvalley.com/new/ ive tried changing the templates but everytime its the same thing.. i have no knowledge of css or php :( please help. Thank you

[jQuery] Get jQuery object from collection

2009-06-16 Thread Lauri B.
I have collection: var collection = $(input); var i = 3; Is there easier way to get third jquery object from collection. Currently i'm using method like $(collection.get(i)) or $(collection[i]) But i think something like this could be more comfort: example: collection.get(i).addClass('blah');

[jQuery] Re: Get jQuery object from collection

2009-06-16 Thread waseem sabjee
var collection = $(input); collection.each(function(i) { collection.addClass(blah); if(i == 3) { } }); did you mean something like that ? On Tue, Jun 16, 2009 at 12:59 PM, Lauri B. lau...@gmail.com wrote: I have collection: var collection = $(input); var i = 3; Is there easier way to

[jQuery] Re: - Superfish menu screws up my menu..

2009-06-16 Thread Charlie
this is a css issue very common with Joomla integration of new menu, the original template menu css does not get removed when installing a new menu and some of this css is needed to adapt new menu to theme of template. There are different techniques that can be used to style a menu , yet

[jQuery] Re: what is wrong with firefox :(

2009-06-16 Thread MadeOfRose
i am giving my answer to my question. The fireworks does not support focus event on table or div elements. ie7 does. That is way i get problem. Here is text code below. You can test it by clicking div and table elements. If it works you will get an alert (ie7 only) Fireworks and opera shows

[jQuery] Re: Edittable plugin problem

2009-06-16 Thread Mika Tuupola
On Jun 3, 2009, at 5:56 PM, Gustavo Salomé wrote: If youre talking about Jeditable then id of the edited dom element is sent automatically. There is no need for any unorthodox magic. Try get it here: http://jsbin.com/ejejo/edit I made a live example too. 2009/6/3 bharani kumar

[jQuery] Re: Get jQuery object from collection

2009-06-16 Thread Lauri B.
Not really. My question is there function like .get() that returns jQuery object instead of dom element On Jun 16, 2:04 pm, waseem sabjee waseemsab...@gmail.com wrote: var collection = $(input); collection.each(function(i) { collection.addClass(blah); if(i == 3) { } }); did you mean

[jQuery] Re: IE Bug Help: breaks column CSS heights when select box changed

2009-06-16 Thread Jimbo
I fixed this issue by flushing IE by doing $(this).hide(); followed immediately by $(this).show(); and it recalc'd the heights and display was normal then. On 15 June, 18:47, Jimbo james.zielin...@gmail.com wrote: Hi guys, Got a nice problem with IE :-( FF and chrome etc are absolutely fine.

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread Logictrap
Thank you that worked!!! I think I may understand how to use children if you could also show how to get the img src attribute when 'this' contains: div class=logo table width=100% border=0 cellspacing=0 cellpadding=0 tr td height=170 align=center valign=middleimg src=/

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread MorningZ
I don't think you understood what code to show what you need to show is what is wrapped around your initial post's code so that it will be easier to help you understand this On Jun 16, 8:18 am, Logictrap dlyck...@gmail.com wrote: Thank you that worked!!! I think I may understand how to use

[jQuery] Get first element when there are multiple classes

2009-06-16 Thread Dave
Hi How do you get the first element when the element got multiple classes? ul id=ulList li class=liRow1/li li class=liRow liEven2/li li class=liRow3/li li class=liRow liEven4/li /ul input id=btSave type=button value=Save /

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread waseem sabjee
var list_items = $(.liRow); $(#btSave).click(function() { alert(list_items).eq(0).attr(class)); } }); On Tue, Jun 16, 2009 at 2:57 PM, Dave messedupp...@gmail.com wrote: Hi How do you get the first element when the element got multiple classes? ul id=ulList li

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread waseem sabjee
Sorry syntax error var list_items = $(.liRow); $(#btSave).click(function() { alert(list_items.eq(0).attr(class)); } }); On Tue, Jun 16, 2009 at 3:01 PM, waseem sabjee waseemsab...@gmail.comwrote: var list_items = $(.liRow); $(#btSave).click(function() {

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread Dave
Ok, so I have to split it up. Thanks for the answer. =) On Jun 16, 3:02 pm, waseem sabjee waseemsab...@gmail.com wrote: Sorry syntax error var list_items = $(.liRow); $(#btSave).click(function() { alert(list_items.eq(0).attr(class)); } }); On Tue, Jun 16, 2009 at 3:01 PM, waseem

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread Mauricio (Maujor) Samy Silva
I am not sure on what are you trying to do, but alert($(#ulList .liEven:first).attr(class)); /* Returns Success*/ Maurício -Mensagem Original- De: Dave Para: jQuery (English) Enviada em: terça-feira, 16 de junho de 2009 09:57 Assunto: [jQuery] Get first element when there

[jQuery] Re: get email and send email?

2009-06-16 Thread inkexit
Any help here, people? If this can't be done with jQuery, would somebody tell me that?

[jQuery] Re: get email and send email?

2009-06-16 Thread MorningZ
Understand that jQuery is running on your user's browser so no, it cannot natively send/receive email On Jun 16, 9:47 am, inkexit createmod...@gmail.com wrote: Any help here, people?  If this can't be done with jQuery, would somebody tell me that?

[jQuery] Change page on selected combo value

2009-06-16 Thread ciupaz
Hi all, I have an .ascx page with a populated combobox: select id=Users name=Users option value=New User---New User---/option option value=TedWilsonTed Wilson/option option value=KatyBruceKaty Bruce/option /select I need that when the user select New User he will be

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread waseem sabjee
$(#Users).change(function() { var url = $(this).val(); top.location = url; }); On Tue, Jun 16, 2009 at 3:53 PM, ciupaz luigi.zambe...@gmail.com wrote: Hi all, I have an .ascx page with a populated combobox: select id=Users name=Users option value=New User---New User---/option

[jQuery] Re: get email and send email?

2009-06-16 Thread inkexit
Thanks MorningZ. What would you reccommend to get something like this working? What language, or languages, etc? On Jun 16, 8:51 am, MorningZ morni...@gmail.com wrote: Understand that jQuery is running on your user's browser  so no, it cannot natively send/receive email On Jun 16, 9:47 

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread ciupaz
So putting value=NewUser.ascx in the option tag? Luis

[jQuery] Re: Get jQuery object from collection

2009-06-16 Thread Lauri B.
i guess that is .eq(i) :)

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread MorningZ
Well first off.. you can't redirect to a user control (ascx) because that's not a page per se Secondly, your original post gives no indication *where* to send the user On Jun 16, 10:05 am, ciupaz luigi.zambe...@gmail.com wrote: So putting value=NewUser.ascx in the option tag? Luis

[jQuery] Re: jQuery Conference for 2009?

2009-06-16 Thread ak732
So... is there no interest in a jQuery conference up in Boston this year? Incidentally, this entire post doesn't show up when searching through the group posts. I searched on conference, on Boston and on Guinness without pulling up this topic. Weird.

[jQuery] Re: Change page on selected combo value

2009-06-16 Thread ciupaz
You're right, by the way, the pages are .ascx pages, ma they lived alone, like .aspx pages (they're not embedded in .aspx pages). And the second page where redirect the user in NewUser.ascx (or .aspx, it all the same). Thanks for precisation. Luis

[jQuery] Problem with $.get() and array in json data

2009-06-16 Thread petersendidit
I am provided a json object that looks something like this: {pager_offset:50,types:[1,2,4]} If I feed that json object in to the jQuery $.get() function as the data the request it makes is like this: ?pager_offset=50types=1types=2types=4 Note that it really should be this in order for the

[jQuery] Re: get date / days

2009-06-16 Thread Cyril
Thx for sharing ... could you explain please ? On May 29, 2:49 pm, weidc mueller.juli...@googlemail.com wrote: found a way. On 29 Mai, 11:44, weidc mueller.juli...@googlemail.com wrote: hi, i need to know all days of a month / year. for example today is friday 29. and the month got 31

[jQuery] [autocomplete] List second word in a match

2009-06-16 Thread AnHeLL
Well, at first, sorry about my english. The question i have is: How can i have a match in the results list when the letters maching only are in the second or third word? Is it possible? I'm going to tell you an example. In the demo page (http:// jquery.bassistance.de/autocomplete/demo/) at

[jQuery] [autocomplete] Obtaining the *key* on selecting rather than the *display name*

2009-06-16 Thread Sanjay Khandkar
Hi, I was able to obtain the key or display name from autocomplete list using your example of email. The problem is this a. Search should take place on the display field (in the name field - row.name) b. Display item in the textbox should be the display field again (the name field - row.name)

[jQuery] Dynamic sorting

2009-06-16 Thread Ron Severdia
Hi, I'm trying to figure out how to set up dynamic sorting and was wondering the best way to approach it (and maybe an example). Any suggestions? I've also tried adjust scrolling sensitivity, but no luck with: var myScroll = $('.selector') sortable('option', 'myScroll'); Thank you.

[jQuery] $.getJSON() Special Chars

2009-06-16 Thread Obi1
Hi, I'am having a bit of a problem with special chars in a getJSON response which is the result from php and smarty the file called by the getJSON is something like this: ?php $callback = $_REQUEST[callback]; {...} Getting data from a wsdl using nusoap. {...} $smarty = new

[jQuery] Json post with mozilla

2009-06-16 Thread Nowhere
Hi all, I'm newbie to Jquery so excuse me for dummy question. I'm facing with the issue of making a call to another domain with mozilla firefox. When I need a GET request, I use JQuery.getJson and it works fine. The problem is when I need to do a POST request, I tried with: jQuery.post(

[jQuery] Re: jQuery Conference for 2009?

2009-06-16 Thread MorningZ
There wasn't much chatter on the jQuery day here on the group last year either (yet it was packed!) So i wouldn't gauge interest in it by this mailing list :-) On Jun 16, 10:41 am, ak732 ask...@gmail.com wrote: So... is there no interest in a jQuery conference up in Boston this year?

[jQuery] jqModal position loading gif

2009-06-16 Thread Bradley
$(#modal).jqm({ ajax:'@href', ajaxText: 'img alt=Loadinganimation id=loadingModal src=/ images/loading.gif /' }) I'm trying to get the loading gif to be centered in the window, but it's always in the top right corner of where the modal window shows up. here's the CSS: .jqmWindow,

[jQuery] Re: dynamically add link after certain hrefs

2009-06-16 Thread brian
Maybe something like this: $('a').each(function() { var self = this; var btn_link = $('a href=#'+$(self).text()+'/a'); var href = $(self).attr('href'); // to be used in modal code $(btn_link).click(function() { // set up your modal

[jQuery] Re: Obtaining the *key* on selecting rather than the *display name*

2009-06-16 Thread shaded
I suppose you can switch key and value On Jun 16, 8:02 am, Sanjay Khandkar sanjaykhand...@gmail.com wrote: Hi, I was able to obtain the key or display name from autocomplete list using your example of email. The problem is this a. Search should take place on the display field (in the

[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread brian
Define not working. That's a bit vague. Also, where are you calling your function from? Can you confirm that it is being called? Something like this might work for you: function PostHTMLContentTOServer() { $.ajax({ url: MyData.aspx, type: POST,

[jQuery] Loading image before operation starts not working

2009-06-16 Thread Jens L.
Hey guys, i have following problem: When the user on my website presses a image link, I prevent the default behaviour, and toggle some table rows (show or hide them, depending on the the image src (closed.gif / opened.gif)). Since I got a lot of rows I run over and toggle, the function takes some

[jQuery] Disable question

2009-06-16 Thread Dave Maharaj :: WidePixels.com
I have a div which loads a form. On that page I have other buttons that get i need to disable until the form is submitted preventing the user from doing anything other than submit or cancel. If they submit the form i then need to enable all the buttons but that's not working. I have: function

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread Logictrap
I'm using the jqery cycle plugin with an onAfter OnBefore function. These functions process the current div as 'this' - what I sent was the code in my div that is getting passed as 'this'. I can see that using children is the way to get the attribute I want, but I don't quite understand how to

[jQuery] AJAX history management / hijaxing for JQuery 1.3.2

2009-06-16 Thread mh
Can anyone clue me in on situation with the AJAX history management for JQuery 1.3.2? All the plugins I could find are outdated in terms of browser support and flexibility. This one: http://stilbuero.de/jquery/history/ looks like the most polished but does not seem to work with 1.3.2 at all.

[jQuery] Dynamic selectors with AutoComplete

2009-06-16 Thread crazygoji
This is a complete noob question for which I apologize in advance. I have a form that creates multiple instances of a contact text box that I want to use the same Autocomplete function. The ids on the fields are dynamic. The code as I have it works but rather than creating a function for each

[jQuery] plugin site usability

2009-06-16 Thread darickard
Does anyone else find the plugin site (http://plugins.jquery.com/) difficult to use? It's great that there are so many plugins to choose from, but it sure makes it hard to find what you need. I only use jQuery and the plugins occasionally, so I'm not always up to date on the best of breed

[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread Rosa Spina
brian ha scritto: Define not working. That's a bit vague. Also, where are you calling your function from? Can you confirm that it is being called? Something like this might work for you: function PostHTMLContentTOServer() { $.ajax({ url: MyData.aspx,

[jQuery] upload file from jquery dialog modal form

2009-06-16 Thread Johan Gunnarson
Does anyone know if it is possible to upload a file from a jquery modal form (http://jqueryui.com/demos/dialog/#modal-form) ? I just need some help with the ajax call. The back-end will be asp with AspUpload that will handle the file upload.

[jQuery] Finding items in an UL by their LI's Attributes

2009-06-16 Thread Paul Hutson
Hello, I've been trying to work this out for a bit now but seem to have come a bit unstuck. I'd like to be able to use .find to search an UL element and find out if there are any items with two attributes the same as a search choice. i.e. : My UL looks like this : ul li id=1 typeref=E

[jQuery] How to tell if an item is open

2009-06-16 Thread Dave Maharaj :: WidePixels.com
I have 5 divs which can load content into them. I have added an on click add class open. When the page loads initially none are open, click on one link and the open class gets added but if another link is clicked i need to closed the open tag. How can tell jquery to look for an open tag if it

[jQuery] fun with check boxes.

2009-06-16 Thread shaded
I'm tasked with created a series of filters with checkboxes. for example lets say i have 3 categories, customers, groups, acccount customers contains groups and groups contain accounts. i want to be able all records as checkboxes in 3 different sliding panels on the same page. Then as any

[jQuery] Anyone else start receiving every post here via email yesterday?

2009-06-16 Thread MikeyJ
It's weird. My groups settings are still set to No Email but they keep coming! Mike

[jQuery] selector, second to last row of table

2009-06-16 Thread theprodigy
I've been trying for a while to alter the second to last row of a table. I've tried several ways. The number of rows is dynamic so I can't hard code a number into nth-child. I used $rowNeeded = $thisRow.parents('table:first').children().children().length - 1 to get the second to last row, but it

[jQuery] Re: How to tell if an item is open

2009-06-16 Thread brian
$('.open').each(function() { $(this).removeClass('open'); }); On Tue, Jun 16, 2009 at 1:17 PM, Dave Maharaj :: WidePixels.comd...@widepixels.com wrote: I have 5 divs which can load content into them. I have added an on click add class open. When the page loads initially none are open,

[jQuery] jQuery syntax

2009-06-16 Thread cz231
Hi, I've been working on a project that uses xml. But for some reason, it does not work in internet explorer. And after hours and hours of debugging, I cannot figure out why. I would deeply appreciate it if you could help me. I hope this isn't asking too much, but what is wrong from the code

[jQuery] Re: selector, second to last row of table

2009-06-16 Thread mkmanning
A couple quick examples that might help (there're many more ways): console.log( $('table tr:last').prev() ); var trow = $('table tr'); console.log( $(trow[trow.length-2]) ); console.log( trow.eq(trow.length-2) ); Modify the selectors as needed for multiple/nested tables. HTH On Jun 16, 10:46 

[jQuery] Re: Finding items in an UL by their LI's Attributes

2009-06-16 Thread mkmanning
$('ul').find('li[typeref=E][typeid=1]') NB: an id attribute that starts with a number isn't valid markup. On Jun 16, 10:05 am, Paul Hutson hutsonphu...@googlemail.com wrote: Hello, I've been trying to work this out for a bit now but seem to have come a bit unstuck. I'd like to be able to

[jQuery] Re: jQuery syntax

2009-06-16 Thread James
IE seems to have a problem with returning the correct header for the XML content-type. You'd have to either have the server force the content-type text/xml for .xml files, or if generated through a script (e.g. PHP) have the script set the header content-type when serving the XML. I've came upon

[jQuery] Re: How to post HTML data in jQuery using $.ajax() method?

2009-06-16 Thread James
Yes, please define not working. The problem most likely lies in what is returned here: var pageData = document.getElementById(MainDiv).innerHTML; to be used in the $.ajax() call. On Jun 16, 6:44 am, Rosa Spina spina.r...@gmail.com wrote: brian ha scritto: Define not working. That's a bit

[jQuery] Re: $.getJSON() Special Chars

2009-06-16 Thread James
Make sure the page your Javascript is on is also also uses utf-8 content-type (e.g. in meta tags). Same for your PHP script. On Jun 16, 1:45 am, Obi1 gurreiro_fa...@yahoo.com.br wrote: Hi, I'am having a bit of a problem with special chars in a getJSON response which is the result from php

[jQuery] Re: Anyone else start receiving every post here via email yesterday?

2009-06-16 Thread James
I didn't have this mail issue, but there was this weird thing that happened yesterday where when you log into jQuery groups, you were asked whether the content is spam or not. The jQuery group, all your posts and favorites from the jQuery group all disappeared from your profile and favorites. But

[jQuery] Re: dynamically add link after certain hrefs

2009-06-16 Thread mkmanning
You can simplify your approach; it's not necessary to copy the properties to the new link as you can just get them at runtime when the link is clicked (you also don't need to iterate over all the anchors): $('a href=/modalwindow.htmlimg src=/images/button.jpg// a').click(function(){ var

[jQuery] Re: Json post with mozilla

2009-06-16 Thread James
The error means you're trying to access a resource that located on another domain. You can only use AJAX POST or GET on a resource that is located on the same domain as the page that is calling it. If that is the case in your scenario, could you provide more code for us to locate the issue? On

[jQuery] [autocomplete] Manual request

2009-06-16 Thread bigb
Hello, Here is my situation. I have an autocomplete control on my page that is working perfectly. I wanted to mimic a drop down menu by placing an image just to the right of the text box. When a user clicks that drop down arrow image, I want the whole list to display below the textbox. So far, I

[jQuery] Re: Json post with mozilla

2009-06-16 Thread Rosa Spina
Thanks for answer. Yes, It's a post request for a page located on a different domain: from http://localhost:8080 to http://localhost:8081 (two tomcat istances). I know it's not allowed by cross domain rules, in fact I use Json for get requests, but I don't know how to do with post requests because

[jQuery] Re: cycle plugin pagerAnchorBuilder

2009-06-16 Thread Jon Crump
OK, there were no takers on this. In the unlikely event that anyone's interested, here's the work-around that I arrived at. It's simple enough that I think it will not cause me any problems, but I sure would like to know what the right solution might be. In the HTML, an image collection like

[jQuery] Palm Pre and jQuery? Is it possible?

2009-06-16 Thread Andy Matthews
I watched a slidedeck today which talked about developing for WebOS, which is all based around JavaScript. Does anyone know if it's possible to use jQuery for WebOS development? andy

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread Logictrap
From a different forum I got this which works: $(this).find('img').attr('src'); On Jun 16, 11:18 am, Logictrap dlyck...@gmail.com wrote: I'm using the jqery cycle plugin with an onAfter OnBefore function. These functions process the current div as 'this' - what I sent was the code in my

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread Ricardo
Standard CSS selector for multiple classes. liEven is not a descendant of .liRow, just put them together: $(#ulList .liRow.liEven:first) On Jun 16, 9:57 am, Dave messedupp...@gmail.com wrote: Hi How do you get the first element when the element got multiple classes? ul id=ulList        

[jQuery] How to simulate a human-triggered event?

2009-06-16 Thread Jay
Hi, I'm trying to change the value of an input field (target) which depends on another input (source). It works well when I manually change the source value. But if I changed the source value with another button, the target value remains the same. Here's the code... $(document).ready(function()

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread Mike Alsup
$(this).find('img').attr('src'); jQuery selectors accept a 2nd argument for context, which makes this a bit more readable, imo: var src = $('img',this).attr('src');

[jQuery] Re: How to simulate a human-triggered event?

2009-06-16 Thread Andy Matthews
Assuming the second input field is triggered by a user instigated event, then you could just trigger that event. $('input#change').click(function() { $('input#source').attr('value', 'This is the value changed by a button'); $('something').trigger('blur',fn); }); -Original

[jQuery] Re: Get first element when there are multiple classes

2009-06-16 Thread Dave
Ahh, great. Thanks. On Jun 16, 11:05 pm, Ricardo ricardob...@gmail.com wrote: Standard CSS selector for multiple classes. liEven is not a descendant of .liRow, just put them together: $(#ulList .liRow.liEven:first) On Jun 16, 9:57 am, Dave messedupp...@gmail.com wrote: Hi How do

[jQuery] Re: selector, second to last row of table

2009-06-16 Thread theprodigy
ok, I'm having a really tough time with this. here's a part of my code (most of this Thanks to Karl, part thanks to mkmanning, very little thanks to me, lol): $('a.moveup').click(function(event) { var $thisRow = $(this).parents('tr:first'); var $thisTable = $('#main_table');

[jQuery] Animating background color

2009-06-16 Thread Apothem
I use jQuery 1.3.2 and tried to use: $('.applied').each(function(){ $(this).css('background-color', '#ff').animate ({backgroundColor: #000 }, slow); }); For some reason, the background doesn't change and my firefox debugs the error of

[jQuery] Re: cycle plugin pagerAnchorBuilder

2009-06-16 Thread Mike Alsup
        ul id=clientList                 lia href=#Foo text/a/li                 lia href=#Bar text/a/li                 lia href=#Baz text/a/li         /ul If anybody has a cleaner solution, I'd sure love to know about it. This is what I'd do: ul id=clientList lia href=#

[jQuery] [validate] Validating a formatted number failed

2009-06-16 Thread Jules
Hi all, I am using validate (1.5.4) plugin to validate numeric input field with max:5000.00. When the numeric value is formatted as 2,999.00, the max validation failed. After some investigation, it turns out the max function compare the value 2,999.00 as string with 5000.00 instead of 2999.00

[jQuery] Re: selector, second to last row of table

2009-06-16 Thread RobG
On Jun 17, 3:46 am, theprodigy tigerseyet...@gmail.com wrote: I've been trying for a while to alter the second to last row of a table. I've tried several ways. The number of rows is dynamic so I can't hard code a number into nth-child. I used $rowNeeded =

[jQuery] Converting objects to strings

2009-06-16 Thread gdfox
Hi All, I have the following code, which I am trying to pass in 5 variables. script type=text/javascript $(function(){ $('#DrainStackDiameter').change(function(){ var params = { TotalApartmentsServed: $('#TotalApartmentsServed'),

[jQuery] Re: Converting objects to strings

2009-06-16 Thread Steven Yang
I think what you want i something likevar params = { TotalApartmentsServed: $('#TotalApartmentsServed').val(), TotalWashroomsPerApartment:$('#TotalWashroomsPerApartment').val(), TotalPowerPipeUnits: $('#TotalPowerPipeUnits').val(), DrainStackLength:

[jQuery] Re: get email and send email?

2009-06-16 Thread inkexit
Um, java?

[jQuery] Re: cycle plugin pagerAnchorBuilder

2009-06-16 Thread Jon Crump
Mike Alsup, Thanks so much for pointing out the obvious; no really, I mean it sincerely. I so often overlook the obvious, to my cost. I didn't realize that I could simply pass a bare integer to the cycle call. Admiration and gratitude for a wonderfully well thought out and effective tool!

[jQuery] Ghost data using jQuery.data

2009-06-16 Thread Olivier Percebois-Garve
Hi I am using jQuery data store and wished to make deep copy of elements, including all the data stored with jQuery. So I'm using the allData plugin provided here : http://stackoverflow.com/questions/999535/how-to-get-from-an-element-all-the-data-set-using-the-data-method also I made a

[jQuery] Re: How to tell if an item is open

2009-06-16 Thread Ricardo
Or simply $('.open').removeClass('open'), iteration is built-in :) On Jun 16, 3:02 pm, brian bally.z...@gmail.com wrote: $('.open').each(function() {     $(this).removeClass('open'); }); On Tue, Jun 16, 2009 at 1:17 PM, Dave Maharaj :: WidePixels.comd...@widepixels.com wrote: I have 5

[jQuery] Re: Json post with mozilla

2009-06-16 Thread Ricardo
You can do a normal post in an iframe, with URL encoded JSON (decode server-side), just watch the max string length for a URL. On Jun 16, 4:43 pm, Rosa Spina spina.r...@gmail.com wrote: Thanks for answer. Yes, It's a post request for a page located on a different domain:

[jQuery] Re: Need help cuz I don't get 'this'

2009-06-16 Thread Logictrap
Thanks for the tip and also the cycle plugin - It works great! -- Forwarded message -- From: Mike Alsup mal...@gmail.com Date: Jun 16, 4:17 pm Subject: Need help cuz I don't get 'this' To: jQuery (English) $(this).find('img').attr('src'); jQuery selectors accept a 2nd

[jQuery] [Validate] tabs - validate per tab - disable moving forward if invalid

2009-06-16 Thread wwor...@gmail.com
Working example: http://www.williamworley.com/jquery/createposting.php So I seemed to have figured out a way to get this to work correctly but its more code than I would like for using jquery. Basically what I've done is make it so you have form validation using Jorns Validation Plugin per tab

[jQuery] Cluetip - Fixed position using dimensions of parent element NOT calling element

2009-06-16 Thread PapaBear
Hi all. I am using cluetip successfully on a multiple-tip, dynamic site to show a preview of a customer testimonial with a link inside the tip to go to the full testimonial. The cluetip is attached to the A tag surrounding the icon (of the customer's company logo). All testimonials are inside