Re: [jQuery] Beta Testers needed for Form Plugin file upload support
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
Well, I like to think that each version gets better! :-) It should absolutely be 100% compatible with previous releases, unless you were using the deprecated option properties (method, before, after). It decided it was time to drop those. The file upload capabilities did not require changes to any other part of the code. And thanks to Ivan Kurmanov, this version includes a couple minor bug fixes too. Mike On 3/31/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Mike, I compared the old code to the new... it sure looks 100% compatible. Assuming I am testing the image upload code with my pages, 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 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] New version of jquery and IE6 bugs
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 list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Correct way to setup a callback function
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 breakpoint on that function and see if it gets called. From all the questions you've posted it sounds like you're really struggling with this form, but there are tools available to help you quickly answer questions like this. You should never be in a position of wondering if some code is getting executed. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
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 :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Hi Brandon, Thanks for the feedback - much appreciated. I'm pretty sure the Safari xml problem has to do with Safari not handling an xml response to the iframe. Roger has confirmed this as well, although he pointed out that the latest builds seem to work. To be honest, I'm running out 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 to work well on ie6, ei7, ff2, and op9. I'm still trying to sort out issues with op8 and Safari. Really cool stuff Mike! ff2 and op9 on mac worked perfectly for me. Safari worked great for everything but xml. When trying to submit with xml selected the overlay would just hang. It looked like it submitted but just didn't get the response ... but I'm unsure if it actually did submit. -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with text() and html() in IE6
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 Allex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smith, Allex Sent: Monday, March 26, 2007 3:11 PM To: jQuery Discussion. Subject: [jQuery] Problem with text() and html() in IE6 I have a fuction where I pass in a value and then look for a match inside of a select box... display = $('#premise-data').find('option').filter('[EMAIL PROTECTED]' + value + ']').text(); Works great in Firefox, but fails in IE6. Why I say the problem seems to lie in text() or html() is that when I drop the .text() off I get what I would expect. Any ideas where I am going wrong? Allex ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Problem with text() and html() in IE6
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?
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, and I need to dig around and find where the performance bottlenecks are. Obvious things I'm starting with is removing any class selectors - i.e. jQuery('.button').doStuff() -- View this message in context: http://www.nabble.com/IE6-Performance-Profiling--tf3472905.html#a9691823 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Thanks again for the feedback, Roger. That's a bummer about Safari's handling of the xml datatype. Good to know that the latest webkit builds handle it well though. There's hope for the future! I've got some thoughts on a workaround but it requires cooperation from the server. I'll post more 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 it appears as if the callback isn't happening. All other return types worked fine for me, and the xml worked fine when no file is chosen. I tried a recent build of Webkit and everything worked fine. Interesting. Thanks for the feedback, Roger. I suspect there must be a script error occurring on the page. Did Safari indicate that an error occurred? I made myself a test-bed and poked around some. When the iframe receives a document with a content-type of text/html, cb gets called and all is well. If another content-type is used, cb never gets called. I tried several different content-types, and got some strange results (application/json caused safari to put up its 'download a file' dialog), but I couldn't find any besides text/html that would case the load event to fire. Even application/xhtml+xml didn't work. Safari does surprise me at times :-( -- Roger Roelofs ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite Plug-in Question...
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 replacecontent blah... /replacecontent replacecontent blah, blah /replacecontent replacecontent blah, blah, blah /replacecontent /taconite right? Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] change event on select
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 event is not triggered, so I gotta use bubbling --Kush Sam Collett wrote: On 26/03/07, Kush Murod [EMAIL PROTECTED] wrote: anyone? Kush Murod wrote: Hi, I am trying to do event bubbling on selectbox, works in FF not in IE Maybe I am missing something? $(#workList).change(function(event){ var me = $(event.target); alert(me.attr('name')); }); div class=list id=workList ... select name=perpage style=width:45px; option value=50 label=5050/option option value=60 label=6060/option /select ... /div Any reason why you can't just do: $(#workList select).change(function(){ alert(Selected: + this.value); }); No bubbling required. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
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 file is chosen. I tried a recent build of Webkit and everything worked fine. Interesting. Thanks for the feedback, Roger. I suspect there must be a script error occurring on the page. Did Safari indicate that an error occurred? Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
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 discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Get form name on button click
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 among numerous forms. I need to modify the ajax response content depending on the form used. When a button is clicked, what is the best way (w/ jQuery) to get the name of the button's parent form? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite question...
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 / Mike On 3/26/07, Rick Faircloth [EMAIL PROTECTED] wrote: Hey, Mike... or some else... Can taconite be used to change a form field value, say from false to true, or will it only change element content? Rick ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite question...
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. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite question...
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
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? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI and IE 6.0 issues
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? This thing works like a beauty in FF. And it's a great plugin for what I need versus the more robust jqModal - which is great too but offers more functionality than I need right now. That being said, I may have to work with jqModal since it appears it will work for what I need (just a simple blocking of the UI) with a few tweaks. Stinks, because I really like how events are wired in blockUI - simple and clean...do this, block ui, do this. Done. Issues I am facing in IE 6.0: 1) $().ajaxStop($.unblockUI) never fires. I even tried to manually unblock using $.unblockUI() but no cigar. I can see the ajax response return and the DOM elements are updated but the block never is removed. 2) Issues with the block not filling the entire page. Appears to be an issue with the height. The width works fine but the block never flows the height of the page in IE. I'm using - * Version 1.02 - test (03/19/2007) Here's how the page basically works - user clicks button, pop blockUI, fire an ajax event, ajax event returns, unblockUI. Any suggestions? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqupload tweak + forms plugin
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: form.submit.notify ... umm ive looked on jquery api / your api and jorn api no such a command... can you be more specipic? malsup wrote: 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 behavior. These aren't currently documented so check the source code for details. Mike On 3/22/07, amircx [EMAIL PROTECTED] wrote: hey... my brother did some tweak to the jqupload script : http://tal.tl/javascript/my-jquploader-upload-images-php-ajax-flash.html is it possible to integrate it with the forms plugin? cause i saw that there is no support for it.. -- View this message in context: http://www.nabble.com/jqupload-tweak-%2B-forms-plugin-tf3446353.html#a9610890 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/jqupload-tweak-%2B-forms-plugin-tf3446353.html#a9658809 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite Plug-in Question...
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 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
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 script responses, dojo defines a contract that insists that such content be returned within the body of a textarea element. That makes good sense because script and json responses will often include special characters that will cause problems when inserted as normal text. But rather than make that a requirement I decided to make it optional. So if you are returning complex json or script you *should* include it in a textarea like so: textarea { name: mike, message: function() { if (x y) alert('yo!'); } } /textarea - or - textarea for (var i=0; i max; i++) doSomething(i); /textarea In the code above, without the textarea element the less than operator will not work as expected cross-browser. If you're returning simple json or script (no special chars) you can omit the textarea. Mike If you use this page for testing *please* be kind to my server and only upload small files! I'd really prefer that you download the plugin and integrate it into your own test environment if possible. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Taconite Plug-in Question...
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 http://jquery.com/discuss/
Re: [jQuery] How do I find what form my input is in?
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 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Alexandre, I was under the impression that quite a few people like your plugin (including me). The upload feature in the form plugin is not meant to replace what you've done. I think some UIs are well suited for jqUpload. I'm just trying to fill out some missing functionality in the form plugin. Cheers! Mike On 3/23/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Bouhouhou, nobody likes my file upload plugin with progress bar , bouhouhouh :) Mike, works perfect here, winxpSP2 FF2.0.0.3 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 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 then go ahead and grab the beta plugin at: http://malsup.com/jquery/form/file/jquery.form.js Mike, GREAT stuff!!! I always hoped you would bake that into the plugin someday. I'm pretty sure I'm going to test/use that with the new plazes. :-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.448 / Base de données virus: 268.18.17/730 - Date: 22/03/2007 7:44 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Gurus - best Javascript references?
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: http://jibbering.com/faq/faq_notes/closures.html ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Form Plugin: How to add a variable to serialization/array?
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 plugin to serialize my form fields and post them to a php file. It's working fine, but I need to add a variable added to the serialized object and/or array, that I use to prevent spamming (a security variable that is not printed in the html code). So I have the following: var securityCheck = mysecuritycode; var formData = $(#myForm).formToArray(); $.post('postentry.php',formData,function(txt) { blah; }); How do I add the variable securityCheck to the array now? How does it have to look like? Thanks in advance, Arne -- Cheers Arne-Kolja Bachstein http://www.arnekolja.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI and IE 6.0 issues
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 issues that arose recently, both of which caused IE to abend. I'll try to put some more effort into fixing it though because I don't like the current behavior. Anyone else having issues with Mike's blockUI extension in IE 6.0? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockui crushes IE6
Chris, I just had that bug happen again this morning but this time I *think* that I've really fixed it! SVN has been updated. Mike On 3/20/07, Christopher Jordan [EMAIL PROTECTED] wrote: Sure Mike! Thanks and I'm sorry I never got a publicly accessible example up and going. Work is crazy 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://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Thanks. Mike On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: I'll try 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: Well, I knew he meant crashes. :oP I just wanted the crash specifics. I posted a problem a few times a while back and got no response -- I know, folks are busy :o) So I wanted to confirm that it was the same problem I was having. Here was my exact error message (had to look it up): Can't move focus to the control because it is invisible, not enabled, or of a type that does 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=txt On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: By 'crushes' do you mean that you get a javascript error stating that some element can't do something because it is hidden or missing (... I know, my memory is great... sorry)... did you get something like that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Beta Testers needed for Form Plugin file upload support
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 dependencies. The plugin will automatically detect file input elements and use an iframe to submit the form if there are files to be uploaded. No extra coding or metadata is needed to take advantage of this new feature. In addition, even though an iframe is used instead of the XHR object, callbacks and global triggers still work as expected (so any code that you have in place to display activity indicators or blocking elements will still work). However, there are some challenges when using iframes in this manner. For one, it is quite difficult to determine if the submit operation succeeded or failed. The iframe becomes the target of the submit operation and so that is where the server response is written. The form plugin does its best to determine the data type (html, xml, etc), but the status is always 'success' unless an exception is caught during the type determination. (Note that dojo and YUI haven't figured out how to solve the status problem either.) I've prepared a sample page with several forms here: http://malsup.com/jquery/form/file/ If you use this page for testing *please* be kind to my server and only upload small files! I'd really prefer that you download the plugin and integrate it into your own test environment if possible. I've done some testing on FF, IE and Opera and the results are encouraging. I don't have access to Safari so I'm sure there are issues lurking for that platform. If you're interested in the code you can find it all tucked into the end of the ajaxSubmit method in a function called fileUpload. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Thanks for that feedback Aaron! XML responses are a little dicey using the iframe approach. Although both dojo and YUI use this same technique, dojo comes right out and says they don't support XML responses: XML responses are not supported because we can't get a nice cross-browser solution I was hoping Safari would cooperate since FF, IE and Opera seem to play nicely. I'll keep digging into it (although it's difficult without a Mac), but the safest way around this is to return text or html responses when submitting the form and that's probably the 90% use case anyway. Mike On 3/22/07, Aaron Heimlich [EMAIL PROTECTED] wrote: Mike, I could definately use this for my current project! I have access to Safari 2.0.4 (build 419.3) at work, here's what I've found: Form 1: seems to work fine Output: TXT: var_dump: array(5) { [type]= string(4) html [MAX_FILE_SIZE]= string(6) 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] wrote: 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 dependencies. The plugin will automatically detect file input elements and use an iframe to submit the form if there are files to be uploaded. No extra coding or metadata is needed to take advantage of this new feature. In addition, even though an iframe is used instead of the XHR object, callbacks and global triggers still work as expected (so any code that you have in place to display activity indicators or blocking elements will still work). However, there are some challenges when using iframes in this manner. For one, it is quite difficult to determine if the submit operation succeeded or failed. The iframe becomes the target of the submit operation and so that is where the server response is written. The form plugin does its best to determine the data type (html, xml, etc), but the status is always 'success' unless an exception is caught during the type determination. (Note that dojo and YUI haven't figured out how to solve the status problem either.) I've prepared a sample page with several forms here: http://malsup.com/jquery/form/file/ If you use this page for testing *please* be kind to my server and only upload small files! I'd really prefer that you download the plugin and integrate it into your own test environment if possible. I've done some testing on FF, IE and Opera and the results are encouraging. I don't have access to Safari so I'm sure there are issues lurking for that platform. If you're interested in the code you can find it all tucked into the end of the ajaxSubmit method in a function called fileUpload. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqupload tweak + forms plugin
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 behavior. These aren't currently documented so check the source code for details. Mike On 3/22/07, amircx [EMAIL PROTECTED] wrote: hey... my brother did some tweak to the jqupload script : http://tal.tl/javascript/my-jquploader-upload-images-php-ajax-flash.html is it possible to integrate it with the forms plugin? cause i saw that there is no support for it.. -- View this message in context: http://www.nabble.com/jqupload-tweak-%2B-forms-plugin-tf3446353.html#a9610890 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Beta Testers needed for Form Plugin file upload support
Thanks, John. The implementation was mostly borrowed from YUI, although dojo's impl is the same in priciple. But jQuery's global events make this nice because the behavior is consistent with an XHR call. I like the fact that blockUI, or any other activity indicator, works as expected. Mike 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 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 dependencies. The plugin will automatically detect file input elements and use an iframe to submit the form if there are files to be uploaded. No extra coding or metadata is needed to take advantage of this new feature. In addition, even though an iframe is used instead of the XHR object, callbacks and global triggers still work as expected (so any code that you have in place to display activity indicators or blocking elements will still work). However, there are some challenges when using iframes in this manner. For one, it is quite difficult to determine if the submit operation succeeded or failed. The iframe becomes the target of the submit operation and so that is where the server response is written. The form plugin does its best to determine the data type (html, xml, etc), but the status is always 'success' unless an exception is caught during the type determination. (Note that dojo and YUI haven't figured out how to solve the status problem either.) I've prepared a sample page with several forms here: http://malsup.com/jquery/form/file/ If you use this page for testing *please* be kind to my server and only upload small files! I'd really prefer that you download the plugin and integrate it into your own test environment if possible. I've done some testing on FF, IE and Opera and the results are encouraging. I don't have access to Safari so I'm sure there are issues lurking for that platform. If you're interested in the code you can find it all tucked into the end of the ajaxSubmit method in a function called fileUpload. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin Requests
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 plugin requests. Thickbox is great. However, lot's of time you want total control over the styling of the frame window - like the excellent http://prototype-window.xilinus.com/ - which Thickbox doesn't give you. I'd really like a plugin which shows it's possible to acheive the same control, while keeping with jQuery's elegance and beauty. There is a lot of talent on this discussion group. Suggest a plugin idea and perhaps someone can pick it up and make it. I know that I enjoy playing/creating little scripts to relax or take a break from a larger project. I'd be willing to make someone's idea a reality, so post your best ideas! ~Sean ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] NOTICE: Moving to Google Groups
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 http://jquery.com/discuss/
Re: [jQuery] select box - options manipulation
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 can't bind events for option onclick events in IE7 (haven't looked IE6, firefox works). ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Validation and hidden fields problem
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 success, anyone got any ideas (it may be my syntax)? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockui crushes IE6
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://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Thanks. Mike On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: I'll try 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: Well, I knew he meant crashes. :oP I just wanted the crash specifics. I posted a problem a few times a while back and got no response -- I know, folks are busy :o) So I wanted to confirm that it was the same problem I was having. Here was my exact error message (had to look it up): Can't move focus to the control because it is invisible, not enabled, or of a type that does 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=txt On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: By 'crushes' do you mean that you get a javascript error stating that some element can't do something because it is hidden or missing (... I know, my memory is great... sorry)... did you get something like that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)
// 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 height of the iframe? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)
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 you set the height of the iframe? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockui crushes IE6
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 javascript error stating that some element can't do something because it is hidden or missing (... I know, my memory is great... sorry)... did you get something like that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockui crushes IE6
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: Well, I knew he meant crashes. :oP I just wanted the crash specifics. I posted a problem a few times a while back and got no response -- I know, folks are busy :o) So I wanted to confirm that it was the same problem I was having. Here was my exact error message (had to look it up): Can't move focus to the control because it is invisible, not enabled, or of a type that does 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=txt On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: By 'crushes' do you mean that you get a javascript error stating that some element can't do something because it is hidden or missing (... I know, my memory is great... sorry)... did you get something like that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- http://www.cjordan.us ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Event-AJAX wait before animation completes
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 want to delay an operation that already has inherent latency, just so that you can show an animation? Don't you want to show the ajax-loader *while* the ajax request is active? On 3/16/07, Yansky [EMAIL PROTECTED] wrote: How can I get an ajax request (that is triggered by a click event) wait for an animation to complete (which is also triggered by the same click event) before it runs the ajax request? e.g. this is what I'd like to do: $('.ajax-div-slide').click(function (){ $('#ajax-div').ajaxSend(function(){ $('#ajax-loader').animate({height: 375}, 2000); }); //only start the ajax once the animation has finished $('#ajax-div').load(this.href); return false; }); As well as the above example, I've also tried: $('.ajax-div-slide').click(function(){ var passClick = $(this) $('#ajax-loader').animate({height: 375}, 'slow', function(passClick){ $('#ajax-div').load(passClick.href); }); return false; }); ...and... $('.ajax-div-slide').click(function (){ $this($('#ajax-loader').animate({height: 375}, 2000, function(){ $('#ajax-div').load(this.href); }); ); return false; }); ...without any success. Anyone have any ideas as to how I can achieve this? Cheers. -- View this message in context: http://www.nabble.com/Event-%3EAJAX-wait-before-animation-completes-tf3412929.html#a9509661 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] loading content into a div (IE7 problems)
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
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? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery BlockUI Plugin IE crashes
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 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] JQuery Form plugin
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 help, George. George, The form plugin does not currently support file uploads. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] looking for overlay loading window script
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 one (or just change the text inside) to you have errrors : [errors] , please fix them! finnally if everything is ok then write on the window submit done and then on click redirect it to a page... or somthing like that.. anyone knows plugin that do similar thing? It sounds like you want to display a message, do some ajax, display a different message that is exactly what blockUI is meant to do. Look at the dialog example for some hints on how to do this. http://www.malsup.com/jquery/block/#dialog ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] serialize form
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 function is to provide ajax capabilities. I'd be glad to help if you found it confusing or if you have questions about it. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Re Serialize Form
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 browser does it. 4) How are special characters ( like the high unicode characters from a MSWord paste) handled? I can say they are not much loved in the XML serialization I am currently using? Encoding is handled by jQuery core using $.param which in turn uses encodeURIComponent. Thus the data is unicode and the content type is application/x-www-form-urlencoded. On the other thread, Jack posted a nice example of how he uses a timer to submit a form periodically. The key is to invoke ajaxSubmit in response to the timer event. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Local XML
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. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI over ActiveX plugin
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, the ActiveX control remains on top and hides the BlockUI message, remaining clickable. I thought maybe something with an iframe, but not sure what... Seb, blockUI uses an iframe at z-index 1000. Is there a url where I can see the problem? Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Checkbox unticked
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. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Get text from selected dropdown option
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); }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)
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 loaded. Am I missing something? or Is this Maybe it is being called. Did you look at the callstack? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] html in taconite response
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 list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] html in taconite response
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)
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 one's my favorite: http://meyerweb.com/eric/comment/chech.html ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Screencast: how to easily use AJAX to submit a form using jQuery
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 point out that gathering form data is a bit more complex when dealing with meatier forms. Your code works fine for a form that contains only text fields, but it would not work for a form that contained a checkbox, radio button or multi-select element. In addition, encodeURIComponent should be used instead of escape (and it should be used on both the name and value). I realize your demo was about how easy it is to ajaxify a form, and you did an awesome job demonstrating that. I just wanted to follow up with some additional info. Cheers! Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] how to make the function in forms + ajax?
This looks like a question about the validator plugin. You may want to use that in the subject line. rules: { firstname: { required: true }, age: { number: true }, password: { min: 5, max: 32 } }, messages { password: Please enter a password between 5 and 32 characters long. } }); and thing such : $(#myform).validate({ errorClass: invalid, errorContainer: $(#messageBox), errorWrapper: li }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
Please correct me if I'm understanding this the wrong way. Strings are safe. Object references are not. That's correct. It's safe to store primitives in an expando because the aren't reference counted for garbage collection. But objects are trouble. An IE memory leak pattern is as simple as this: var o = document.getElementById('A'); document.getElementById('A').myprop = o; Jack Slocum has a good blog entry on avoiding memory leaks: http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/ Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
One thing I would really like to see added (which I've done with help my modded version) is circular browsing - 'next' on last image loads first image, and vice versa +1 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] What's wrong with this code?
Looks like your quotes are wrong: mycfpage.cfm?User_ID= + User_ID ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] taconite question
When I click a navigation link there is a series of cosmetic changes made to the screen. In addition to these interface changes, which occur quite nicely using Taconite, I would usually use a .load() function to load another template into the main div, and this is what confuses me. Should I call the load function from within the Taconite XML file? Call .load explicitly in the page javascript after calling the .get for Taconite? Am I making sense? I guess I'm wondering, since Taconite intercepts AJAX calls, can I call an AJAX function from within the Taconite XML file? Paul, you can structure it whatever way makes more sense to you, or whatever fits best with how your page is written. While Taconite intercepts ajax responses, it only processes Taconite responses so don't worry about an infinite loop. So you could use the $.get callback, as you suggested: $.get('myTaconiteDoc', function() { // make another remote call $('#whatever').load('stuff.php'); }); or you could put the other remote call within the taconite document: eval$('#whatever').load('stuff.php');/eval or, if possible, just return what you know you need in the original document! :-) Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] taconite question
I always try to combine as many separate operations into a single taconite operation. I'm a noob, so keep that in mind. That's the best way to do it, Nathaniel. Don't make two requests if you can get what you need with one! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] BlockUI 1.0
I just posted a new version of BlockUI. I bumped the version to 1.0 just for fun. Changes: - Element blocking with messages; you can now have custom messages appear over blocked content when blocking a subset of the page. - Improved settings support; it is now much easier to override the default blocking styles, including the overlay itself. So for example, using a blue overlay instead of white is a one-liner. - improved Opera 8 support Examples and documentation can be found at: http://malsup.com/jquery/block/ The plugin is available at: http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI like plugin for divs
Hi Raymond, I'm using jQuery in non-conflict mode on my demo page now (with v1.0 of blockUI). It's working fine. Mike On 2/28/07, Raymond Auge [EMAIL PROTECTED] wrote: Thanks Mike. Raymond Auge [EMAIL PROTECTED] Software Engineer Liferay, Inc. Enterprise. Open Source. For Life. on 02/27/2007 15:04 Mike Alsup said the following: One little question. In order to make the blockUI work while using jQuery in compatibility mode (jQuery rather than $) I had to change all the $ references to jQuery in the plugin to get it working. Is this an issue with my config you think? That's weird, that shouldn't be necessary. I'll look into it. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multiple Ajax calls and multiple loading... boxes
Hm... Still doesn't sound like fun :) I wish there could be a way to do something like: $.load( $(myid), url, params, { onStart: function(){someLoader.show();}, onEnd: function(){someLoader.hide();} } ); Use $.ajax if you want to write it that way: $.ajax({ url: url, beforeSend: function(){someLoader.show()}, complete: function(){someLoader.hide()}, success: function(data) { $('#myid').html(data) } }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] toggling radio buttons
I'd like to write a jQ script which sets all o values (unapproved) to 1 (approved). I thought that one of these two would do it: $([EMAIL PROTECTED]@checked]).val(1); $('[EMAIL PROTECTED]').val('1'); Give this a shot: $(':radio:not(:checked)').attr('checked', true); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha
You can also have a look here (besides repository): http://stilbuero.de/jquery/thickbox_reloaded/ Fantastic, Klaus! This is very jQuery now with the simple usage of $('a').thickbox(). Great, great stuff! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multiple Ajax calls and multiple loading... boxes
$.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a loading... in one place, for another ajax call - a loading... in another place and for yet a third ajax call a loading in a third place. How can I do this in jQuery? Preferably, in one line (true to jQuery spirit :)) ). You may want to use ajaxSend instead ajaxStart. ajaxSend is passed the xhr and the settings object for the ajax call. This should give you the context you need to figure out where the loading indicator should go. $().ajaxSend(function(e, xhr, settings) { // your code }); Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multiple Ajax calls and multiple loading... boxes
This is still like a proctologist performing an eye surgery How so? You have control over everything in the settings object. And you can add any properties to it that you wish. So consider: $.ajax({ url: myUrl, type: 'post', indicatorId: '#indicator3' }); $().ajaxSend(function(e,xhr,s) { $(s.indicatorId).show(); }); $().ajaxComplete(function(e,xhr,s) { $(s.indicatorId).hide(); }); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ajaxSubmit not defined
$(function() { // OUTPUT login var login_options = { target: '#output-login' }; $('#login').ajaxForm(login_options); // PUT HERE MORE ajaxForm items... // BUSY state $('div id=busyLoading.../div') .ajaxStart(function() {$(this).show();}) .ajaxStop(function() {$(this).hide();}) .appendTo('body'); }); } --- but it only works on Firefox, Opera and IE are not compatible with it Can you explain that last statement? That code works on Opera and IE. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI moves content around in IE7
Yeah, it was a quirks mode issue. It's fixed now: http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt On 2/25/07, Mike Alsup [EMAIL PROTECTED] wrote: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN I think that's a problem with blockUI in quirks mode. I'll look into it. Can you try it in strict mode just to see if it works? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI like plugin for divs
Just an issue/small question though, in Safari, the select-tags gets dimmed for just an instant, and then shine through the block, is this a little bug? Thanks for the feedback, Andreas. I'm using a z-index of 500 for the iframe, perhaps that's not high enough in Safari? Anyone know? The full page blocking uses an iframe with z-index of 1000. Does that example work in Safari? Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 release!
http://dev.iceburg.net/jquery/jqModal/ Awesome work, Brice! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] How do I check for the existence of an object?
if (myObj == 'undefined') myObj = new Object(); I get an error saying the object is not defined. Try this instead: if (typeof myObj = 'undefined') myObj = {}; ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Running a function when something changes...
The settings object is a new object for each call to $.ajax. You should be able to use this technique. The thing is that I have to run my function each time the element is updated. If I set myTag to 1 on first run, it will never run again. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery taconite val()
val selection=#modify input value=abc / That should be written like this: val select=#modify input value=abc / ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery taconite val()
Mike, here's an interesting quirk. If I try to clear the value (val select=#modify input value= /) Taconite doesn't work. If I insert a value, even a space (val select=#modify input value= /) it does work. Should I use another method to clear the value of an input? That's a bug. I'll get it fixed and upload a new rev tonight. Thanks for catching it, Paul! Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery taconite val()
That's big news for me, Mike. It marks the first time I've ever been able to blame a bug instead of me when my app is behaving strangely! :) It's fix now, Paul. Have at it! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI like plugin for divs
I'd like to be able to do this sort of thing too. To block just a particular div to indicate that something is happening in regards to *just* that area of the screen, and that the user can continue to work in other I'm going to add this functionality to blockUI since several people have requested it. I'll post a note when it's ready (probably tonight). Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI like plugin for divs
a short simple question, give a way for add blockUI to the page when begin to load. Say we have over 20 great images to load, then the images are in the BrowserCache/onPage, all content are On, then unblockUI? understand this? Not really. Are you looking for something different than this? $(document).ready($.blockUI); $(window).load($.unblockUI); Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI like plugin for divs
I'd like to be able to do this sort of thing too. To block just a particular div to indicate that something is happening in regards to *just* that area of the screen, and that the user can continue to work in other I'm going to add this functionality to blockUI since several people have requested it. I'll post a note when it's ready (probably tonight). blockUI has been updated. To block the entire page, usage is the same as before: $.blockUI(); $.unblockUI(); To block selected elements, usage is like this: $('.whatever').block(); $('.whatever').unblock(); An example and docs can be found here: http://malsup.com/jquery/block/block.html Source code is here: http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Most of the logic for this update comes from Brandon Aaron's bgiframe plugin. Thanks, Brandon! Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Text looks choppy in IE7 with Opacity
I haven't had the chance to test this yet. Can anyone else confirm that setting a background image, even just a 1x1 transparent gif, solves this issue? It doesn't work for me. I just tried applying a bg image to everything and text renders the same ie7 (I tried transparent and opaque). This was using the tabs plugin which sets opacity and filter styles. Initially everything looks great, but once you switch to a different tab the text rendering is nasty. To make it work properly I comment out the lines that set opacity and filters (since I don't need those features). Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Text looks choppy in IE7 with Opacity
http://ov-staging.informationexperts.com/d.htm If I am way off base let me know. Hi Benjamin, The problem with IE7 is with non-bold text. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI and CPU intensive form processing
That's a problem. I see what you're doing, and I understand why you're doing it, but I don't know of any way to force the browser to render changes while you've got the current thread pinned. You really need async behavior to make this work, but that's not an option for you in your use case. I don't have an answer for this. Anyone have any ideas? Mike On 2/21/07, RCS Computers [EMAIL PROTECTED] wrote: Basically, I have some CPU intensive form validation that takes about 3 seconds to complete. I would like blockUI to start before the form processing and stop after the form processing. However, the blockUI message doesn't ever show up. When I comment out $.unblockUI(), the blockUI message shows up AFTER the form processing is completed. Code can be found here (57 lines): http://sh.nu/p/9301 I can arrange for the full HTML and JS if needed. -- -- Randy Syring RCS Computers Web Solutions 502-644-4776 http://www.rcs-comp.com Whether, then, you eat or drink or whatever you do, do all to the glory of God. 1 Cor 10:31 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI and CPU intensive form processing
RCS Computers schrieb: Thank you. That is actually what I am doing. However, when I do that, I lose track of which button submitted the form (the server side code uses the button that was clicked to determine its action). I am trying to work this out right now. Ok. As there doesn't seem to be much of an alternative: Check the target property of the submit event. Maybe you can get the submit button from there, and create a hidden form field with name and value of that button. A reference to the submitting element is temporarily stored on the form element in the 'clk' variable when using ajaxForm. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] blockUI and CPU intensive form processing
A reference to the submitting element is temporarily stored on the form element in the 'clk' variable when using ajaxForm. Oops, sorry. When I was writing that I was thinking that ajaxForm was being used. Ignore me! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Text looks choppy in IE7 with Opacity
This bug used to be fixable by applying a background color but not anymore (that I know of anyways). Not that I know of either (but I want to know!) I had this problem with the tabs plugin in ie7 and had to chop some stuff out to get around it. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Rounded corners question
the text elements within the DIV inner get disassociated from the parent form -- that is, when I submit the form, the elements are no longer a part of them. Here is the HTML for one of my DIVs. The text element PM16033-1497 is getting dropped from the form. Any advice on how to overcome this problem is greatly appreciated. - Dave Can you please provide a simplified example that clearly demonstrates the problem? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery form plugin
Hi Tim, Do you have a sample page? fieldValue should never return undefined for a password field. You can see examples of fieldValue in action on this page: http://www.malsup.com/jquery/form/#fields Mike I have tryed this and if I use alert, the value is undefined. The form has both name and id, also the text box has the correct name. Any suggestions? Thanx -- ___ Timothy M Bowler BSc(Hons) MSc MIET | Technology Director Or Media Unit 5 Elm Court 156 -170 Bermondsey Street London SE1 3TQ T: 020 7939 9540 F: 020 7939 9541 ___ The information in this e-mail and any attachments is confidential and is intended solely for the addressee. The material may not be reproduced either in whole or in part without permission and may not be used or disclosed without permission. No copies of the entirety or part of the information set out in this email or any attachment may be made without our prior approval. Any views or opinions presented are solely those of the author and do not necessarily represent those of Or Multimedia Limited. If you are not the intended recipient of this email, please contact us at [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery form plugin
I am trying to get the value of a name field - below is part of the form and the JS Tim, First, don't use ajaxForm and ajaxSubmit together. Pick one or the other. ajaxForm is almost always the best one to choose. Try this: html head script type=text/javascript src=jquery-1.1.1.js/script script type=text/javascript src=jquery.form.js/script script type=text/javascript $(document).ready(function(){ var options = { url: /contactusSubmit, type: 'post', beforeSubmit: validate, success: contactCompleted }; $('#contactForm').ajaxForm(options); }); function validate(data, $form, opts) { var name = $('#contactForm [EMAIL PROTECTED]').fieldValue(); alert(name); if (!name) return false; } function contactCompleted(responseText, statusText){ // do stuff } /script /head body form name=contactForm id=contactForm action= method=post Your Namebr / input type=text name=name / /form /body/html ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery form plugin
Thank you very much Mike, ill try that later. One last thing, if i want the form to be submitted by an html link rather than a submit button how do i do that ? Tim, That's a case when you would use ajaxSubmit instead of ajaxForm because you want to submit the form in response to the anchor's click event (instead of the form's submit event). $('#myAnchor').click(function() { ('#myForm').ajaxSubmit(); return false; }); In general, that's not a great idea because it won't degrade gracefully. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] textarea newline jquery form
I'm having some problems with the jquery form plugin. I'm taking input from a textarea and sending it to a mysql db with an ASP script. If I enter this text: Some Data sent via ajax is encoded in UTF-8 (using JavaScript's encodeURIComponent function). If you require a different encoding you will need to convert it on the server (ie: before updating the db). Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Forms Plugin: target scripts evaluated TWICE
I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a look. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Forms Plugin: target scripts evaluated TWICE
I've got a fix for this. I'll upload it tonight. Mike On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a look. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Form Plugin curiosity
plain text. I'm wondering if this is related to the issue with the plugin sending info twice (one of the other threads going around right now). The plugin does not send data twice. The other thread was about returned scripts being evaluated twice. Your code is encrypting the data that the plugin extracted from your form, but it's not doing anything else. The first argument to beforeSubmit is an array of data that is going to be passed to the server. You need to update the data in that array. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Forms Plugin: target scripts evaluated TWICE
This is fixed in svn; unit tests updated too. Good catch, guys! Mike On 2/16/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Thanks Mike. On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've got a fix for this. I'll upload it tonight. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/