[jQuery] Re: Unsubscribe

2009-09-02 Thread Jonathan Vanherpe (T T NV)
amuhlou wrote: oh, looks like there's also an Unsubscribe button on that same Edit my Membership page. Have you tried that? On Sep 1, 8:52 pm, Peter Stulzer pstul...@mac.com wrote: Thank you amuhlou. That's what I tried first but I still get all the mails. Is there another way to

[jQuery] Re: Clickable autocomplete, like google

2009-09-02 Thread Jörn Zaefferer
Based on http://plugins.jquery.com/project/autocompletex $(#search).autocomplete(/searchAutocomplete, { dataType: json, parse: function(data) { return $.map(data, function(row) { return { data: row,

[jQuery] Re: Port Prototype Code to jQuery?

2009-09-02 Thread Jermaine
@Josh Powell: Sure here is the full source in HTML (below you'll find the Javascript Source written in Prototype) HTML: script type=text/javascript

[jQuery] Can't assign jQuery jqModal to dynamically added links

2009-09-02 Thread neburton
I've been having problems getting jqmodal modal dialogs to display on links added dynamically by client side code. I've demonstrated the problem at the following URL: http://www.neil-burton.co.uk/jqmodaltest/index.htm jqModal plugin here - http://dev.iceburg.net/jquery/jqModal/ Any help would

[jQuery] Re: Can't assign jQuery jqModal to dynamically added links

2009-09-02 Thread Liam Potter
Use live instead of bind $(#jqmodalbind).live(click, function(e){ alert('Binding JQModal'); $('#addnote').jqm({ajax: '@rel', trigger: '.addnotetrigger'}); }); neburton wrote: I've been having problems getting jqmodal modal dialogs to display on links added dynamically by client side

[jQuery] .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread IschaGast
I am having rounded corners in a site but I don't want them in IE because it does strange things with the corners. Something like below isn't that possible? .corners(4px).not($.browser.msie $.browser.version = 7) What are the other solution to only target IE for not rounding that corners? Gr

[jQuery] RE: Newbie: Cannot get .text() to work with IE7

2009-09-02 Thread Knight, Doug
All, I wasn't sure if this got lost in the shuffle of my first post. Does anyone know why the following works under FF and not under IE7? There are comments within the code to explain what I'm seeing. Sorry, I don't have an external facing website on which to post this. Doug From:

[jQuery] abeautifulsite.net plugins : tree view and context menu together

2009-09-02 Thread Julien
Hi, I'd like to put context menu ( http://abeautifulsite.net/notebook.php?article=80 ) on each tree view item ( http://abeautifulsite.net/notebook.php?article=58 ) The tree have many sub directories, sub sub directories, etc... and files. I need the id of the selected item (directory or file),

[jQuery] Ajax chaining

2009-09-02 Thread erikms
Hi all, I have a page that I want to use to display updates coming from the server. In my innocence, I assumed that the following code: function get_status(response){ $(#selector).text(response); $.ajax({ type: GET, url: server url,

[jQuery] Animated window scroll with jquery

2009-09-02 Thread Alaa
Hi all, Here is something cool... jQuery window scroll with animation http://blog.freelancer-id.com/index.php/2009/03/26/scroll-window-smoothly-in-jquery

[jQuery] Accessing Elements after adding them with Append

2009-09-02 Thread Daniel
Hi There, I'm having trouble accessing some Elements with jQuery after I created them and added them to the HTML. I want to add some Checkboxes to my Site as soon as the user clicks another Checkbox. That works just fine. But if the user clicks on one of these added checkboxes, i want an event

[jQuery] Help with Required( dependency-callback )

2009-09-02 Thread HDflat
http://docs.jquery.com/Plugins/Validation/Methods/required I am trying to implement the bottom option into my website, and i think this is the option i want. Im trying to get an either or validation, that one or the other is required. I think this one can do it, but is there a way instead of

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread MorningZ
I have zero idea if this actually works, but maybe conditional comments would work? !--[if lt IE 8] script type=text/javascript //stuff you would only do in IE8 and other browsers /script ![endif]-- On Sep 2, 7:20 am, IschaGast cont...@ischagast.nl wrote: I am having rounded corners in a

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread Liam Potter
if ( !$.browser.msie !$.browser.version = 7 ) { $(div).corners(4px); } though the $.browser.msie will block any ie browser, so the bit making sure it is under version 7 is redundant. IschaGast wrote: I am having rounded corners in a site but I don't want them in IE because it does

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread MorningZ
Ah damn, i have that all wrong. it's backwards, sorry about that but maybe that would provide an alternative direction none the less http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx On Sep 2, 7:57 am, MorningZ morni...@gmail.com wrote: I have zero idea if this actually works,

[jQuery] [Superfish] IE7 and below errors (just information)

2009-09-02 Thread theosoft
This is something I discovered when implementing Superfish on our recently redesigned site at http://www.ciu.edu. We have navigation menus that are edited by content editors as html files. Our PHP files will include that html file if it exists. However, the WYSIWYG editor (XStandard in this

[jQuery] Re: Newbie: Cannot get .text() to work with IE7

2009-09-02 Thread Leonardo K
Maybe its a problem with you xml: *product_header_sites*F90/*product_header_itws_sites* On Wed, Sep 2, 2009 at 08:53, Knight, Doug dkni...@mitre.org wrote: All, I wasn’t sure if this got lost in the shuffle of my first post. Does anyone know why the following works under FF and not under

[jQuery] Re: Howto: replace the current webpage with content from another webpage.

2009-09-02 Thread lihao
On Sep 1, 7:26 pm, Mike Alsup mal...@gmail.com wrote: I am trying to define an onclick event to a form button, so that when I click this button, content from another webpage will overwrite this page (not open a new webpage). I've tried the below code (sample) which is not working. form

[jQuery] Re: Accessing Elements after adding them with Append

2009-09-02 Thread rupak mandal
hi daniel, You have to bind click function after the element was append to DOM. But there is a problem Jquery support multiple binding. So you have to first unbind the click function, then append an element to the DOM and then bind click function. I think this code will help you -:

[jQuery] Re: Joining values in ajax load

2009-09-02 Thread robert...@gmail.com
I was trying to simplify my question and consequently may have not asked it correctly. Here it the revised question: 1. I have a from inside a repeat region , I append the id with the record index for identification purposes. I also have my display div inside the repeat region.

[jQuery] [Superfish] Background fade of menus

2009-09-02 Thread theosoft
I'm not sure what's going on with the background fade of the my dropdowns and flyouts. When I mouseout, the background disappears, but the text remains. What's going on with that? You can view it at http://www.ciu.edu. Thank you, Chris Coppenbarger

[jQuery] Re: Check if function exists

2009-09-02 Thread MorningZ
you should be able to wrap that call in if (jQuery.tinymce) { ... your code doing tinymce stuff ... } On Sep 2, 10:44 am, shapper mdmo...@gmail.com wrote: Hello, I am loading TinyMCE using the new JQuery Plugin: script type=text/javascript   $().ready(function() {      

[jQuery] Re: Form built by ajax doesn't submit

2009-09-02 Thread Reynolds Design Studio
that worked! thanks mike On Sep 1, 6:22 pm, Mike Alsup mal...@gmail.com wrote: what i get back from ajax looks exactly the same as the form above just with updated values. Instead of doing this: $(.button).click(function() {  ... do this: $(.button).live('click', function() {  ...

[jQuery] use an external js file for validation of many forms

2009-09-02 Thread kathb4
I want to use an external js file for validation of many forms - all of which have items in common, like start_date. I want it to be re- usable from application to application. Using the groups I have found that I can do this by having something like [code] $(.sharedClassName).each.function() {

[jQuery] Check if function exists

2009-09-02 Thread shapper
Hello, I am loading TinyMCE using the new JQuery Plugin: script type=text/javascript $().ready(function() { $('textarea.tinymce').tinymce({ // Location of TinyMCE script script_url : '../js/tinymce/jscripts/tiny_mce/tiny_mce.js', Is there a way to load only if tinymce

[jQuery] Re: $ajax() question

2009-09-02 Thread Dave Ward
It may be too late, but I would recommend avoiding a call to an ASPX page like that. Even though you're not using it, the entire ASP.NET WebForms Page class is instantiated for any call to an ASPX page, which has significant overhead. An ASMX web service or ASHX handler would be much better

[jQuery] Re: Joining values in ajax load

2009-09-02 Thread robert...@gmail.com
Resolved...The issue was the recordset query ...the Jquery code was ok afterall. My lesson learned is to find a better way to test errors ... Thx On Sep 2, 9:26 am, robert...@gmail.com robert...@gmail.com wrote: I was trying to simplify my question and consequently may have not asked it

[jQuery] Re: [Superfish] Background fade of menus

2009-09-02 Thread Charlie
appears you used CSS for another menu system.( Author: Craig Erskine Description: Dynamic Menu System) Rules for hovers aren't working with script. If you want to use the script use the CSS also. There are classes like sfHover that get added on show that you aren't accounting for in the other

[jQuery] Re: Check if function exists

2009-09-02 Thread Michael Lawson
if(functioname) { //it exists, do stuff } cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or not, there isn't anyone who doesn't appreciate

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
I found the following one: http://plugins.jquery.com/project/RotationalStringObfuscator It seems interesting. How can I apply it to all emails on my web page? Thank You, Miguel

[jQuery] Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
Hello, Could someone recommend me a good email obfuscator/defuscator plugin? Thanks, Miguel

[jQuery] Re: Check if function exists

2009-09-02 Thread Michael Geary
You could try to test for the existence of a global function that way, but it wouldn't work. It would give you a reference error on 'functionname' if it isn't defined. For a global function you would use: if( window.functionname ) { ... } But Miguel's question wasn't about

[jQuery] Re: Accessing Elements after adding them with Append

2009-09-02 Thread mkmanning
Use .live() http://docs.jquery.com/Events/live#typefn On Sep 2, 1:51 am, Daniel battlew...@googlemail.com wrote: Hi There, I'm having trouble accessing some Elements with jQuery after I created them and added them to the HTML. I want to add some Checkboxes to my Site as soon as the user

[jQuery] Problems with minDate on datepicker not allowing before 1999.

2009-09-02 Thread hoe``
If I do something like, minDate: new Date(1930, 1-1, 14) or, minDate: '-70Y' The oldest date available will be 1999, and no matter what I've tried I've never been able to get beyond this barrier. Is this a limitation of datepicker? Thank you, ~Joe

[jQuery] JQuery Form - Ajax - Please HELP ! ! ! ! ! ! !

2009-09-02 Thread huntspointer2009
///Comment: Can someone help me do the following: create a function that collects ALL of the form's text field's Values, along with their corresponding ID, and create an Array like this: Example: var dataString = (item_01=123, item_01=456, item_01=789) then take the 'dataString' Array,

[jQuery] Slide in Popup

2009-09-02 Thread Maarten Scherpenisse
Hi folks, I have been searching and searching, but cloudn't find it. I'm looking for a slide-in popup (from the top) that does fade's its background while it slide's. Something like http://mad4milk.net/ when you press contact. But then in jQuery. I hope someone has the knowledge how to do it

[jQuery] Re: Check if function exists

2009-09-02 Thread Eric Paige
unsubscribe me Eric Paige Web Developer On Wed, Sep 2, 2009 at 10:44 AM, shapper mdmo...@gmail.com wrote: Hello, I am loading TinyMCE using the new JQuery Plugin: script type=text/javascript $().ready(function() { $('textarea.tinymce').tinymce({ // Location of TinyMCE

[jQuery] Re: JQuery Form - Ajax - Please HELP ! ! ! ! ! ! !

2009-09-02 Thread mkmanning
You could just add name attributes to the text fields (e.g. input type=text id=item_01 name=item_01 class=item_field value=123/ ) and then just use data:$('#myForm').serialize(). That will give you a querystring like: item_01=123item_02=456item_03=789 (you can't pass an array to 'data', it

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread Matt Kruse
On Sep 2, 6:20 am, IschaGast cont...@ischagast.nl wrote: I am having rounded corners in a site but I don't want them in IE because it does strange things with the corners. Many non-IE browsers already have native CSS support for rounded corners. If you want to exclude IE anyway, why not just

[jQuery] isFunction change in 1.3 and window.opener

2009-09-02 Thread msoliver
Hello, We've recently upgraded jQuery to 1.3. I've read about the changes to the isFunction method and have run into a problem. Our site has a couple of popup windows that, on completion, call back into the parent window. As such, we had code like this: var openerFunc =

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread brian
I wrote one but have never gotten around to submitting it. Feedback welcome. /** * De-obfuscate printed email addresses which are of the type: * * span class=Obfuscated title=some title * some link text [ someone AT gmail DOT com ] * span * * The braces around the address part are

[jQuery] error when uploading files

2009-09-02 Thread undertow
I get an error Error: Form elements must not be named submit. when i have a form with the ability to upload files. If a file is selected for upload i get the error, and not when there is no file for upload. why is that? what difference does it make if there is a submit button?

[jQuery] [jQuery Corner] Problem using nested corners/borders

2009-09-02 Thread J. Martin
I am attempting to create a box with malsup's jQuery nested corners, but can't get it to display properly. Here's my CSS: testing { margin: 0; background: #ffc; padding: 10px; border:0; zoom: 1;} div.outer { float: left; margin: 15px; background: #c82; padding: 8px; width: 22em } My JS:

[jQuery] Conflict with Lightbox 2 Smooth scroll

2009-09-02 Thread evansonuk
Hi, Having problems with conflicts between Lightbox 2 smooth scroll. Does anyone know anything about this, or better yet anyone know a way around this? I am new to this and not particularly savvy to say the least. Help would be appreciated. Thanks

[jQuery] Jquery ajax form

2009-09-02 Thread Fregas
I'm using the jquery form plugin from here: http://malsup.com/jquery/form/ Is there any callback function or handling of server-side errors in this plugin so I can now if an ajax action failed? Thanks, Craig

[jQuery] Re: Jquery ajax form

2009-09-02 Thread Mike Alsup
I'm using the jquery form plugin from here:http://malsup.com/jquery/form/ Is there any callback function or handling of server-side errors in this plugin so I can now if an ajax action failed? That plugin uses $.ajax under the hood so all the same options apply, including the 'error'

[jQuery] Animating show() and hide() of TBODY

2009-09-02 Thread candlerb
I am writing some code where I want to insert and subsequently hide a TBODY element within a table, and animate it doing so. Unfortunately, if I do hide() followed by show(250), say, then the element becomes tbody style=display: block and this results in the inserted section displaying after

[jQuery] Strange behaviour when de-activating form

2009-09-02 Thread burlistic
Hi All, Not sure this is the best place for this question, but I hope someone can help. I have a form which requires a lot of client side validation. As this takes a while I am using an overlay to stop access to the form. The problem is, the overlay only appears after all valition code has

[jQuery] Re: isFunction change in 1.3 and window.opener

2009-09-02 Thread msoliver
Fair point. What you suggest certainly would be better than no check. But, it's not a test that openerFunc is actually a function, just that it exists and has an call property. Thanks though, - Mike On Sep 2, 11:45 am, Matt Kruse m...@thekrusefamily.com wrote: On Sep 2, 1:16 pm, msoliver

[jQuery] Re: small problem

2009-09-02 Thread GaVrA
Yes, in firefox 3.5.2 and windows7 when text is fading in or out - text color is yellow. :) Anyone have any idea how to fix this? And yes, it is working like it should in every other browser. On Jul 30, 7:29 am, Ricardo ricardob...@gmail.com wrote: Nothing like crowd-sourced tests! :) Looks

[jQuery] Re: isFunction change in 1.3 and window.opener

2009-09-02 Thread Matt Kruse
On Sep 2, 1:16 pm, msoliver michaelsoli...@gmail.com wrote:         if ($.isFunction(openerFunc)) Why not just: if (openerFunc openerFunc.call) ? Matt Kruse

[jQuery] Help getting elements name.

2009-09-02 Thread gilberto.ramoso...@gmail.com
Hello I have a bunch of radio button and I want a funtion tu run when any of the radio button is clicked so I used $('input:radio').click (function... what I want to do is to get the name attribute of the clicked radio, how can i do this?

[jQuery] Re: Help getting elements name.

2009-09-02 Thread MorningZ
because the other programmer used different names to call them singularly because of some issue with IE 6 7 technically he *created* an issue with IE since the radio buttons are not grouped so that the user can only select one in the bunch of them (if that's what you want, but you don't make

[jQuery] Re: Help getting elements name.

2009-09-02 Thread gilberto.ramosoton
Great, thanks. On Sep 2, 4:20 pm, MorningZ morni...@gmail.com wrote: because the other programmer used different names to call them singularly because of some issue with IE 6 7 technically he *created* an issue with IE since the radio buttons are not grouped so that the user can only

[jQuery] Re: Conflict with Lightbox 2 Smooth scroll

2009-09-02 Thread gilberto.ramosoton
Check out the css on both to see that there is not an id or class with the same name. On Sep 2, 1:35 pm, evansonuk evanso...@googlemail.com wrote: Hi, Having problems with conflicts between Lightbox 2 smooth scroll. Does anyone know anything about this, or better yet anyone know a way

[jQuery] Re: Help getting elements name.

2009-09-02 Thread Charlie Griefer
$('input:radio').click(function() { alert(this.name); }); But... as radio buttons, wouldn't they all have the same name? In any event, 'this' (or the jQuery $(this)) will give you a hook into the element that triggered the click. On Wed, Sep 2, 2009 at 12:44 PM, gilberto.ramoso...@gmail.com

[jQuery] Re: Help getting elements name.

2009-09-02 Thread gilberto.ramosoton
My radio buttons dont have the same name because the other programmer used different names to call them singularly because of some issue with IE 6 7. Ok What would like to have is the radio button's name, the one that got clicked, how could i return something to use with GetElementByName,

[jQuery] validation: how do I make sure a radio button is picked?

2009-09-02 Thread Matt Wilson
I have a list of radio buttons, all with the same name, and each has a different value. I want a validator that tests if one is picked. How do I do this?

[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread Matt Quackenbush
Perhaps I am misunderstanding something in your requirements, but with the validation plugin (link below), it is as simple as adding class=required to the input tag. http://docs.jquery.com/Plugins/Validation HTH

[jQuery] Is this quirk of jQuery still true?

2009-09-02 Thread Rick Faircloth
I read that in an article dated October 17, 2008, that it was not possible to change the actual HTML in the DOM of the value attribute of a text input using $(this).val('myNewValue'); My experiments just now bear this out. Is this still true? The writer of the article developed a

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread shapper
I think the Rot13 is better at least according with the following results: http://www.josephfinsterwald.com/UI/Pages/article4.aspx On Sep 2, 7:01 pm, brian bally.z...@gmail.com wrote: I wrote one but have never gotten around to submitting it. Feedback welcome. /**  * De-obfuscate printed

[jQuery] Re: JQuery Form - Ajax - Please HELP ! ! ! ! ! ! !

2009-09-02 Thread Hunts Pointer
Thanks Michael, your answer helped me solve the problems I was having, if you're in NYC let me know, I owe you a beer. - Hunts

[jQuery] Re: [jQuery Corner] Problem using nested corners/borders

2009-09-02 Thread Leonardo K
Your css is the problem :D Missing the . before the testing On Wed, Sep 2, 2009 at 15:14, J. Martin giantsfan2...@gmail.com wrote: I am attempting to create a box with malsup's jQuery nested corners, but can't get it to display properly. Here's my CSS: testing { margin: 0; background:

[jQuery] Re: - issue closing element modal

2009-09-02 Thread hburgund
Sorry, Mike, one more quick question: My message in this situation is not centered for some reason. It is in the upper left of the div it is blocking. But if I instantiate it a second time without refreshing the page, it moves to the center, where I want it. I tried a bunch of css options to

[jQuery] Re: isFunction change in 1.3 and window.opener

2009-09-02 Thread Matt Kruse
On Sep 2, 2:21 pm, msoliver michaelsoli...@gmail.com wrote: Fair point. What you suggest certainly would be better than no check. But, it's not a test that openerFunc is actually a function, just that it exists and has an call property. That seems better to me than the crazy logic in 1.2's

[jQuery] Jquery DropdownCheckList

2009-09-02 Thread Mr. V
I am trying to use the dropdown check list Jquery plugin from http://code.google.com/p/dropdown-check-list/ I have a question about fetching the 'checked' item IDs or the Comma separated values. Basically I am calling the getJSON method on Change of the dropdown and I want to either pass an

[jQuery] Response type is Form Plugin success callback

2009-09-02 Thread Lay András
Hello! How can I determine the response type (text/html, text/javascript, etc.) in the Form Plugin's success callback? The callback recognize 3 parameters, the first is the data, second is the status, and third is an object with lots of properties. I mean the response type can be in this object,

[jQuery] How can I manipulate all the radios in one div?

2009-09-02 Thread gilberto.ramoso...@gmail.com
How can I manipulate all the radios in a div? For example say I have 2 div and both have a couple of radio buttons and everyone has different names. Say I wanted to manipulate only the radios in one of the div's how could achieve that?

[jQuery] Re: How can I manipulate all the radios in one div?

2009-09-02 Thread Charlie Griefer
assuming the particular div has an id=myDiv attribute... $('myDiv input:radio') http://docs.jquery.com/Selectors/descendant#ancestordescendant (the docs are your friend) You could also apply a specific class name to the ones you want to manipulate. But if you don't want to (or can't)

[jQuery] Re: - issue closing element modal

2009-09-02 Thread hburgund
Thank you so much, Mike. Your solution works perfectly. Thanks again for a great plugin. -Halsey On Sep 1, 7:14 pm, Mike Alsup mal...@gmail.com wrote: I need a modal window within an element on my page and theBlockUI plugin works great for this.  The problem is that I want a button on

[jQuery] Re: get the hover color of a link

2009-09-02 Thread Dale Larsen
Well, it works. I am not sure why my first implementation wasn't working. Thank you for your help! Kind regards, Dale Larsen On Aug 25, 6:04 am, Satyakaran satyaka...@gmail.com wrote: I think you need to change your approach. :hover is not set-able by jquery . I tried this script

[jQuery] Re: tool tip / ajax / image map

2009-09-02 Thread Scott Sauyet
webguy262 wrote: I need to get a tooltip that works when the page containing the image and the image map is ajax-ed into a div... I think any of them will work, but you'll have to reinitialize them on the ajaxed content... -- Scott

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread Ricardo
The change in value won't appear in the HTML (in firebug for example), but the value *will* change and be submitted with the form. That's standard DOM scripting behaviour. There is no reason to change the attribute in the HTML unless you want to print it somewhere. On Sep 2, 5:55 pm, Rick

[jQuery] Re: How can I manipulate all the radios in one div?

2009-09-02 Thread gilberto.ramosoton
Thanks a lot man, work like a charm. On Sep 2, 8:21 pm, Charlie Griefer charlie.grie...@gmail.com wrote: assuming the particular div has an id=myDiv attribute... $('myDiv input:radio') http://docs.jquery.com/Selectors/descendant#ancestordescendant (the docs are your friend) You could

[jQuery] Re: Email obfuscator/defuscator plugin

2009-09-02 Thread brian
ROT13 is not immediately readable to a person who has javascript disabled. The method I used was specifically designed to keep the email address obvious to a human. On Wed, Sep 2, 2009 at 4:46 PM, shappermdmo...@gmail.com wrote: I think the Rot13 is better at least according with the following

[jQuery] Why is console.log(valid) returning yes in this code?

2009-09-02 Thread Rick Faircloth
Here's the code: var valid = 'yes'; $(':input').each(function() { if ( $(this).val().length == 0 ) { alert('in!'); var valid = 'no'; alert(valid); $('#rentalAppErrors').fadeIn(500);

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread Rick Faircloth
Thanks for the reply, Ricardo... After thinking about it, it really doesn’t matter if the HTML is changed. It'll process fine, as you said. What I was really trying to avoid was a problem with the newly entered data being removed if I focused on the field with the cursor again. I came up with

[jQuery] Re: Why is console.log(valid) returning yes in this code?

2009-09-02 Thread MorningZ
Why? Because you are failing to understand variable scope Don't use the var keyword inside the if block, by using that, you are stomping over the outside one http://www.google.com/search?q=Javascript+variable+scope On Sep 2, 10:26 pm, Rick Faircloth r...@whitestonemedia.com wrote: Here's

[jQuery] Re: Jquery ajax form

2009-09-02 Thread Fregas
Thanks! On Sep 2, 12:55 pm, Mike Alsup mal...@gmail.com wrote: I'm using the jquery form plugin from here:http://malsup.com/jquery/form/ Is there any callback function or handling of server-side errors in this plugin so I can now if an ajax action failed? That plugin uses $.ajax under

[jQuery] Re: Why is console.log(valid) returning yes in this code?

2009-09-02 Thread James
I think you mean: by using that, you are -NOT- stomping over the outside one. Rick, If you don't understand, using var is a variable declaration. Setting: var valid = 'no'; inside the each() callback function will have that variable exist locally only inside that function. It will not overwrite

[jQuery] Re: Why is console.log(valid) returning yes in this code?

2009-09-02 Thread Rick Faircloth
you are stomping over the outside one Hmmm...that's what I'm trying to do. I assume you mean by the 'outside' one, the variable, valid, inside console.log(valid). I'm initially setting the variable valid to yes and using the conditional block to change valid to no if there's an invalid entry

[jQuery] Re: Why is console.log(valid) returning yes in this code?

2009-09-02 Thread MorningZ
I think you mean: by using that, you are -NOT- stomping over the outside one. Indeed... a classic case of thinking faster than i was typing

[jQuery] Re: Why is console.log(valid) returning yes in this code?

2009-09-02 Thread Rick Faircloth
Ahhh...that did it. As MorningZ mentioned, it was a misunderstanding of the scoping of the variable: inside vs outside the function. I thought, too, being a learn as I code programmer, that anytime I defined a variable, I needed to precede it with var... live and learn...or rather, code and

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread RobG
On Sep 3, 6:55 am, Rick Faircloth r...@whitestonemedia.com wrote: I read that in an article dated October 17, 2008, that it was not possible to change the actual HTML in the DOM There is no HTML in the DOM. HTML is used to create a DOM. of the value attribute of a text input using

[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread RobG
On Sep 3, 6:17 am, Matt Wilson m...@tplus1.com wrote: I have a list of radio buttons, all with the same name, and each has a different value. I want a validator that tests if one is picked.  How do I do this? Set one as checked by default (as suggested by the W3C HTML specification), no

[jQuery] How do I prevent the newly entered text in the text input from disappearing upon focus?

2009-09-02 Thread Rick Faircloth
In code prior to this, if an empty text input is found in a form upon submission, the text Entry required. is put into the text input. Once all the text inputs have been validated, then the function below is run: function validation() {

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread Rick Faircloth
Thanks for the explanation, Rob. I'll have to check into setAttribute...am I correct in assuming that setAttribute is a Javascript function, but not jQuery? Also, your statement, There is no 'HTML in the DOM'. HTML is used to create a DOM. seems like semantics. So is it correct to say that a

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread Scott Haneda
This is an intersting problem though. Without the ability to edit the HTML, a page refresh is going to kill any work you did. Granted, in most cases, the need for a page refresh would not matter, as the browser is going to drop the input form data anyway. One advantage would be you could

[jQuery] Ajax get contents question

2009-09-02 Thread David .Wu
This is my testing php code, I found if I use filter, I can only get the content from first level of object, for example div id=res1div id=res22/div/div I can get res's contents by filter, but I can't get res2's contents, is that possible that get any thing I want through ajax? ?php if

[jQuery] Re: Problems with minDate on datepicker not allowing before 1999.

2009-09-02 Thread rupak mandal
hi joe, You have to specify the year range according to your requirement .By default it is yearRange: '-10:+10' Thanks Rupak On Wed, Sep 2, 2009 at 8:34 PM, hoe`` jlen...@gmail.com wrote: If I do something like, minDate: new Date(1930, 1-1, 14) or, minDate: '-70Y' The oldest date

[jQuery] inArray unintuitive

2009-09-02 Thread goatdubbs
PHP's in_array was created before jQuery's inArray, so I'm not sure of the origin of the choice of function name jQuery took, but if it was from PHP, they either named the function incorrectly or created the function with a return value that is incorrect. I am leaning toward naming it

[jQuery] Re: Is this quirk of jQuery still true?

2009-09-02 Thread RobG
On Sep 3, 1:25 pm, Rick Faircloth r...@whitestonemedia.com wrote: Thanks for the explanation, Rob. I'll have to check into setAttribute...am I correct in assuming that setAttribute is a Javascript function, but not jQuery? setAttribute is a DOM Core method of the Element interface[1].