[jQuery] Re: Ajax post on save dialog box

2009-09-29 Thread ranga pathmasiri
Hi Please try this var content = jQuery.trim(tinyMCE.get('editor').getContent()); $.post(comments.php, { do : editcomment , c : cid , pagetext : content }, function(data){ }); Best Regards Ranga On Tue, Sep 29, 2009 at 9:48 AM, lionel28 lmarte...@haitiwebs.net wrote:

[jQuery] Re: File upload - json result ERRORZ!

2009-09-29 Thread Flynsarmy
The problem was due to me not wrapping the result in a textarea This is not a bug and is not a problem with the jquery form plugin :)

[jQuery] Re: How to handle dynamic clicks?

2009-09-29 Thread lionel28
Hi Charlie. In a page I have a lot of entries and I am onclick do an edit. So each one must have a unique id. the split allows me to get the id $(document).ready(function() { $('a[id^=doedit_x]').live('click', function(event) { var fullid = this.id; var split = fullid.split(_); var

[jQuery] Re: Ajax post on save dialog box

2009-09-29 Thread lionel28
hi, Firebug was telling me that editcomment was not defined and the dialog was freezing. So I put editcomment, cid and pagetext in bracket and the dialog box updated the div, closed but database was not updated Thanks lionel28 wrote: Hi, I am loading tiny Mce editor in a dialog box

[jQuery] Re: autocomplete, extraParams and $(this)

2009-09-29 Thread patrickk
I would like to send the ID of the autocomplete-field to the ajax- script. I thought that $(this) refers to the input-field (having my initial example in mind). isn´t it possible to use $(this) within the autocompleter? how would you pass the ID of the current autocomplete-field to the

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
Hi Ryan, That only affects the child of the parent. What I want to do is this: ul liLink 1/li liLink 2 *This is the link I want to add a class to* ul liLink 2a/li liLink 2b/li *This is the active link* liLink 2c/li /ul /li liLink 3/li /ul Rather than affecting a descendent/child of

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
$(li a).click(function(){ $(this).parents(ul).parents(li).addClass(className); }); osu wrote: Hi Ryan, That only affects the child of the parent. What I want to do is this: ul liLink 1/li liLink 2 *This is the link I want to add a class to* ul liLink 2a/li liLink 2b/li *This is the

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
Thanks Liam, but that's not working... Not sure why .click is in your example? Am I right in thinking by adding .parents to the end of each tag in your example that you're 'going down' different levels in the unordered list? This is what I have: $(li a).click(function(){

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
I'm assuming you posted an example list and the real list does contain a tags? I'm also assuming you are running that script with a document ready handler? osu wrote: Thanks Liam, but that's not working... Not sure why .click is in your example? Am I right in thinking by adding .parents to

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
Hi Liam, This is the list I'm working with: ul li class=nav-path-selecteda href=#Link 1/a/li lia href=#Link 2/a/li li class=nav-path-selecteda href=#Link 3/a ul lia href=# class=nav-selectedLink 3a/a/li lia href=#Link 3b/a/li lia

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
It all works fine, except for this bit $(li ul).siblings(a).click(function(){ return false; }); there are no a tag siblings of the UL, so that will not work. I've just tested it, and when I click on a subnav link, the class is added to the LI containing Link 3, if you

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
Hi Liam, Thanks, I think I didn't make myself clear enough - rather than occurring when you click the link, I need the class to stay in place whenever a child link (i.e. Link 3a, 3b or 3c) is active. I can see the class is being applied on click, but how would I make the class stay in place?

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
oh I see, this would be better done with some server side code but this is how you could do that. Similar code, just checking for a class. $(li a.nav-selected).each(function(){ $(this).parents(ul).parents(li).children(a).addClass(nav-selected); }); osu wrote: Hi Liam, Thanks, I think

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread osu
You're a dude, thank you. I agree that it would be better server-side, but it would involve hacking the core and I'm against that kind of thing, particularly for something that is purely to satisfy a designer's poncy preference. Thanks for your help. osu On Sep 29, 11:54 am, Liam Potter

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread mattastic
Thanks very much for your replies. Could you please post the whole page code? So I can see how the javascript, html and ajax works together I'mn struggling to understand how the whole page is layed out. Thanks in advance On Sep 28, 2:18 pm, Mark Gorman dayg...@gmail.com wrote:

[jQuery] loop through multi dimensional json?

2009-09-29 Thread defdev
Hi, im sure this is a simple matter, but i cant seem to work out how to loop through a multi dimensional JSON object (where the keys are unknown). example json: { processed:false, message:External link could not be set:, message_array: { \link\: {

[jQuery] table tbody tr:last td

2009-09-29 Thread Xarem Nightslayer
hi I've a Problem: I have a table like this: table class=sortable id=res thead tr th123/th th123/th th123/th /tr /thead tbody tr

[jQuery] [superfish] How to focus on clicked menu item after menu item is clicked with jQuery ?

2009-09-29 Thread Tharindu Madushanka
Hi, I am new to jQuery and using superfish popup menu widget to create a menubar. I have only four menus and 3 of them are not drop downs. So I want to focus on the clicked menu item. How could I use jquery or some other technique to do this. Kindly help me to solve this. Thank you, Tharindu

[jQuery] Removing a table column

2009-09-29 Thread rsm7
Hello, I have a problem with removing/toggling a table column. I have the below function that works perfectly in FF3+, Chrome, Safari but fails in IE7. $.fn.toggleTableColumn = function(column){ $('tr td:nth-child('+column+'), tr th:nth-child('+column+'), col:nth-child('+column+')',

[jQuery] superfish

2009-09-29 Thread glimbeek
If I refresh my page in IE6 or IE7 I get a javascript error: Error: '_gat' is undifined. The line and the amount of chars differs at times.

[jQuery] Trying to match just the first descendent in each tree of descendents

2009-09-29 Thread Andrew Ingram
Apologies for the subject line, I'm struggling to explain the problem in a concise manner. I have the following document: body h1 class=page-editable widget=linePage Title Goes Here/h1 div widget=repeat-area div widget=repeat

[jQuery] Re: Prevent jagged text in IE

2009-09-29 Thread daves_essay
Although it is not the most elegant of solutions, I found that adding position:relative to the element in question preserved the smoothness of the div's content when using fadeTo. Hope this helps. Ben On Sep 26, 12:56 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I have

[jQuery] passing html to browser

2009-09-29 Thread Jasons
I am currently using the .after to insert html code into the website. In the html code I am passing it I have div's with id's and classes. I have other jquery functions which look for those id's and classes to perform actions when the mouse moves over it, but it does not perform the action after

[jQuery] jcarousel - hide/animate buttons

2009-09-29 Thread dichterDichter
Hi. Im trying to animate the prev/next buttons. my aim is to make them invisible when not hovering the carousel. first i tried to make the images invisible and visible when howering, thats working. i have a problem with hiding the next/prev buttons. --- $(document).ready(function(){

[jQuery] Re: passing html to browser

2009-09-29 Thread Mike Alsup
I am currently using the .after to insert html code into the website. In the html code I am passing it I have div's with id's and classes. I have other jquery functions which look for those id's and classes to perform actions when the mouse moves over it, but it does not perform the action

[jQuery] AutoComplete

2009-09-29 Thread GeeBee
I need to add an icon to the end of the field that automatically opens the selection box. This is useful for smaller lists where the user may wish to scroll through the list instead of guessing the first letter. What javascript function can i call to emulate the min number of chars has been

[jQuery] what does this selector mean ?

2009-09-29 Thread runrunforest
Hi, $('div', this) what does that mean ?

[jQuery] Re: what does this selector mean ?

2009-09-29 Thread MorningZ
Whatever this is in that case, it's the context to look for any div (jQuery will only select div's that are ancestors of this in the DOM tree)

[jQuery] Re: superfish

2009-09-29 Thread glimbeek
I may not have to do with the Superfish module, did some testing and it looks like the Google tracking code is causing the errors... not a 100% sure though. On 29 sep, 10:28, glimbeek gvanlimb...@gmail.com wrote: If I refresh my page in IE6 or IE7 I get a javascript error: Error: '_gat' is

[jQuery] autocomplete

2009-09-29 Thread Asa Carter
Hi My php is returning via json: a string (name) which is displayed in the text box an int (location_id) When the form is posted I would also like to post 'location_id' as well as / instead of 'name'. My js is below. what do I need to do to be able to post the location_id.

[jQuery] simple click drop down menu

2009-09-29 Thread runrunforest
Hi, I need help to close the ul back up when i click on the white space or on the options link. This is what i've got so far !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head script

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread mattastic
I've had ago at a test ajax page, However, I'm having trouble getting the lopading graphic to show. MY code is below, can anyone help? html head script type=text/javascript src=autocomplete/scripts/ jquery-1.2.6.min.js/script script type=text/javascript function register(){

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread Mark Gorman
this is how you do a post with loading at the top middle ish html head style .loading { display: none; position: absolute; top: 0px; left: 50%; } /style script src=jquery.js language=Javascript type=text/javascript/ script /head body script language=Javascript

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread Mark Gorman
yay for it not showing what you said before i posted, try on your start and stop doing $(document).ajaxStart(); for some reson is can be quite silly with that also use $(document).ready(); its nicer that way and avoids unexpected issues On Sep 29, 1:52 pm, Mark Gorman dayg...@gmail.com wrote:

[jQuery] Re: Checking/unchecking parent checkbox

2009-09-29 Thread evanbu...@gmail.com
Anyone? I've been working on this for hours and can't come up with a solution. Thanks On Sep 28, 3:13 pm, evanbu...@gmail.com evanbu...@gmail.com wrote: I thought this would do it but no luck $(this).parents(checkbox:first).attr('checked', false); On Sep 28, 2:42 pm, evanbu...@gmail.com

[jQuery] how to run code when validation fails

2009-09-29 Thread slimshady
How can I popup an alert when validation fails please ? (for testing purposes) http://codepad.org/O0iMCyXo Thanks so much.

[jQuery] Selector and special characters

2009-09-29 Thread loicg
Hi, I want all my form inputs which name start with fieldInstanceGroups [0].fieldInstances[1]. I try with jQuery('input[name^=fieldInstanceGroups[0].fieldInstances [1]]') but any result. Then I try some requests, with \\ to escape special characters but I have any result.

[jQuery] Re: How do I extract a part of received data

2009-09-29 Thread FernandoCE
Hello everybody, i have this code: $.ajax({ type: GET, url: latest-tweet.php, cache: false, success: function(html){ } }); And my latest-tweet.php returns: div class=last style=display:none div class=user?=$update-user-name?/div div

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-29 Thread Thiago Miranda de Oliveira
My code is like that: rules: { 'email_address': { required: true, email: true, rangelength: [3, 60], remote: { url: 'someurl.php', dataType: 'json',

[jQuery] Re: Prevent jagged text in IE

2009-09-29 Thread Dave Methvin
This is a nice simple solution to a common cross-browser issue, so wouldn't it be reasonable for this to be added to the standard jQuery animate method? The extra size is minimal. That solution assumes no opacity was specified in a stylesheet. style #glory { opacity: 0.5; filter:

[jQuery] Re: simple click drop down menu

2009-09-29 Thread Flo
Hello, Superfish jQuery plugin is really great to construct a simple manu. But it will work on hover event, not click : http://users.tpg.com.au/j_birch/plugins/superfish/ If you don't want to use this, you have to do something like that : // to close your ul when clicking on a li $('.menu ul

[jQuery] Re: ClueTip problem on initially hidden fields

2009-09-29 Thread Sarah B.
Thanks Karl! The leftOffset did the trick. On Sep 18, 8:01 pm, Karl Swedberg k...@englishrules.com wrote: Hi Sarah, Not sure what's causing that issue, but one workaround is to set the   leftOffset option to 30 or so:    $('span.tooltip[title]').cluetip({      splitTitle: '|',      

[jQuery] Re: Selector and special characters

2009-09-29 Thread MorningZ
Is changing the name values a possibility? You're doing nothing but asking for trouble (overly complicated selector syntax and poor performance) with your current naming convention On Sep 29, 9:14 am, loicg lguer...@gmail.com wrote: Hi, I want all my form inputs which name start with

[jQuery] Re: Sortable inside an accordion

2009-09-29 Thread Pedro
Sorry Karl. Thanks for answering! On Sep 15, 11:43 pm, Karl Swedberg k...@englishrules.com wrote: Hi Pedro, That sounds like a great question for the jQuery UI Google Group.   Would you mind posting it there?http://groups.google.com/group/jquery-ui/ Thanks, --Karl Karl

[jQuery] Binding a unique single and double click command

2009-09-29 Thread Sam
I'm trying to write some jQuery to do the following: If a user clicks once on an object, do X. If a user clicks twice on an object, do Y, but not X. I've been having some trouble with this as, obviously, a double-click will trigger the single-click twice. Here is a failed attempt:

[jQuery] How do I stop my div from sliding?

2009-09-29 Thread jpearson311
Hi all. JQuery noob here. I'm building a site right now that has a left column navigation and the navigation is nested inside a div, which is nested inside a table cell (i.e., td). I'm using JQuery to make it so when the user scrolls down the page, the div slides down with smoothly and always

[jQuery] help read code

2009-09-29 Thread runrunforest
Hi, this code is from a dropdown box, where clicking on the a.signin will open or close the box. So I don't really get how the syntax below work $(document).mouseup(function(e) { if($(e.target).parent(a.signin).length==0) {

[jQuery] Re: Modal Dialog with a datepicker inside, works one time, then never...

2009-09-29 Thread Alex Barrios
2009/9/28 alexbariv alexba...@gmail.com Hi everybody. Let me introduce myself. I'm a developer located in Venezuela (latin america), and i have like 2 years using Jquery in every project that came to my hands. Its a pleasure to meet you all. For begin, i have a little problem that i

[jQuery] Re: help read code

2009-09-29 Thread Nalum
.mouseup(); takes a function as it's argument. So the user is creating a function while passing it through to .mouseup(); It could also have been done like this. $(document).mouseup(mouseUpFunction); function mouseUpFunction(e) // e is the event { if($(e.target).parent(a.signin).length==0)

[jQuery] How I made $7000 last month

2009-09-29 Thread omario
Hello, I just want to tell you about my new method for earning money online, it is so simple and easy, and you can check it here: http://www.bestusd.com Best regards,

[jQuery] numeric formatter

2009-09-29 Thread factoringcompare.com
Hi, Newbie learning jQuery. Failing miserably. I am trying to implement http://decorplanit.com/plugin/ autoNumeric(). Automatically adds commas to numeric fields. Got the plugin working fine. Need code to copy contents of one text box to another (on blur) and then remove commas by running

[jQuery] Re: How do I stop my div from sliding?

2009-09-29 Thread Jon Banner
as soon as i scroll your demo, the div disappears off the top of the page in firefox and IE7 From the behaviour you describe i think this might be useful to you http://www.cssplay.co.uk/layouts/fixed.html best. Jon 2009/9/29 jpearson311 jpearson...@hotmail.com Hi all. JQuery noob here.

[jQuery] Re: Modal Dialog with a datepicker inside, works one time, then never...

2009-09-29 Thread Nalum
Hello Alex, Is input type=text name=date id=idFIV readonly=true size=10 class=calendario style=border:none loaded in using ajax? If it isn't then you don't need to put the date picker into a function, you could do the following: http://pastebin.com/m4ddcd98b If it is loaded with ajax then you

[jQuery] jCarouselLite - set to scroll if...

2009-09-29 Thread john.mbiddu...@googlemail.com
hi, I am using the jCarouselLite which I got from a href=http:// www.webdesignbooth.com/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/here/a in my webpage and would like to be able to start the scroll if the text that is inside the div falls outside the height of it?!

[jQuery] $(form).submit() validation and multiple forms

2009-09-29 Thread Jeremy
I have built out a fairly rhobust app using jquery and jquery-ui all was going well until we started to bring different screens together inside a tabbed interface. Seems that now when we execute our validation code on one form its checking the fields of all other forms on the page. All of my

[jQuery] jCarouselLite - set to scroll if...

2009-09-29 Thread john.mbiddu...@googlemail.com
hi, I am using the jCarouselLite which I got from here in my webpage and would like to be able to start the scroll if the text that is inside the div falls outside the height of it?! Please help!

[jQuery] Re: How do I stop my div from sliding?

2009-09-29 Thread Nalum
I agree with Jon, you would be better off using css fixed style for this rather than javascript. On Sep 29, 5:12 pm, Jon Banner banali...@googlemail.com wrote: as soon as i scroll your demo, the div disappears off the top of the page in firefox and IE7 From the behaviour you describe i think

[jQuery] Re: Checking/unchecking parent checkbox

2009-09-29 Thread Charlie Griefer
try: $(this).siblings('input[type=checkbox]').attr('checked',''); $(this).siblings('input[type=checkbox]').attr('checked','checked'); On Tue, Sep 29, 2009 at 6:09 AM, evanbu...@gmail.com evanbu...@gmail.comwrote: Anyone? I've been working on this for hours and can't come up with a solution.

[jQuery] Re: How do I stop my div from sliding?

2009-09-29 Thread jpearson311
Sorry about that, I've been working on it. Try it again and lower your resolution to at least 1024x768 and scroll all the way down. You'll see the overflow that I'm talking about. If I use CSS, I won't get the smooth animation or? On Sep 29, 12:12 pm, Jon Banner banali...@googlemail.com wrote:

[jQuery] Re: $(form).submit() validation and multiple forms

2009-09-29 Thread Nalum
Try changing within to $('form'). I haven't come across within so I don't know anything about it. On Sep 29, 4:45 pm, Jeremy jeremy.darl...@gmail.com wrote: I have built out a fairly rhobust app using jquery and jquery-ui all was going well until we started to bring different screens together

[jQuery] Re: $(form).submit() validation and multiple forms

2009-09-29 Thread Jeremy Darling
Sorry, guess it would help if I explained within :). The actual full method is: function updateControls(within){ within = within?$('#'+within):$(document); within.submit(validateForm); within.find(.datepicker).datepicker(); within.find(form).submit(validateForm);

[jQuery] Re: Apply CSS to dynamic content after it loads

2009-09-29 Thread Sloan
Hi Charlie, I got it working. I had a typo in the css after the selector. Thanks though! Sloan On Sep 28, 1:51 pm, Charlie Griefer charlie.grie...@gmail.com wrote: you can chain on an .addClass('myClassName') ?

[jQuery] Re: $(form).submit() validation and multiple forms

2009-09-29 Thread Nalum
try changing this: within = within ? $('#' + within) : $(document); to this: within = typeof(within) != 'undefined' ? $('#' + within) : $ (document); On Sep 29, 5:33 pm, Jeremy Darling jeremy.darl...@gmail.com wrote: Sorry, guess it would help if I explained within :).  The actual full method

[jQuery] Re: autocomplete

2009-09-29 Thread Nalum
is return $.map(data, function(row) passing the json variable to data or row? it looks to me like row is an empty variable. On Sep 29, 1:13 pm, Asa Carter asa_car...@hotmail.com wrote: Hi My php is returning via json: a string (name) which is displayed in the text box an int

[jQuery] Re: superfish

2009-09-29 Thread Nalum
Goolge tracking code is the cause of that error, I've come across this before and have contacted google about it and they said it was something to do with a script on my page but the only script on my page was the google tacking code. On Sep 29, 12:52 pm, glimbeek gvanlimb...@gmail.com wrote: I

[jQuery] Re: Mouseout event problem

2009-09-29 Thread James A
Karl, That has done it! Thank you so much, really appreciate your help/ advice. Best, James On Sep 28, 7:17 pm, Karl Swedberg k...@englishrules.com wrote: Seems the mouseover/mouseout events are being triggered multiple   times. You probably want to stop them from triggering if #panel is  

[jQuery] Re: table tbody tr:last td

2009-09-29 Thread Nalum
In the code you have pasted there you do not close your tbody tag could this be the case in your actual code? On Sep 29, 7:18 am, Xarem Nightslayer i...@ueli-banholzer.com wrote: hi I've a Problem: I have a table like this: table class=sortable id=res         thead                 tr  

[jQuery] Re: Modal Dialog with a datepicker inside, works one time, then never...

2009-09-29 Thread Alex Barrios
2009/9/29 Nalum mallon.l...@gmail.com: Hello Alex, Is input type=text name=date id=idFIV readonly=true size=10 class=calendario style=border:none loaded in using ajax? If it isn't then you don't need to put the date picker into a function, you could do the following:

[jQuery] SuperFish: Auto width of main menu when vertical

2009-09-29 Thread Wayne
Using a vertical menu and supersubs so that the submenus all have the correct width. The only thing missing is I need the main vertical menu to size itself to the correct width too! How can we make supersubs also correctly autosize the main items on the vertical menu?

[jQuery] Using variables in an Attribute filter

2009-09-29 Thread roi
I am trying to do something that seems very simple, but can not get to work! Basically, I want to find an element whose ID equals a certain value, as represented by a variable. The variable is derived from a dropdown list. Here is my code: $(document).ready(function(){

[jQuery] SimpleModal - Multiple Dialogs

2009-09-29 Thread Adriano Caldeira
I'm using the plugin SimpleModal and I wonder if you can open a modal and within the same modal opening another, only when you close the second shift did not want to close all, as it occurs today when I call the $.modal.close ();. Thanks

[jQuery] Re: Using variables in an Attribute filter

2009-09-29 Thread Charlie Griefer
$('p[id=' + myClr + ']').addClass('bold'); you need to concatenate the variable in with the literal text so it can be evaluated. On Tue, Sep 29, 2009 at 10:59 AM, roi roi.agn...@gmail.com wrote: I am trying to do something that seems very simple, but can not get to work! Basically, I want

[jQuery] Re: Using variables in an Attribute filter

2009-09-29 Thread roi agneta
Thanks! That did the trick. Very much appreciated. Roi On Tue, Sep 29, 2009 at 12:09 PM, Charlie Griefer charlie.grie...@gmail.com wrote: $('p[id=' + myClr + ']').addClass('bold'); you need to concatenate the variable in with the literal text so it can be evaluated. On Tue, Sep 29,

[jQuery] Re: $(form).submit() validation and multiple forms

2009-09-29 Thread Jeremy Darling
I found my very stupid mistake. I wasn't checking the type within updateControls when I setup the submit event. Thus if I used a DIV that contained the form two submits got fired, one for the div and one for the form. Of course the DIV isn't really a form so it iterates the entire document.

[jQuery] Strip out all of the commas in numeric text field

2009-09-29 Thread factoringcompare.com
Hi, New to jQuery. I would like to strip out all of the commas in numeric text field called test on blur. New to jQuery. I have had a go at coding would it work? $('input#test').val($('input#test').val().replace(/,/g,'')); and ... how do i calll it?

[jQuery] Re: help with event binding on an ajax calendar

2009-09-29 Thread MJ
I'm the callback function of the ajax request to add the event handlers again using namespaces seems to have cleared up the other issue thanks anyway On Sep 25, 3:05 pm, mjatharvest m...@harvestmedia.com wrote: I'm having trouble binding the same event to two different links in the html

[jQuery] How works the search method in autocomplete plugin?

2009-09-29 Thread khin
It is called after when? call result function? Thx for the replies.

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread Charlie Griefer
$('#test').blur(function() { $(this).val($(this).val().replace(/,/g,'')); }); You call it by telling jQuery to listen for the blur() event on the element with id=test (line 1 above). Your code was correct, but you can replace the $('input#test') with $(this), since $(this) will be a

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread factoringcompare.com
Thank you. Could you elaborate on the code so that I can track it through and understand On Sep 29, 8:49 pm, Charlie Griefer charlie.grie...@gmail.com wrote: $('#test').blur(function() {     $(this).val($(this).val().replace(/,/g,'')); }); You call it by telling jQuery to listen for the

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread Charlie Griefer
jQuery is based on find something - do something. The find something is largely done with selectors (similar to CSS selectors). you want to find the element with the id=test. that would be $('#test') you want it to do something when that element receives a blur event... $('#test').blur(); --

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-29 Thread James
Yes, I've did the change you mentioned and it did work as expected afterwards. I'm also curious as to what the purpose of it is also. I haven't really delved into it but it looked like a message cache. On Sep 29, 3:57 am, Thiago Miranda de Oliveira thiago...@gmail.com wrote: My code is like

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread factoringcompare.com
Thank you. JQuery is completly new to me. OK how des the belo code look? script $(document).ready(function(){ $(#test').blur(function () { $('#test').val($('#test').val().replace(/,/g,'')); }); }); /script On Sep 29, 9:17 pm, Charlie Griefer charlie.grie...@gmail.com

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-29 Thread Thiago Miranda de Oliveira
I thought in cache too, but I think the plugin author implemented this but didn´t test it on such a particular case. On Sep 29, 5:22 pm, James james.gp@gmail.com wrote: Yes, I've did the change you mentioned and it did work as expected afterwards. I'm also curious as to what the purpose

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread Charlie Griefer
Because it's completely new to you is exactly why you should be reading the docs :) Does the code below run? On Tue, Sep 29, 2009 at 1:27 PM, factoringcompare.com firstfacto...@googlemail.com wrote: Thank you. JQuery is completly new to me. OK how des the belo code look? script

[jQuery] fade and rotate text

2009-09-29 Thread koolkat
I am looking for the best way to rotate the displayed text . Text should also fade in and out. I have tried the innerfade plugin but was wondering what else might be available.

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread factoringcompare.com
No it doesn’t work. I’ll work it out. script $(document).ready(function(){ $(input).blur(function () { $('#test').val($('#test').val().replace(/,/g,'')); }); }); /script On Sep 29, 9:42 pm, Charlie Griefer charlie.grie...@gmail.com wrote: Because it's completely new to

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread Charlie Griefer
Works for me. Bear in mind you're selecting every input on the page by virtue of $('input'). Bear in mind further that on blur for every input, you're telling jquery to remove the commas from the element with id=test (by virtue of $('#test'). Do you have an element with id=test ? On Tue, Sep

[jQuery] Re: autocomplete

2009-09-29 Thread Asa Carter
It's working :) $(#quick-search).autocomplete('/includes/search.php',{ width: 300, scroll: false, dataType: json, parse: function(data){ return $.map(data, function(row){

[jQuery] Re: loop through multi dimensional json?

2009-09-29 Thread Michael Geary
The value of your message_array property is a quoted string, not an object. Note what $.each is giving you: every character of the string. How are you generating the JSON data? That's where you need to fix this. With the extra newlines removed, your JSON data looks like this: { processed:

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread factoringcompare.com
Great advice and assistance got me looking in the right direction. Thank you. Got this code working: $(document).ready(function(){ $(# test).blur(function () { $('#test').val($('#test').val().replace(/,/g,'')); }); }); On Sep 29, 9:58 pm, Charlie Griefer

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-29 Thread James
You wanna go ahead and submit something in the Validation plug-in bug tracker for this (if it doesn't exist)? On Sep 29, 10:31 am, Thiago Miranda de Oliveira thiago...@gmail.com wrote: I thought in cache too, but I think the plugin author implemented this but didn´t test it on such a

[jQuery] Re: Strip out all of the commas in numeric text field

2009-09-29 Thread James
It'll be good practice when you start to use $(this) inside the callback function. Here's essentially the same thing: $(document).ready(function(){ $(#test).blur(function () { // here, $(this) is a reference to $(#test) $(this).val( $(this).val().replace(/,/g,'') ); });

[jQuery] Re: passing html to browser

2009-09-29 Thread James
In most browsers, directly viewing the source after dynamically adding content will not have the new content's HTML show up. As you mentioned, using Firebug you can see the new source, and it works great. Additionally, if you have the Firefox's Web Developer Toolbar plug-in, you can View

[jQuery] jQuery bugs in IE7

2009-09-29 Thread Zach
I have a page that works great in Firefox but alas, not in IE 7. I'm sure there is some minimum code changes to make, but I'm not exactly sure what and or where to do it. There should be rounded corners on the menus and the large pictures rotating on the right as well. Look at in firefox and you

[jQuery] Re: How I made $7000 last month

2009-09-29 Thread mal...@gmail.com
Hello, I just want to tell you about my new method for earning money online, it is so simple and easy, and you can check it here: http://www.bestusd.com Best regards,

[jQuery] Re: autocomplete, extraParams and $(this)

2009-09-29 Thread James
I think it's just not in the scope. I haven't looked into it. How about looping through each result set and assigning the option individually. In addition to your autocomplete initialization code, add this (not tested): $(input.vAutocompleteField).each(function() { var field = this;

[jQuery] Newbie question (Bassistance Validate) - error msg does not go away

2009-09-29 Thread mango
i am new to jquery and started using the validate plugin with jquery. I tried the demo but have problems using my own jsp form. i have added the usual $(document).ready(function() { $('#customForm').validate({ rules: { field1: required, ...} messages: {

[jQuery] Re: How to handle dynamic clicks?

2009-09-29 Thread James
You could group it together to shorten it. Makes it nicer (for me, at least) and less variables. :) var cid = this.id.split('_')[1]; On Sep 28, 9:26 pm, lionel28 lmarte...@haitiwebs.net wrote: Hi Charlie. In a page I have a lot of entries and I am onclick do an edit. So each one must have

[jQuery] Re: How to handle dynamic clicks?

2009-09-29 Thread lionel28
Nice! Thank you. I have one last issue. I am using tinymce for all the textareas. When I click on the edit link, that displays and allows me to do the ajax edit and on submit displays the change. Unfortunately, since the tinymce was already loaded when the page was first loaded, if I click on

[jQuery] Re: (Bassistance validate) Require inputs based on dropdown select

2009-09-29 Thread Andrew
Worked! Thanks James. I was so close before, and thought I was way off, but thanks to your help... On Sep 28, 7:22 pm, James james.gp@gmail.com wrote: Sorry, here's a fix of the rules ('input' is suppose to be 'select') (these are untested): options = {     rules: {         mySelect:

  1   2   >