Re: [jQuery] Screencast: how to easily use AJAX to submit a form using jQuery

2007-03-06 Thread Mike Alsup
On 3/6/07, Remy Sharp [EMAIL PROTECTED] wrote: A screencast for beginners to jQuery and/or AJAX showing how easy it is to add an AJAX layer to submit a form. Excellent job on that screencast, Remy! Since you end the cast with a note about putting the script into a plugin I would just like to

Re: [jQuery] Get text from selected dropdown option

2007-03-07 Thread Mike Alsup
I can only imagine to make that a little shorter: $('#dropdown').change(function() { $.log( $('option:selected', this).text() ); }); I could imagine making it faster :-) $('#dropdown').change(function() { $.log(this.options[this.selectedIndex].text); });

Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-07 Thread Mike Alsup
After the page is loaded and if I set the breakpoint, it works like I expected. But, if I set the breakpoint and reload the page, it breaks at the breakpoint even while the page is loaded--this is confusing as it looks the event or function is been called even when the page is been getting

Re: [jQuery] html in taconite response

2007-03-07 Thread Mike Alsup
showMsg($(#customer_name input).val()+ order + response.order_id + successfully created. aView order/a); Paul, You do need to use a CDATA block for that code. How did it fail when you tried it? Do you have a sample page? Mike ___ jQuery mailing

Re: [jQuery] html in taconite response

2007-03-07 Thread Mike Alsup
Do I need to wrap the entire eval contents in CDATA, or can I include CDATA around just the function in question? Wrap it all. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] method chaining (was RE: regular expressions)

2007-03-07 Thread Mike Alsup
http://www.netwise.it/xml/perlmonks/?node_id=417872 Note that in digging this back up, I came across lots of great considered harmful rants, including short circuit OR operator, tabs, AJAX, javascript associative arrays, considered harmful essays, and of course the goto statement. This

Re: [jQuery] BlockUI over ActiveX plugin

2007-03-13 Thread Mike Alsup
Is it possible to get BlockUI to overlay an ActiveX control in IE? I am using the XStandard XHTML editor plugin for a CMS; form submission is via an AJAX call, while displaying a BlockUI message over the page. In Firefox and Safari, the BlockUI message appears over the plugin; but in IE,

Re: [jQuery] Checkbox unticked

2007-03-13 Thread Mike Alsup
I use .post to send information to the server. How can I force the checkbox information to be sent even if it is unchecked? I need a generic solution. You won't find a solution that degrades when JavaScript is disabled. You really should modify the server code to process the data correctly.

Re: [jQuery] looking for overlay loading window script

2007-03-14 Thread Mike Alsup
hey. i tried blockui and serval scripts, they are great, the problem that i want to able to do somthing like on user click on submit its open window like blockui has with loading... then its checks the json parameters that given back and if status is 0 then close the modal window and open new

Re: [jQuery] serialize form

2007-03-14 Thread Mike Alsup
The use case is an autosave for the form. I looked at the form plugin and it seemed to want to take control of the form submit. In my use case I want to save the form in the background and let the user continue to work with the form. I would recommend using the form plugin. Its primary

Re: [jQuery] Re Serialize Form

2007-03-14 Thread Mike Alsup
1) Will the form plugin work if only called through a function? Yes. 2) Will I be able to maintain the normal ( non-ajax ) function of the form submit button? Yes. 3) What serialization options are available? None. The form serialization is written to behave *exactly* the same way as the

Re: [jQuery] Local XML

2007-03-14 Thread Mike Alsup
However, if XML is loaded through .get, it is passed to the processing function as text, not as a document. That is not true. If the server returns an XML document, that's what is passed to your success handler. You need to make sure your server is setting the response content type to XML.

Re: [jQuery] jQuery BlockUI Plugin IE crashes

2007-03-15 Thread Mike Alsup
jQuery BlockUI Plugin, IE crashes every time. I am using jquery 1.1.2 + form plugin Kush, do you happen to have any ActiveX controls on that page? The current version has a problem related to ActiveX. I have a fix for it but have not updated SVN with the change yet (still testing). Mike

Re: [jQuery] JQuery Form plugin

2007-03-15 Thread Mike Alsup
I am using the JQuery forms plugin and I have a problem. I would like to post a form that containse a file, ie I have to use enctype=multipart/form-data. How can I set this up when using ajaxForm()? Is there an example how you can upload files using ajaxForm()? thanks in advance for any

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Mike Alsup
Your second attempt looks the closest. I would try it like this: $('.ajax-div-slide').click(function() { var url = this.href; $('#ajax-loader').animate({height: 375}, 'slow', function(){ $('#ajax-div').load(url); }); return false; }); But I've got to ask... why do you

Re: [jQuery] loading content into a div (IE7 problems)

2007-03-16 Thread Mike Alsup
Can you give us a url to look at? What could be the problem? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Event-AJAX wait before animation completes

2007-03-16 Thread Mike Alsup
link has been clicked previously. It seems like Internet Explorer checks it's cache to see if it has a copy of the ajax request already, which means it shows it straight away without any delay. Isn't that a good thing? Why impose an artificial delay?

Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-19 Thread Mike Alsup
// iframe height // function setHeight(h){ if($.browser.mozilla) { $( function() { alert(h); } ); } $('#myFrame').height(h); } I know Netscape is barely in existence, but I'd like to fix it just the same. Any ideas? Did you try adding a call to window.resize() after you set the

Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-19 Thread Mike Alsup
No, sorry. I thought maybe resizing the parent after the iframe had loaded might work. I just tried, but maybe I'm doing it wrong? Do you mean in the iframe or the parent? Tried both, but I didn't get anywhere. Can you post an example? Did you try adding a call to window.resize() after

Re: [jQuery] blockui crushes IE6

2007-03-19 Thread Mike Alsup
I think he means crashes. The latest code in SVN *should* fix the problem. Please let me know if it doesn't. http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: By 'crushes' do you mean that you get a

Re: [jQuery] blockui crushes IE6

2007-03-19 Thread Mike Alsup
not accept the focus. So do you think your latest patch fixes this? (*hoping*):oD Chris Mike Alsup wrote: I think he means crashes. The latest code in SVN *should* fix the problem. Please let me know if it doesn't. http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format

Re: [jQuery] Validation and hidden fields problem

2007-03-20 Thread Mike Alsup
Did you try: $('div:not(:hidden) .required').each(... get all elements that have the class 'required' as long as the container does not have the class 'hidden' but sometimes there are loads of nested elements so its not always the parent as such. I've tried 'filter' and 'not' but with

Re: [jQuery] blockui crushes IE6

2007-03-20 Thread Mike Alsup
and put something together that can be publicly accessible. Thanks, Chris Mike Alsup wrote: I think we're dealing with two very different errors. Do you have a url that exhibits the focus problem, that would be a big help. Mike On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote

Re: [jQuery] NOTICE: Moving to Google Groups

2007-03-21 Thread Mike Alsup
Sounds great, John. Will all the mailing lists be moving (web, dev, plugins)? I hope everyone is ok with this move. I think it's for the best. Please let me know if you have any serious concerns. Thanks! ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] select box - options manipulation

2007-03-21 Thread Mike Alsup
Aljosa, You need to bind to the change event on the select element. On 3/21/07, Aljosa Mohorovic [EMAIL PROTECTED] wrote: i have a DIV.selection tag and inside SELECT with OPTION tags. using jquery i can find and manipulate options with $('div.selection').find(option).each and similar but i

Re: [jQuery] blockui crushes IE6

2007-03-22 Thread Mike Alsup
right now. I'll download the 1.02 version and see if it fixes my problem. If it does, you'll be my hero! :o) Cheers! Chris Mike Alsup wrote: Christopher, I think I may have fixed this. If you're able to duplicate the problem could you test it with the latest rev (1.02)? http

[jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-22 Thread Mike Alsup
I've added file upload support to the form plugin and I could use some help testing it out. If this feature interests you then go ahead and grab the beta plugin at: http://malsup.com/jquery/form/file/jquery.form.js File upload support is baked right into the plugin and there are no external

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-22 Thread Mike Alsup
) 10 [name]= string(12) hamsterdance [check]= string(2) on [pick]= string(3) one } File: Mike Alsup Rules.rtf (332 bytes) Form 2: UI never unblocks Output: N/A Form 3: seems to work fine Output: JSON (should be an object): [object Object] On 3/22/07, Mike Alsup [EMAIL PROTECTED

Re: [jQuery] jqupload tweak + forms plugin

2007-03-22 Thread Mike Alsup
One option is to listen to the new form events. The form plugin fires a vetoable event called form.submit.validate prior to submitting the form and a notification event called form.submit.notify after the form has been submitted. Perhaps you could use these to drive the desired external

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-22 Thread Mike Alsup
On 3/22/07, John Resig [EMAIL PROTECTED] wrote: Very very cool. I was curious as to how you had implemented - but I like how you did. Excellent solution. Worked well for me in my small test. --John On 3/22/07, Mike Alsup [EMAIL PROTECTED] wrote: I've added file upload support to the form

Re: [jQuery] Plugin Requests

2007-03-22 Thread Mike Alsup
Robert, Check out jqModal: http://dev.iceburg.net/jquery/jqModal/ It's an excellent windowing plugin and it handles some things, like focusing, much better than PWC. Mike On 3/22/07, Robert James [EMAIL PROTECTED] wrote: On 3/22/07, Sean Catchpole [EMAIL PROTECTED] wrote: Post your

Re: [jQuery] How do I find what form my input is in?

2007-03-23 Thread Mike Alsup
I know I can use parents to get the ancestors of my input, but this will get all forms on the page Why would parents() get all the forms on the page? Your input can only be in one form. You can always use dom code: var form = $(#myInput)[0].form; Mike

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-23 Thread Mike Alsup
Of Klaus Hartl Sent: vendredi 23 mars 2007 16:47 To: jQuery Discussion Subject: Re: [jQuery] Beta Testers needed for Form Plugin file upload support Mike Alsup schrieb: I've added file upload support to the form plugin and I could use some help testing it out. If this feature interests you

Re: [jQuery] Gurus - best Javascript references?

2007-03-23 Thread Mike Alsup
Nathan, you beat me to it! That is best reference I've seen on identifier resolution and scope chains. I *highly* recommend reading it as many times as it takes to sink it. You'll be glad you did. Mike Here's a great article on closures, references, scope, etc:

Re: [jQuery] Form Plugin: How to add a variable to serialization/array?

2007-03-23 Thread Mike Alsup
Try this: var securityCheck = mysecuritycode; var formData = $(#myForm).formToArray(); formData.push( { name: security, value: securityCheck }); ... // replace security with whatever the correct name is. On 3/23/07, Arne-Kolja Bachstein [EMAIL PROTECTED] wrote: Hi there, I am using the form

Re: [jQuery] blockUI and IE 6.0 issues

2007-03-23 Thread Mike Alsup
Kevin, Can you send me a link to your page? I've never seen the won't unblock problem before. The height issue is a result of not stretching the body element. IE6 borks in certain situations when that happens and so I dropped that code because it was becoming problematic. There were two

Re: [jQuery] blockUI and IE 6.0 issues

2007-03-25 Thread Mike Alsup
Kevin, Can you give version 1.04 a try? It should fix the height problem in ie6. http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Mike On 3/23/07, Kevin Fricovsky [EMAIL PROTECTED] wrote: Anyone else having issues with Mike's blockUI extension in IE 6.0?

Re: [jQuery] jqupload tweak + forms plugin

2007-03-25 Thread Mike Alsup
amircx, As I mentioned, the triggered events are not yet documented. You can listen for the form.submit.notify event like this: $().bind('form.submit.notify', function(event, jqForm, formOptions) { // do something when form is submitted }); Mike On 3/25/07, amircx [EMAIL PROTECTED] wrote:

Re: [jQuery] Taconite Plug-in Question...

2007-03-25 Thread Mike Alsup
No. The document's root element must be named 'taconite' and there can only be one. Mike On 3/25/07, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, gang... Can there be more than one set of taconite/taconite tags on a single page? Rick ___

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-25 Thread Mike Alsup
Beta 2 is now available and once again I'd appreciate any feedback, especially from Safari users. http://malsup.com/jquery/form/file/jquery.form.b2.js Test page: http://www.malsup.com/jquery/form/file/ This version introduces some changes inspired by dojo's implementation. To support json and

Re: [jQuery] Taconite Plug-in Question...

2007-03-25 Thread Mike Alsup
Nope. I work mostly in Java (JSP) and PHP. And didn't I hear that CF was being discontinued? Ha, just kidding - just trying to get Rey's blood pressure up. :-) Hey, Mike... Do you use CF? Rick ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Taconite Plug-in Question...

2007-03-26 Thread Mike Alsup
Hi Chris, Yes, that will work just fine. Within the root element you can have as many commands as you like. And the commands are always processed in order. Mike On 3/26/07, Christopher Jordan [EMAIL PROTECTED] wrote: lol! ;o) Mike, I'm assuming that code like this would work: taconite

Re: [jQuery] change event on select

2007-03-26 Thread Mike Alsup
Kush, You just need to bind the change event to the select element after it's been inserted into the DOM. Mike On 3/26/07, Kush Murod [EMAIL PROTECTED] wrote: Hi Sam, Still didn't work, my guess is The reason I guess, because that 'select' is loaded through AJAX, and once loaded

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-26 Thread Mike Alsup
Safari 2.0.4 has problems when a file is chosen to upload and the return choice is xml. It looks like the form is sent, but the 'Submitting overlay never goes away, so it appears as if the callback isn't happening. All other return types worked fine for me, and the xml worked fine when no

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-26 Thread Mike Alsup
Thanks, Harald. On 3/26/07, Harald Dietrich [EMAIL PROTECTED] wrote: Sorry for the delay, but my feedback for IE was missing. I did not have any problems until now. So I think for FF and IE everything seems to be fine. ___ jQuery mailing list

Re: [jQuery] Get form name on button click

2007-03-26 Thread Mike Alsup
This will also work: var formName = elem.form.name; On 3/26/07, Brad Perkins [EMAIL PROTECTED] wrote: Solved. I had been trying parent() and not parents(). parentformname = $(elem).parents(form).attr(name) -- Brad On 3/26/07, Brad Perkins wrote: I have a form template that is shared

Re: [jQuery] Taconite question...

2007-03-26 Thread Mike Alsup
Rick, Anything you can do in jQuery you can do with Taconite. Just think to yourself, How would I do that in jQuery? For example, to check a checkbox you would write: $('#myCheckbox').attr('checked', 'checked'); So in Taconite that becomes: attr select=#myCheckbox name=checked value=checked

Re: [jQuery] Taconite question...

2007-03-26 Thread Mike Alsup
taconite replaceContent select(#someID) Error Message /replaceContent attr select=#HiddenStatusFieldID value=true) /taconite That should work shouldn't it? If you fix the typo with the parens that is a valid taconite doc.

Re: [jQuery] Taconite question...

2007-03-26 Thread Mike Alsup
On 3/26/07, Daemach [EMAIL PROTECTED] wrote: attr select=#HiddenStatusFieldID name=value value=true) Thanks, Daemach. I didn't read it closely enough. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Disable enter button submitting form

2007-03-26 Thread Mike Alsup
Except that they'll need to submit the form when the click the submit button. I just don't want them submitted the form when they hit enter on the keyboard. But that is the default and *expected* behavior. Is there a good reason to intentionally alter standard behavior?

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Mike Alsup
What exactly is failing? It works fine for me in ie6. What is the value of your 'value' variable? Mike On 3/27/07, Smith, Allex [EMAIL PROTECTED] wrote: Sorry to bug folks... but does anyone have a suggestion for me on this one or a hint as to where to look? I'm a wee bit lost. Thanks

Re: [jQuery] Problem with text() and html() in IE6

2007-03-27 Thread Mike Alsup
You confirm that I'm completely nuts. IE6 does that to all of us. :-) BTW Your Taconite plugin makes me very happy. Glad to hear it! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] IE6 Performance Profiling?

2007-03-27 Thread Mike Alsup
Remy, you can use firebug lite to do timings (but not profiling). Mike On 3/27/07, Remy Sharp [EMAIL PROTECTED] wrote: Does anyone know how and with what I can performance profile in IE6? Firefox and IE7 are fine, it's just IE6 takes well over 10 seconds to load a heavily jQuery'ed page,

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-27 Thread Mike Alsup
later. Mike On 3/27/07, Roger Roelofs [EMAIL PROTECTED] wrote: Mike, On Mar 26, 2007, at 10:13 AM, Mike Alsup wrote: Safari 2.0.4 has problems when a file is chosen to upload and the return choice is xml. It looks like the form is sent, but the 'Submitting' overlay never goes away, so

Re: [jQuery] Correct way to setup a callback function

2007-03-29 Thread Mike Alsup
I'm just wondering if we're getting into the toggleButton function, which should fire after all the params pass validation and are posted. Trying to make sure the syntax for the statement below looks correct, Rick, Please don't take this the wrong way, but why are you wondering? Put a

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Mike Alsup
Beta 4 is available now at: http://www.malsup.com/jquery/form/file/ Things seem to work well on ie6, ei7, ff2, and op9. I'm still trying to sort out issues with op8 and Safari. Mike On 3/29/07, Kush Murod [EMAIL PROTECTED] wrote: So when is it going alpha can't wait :)

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-29 Thread Mike Alsup
of ideas for this problem and so the file upload feature may have the caveat of not supporting xml responses. Mike On 3/29/07, Brandon Aaron [EMAIL PROTECTED] wrote: On 3/29/07, Mike Alsup [EMAIL PROTECTED] wrote: Beta 4 is available now at: http://www.malsup.com/jquery/form/file/ Things seem

Re: [jQuery] New version of jquery and IE6 bugs

2007-03-30 Thread Mike Alsup
Using jquery-1.0.4.js - NO PROBLEMS http://www.dilltree.com/test/jtest104.html Using jquery-latest.pack.js - CSS ISSUES ON REFRESH. http://www.dilltree.com/test/jtest112.html Jeremy, Have you tried an unpacked version of 1.1.2? ___ jQuery mailing

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-31 Thread Mike Alsup
So when is it going alpha can't wait :) I've released it into the wild: http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-31 Thread Mike Alsup
, do you feel it's a equal or better to the prior versions? On 3/31/07, Mike Alsup [EMAIL PROTECTED] wrote: So when is it going alpha can't wait :) I've released it into the wild: http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt

<    1   2   3   4   5