[jQuery] Re: validate

2009-07-27 Thread Jörn Zaefferer
Take a look at the available options: http://docs.jquery.com/Plugins/Validation/validate#options The one you should start with is showErrors. The default displays the inline messages, and by overriding it, you should be able to join the error messages into a string and put that into an altert.

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Mushex Antaranian
Hi Content must be loaded before you can do any manipulations with it via js.. Or you can load content via ajax calls ( i.e. $.load() ) and modify it before appending to document.. But it isn't the most nice way to do it.. Can you explain what exactly you are trying to do ?? Btw i think you are

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Mushex Antaranian
$(document).ready(function() { /* your code */ }) -this means that code inside {} brackets will execute after DOM is loaded.. On Jul 27, 5:59 am, Mutual Designs mike.f.griffi...@gmail.com wrote: How do I prevent the content loading on my website before the Javascript loads. It seems that

[jQuery] Re: jQuery Form Validation

2009-07-27 Thread Tuppers360
Thanks for that! I thought of doing something like that but it means validating twice really so I was thinking that when the validation call is done and the field, whatever it may be is correct then it removes the span. Problem is I dont get where the plugin adds the checked class I know that it

[jQuery] Re: Unable to get the latest text/value inside a textarea

2009-07-27 Thread north
Hi, I didn't check your code, but when you write current value and old value I supposed you change those dynamically. In that you should take a look at this: http://docs.jquery.com/Events/live Cheers On 27 Jul., 05:49, JC joel.cook...@gmail.com wrote: Now, I was not expecting this. You can

[jQuery] Html images not displayed within a jQuery load - Help needed!

2009-07-27 Thread eelziere
Hi All, I have the following page: http://87.90.101.154/DesignAndCo/index.php?Itemid=38option=com_virtuemartlang=frpage=shop.product_detailsflypage=product_flypage_design_and_coproduct_id=372category_id=40manufacturer_id=24 If you move the mouse cursor over the orange Euro image, a jQuery

[jQuery] Re: Html images not displayed within a jQuery load - Help needed!

2009-07-27 Thread Sander Thalen
The first time I held the mouse over the image, the images did not display. But when I held the mouse over it again, the images showed. I saw them fading in as well, so it seems they first need to be loaded after the element is called. Hope this helps a little bit to diagnose the problem. On

[jQuery] page-sliding jQuery Javascript code not playing with DHTML page

2009-07-27 Thread utimass
Using the following code example from Scott Robbin, which simply allows for separate html pages to slide in and out of the one screen, I wanted to expand this by sliding in some DHTML. Here is the page-sliding code used: http://srobbin.com/blog/jquery-pageslide/ DHTML animated code:

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Insen
Maybe you can hide the elemets first(using css), then after the javascript loaded, modify elements and show them. This still isn't a nice way. On Jul 27, 8:59 am, Mutual Designs mike.f.griffi...@gmail.com wrote: How do I prevent the content loading on my website before the Javascript loads. It

[jQuery] Re: switching jquery tabs in code behind(C#)

2009-07-27 Thread noorul
My aspx page: script type=text/javascript $(function() { $('#date0').datepicker({ changeMonth: true, changeYear: true, yearRange: '-30:+0' }); /script div id=tabs ul

[jQuery] Problem with sorting after dragging.

2009-07-27 Thread freq
Hi, I'm using Jquery to both Drag (and drop) and sort a visual list or representation of VOIP phones. The problem is that after I have dragged (and dropped) a DIV. It will not sort at all anymore. After you have dropped for sorting, the DIV goes back to where I dropped it with dragging. I

[jQuery] Registration Point

2009-07-27 Thread sean
Hi Everyone, I am trying to get images to animate from the center in height and width. I can get the animation to work but can't find anywhere how to get it to work from the central point! Hopefully someone can help me here. Thanks Sean

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread amuhlou
I think this article may help: http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content On Jul 27, 3:51 am, Mushex Antaranian jesirobende...@gmail.com wrote: $(document).ready(function() {  /* your code */ })  -this means that code inside {} brackets will execute

[jQuery] Re: tablesorter, sort values in anchor as numerics

2009-07-27 Thread mila
I am sorry, I did not understand your answer. Do you have a solution to my problem? On Jul 26, 3:41 am, 刘永杰 liuyongjie...@gmail.com wrote: easyer. 2009/7/25 mila mshneyder...@gmail.com I have data that looks like that a href='myURL/myapp?name=mynameparam1=val'23/a a

[jQuery] [treeview] Basic documentation - but where?

2009-07-27 Thread SuneR
Hi, I have today started to mess around with the Treeview plugin, but I have not been able to find a decent documentation. Am I just looking in the wrong places? I would have thought that by going here - http://docs.jquery.com/Plugins/Treeview/treeview#options I would see all the available

[jQuery] Re: [treeview] Basic documentation - but where?

2009-07-27 Thread Jörn Zaefferer
That page as an options tab: http://docs.jquery.com/Plugins/Treeview/treeview#toptions Jörn On Mon, Jul 27, 2009 at 3:21 PM, SuneRsyko...@gmail.com wrote: Hi, I have today started to mess around with the Treeview plugin, but I have not been able to find a decent documentation. Am I just

[jQuery] Re: $(document).ready script appears to not run in IE?

2009-07-27 Thread amuhlou
glad it worked! On Jul 27, 12:15 am, Billy mail.billy...@gmail.com wrote: Thank you for that hint - I changed the CSS to display:inline, and the script now works fine on IE. :D On Jul 21, 1:13 am, amuhlou amysch...@gmail.com wrote: I don't know if this is part of the issue or not, but IE7

[jQuery] Re: Problem with sorting after dragging.

2009-07-27 Thread Dhruva Sagar
Hi, Have you tried using the connectToSortable option for draggable? Thanks Regards, Dhruva Sagar. On Mon, 2009-07-27 at 00:21 -0700, freq wrote: Hi, I'm using Jquery to both Drag (and drop) and sort a visual list

[jQuery] Re: page-sliding jQuery Javascript code not playing with DHTML page

2009-07-27 Thread utimass
correction, I got the images showing now, but not the animation. -- View this message in context: http://www.nabble.com/page-sliding-jQuery-Javascript-code-not-playing-with-DHTML-page-tp24679601s27240p24682206.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Ajax parsererror

2009-07-27 Thread TCoakley
I was able to get this to work perfectly by removing the dataType. It ran my success function and parsed as XML. Is this a bug? On Jul 24, 3:01 pm, TCoakley ebun...@gmail.com wrote: I am attempting a fairly easy ajax call within a zend framework, but am getting a parseerorr. I have validated

[jQuery] Re: jQuery Form Validation

2009-07-27 Thread Tuppers360
Well I have sorted the problem of the span when there is a sucess on the input. I have added these two lines to the success method: label.prev('form :input').addClass('valid'); $('form :input').filter('.valid').prev('label').find('span').hide(); My problem is now that when there is an on the

[jQuery] International numeric formatting on the fly with multiple rounding options

2009-07-27 Thread Bob
To all: I have created a plugin that handles International numeric formatting on the fly by using a Reg Expression. Before I release this I would appreciate comments and suggestions for improvements. Demo can be viewed here http://decorplanit.com/plugin/index.htm Thanks in advance. Bob

[jQuery] Re: Combining jQuery Objects

2009-07-27 Thread Neilski
Thanks Ricardo, that was exactly what I was looking for - just in the wrong place I guess! On Jul 23, 10:19 pm, Ricardo ricardob...@gmail.com wrote: Guess what? var e1 = $(#firstObject); var e2 = $(#secondObject); e1.add( e2 ) is exactly what you're looking for :)

[jQuery] Re: Listnav Umlauts and special chars

2009-07-27 Thread cdvrooman
Jack, taking into account the need to control the width of the alphabet list, my original suggestion of including a configurable list of valid letters (to cover accented characters), might not hold water because potentially you could have well over 26 letters depending on the language. The

[jQuery] Combine JQuery objects question

2009-07-27 Thread www.voguemalls.com
who knows if it is possible to join two jQuery objects to make a new object. For example... var e1 = $(#firstObject); var e2 = $(#secondObject); var combined = e1.add(e2); // This is the expression I'm looking for Thanks, http://www.voguemalls.com

[jQuery] inserting new record

2009-07-27 Thread Ravi Mori
Hi.. i have some doubts in usage of jqgrid. I am trying to achieve fallowing functionality. I have insert and edit functionality in same form. Now i have one field called UserName, which i don't want to edit. so for that i make it readonly as following: { name: 'UserName', index: 'UserName',

[jQuery] Re: Make width of inner div equal outer

2009-07-27 Thread Paul Collins
Hi all, I'm completely stuck and been trying to solve this all day! Any help would be greatly appreciated... Basically, I have a suckerfish type navigation. It works fine with CSS and I'm trying to add some JQuery to animate the slide-down effect. I've got that working, but I need to have the

[jQuery] Re: Advice needed on jQuery page to be built

2009-07-27 Thread Liam Potter
divs, updated using ajax. gnetcon wrote: Hello, all! Brand new to jQuery, although I have used some apps that use jQuery in it. I have a page I have to build using PHP and (preferably) jQuery. I have an immense array with anywhere from 100 to 10,000+ items in it. I'll have a page with 3

[jQuery] Re: Combine JQuery objects question

2009-07-27 Thread brian
appendTo()? What do you mean by join? On Mon, Jul 27, 2009 at 11:40 AM, www.voguemalls.comyuyuhua...@gmail.com wrote: who knows if it is possible to join two jQuery objects to make a new object.  For example... var e1 = $(#firstObject); var e2 = $(#secondObject); var combined =

[jQuery] Re: Advice needed on jQuery page to be built

2009-07-27 Thread brian
And paginate the 1st div, using AJAX to refresh it with each page for your list. On Mon, Jul 27, 2009 at 11:58 AM, Liam Potterradioactiv...@gmail.com wrote: divs, updated using ajax. gnetcon wrote: Hello, all! Brand new to jQuery, although I have used some apps that use jQuery in it. I

[jQuery] Advice needed on jQuery page to be built

2009-07-27 Thread gnetcon
Hello, all! Brand new to jQuery, although I have used some apps that use jQuery in it. I have a page I have to build using PHP and (preferably) jQuery. I have an immense array with anywhere from 100 to 10,000+ items in it. I'll have a page with 3 panes. The first pane will list the basic

[jQuery] Re: Combine JQuery objects question

2009-07-27 Thread Liam Potter
already been answered, his example was his answer. brian wrote: appendTo()? What do you mean by join? On Mon, Jul 27, 2009 at 11:40 AM, www.voguemalls.comyuyuhua...@gmail.com wrote: who knows if it is possible to join two jQuery objects to make a new object. For example... var e1 =

[jQuery] [jqModal]: sending ajax request, reload in same modal

2009-07-27 Thread jjshell
Hi, I am using jqModal (http://dev.iceburg.net/jquery/jqModal/#examples) to open a modal div (some will argue it's an overlayed div since I'm not forcing focus as code below shows). An html form is loaded using ajax. I'd like to submit this form and load the html response in the modal. Here's

[jQuery] Validation with rewriting

2009-07-27 Thread Brett Ritter
I considering input rewriting (transformation, conversion, etc, use the verb of your choice) to be an essential part of validation. This means phone numbers, SSN, dates, credit card numbers, etc should all accept loose input types and should be standardized for backend processing. (Personal Pet

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Liam Byrne
A letter count is FAR easier - just get the string's length. L Rick Faircloth wrote: Is it as simple to do a letter count? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Friday, July 24, 2009 6:53 AM To:

[jQuery] Re: My messages don't show?

2009-07-27 Thread Cesar Sanz
I takes about 3 hrs to display your first message. dunno why - Original Message - From: Jon Jackson j...@jon-jackson.co.uk To: jquery-en@googlegroups.com Sent: Sunday, July 26, 2009 5:23 AM Subject: [jQuery] My messages don't show? What could I be doing wrong? I've joined the

[jQuery] Re: Form values getting unsynchronized after ajaxsubmit [validate]

2009-07-27 Thread jackmcleod
I had 1 problem with ajaxSubmit and switched to using $.post and it solved my problems, maybe it can be an alternative for you On 26 juil, 01:49, anoop anoopkum...@gmail.com wrote: After several attempts, I have been able to consistently reproduce this problem. It appears that this is an issue

[jQuery] Re: newbie question.

2009-07-27 Thread James
This: (function() { do some stuff } )(); is known as a closure. It just runs once and it does not leave around any global variables (that is, if you also don't set any inside this function also). Compared to this: function doSomething() { // do some stuff }; The doSomething variable will exist

[jQuery] Re: My messages don't show?

2009-07-27 Thread John Resig
All messages are moderated - so it'll depend heavily upon when we're able to review them. --John On Mon, Jul 27, 2009 at 3:19 PM, Cesar Sanz the.email.tr...@gmail.comwrote: I takes about 3 hrs to display your first message. dunno why - Original Message - From: Jon Jackson

[jQuery] Re: how to delay operation

2009-07-27 Thread James
You want to do this with jQuery (Javascript)? This should be done on the server side. A user can stop Javascript, you know. If the user submits the form and doesn't wait for 30 seconds before going to another website, the email will not be sent to them... On Jul 24, 7:54 pm, bharani kumar

[jQuery] embedding media

2009-07-27 Thread Pankhuri
hi all, I'm new to jQuery. I'm making a website for a dance institute. I've to embed around 20 3-4min videos in my website's showcase and an image slideshow of 70-80 images.I've found a plugin for image slideshow that'll fetch two images at a time from a flicker or picasa a/c but i'll have to

[jQuery] Selecting the values of radio buttons

2009-07-27 Thread briggs81
This is probably simple, but I am new to jQuery and am trying to wrap my head around things. Basically what I am trying to do is a very basic quiz. I have 3 groups of radio buttons (3 questions with 4 possible answers for each question, so.. multiple choice). Each answer has a number value

[jQuery] Re: Selecting the values of radio buttons

2009-07-27 Thread Leonardo K
Something like this: $(button).click(function(){ var total = 0; $(input:radio).each(function(){ total += $(this).val(); }); alert(total); return false; }); On Mon, Jul 27, 2009 at 16:41, briggs81 brigg...@gmail.com wrote: This is probably simple, but I am new to

[jQuery] Re: Selecting the values of radio buttons

2009-07-27 Thread James
It sounds strange that value=2 would be the number of points. Usually, a value would be used to indicate a unique answer for a question. Usually, 1, 2, 3, 4 if you have 4 possible answers for one question. I would suggest using the ID or CLASS attribute, or Javascript objects to store that type

[jQuery] Re: Selecting the values of radio buttons

2009-07-27 Thread ButtersRugby
var group1 = $('input[name=group1]:checked').attr(value); var group2 = $('input[name=group2]:checked').attr(value); var group3 = $('input[name=group3]:checked').attr(value); This will grab the value of the selected radio button within each of your groups. Then do some math to add up your

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread ButtersRugby
I agree Liam. If you are doing a letter count then spaces punctuation etc all count towards your supposed limit. Word Counts are typically useless. :| On Jul 27, 3:09 pm, Liam Byrne l...@onsight.ie wrote: A letter count is FAR easier - just get the string's length. L Rick Faircloth wrote:

[jQuery] consistently unable to get return false to work, why?

2009-07-27 Thread pedalpete
So, this isn't related to any one bit of code, but it seems to be a problem I run into almost everytime i need to stop a form or link for doing what it was originally intended to do (submit). Now, i have used return false; many times, but it never works at first. I'm never sure what I end up

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread John Resig
It looks like you're using the old liveQuery plugin. Why not just use .bind() or .live()? --John On Mon, Jul 27, 2009 at 5:11 PM, pedalpete p...@hearwhere.com wrote: So, this isn't related to any one bit of code, but it seems to be a problem I run into almost everytime i need to stop a form

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
You could start by writing custom methods for each of these input types, and where possible, delegate to the existing methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod What do you think? Jörn On Mon, Jul 27, 2009 at 8:42 PM, Brett Ritterswift...@swiftone.org wrote: I

[jQuery] Re: jQuery + Ajax request

2009-07-27 Thread James
IDs in HTML are unique. You cannot have multiple elements with id=removeSearchword. You can use the CLASS attribute instead, or make unique IDs like: id=removeSearchword_1, id=removeSearchword_2, ... and then change your selector to: $([id^=removeSearchword_]).click(...); On Jul 26, 10:04 am,

[jQuery] Re: Fetching data from callback with $.ajax

2009-07-27 Thread James
If you want a global variable, set a global variable. var isAuthenticated = false; $(document).ready(function(){ // do your ajax here and set: isAuthenticated = true; // in your success callback }); On Jul 26, 5:27 am, FrenchiINLA mamali.sohe...@gmail.com wrote: I would do like that:

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 5:20 PM, Jörn Zaeffererjoern.zaeffe...@googlemail.com wrote: You could start by writing custom methods for each of these input types, and where possible, delegate to the existing methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod If I'm following

[jQuery] Problem using toggle() function on IE8

2009-07-27 Thread Vincenzo Ferme
Hi, i’m Vincenzo, a web developer from Italy. I use your ajax code following the guide ad the example: http://www.javascripttoolbox.com/jquery/?doctype=strict . I have some question about my work with your code, if can answer me. Here the question: The problem is that my code do not run on

[jQuery] how do you make superfish a global include and dynamically write 'current' class?

2009-07-27 Thread lorenzo816
I racking my brain because I can't use PHP for this site. :-( I have used all the different variations of suckerfish and superfish for a long time now. With this version to help alleviate massive updating, I want to make this one a global include and have the script pick up the page URL and

[jQuery] JQuery method to update one form element with value from another

2009-07-27 Thread OccasionalFlyer
I need to make a change to a web page that has lots of JQuery things in it, it appears. Not knowing anything about the actual use of JQuery, however, while I will start looking at the doc, can someone help me with what to look for in a 4000+ line file to find out where the value is being set

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
Having JS sanitize for the backend is somewhat dubious, I'd not go there, but you probably don't want to discuss that. Anyway, a validation method has access to the validate element, so you could as well write a method that just sanitizes, nothing else. Combine that with a strict validation

[jQuery] jquery lightbox problem

2009-07-27 Thread huminuh83
I'm using a gallery scrollable component for thumbnails. When a user clicks on the thumbnails it loads that larger version of the image into a div on the same page. All the large images are already loaded into the div. My problem is when a user goes to click on the larger version of the image I

[jQuery] hoverIntent not working?

2009-07-27 Thread Mat
Here is my simple bit of JS that isn't working; $('#trigger').hoverIntent(function(){$('#info').slideDown('500')}); Maybe it is conflicting with the other plugins I am using; scrollTo, localScroll and serialScroll? (I don't see why it would.) Thanks in advance, Mat.

[jQuery] (validate) multiple error error messages per input

2009-07-27 Thread jckos
Hi, If I focus on a field multiple times or submit the form multiple times, I the script adds multiple error messages per field, both valid and error classes, depending on the data entered. Any suggestions? Thanks, John

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread pedalpete
Thanks John, I wasn't familiar with the .live() before, but of course I'll use that where I can. Though I'm honoured and humbled by your response, unfortunately, in this case, I'm using a 'submit', and the documentation says i can't use .live on submit currently. (I did try and, and it didn't

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread James
If the return false fails, it's usually something wrong with parsing your Javascript that causes the problem. For example: $(input#email).after(works); It's missing a closing quote () after email. On Jul 27, 12:28 pm, pedalpete p...@hearwhere.com wrote: Thanks John, I wasn't familiar with

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 6:06 PM, Jörn Zaeffererjoern.zaeffe...@googlemail.com wrote: Having JS sanitize for the backend is somewhat dubious, I'd not go there, but you probably don't want to discuss that. I think we're in agreement there, actually. JS provides no security and shouldn't be

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread RobG
On Jul 28, 5:09 am, Liam Byrne l...@onsight.ie wrote: A letter count is FAR easier - just get the string's length. The length of the string will give you a *character* count. I would not inlcude punctuation, white space, etc. in a *letter* count. For number of letters, try:

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Conrad Cheng
The most important part in my string is..it contains chinese characters... For an example I come from 香港---so totally 5 words instead of length = 15 Thx all of you. On Tue, Jul 28, 2009 at 7:23 AM, RobG robg...@gmail.com wrote: On Jul 28, 5:09 am, Liam Byrne l...@onsight.ie wrote: A

[jQuery] Re: Combine JQuery objects question

2009-07-27 Thread Kean
Why post the question if you had the answer? On Jul 27, 8:40 am, www.voguemalls.com yuyuhua...@gmail.com wrote: who knows if it is possible to join two jQuery objects to make a new object.  For example... var e1 = $(#firstObject); var e2 = $(#secondObject); var combined = e1.add(e2);  //

[jQuery] Re: newbie question.

2009-07-27 Thread Michael Geary
That's a great explanation, James. I hope you won't mind if I nitpick a point of terminology. The code you were talking about is not a closure: (function() { /* do some stuff */ })(); As you described, the advantage of this code is that any variables you define inside the function won't

[jQuery] Re: Form values getting unsynchronized after ajaxsubmit [validate]

2009-07-27 Thread Anoop kumar V
Thanks so much for the response - I was doubtful if my posts were even making it into this list... Yes - it is clear to me that there is a wierd and unknown issue with the ajaxsubmit and I am trying other options - the $.ajax and the $.get/$.post. I will try to debug a bit more if I can pinpoint

[jQuery] Re: newbie question.

2009-07-27 Thread James
No problem, Michael. Thanks for the clarification regarding an anonymous function and a closure, and the detailed explanation for closures. I'll give some related resources a good read on closures. :) On Jul 27, 1:46 pm, Michael Geary m...@mg.to wrote: That's a great explanation, James. I hope

[jQuery] Slider Experts?

2009-07-27 Thread photogeek
Anyone know how to create the slider effect, coda slider, so that it opens up with something other than the first panel/div? I know there is an option with serial scroll to do this, but for some reason its not happening for me. Thanks in advance Andy

[jQuery] Re: Combine JQuery objects question

2009-07-27 Thread Michael Geary
Haven't you ever had the answer to a question, but not known you had the answer? :-) It's like the saying we had in high school: Freshmen know not that they know not. Sophomores know that they know not. Juniors know not that they know. Seniors know that they know. -Mike From: Kean

[jQuery] Re: (validate) multiple error error messages per input

2009-07-27 Thread Jules
Since you didn't post your html and code, I would guess you don't have name property specified on your html. input type=text id=username/input should be input type=text id=username name=username/input On Jul 28, 8:26 am, jckos johncar...@gmail.com wrote: Hi, If I  focus on a field

[jQuery] Re: tablesorter, sort values in anchor as numerics

2009-07-27 Thread Steven Yang
personally i do not understand anything this guy says back to the topic i personally will put an extra/custom attribute in a like a ref=39 then $(a) and sort on the ref attribute. If not mistaken, there is a sorting plugin somewhere or even in jQuery core. Or you should be able to do it easily

[jQuery] Re: newbie question.

2009-07-27 Thread RobG
On Jul 28, 5:53 am, James james.gp@gmail.com wrote: This: (function() { do some stuff } )(); is known as a closure. You have a warped view of a closure. It is an example of the module pattern, which can create closures, but doesn't necessarily do so. URL:

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Ricardo
As ButtersRugby said, usually you'll count characters because of a string length limit for some field or display, so you'll want to take all punctuation and spaces into account. Counting letters only is rarely a real requirement. s.match(/\w/g).length makes more sense at first sight, despite

[jQuery] after together with load

2009-07-27 Thread avrono
Hi, I am trying to dynamically load html into a table, i.e add new rows in the table if a user clicks on an element in the table. Calling code : TDa href=# onClick=javascript:AddElement('someVal', 'someOtherval');return false;Click ME/a/TD No problems there, I have a function : function

[jQuery] autocomplete

2009-07-27 Thread sush
Hi, I am using the autocomplete on local client array , and want know how can i allow user to key in the text if autotext could not find any results. your help is greatly appreciated. Thanks, sush

[jQuery] Re: JQuery method to update one form element with value from another

2009-07-27 Thread Jules
Try the most obvious method: '(#hiddenfieldId).val(' or '(#hiddenfieldId)[0].value =' or '(#hiddenfieldId).get(0).value =' assuming the hidden field is as specified below and the coder using uniqueid. input type=hidden id=hiddenfieldId name=hiddenfieldId / If the code cannot be found, the

[jQuery] Re: after together with load

2009-07-27 Thread Avron Olshewsky
Figured it out, for those interested: $(document.createElement('tr')) .load('http://localhost:8080/admin/?page=moretabletest') .insertAfter('.c_row' + i); On Mon, Jul 27, 2009 at 9:30 PM, avrono avronolshew...@gmail.com wrote: Hi, I am trying to dynamically load html into a

[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Avron Olshewsky
Hi, You could you the split function (assuming words are space sperated) var mySplitResult = oXmlHttp.responseText.split( ); mySplitResult.length- Gives the array length, hence the number of words - 1 (if I remember correctly) On Mon, Jul 27, 2009 at 11:46 PM, Ricardo

[jQuery] Re: clone() + Sortable and Draggable

2009-07-27 Thread Jérôme GRAS
That's seems to be exactly what I needed. Unfortunately, live() only works with a limited number of events, and not with sortable. I saw there may be a plugin that could help : livequery. No time to investigate further for now. See you in a few weeks ! :D On Fri, Jul 24, 2009 at 18:27, Jérôme

[jQuery] [treeview] Menu Collapses Instantaneously with Animation

2009-07-27 Thread TH Lim
Hi, I was trying out http://jquery.bassistance.de/treeview/demo/ Sample 2 with IE 8 in IE 7 mode. The menu animates and opens. When I click to close, the menu collapsed instantaneously. However, it is working perfectly in IE8 mode i.e. the menu animates while closing up. How do I fix this for