[jQuery] click function populating value in a hidden field

2009-10-01 Thread Chuk
Hi. I have a table set up with a .click() function on each row so that if it is clicked on, a class is added to the row thus changing the background, etc. I was wondering if there was is a way to take the id of the row that was clicked and populate a hidden field with it. What would I need to

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread James
Suppose your rows looked like this: tr id=row_1tdtext/td/tr tr id=row_2tdtext/td/tr tr id=row_3tdtext/td/tr $(tr).click(function () { $(.clicked).removeClass(clicked); $(this).addClass(clicked); var row_id = this.id.split('_')[1]; // e.g. 2 $(#hiddenField).val(row_id); //

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] Re: Form Validation errorplacement

2009-10-01 Thread slimshady
i figured out my crazy error message problem, my style had a float left on labels so even though my span tag was after the input box it would always get thrown left.

[jQuery] Re: click function populating value in a hidden field

2009-10-01 Thread Chuk
Works like a charm! Thanks so much! :)

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread Brett Ritter
On Thu, Oct 1, 2009 at 1:18 PM, Junhua Gao gaojun...@gmail.com wrote:  I use $.SortSerialize('MDEExportedList').hash.replace('[]','')   but only the first one is replaced. I thought replace() only replaced the first instance unless a regex with global flag was used. -- Brett Ritter /

[jQuery] Re: Selecting Form Element Labels

2009-10-01 Thread rob
Thanks for the help... that should work just fine. I was just hoping there was some way to utilize those linked items with a single call. On Oct 1, 12:08 pm, James james.gp@gmail.com wrote: I'm sure there are many ways to go about this. Here's one: var fieldName = 'FirstName';

[jQuery] Ajax / Form Validation

2009-10-01 Thread Dave Maharaj :: WidePixels.com
I have a form that gets submitted via AJAX, now i want to add the validation but cant make sense of it. Using malsup form script to submit, Now I would like to incorporate the jQuery Validation Plug-in found on http://jquery.bassistance.de/validate/demo/index.html I currently have this so

[jQuery] trouble calling a function

2009-10-01 Thread nate
Hello I am trying to set up a toggle to allow users to show more precision when a user clicks a button. I have a function high() that doesn't do anything when it is called. I am fairly new to jQuery so I am not to familiar with the syntax and am hoping that you can help me. var numeric_data

[jQuery] How to submit validated form?

2009-10-01 Thread slimshady
I am unable to submit the form after validation. I have tried various ways to submit but my form action is not honored. Thanks for any help http://codepad.org/yAqp0Nln

[jQuery] Re: How to submit validated form?

2009-10-01 Thread Jörn Zaefferer
Try this: submitHandler:function(form) { form.submit(); } Jörn On Thu, Oct 1, 2009 at 11:07 PM, slimshady bringmewa...@gmail.com wrote: I am unable to submit the form after validation.  I have tried various ways to submit but my form action is not honored.  Thanks for any help

[jQuery] Re: trouble calling a function

2009-10-01 Thread James
Try changing: $('.numeric', this).each(function() { to: $('.numeric').each(function() { On Oct 1, 11:06 am, nate tresbordo...@gmail.com wrote: Hello I am trying to set up a toggle to allow users to show more precision when a user clicks a button.  I have a function high() that doesn't do

[jQuery] why can't I retrieve style properties from DOM?

2009-10-01 Thread lcplben
HI everyone -- I'm not sure this is the right group to post to, I've just found this group. I notice the old alt.dhtml group has been murdered, overwhelmed by spam. I apologize if this is the wrong group. On my page: http://sellmycalls.com/cgi-bin/chain I am trying to get an element's

[jQuery] load() confusion

2009-10-01 Thread flyagaricus
I'm new to JQuery I can't get load() to work with a div class: script type='text/javascript' jQuery(document).ready(function($) { $(.Loader).load(function(){ alert(bang); }); }); /script div class=Loader img

[jQuery] Modify how name:value pairs are converted in the URL

2009-10-01 Thread acedanger
Whenever execute the following code, the URL that is formed has ? before my name and an = before my value (so the URL would be http:// url/?acct=123). I need the URL formatted so that a + is in front of the name and a : (colon) to be before the value (i.e. formatted like http://url/+acct:123;).

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread waseem sabjee
well heres my method use match to get the ammount of occurences of the instance. for loop str.replace and replace each instance. On Thu, Oct 1, 2009 at 10:46 PM, Brett Ritter swift...@swiftone.org wrote: On Thu, Oct 1, 2009 at 1:18 PM, Junhua Gao gaojun...@gmail.com wrote: I use

[jQuery] Re: Modify how name:value pairs are converted in the URL

2009-10-01 Thread James
You can either (1) modify the jQuery library to do that, or (2) in your url parameter just hard-code it in the format that you want and insert the variables in there also without using the data parameter (recommended). On Oct 1, 10:58 am, acedanger acedange...@gmail.com wrote: Whenever execute

[jQuery] Re: load() confusion

2009-10-01 Thread James
load() is suppose to take a url as the first parameter. http://docs.jquery.com/Ajax/load On Oct 1, 8:47 am, flyagaricus flyagari...@gmail.com wrote: I'm new to JQuery I can't get load() to work with a div class: script type='text/javascript'         jQuery(document).ready(function($) {    

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread waseem sabjee
heres an interesting way of doing var x = mystring.length; for(x; x 0; x--) { var s = mystring[x]; // if this character is an instance of the character you want to replace if(mystring.match(/[]/) // replace it mystring.replace(/[]/, replacement); } On Thu, Oct 1, 2009 at 11:23 PM, waseem

[jQuery] Re: trouble calling a function

2009-10-01 Thread nate
Excellent! that works. Thanks for the fast response. Nate

[jQuery] Combining old Tabs design with new Progress Bar

2009-10-01 Thread ripcurlksm
I love and use the old jQuery Tabs on jquery 1.2.3: [url]http://psylicyde.com/misc/tabs-test/[/url] I want to integrate the new Progress Bar UI feature on jQuery 1.3.2 and jQuery UI 1.7.2 : [url]http://psylicyde.com/misc/progress-bar/[/url] When I combine then however, the new tab style of

[jQuery] jQuery UI Portlets Cookies

2009-10-01 Thread craigeves
Please can someone help? I am using the jQuery UI (sortable) Portlets code - but I want to use the jQuery cookies plugin to remember the order of the portlets. I don't know where to start - and searching the net for an answer only brings up sortable ul and li. Please help. Code: script

[jQuery] Re: keeping table header fix

2009-10-01 Thread Jack Killpatrick
bump... anyone know? If there's no nice css way, maybe a jquery way? Would be nice if overflow:auto had an overflow:horizontal/vertical option, I think. Thx, Jack Jack Killpatrick wrote: That's a neat trick I haven't tried before. Is there an easy way to deal with (as in hide/remove) the

[jQuery] Re: Modify how name:value pairs are converted in the URL

2009-10-01 Thread acedanger
Thanks for the feedback. I was considering doing the 2nd method you've described but I wanted to make sure I wasn't reinventing the wheel by doing so. On Oct 1, 5:27 pm, James james.gp@gmail.com wrote: You can either (1) modify the jQuery library to do that, or (2) in your url parameter

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
James: there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery onto that (http://docs.jquery.com/Events/load#fn) to original poster: if I target the IMG, then it works fine, but how come it doesn't work with the div? because div's

[jQuery] Re: why can't I retrieve style properties from DOM?

2009-10-01 Thread MorningZ
I'm not sure this is the right group to post to well, considering this is the jQuery group, and your post has absolutely zero to do with the framework, how is there any question in your mind that this is the right/wrong group ? On Oct 1, 2:27 pm, lcplben b...@sellmycalls.com wrote: HI

[jQuery] Re: (autocomplete) help about extraparams

2009-10-01 Thread Otniel Zebua
Thanks for your replies. I know that in the example, there is a server-side code called search.php that list all of the autocomplete list. And in that files the words that we type was get by $_GET['q']. Now my problem is, as I mentioned before, that it can pass the country ID with extra params,

[jQuery] Re: (autocomplete) help about extraparams

2009-10-01 Thread MorningZ
First off, you should use Firefox and Firebug (or Chrome/Safari with their respective Developer Consoles) to look at the URL That the autocomplete call actually calls... the extraParams get appended onto the URL as a query string value... there's no reason why $_GET wouldn't work to get the

[jQuery] Re: load() confusion

2009-10-01 Thread James
MorningZ, Thanks for the correction. I've never had to use it and overlooked it. :) On Oct 1, 2:38 pm, MorningZ morni...@gmail.com wrote: James:  there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery onto that

[jQuery] Re: (autocomplete) help about extraparams

2009-10-01 Thread James
Yep. In my experience, I think the only time I found it not to send any extra param is if the value of the param is empty (or undefined, I believe). In the example, if: $(#country).val(); returns nothing. pragard, You might want to try to test it with a hard-coded value: extraParams: {

[jQuery] Re: (autocomplete) help about extraparams

2009-10-01 Thread Otniel Zebua
Ok, I have got it with $_GET. But now I have another problem, if I choose England for the country, then I press a in autocomplete input box, then $_GET['country'] value will be GB in the server-side code. But when I choose Italy for the country, then I press a again in autocomplete input box then

[jQuery] IE7 does not play nice with $.load

2009-10-01 Thread Matt Wilson
It seems like IE7 will not actually make ajax requests unless I use $.ajax({cache:false}). I really like the $.load method though because of how it combines selecting the dom node to update, downloading the page, and then plugging it in. Is there some easy way of forcing IE to make ajax calls?

[jQuery] (autocomplete) multiple inputbox using same autocomplete function

2009-10-01 Thread Amit
code at the bottom is working fine .. wherein data is coming from database via postcode.php in following format : 2221|BLAKEHURST|NSW 4401|ACKLAND|QLD 2221|BLAKEHURST|NSW 4401|ACKLAND|QLD 2221|BLAKEHURST|NSW 4401|ACKLAND|QLD Now issue is I have multiple postalcode, city and state input box in

[jQuery] How To use getJSON?

2009-10-01 Thread Colossus
h...@all. I have a little problem with JQuery and JSON, because it's my first JSON testing Project. In the documentation i found this: http://docs.jquery.com/Ajax/jQuery.getJSON But i do not understand how it works with an JSON array. :( It's an other JSON structure then mine. I simply want to

[jQuery] autocomplete click send focus back to input

2009-10-01 Thread travisjbeck
are there any callbacks for me to hook into in order to send the focus (); back to my input box when someone selects or clicks and autocomplete item?

[jQuery] Stumped. 1.3.2 breaks this script

2009-10-01 Thread stilfx
I was reviewing this post.. http://blog.reindel.com/2007/02/02/use-jquery-expressions-and-ajax-to-browse-an-xml-file/ ..on browsing an XML file with jQuery (a great learn, btw). I'm trying to use the same script, except updated to jQuery 1.3.2 - but it's not initially showing the first few

[jQuery] jQuery Navigation problems

2009-10-01 Thread ZKM
I have a website that has very large UL navigation created with jQuery and every time you goto the page it flashes the entire UL for a split of a second. So what I want to do is find a way to make it to do I think is hide the UL until the CSS and jQuery is loaded than display the menu. If anyone

[jQuery] Re: (autocomplete) multiple inputbox using same autocomplete function

2009-10-01 Thread Amit
I know that we can use multiple selector in autocomplete function but we can't access them in result function. On Oct 2, 11:30 am, Amit amit.aggar...@gmail.com wrote: code at the bottom is working fine .. wherein data is coming from database via postcode.php in following format :

[jQuery] Re: keeping table header fix

2009-10-01 Thread Karl Swedberg
have you tried overflow-y: auto; ? more information: https://developer.mozilla.org/en/CSS/overflow-x --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 1, 2009, at 8:25 PM, Jack Killpatrick wrote: bump... anyone know? If there's no nice css way, maybe a

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread Karl Swedberg
On Oct 1, 2009, at 5:34 PM, waseem sabjee wrote: heres an interesting way of doing var x = mystring.length; for(x; x 0; x--) { var s = mystring[x]; // if this character is an instance of the character you want to replace if(mystring.match(/[]/) // replace it mystring.replace(/[]/,

[jQuery] Re: How To use getJSON?

2009-10-01 Thread James
In your PHP, you can do this: $data = array('/uploads/Argentina.gif', '/uploads/Australia.gif'); echo json_encode($data); exit; In your JS code for your getJSON callback: function(data) { $.each(data, function(i, path) { alert(i+': '+path);

[jQuery] Form validation

2009-10-01 Thread Dave Maharaj :: WidePixels.com
I cant get the validation in my form to work. Using malsup to sumbit and trying to add validate.js plugin but it wont work. I can submit the form on its own but adding the validation breaks it. I followed the examples for the validate but what about bind submit? Surely someone has sumbitted a

[jQuery] Re: Ajax / Form Validation

2009-10-01 Thread James
Here's a simplified version of what you want to do: $('#testForm').bind('submit', function() { $(this).validate(validation_options); var valid = $(this).valid(); if (valid) { // do your ajax } }); var validation_options = { // set your options here }; On Oct 1, 10:52 

[jQuery] Re: Form validation

2009-10-01 Thread James
I've replied to your other thread: http://groups.google.com/group/jquery-en/browse_thread/thread/80fbb4ae7b9d7c88 On Oct 1, 4:38 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I cant get the validation in my form to work. Using malsup to sumbit and trying to add validate.js

[jQuery] Re: Ajax / Form Validation

2009-10-01 Thread Dave Maharaj :: WidePixels.com
This is my script now. script type=text/javascript $(document).ready(function() { $('#testForm').bind('submit', function() { $(this).validate(validation_options); var valid =

[jQuery] Re: load() confusion

2009-10-01 Thread Michael Rowe
Ok, so is there a way with javascript to fire a function when a div is finished loading it's contents? On Thu, Oct 1, 2009 at 8:38 PM, MorningZ morni...@gmail.com wrote: James: there is also a JavaScript event called load for certain DOM objects.. and consequently the ability to wire jQuery

[jQuery] Re: IE7 does not play nice with $.load

2009-10-01 Thread Dave Methvin
Is there some easy way of forcing IE to make ajax calls? You can use the old trick of adding a random number to the end of the url. It would probably also work to have the server return a Cache- Control http header, if you can do that.

[jQuery] Re: jQuery Navigation problems

2009-10-01 Thread Scooby
How are you hiding your UL's? From my experience, hiding them with css is faster than jQuery.. I just hide them using both.. Seems to work fine for me.. On Oct 1, 8:41 pm, ZKM zachschnei...@gmail.com wrote: I have a website that has very large UL navigation created with jQuery and every time

[jQuery] Re: load() confusion

2009-10-01 Thread MorningZ
No... as javascript doesn't fire anything to listen to for that On Oct 1, 11:30 pm, Michael Rowe flyagari...@gmail.com wrote: Ok, so is there a way with javascript to fire a function when a div is finished loading it's contents? On Thu, Oct 1, 2009 at 8:38 PM, MorningZ morni...@gmail.com

[jQuery] Re: How To use getJSON?

2009-10-01 Thread MorningZ
php JSON (encoded) Result: [\/uploads\/Argentina.gif,\/uploads\/Australia.gif,\/uploads\/ Brazil.gif,\/uploads\/Cameroon.gif] That is an array, not a JSON object (http://en.wikipedia.org/wiki/ JSON) Two completely different things On Oct 1, 10:32 pm, James james.gp@gmail.com wrote:

[jQuery] Re: How To use getJSON?

2009-10-01 Thread Michael Geary
It's valid JSON. You can check it on www.jsonlint.com. JSON can be either an object or an array. -Mike On Thu, Oct 1, 2009 at 9:50 PM, MorningZ morni...@gmail.com wrote: php JSON (encoded) Result: [\/uploads\/Argentina.gif,\/uploads\/Australia.gif,\/uploads\/

<    1   2