Re: [jQuery] $.val() limited in functionality?

2006-11-16 Thread Mike Alsup
I've taken a stab at adding fieldValue and fieldSerialize to the form plugin. Please let me know if this impl makes sense. I also refactored ajaxSubmit so that it passes its options arg on to the $.ajax method (so any $.ajax options flow right through). I've got a test page up here:

Re: [jQuery] Testsuite 2.0

2006-11-18 Thread Mike Alsup
Just finished a heavy refactoring on the jQuery testsuite. Great work, Jörn! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] form plugin: preprocessing params before submitting

2006-11-18 Thread Mike Alsup
Is it possible to preprocess the params without changing the API? Renato, The 'before' handler is passed an array containing the args to be submitted. You can manipulate this array any way you see fit. When the 'before' handler returns the array is converted to query/post data using

Re: [jQuery] Inserting embed and object -- how?

2006-11-22 Thread Mike Alsup
http://clipvote.com/simpletest.html I get javascript errors when I run your test. In your command doc, why not use replace instead of html? I've updated my test page to included an example using your embed block. I'm using the latest code from SVN. http://www.malsup.com/jquery/taconite/ Mike

Re: [jQuery] Form plugin: possible to alter the form after a submit?

2006-11-22 Thread Mike Alsup
You should be able to use a closure to get what you want--untested: Thanks, Dave. It's true, the 'after' callback is invoked directly from $.ajax so it doesn't have the context of the form. A closure should work fine though - a simple example (tested): $('form').each(function() { var

Re: [jQuery] Form plugin: possible to alter the form after a submit?

2006-11-22 Thread Mike Alsup
Thanks for the closure tip. I come up with the code below, but your example might be cleaner. That will work as long as you don't have multiple forms submitting concurrently. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Form plugin: license

2006-11-22 Thread Mike Alsup
On 11/22/06, Anders [EMAIL PROTECTED] wrote: I couldn't find any license info on the Form plugin, is it under same dual license as jQuery (MIT/GPL)? Anders, I assume that is the case. The form plugin has had contributions from many developers and the question of licensing hasn't come up

Re: [jQuery] Safari problem with html() ... possible bug?

2006-11-25 Thread Mike Alsup
I get a 'COMMENT_NODE is not defined' error message (in Firefox). This is my implementation: Replace COMMENT_NODE with the number 8. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Inserting object or embed via jxs

2006-11-26 Thread Mike Alsup
So my question is what's the minimum amount of change I need to apply to jxs to implement that? Any ideas gladly appreciated! Jacob, I could not get this working reliably cross-browser without using swfobject.js. I have an example up at http://www.malsup.com/jquery/taconite/ which uses

Re: [jQuery] Corners plugin not working reliably in Opera 9

2006-11-26 Thread Mike Alsup
Sometimes it shows the blue background and the corners, sometimes not. Try reloading the document several times, to see the problem. Hmm, that does indeed seem to be a 'ready' problem, or more accurately an Opera 9 problem. It works correctly in Opera 8. And the ready event fires correctly in

[jQuery] Lite build not working for plugins?

2006-11-27 Thread Mike Alsup
Anybody have the lite build working for plugins? When I include plugins in my lite build the javadocs are not stripped (but they are from core). The min and pack builds seem to work just fine. lite.js looks like it should work but it doesn't (for me). Mike

Re: [jQuery] Corners plugin not working reliably in Opera 9

2006-11-27 Thread Mike Alsup
I just figured out that Opera 9 thing. For some reason Opera 9 seems to want the link tag to come before the script tags. It seems to be loading the styles asynchronously and that is causing a problem for the corner plugin (I think the styles are getting applied after we've munged the dom). If

Re: [jQuery] filter refactored with the engine of Chili

2006-11-28 Thread Mike Alsup
You can not be shure that a JavaScript Engine is not threaded. This code is not threadsave. Is there an implementation of javascript that supports context switching? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Form Select Help...

2006-11-28 Thread Mike Alsup
Need help in displaying the selected value on a select in a formbelow is the code which return nothing/empty. This problem also arises when using the form plugin. I thought it would be easy to fix but it turns out that IE resolves options without values to have a value identical to the

Re: [jQuery] Form Select Help...

2006-11-28 Thread Mike Alsup
Have you checked what getAttribute returns? Or maybe defaultValue? Hmm, defaultValue returns undefined but is that safe to use? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Stop using thickbox!

2006-11-28 Thread Mike Alsup
On your comment on degration, I am not sure my window plugin needs to degrade, after all, you have to open it from Javascript and it is a javascript build and controlled box... That's just my opinion, since i don't see how i could degrade this... It is either javascript on or off with this

Re: [jQuery] Form Select Help...

2006-11-28 Thread Mike Alsup
Hmm, defaultValue returns undefined but is that safe to use? Dunno, but may solve the problem. If the value is empty and the defaultValue is undefined, return the text content as the value, for IE. Unfortunately IE6 has an undefined 'defaultValue' for options with no value attribute and for

Re: [jQuery] TableSorter textExtractionCustom

2006-11-28 Thread Mike Alsup
How do I apply a regex function on that text? .. textExtractionCustom: { 1: function(o) { return $('span',o).val(); }, 2: function(o) { return $('span',o).val(); } }, Do you want the text of the element?

Re: [jQuery] Lite build not working for plugins?

2006-11-29 Thread Mike Alsup
Anybody have the lite build working for plugins? When I include plugins in my lite build the javadocs are not stripped (but they are from core). The min and pack builds seem to work just fine. lite.js looks like it should work but it doesn't (for me). That may be the newline issue we

Re: [jQuery] Getting the $.val() of a select element in IE

2006-11-29 Thread Mike Alsup
The *Bottom Line* is that IE submits a value of b for combo if the following select is left untouched. I've included the HTML/Form for your testing pleasure ;) Yes, that's true. But IE offers no way for javascript to distinguish between a true empty string value and a missing value

Re: [jQuery] Getting the $.val() of a select element in IE

2006-11-29 Thread Mike Alsup
off the top I would suggest seeing if the value attribute exists on the selectedIndex option. If it exists, use this value. If not, use the innerHTML of the option (or empty string if there is none) ? Perhaps this is too much overhead? Yes, that's a good thought but IE is too slippery.

Re: [jQuery] Getting the $.val() of a select element in IE

2006-11-29 Thread Mike Alsup
... IE is too slippery. getAttribute(..), Hold the phone. I think I've got a fix for this... ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Getting the $.val() of a select element in IE

2006-11-29 Thread Mike Alsup
var hasValueAttr = selectedOption.attributes['value'].specified; Yup, that's the one that did it. This is fixed now in the form plugin. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] TableSorter textExtractionCustom

2006-11-30 Thread Mike Alsup
thanks Mike, text or numeric value but I do not have it wrapped in a span element and using this doesn't work: .. textExtractionCustom: { 1: function(o) { return $('',o).val(); }, 2: function(o) { return $('',o).val();

Re: [jQuery] Tabs update: disabling/enabling

2006-11-30 Thread Mike Alsup
just wanted to let you know, that I've just uploaded and committed a new version of Tabs - I added support for disabling/enabling tabs: That's a good feature. Thanks, Klaus! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] getElementById help

2006-11-30 Thread Mike Alsup
The issue is that I can't work out how to do this without using getElementByID. I'm fairly new to javascript and Jquery and I was wondering if anybody could give me any tips as to how to make this a bit more elegant. Any help would be much appreciated. How about this (untested)? function

Re: [jQuery] Toggle div based on radio buttons

2006-11-30 Thread Mike Alsup
Since I'm dealing with two separate elements, do I need two click events? For simple two-button radio groups you could do: $('#test :radio').change(function() { $('#extrastuff').toggle(); }); ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] IE7 native xmlhttp breaks load() ?

2006-11-30 Thread Mike Alsup
This seems pretty straightforward, but I'm definitely missing something. You didn't mention what exactly the problem is. What is broken? Is there an error? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Mike Alsup
You could reduce the code by using switch And by eliminating duplicate code: $('#modalBackdrop').top(wt).css(css).height(winHeight + 'px').width(winWidth + 'px').show(); modalContent.top(mdcTop + 'px').left(mdcLeft + 'px'); switch(animation){ case 'fade': modalContent.fadeIn(speed);

Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Mike Alsup
If you had the user define the animation effect in terms of the actual jQuery method names (fadeIn, slideDown, show) and made the default be show, you could replace all of that with one line: modalContent.css({top: mdcTop+'px', left: mdcLeft+px}).hide()[animation](speed); Nice, Dave! And

[jQuery] Corner plugin added to SVN

2006-12-01 Thread Mike Alsup
http://jquery.com/dev/svn/trunk/plugins/corner/jquery.corner.js?format=txt This latest version fixes the problem with fixed-height divs. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] HI

2006-12-04 Thread Mike Alsup
Could you provide a link to the page with those two forms? That would make helping you a lot easier. That's a good idea, please post a link if possible. ajaxForm and ajaxSubmit both work correctly with multiple forms on a page. My test page has two forms on it specifically to test that case:

Re: [jQuery] HI

2006-12-04 Thread Mike Alsup
There is formSerialize method in the form plugin that will Oops. I meant fieldSerialize. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Get the Firebug 1.0 Beta!

2006-12-04 Thread Mike Alsup
I am happy to donate but will only really use it if it works with xhtml which currently causes it to crash firefox Huh? I only write xhtml and I've been using Firebug since it was first available. I've not had any problems. ___ jQuery mailing list

Re: [jQuery] Custom headers to ajax calls

2006-12-04 Thread Mike Alsup
preprocess: function(xml) { It'd work for me (and Kevin, i suppose) too. +1 for taking that route. I like that too. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Custom headers to ajax calls

2006-12-04 Thread Mike Alsup
preprocess: function(xml) { The form plugin uses 'before' for the preprocess hook. For consistency, maybe using that name would be a good idea. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Get the Firebug 1.0 Beta!

2006-12-04 Thread Mike Alsup
Hey Mike, as long as you don't serve XHTML as XML it's just HTML with some weird slashes where they don't belong to. Yep, I thought that's what Sam was talking about. But maybe he was referring to XML. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Custom headers to ajax calls

2006-12-04 Thread Mike Alsup
The form plugin's call point is earlier and lets you modify the form before it's serialized and passed on to ajax(), which would now have a before handler. If there's some way to resolve the call arguments and this usage I think it would be great to extend before, but it seems tricky. Good

Re: [jQuery] Small optimizations: IE XMLHttpRequest

2006-12-04 Thread Mike Alsup
does work for both IE 5.x and 6. With that in mind, we can remove both the Msxml2 stuff and the check for the useragent. Agreed? Just for kicks I took a look at what the other guys are doing: // dojo 'Msxml2.XMLHTTP' 'Microsoft.XMLHTTP' 'Msxml2.XMLHTTP.4.0' // yui 'MSXML2.XMLHTTP.3.0',

Re: [jQuery] Get the Firebug 1.0 Beta!

2006-12-04 Thread Mike Alsup
www.linkdup.com - works fine www.getk2.com - crashes when firebug is enabled Hi Sam, I didn't have any trouble with either of those sites. K2 throws a js exception but Firebug handles it just fine. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Custom headers to ajax calls

2006-12-05 Thread Mike Alsup
Cool - the before hook is working for me - thanks :) Jörn, As Dave pointed out, using 'before' actually creates a conflict with the form plugin. I should not have suggested it. The form plugin accepts a before handler in its options arg but ultimately passes the same options arg on to $.ajax.

Re: [jQuery] Rails accept-header ajax

2006-12-06 Thread Mike Alsup
ajax so I need to set some kind of global property. That is a very good idea. There should be a global ajaxSend callback invoked after the local handler like: // Allow custom headers/mimetypes if( s.beforeSend ) s.beforeSend(xml); if (s.global) jQuery.event.trigger(ajaxSend, [xml]);

Re: [jQuery] Rails accept-header ajax

2006-12-06 Thread Mike Alsup
I'll create a ticket for this. http://jquery.com/dev/bugs/bug/471/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] input type submit onclick handler

2006-12-07 Thread Mike Alsup
It looks like jQuery is submitting the form regardless of any click handler. Can you provide an example? jQuery does not submit forms all on its own and simply including jQuery on your page does not do *anything*. It sounds like there is something you're not telling us.

Re: [jQuery] input type checkbox

2006-12-07 Thread Mike Alsup
I guess i could make a plugin that extends .val to suite my needs. The form plugin handles this. Use fieldValue to get the value of a form element. http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt ___ jQuery mailing list

Re: [jQuery] dimensions (was: Adding an element ...)

2006-12-08 Thread Mike Alsup
On the subject of dimensions, is there an x-browser way of detecting if an element has been given a fixed height? On 12/8/06, Brandon Aaron [EMAIL PROTECTED] wrote: I played around with some basic benchmarks using firebug and couldn't really save more than a couple milliseconds on a typical

Re: [jQuery] dimensions (was: Adding an element ...)

2006-12-08 Thread Mike Alsup
If I'm not mistaken if jQuery didn't do anything when height/width was passed into .css(), then .css() would return the value of the .style object or if that didn't exist the value in the stylesheet. Which if the value in the stylesheet wasn't defined it should return null or 'auto'. Then you

Re: [jQuery] dimensions (was: Adding an element ...)

2006-12-08 Thread Mike Alsup
stylesheet except that it manually computes the 'height' and 'width' instead of giving you what is in the stylesheet. So if I wanted to know the height from the stylesheet, how would I get that value? In my case I don't really care what the value is, I just want to know if an element's height

Re: [jQuery] problem with modalContent plugin

2006-12-11 Thread Mike Alsup
Any ideas? Or, could anybody provide the simplest working example so that I can try that here and compare with my code? Here's a simple example: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml;

Re: [jQuery] Problem about ajax readyState

2006-12-12 Thread Mike Alsup
the same post content, i don't know why the result have different. please help me Try printing out the status attribute of the XMLHttpRequest object. That might give you an idea of why it's failing. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Dynamically changing the source of SWF call

2006-12-12 Thread Mike Alsup
Say mc_01.swf is the initial SWF that's loaded. I want to be able to click a button/text link labeled two and have mc_02.swf load in place of mc_01.swf. I want to be able to do this for other buttons as well. I think it should be possible, but I'm just not sure how to proceed. Andy, For

Re: [jQuery] .selectedIndex VS jQuery

2006-12-12 Thread Mike Alsup
jquery objects - chaining - closures That's the stuffs I wanna to master in order to claim that I really feel confident with jquery. The key here is that you really do need to understand javascript. jQuery is a javascript library. It uses objects and closures. It manages the dom and

Re: [jQuery] jQuery is now on gotAPI.com!!!

2006-12-12 Thread Mike Alsup
FYI -- for all those that know about http://gotapi.com, jQuery documentation Excellent, Rich. Looks great. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery 1.0.4 Released

2006-12-12 Thread Mike Alsup
So, without further ado, here's jQuery 1.0.4: Fantastic! Thanks, John. And special thanks to Jörn for this tireless efforts and to Brandon as well. You guys are really doing great work. Mike ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Mike Alsup
Let's say i'm on google.com and I would like to make some research on their page, using jQuery in the firebug console would be handy. I know it's possible with greasemonkey but I wonder if there's an easier way to do this ? Here's an example. Type the following into the firebug console: var

Re: [jQuery] How to make radio button selected?

2006-12-14 Thread Mike Alsup
$('#check_red')[0].checked = true; On 12/14/06, Sean O [EMAIL PROTECTED] wrote: Hi, I'm trying to select a radio button based on user input in a text box. Based on what is typed, I want one of two radio buttons with the same name, but distinct IDs, to be selected. I have the RegEx

Re: [jQuery] Simple code, but not working with IE 6 / 7

2006-12-14 Thread Mike Alsup
I see a couple things that I would change if it were my code. 1. change $().ready(function(){ to $(document).ready(function(){ fyi, these all work the same: $(document).ready(function() {}); $().ready(function() {}); $(function() {});

Re: [jQuery] jQuery Media Plugins question

2006-12-15 Thread Mike Alsup
I am using the Media plugin and I am not getting the alert about upgrading to the current flash when using this plugin, what can I do to make sure I get this alert? I see how you set the params for the quicktime part, but what about flash, I need to set some params (ie. wmode) and can't seem

Re: [jQuery] [EMAIL PROTECTED] Firefox error

2006-12-18 Thread Mike Alsup
I'm unfamiliar with the previous post where Mike suggested using the @selected selector but have you tried using the :selected selector? $('#unit option:selected').text(); You got it Brandon. It works with :selected but not with @selected, which is weird because that used to work.

Re: [jQuery] Find element within clicked form

2006-12-18 Thread Mike Alsup
Does anyone know how to do this? Any help would be appreciated. If you know a way to make my code better that would be great too, I'm quite new to this You can probably use the form plugin to simplify things quite a bit. Something along the lines of this: form name=?=$counter? class=shipping

Re: [jQuery] Value of currently selected radio button

2006-12-18 Thread Mike Alsup
Try the :selected selector like so: $('input.radioMe:selected').val() Likewise you could just use the name attribute of the radio input: $('[EMAIL PROTECTED]:selected'); The form plugin also supports this kind of evaluation. var val = $('.radioMe').fieldValue();

Re: [jQuery] DOM traversing then applying a non JQuery function

2006-12-18 Thread Mike Alsup
$(.oneClass).each(moveCodeToImg(this)) Don't try to pass 'this' into the function. It will be set for you. The arg passed into your function will actually be an index. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] DOM traversing then applying a non JQuery function

2006-12-18 Thread Mike Alsup
shouldn't be called. You could write it like this: $('.oneClass').each(function() { moveCodeToImg(this); }); I was thinking of this: $('.oneClass').each(moveCodeToImg); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] How to not select something?

2006-12-18 Thread Mike Alsup
$(document).ready(function() { if (!$(#save-search div.error-message)) $(#save-search).hide(); }); Would it be possible to let me know not just how to get this to work, but also where I'm going wrong? Your test will never fail because $(..) always returns an object which does not resolve

Re: [jQuery] Getting the TEXT of an option tag, not the value.

2006-12-18 Thread Mike Alsup
Have you tried doing $('#filter option:selected').text(); There was a similar problem with using [EMAIL PROTECTED] before. No one explained why it wasn't working though I've created a ticket for this: http://jquery.com/dev/bugs/bug/546/ ___

Re: [jQuery] How to not select something?

2006-12-19 Thread Mike Alsup
#save-search// select an element with id=save-search :not( // as long as the following is not found: [ // descendent elements containing div // a div .error-message// with class

Re: [jQuery] plugins: writing methods vs. objects

2006-12-19 Thread Mike Alsup
Not sure when to use jQuery.foo versus jQuery.fn.foo jQuery.foo just creates a function on the jQuery object (technically, on the constructor function). jQuery.fn.foo creates a function on the prototype object of the jQuery object. If you want your function to be available to all jQuery object

Re: [jQuery] Writing Efficient Plugins

2006-12-19 Thread Mike Alsup
When writing plugins, in general, when should I use jquery functions over standard javascript? (Sorry that question expose my ignorance.) I wondering when I should use a this.each in favor of a standard loop statement, or when to use getElementById instead of the dollar function? My worry

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Mike Alsup
Hi youngwax, Like Blair said, you don't need the CDATA if you're sending back valid XHTML. That said, br is not valid XHTML. Switch that to br / and try it w/o the CDATA. Also, it's great form to post a link to a sample page if at all possible! Mike

Re: [jQuery] xmlExec - sanitized output

2006-12-19 Thread Mike Alsup
I seem to get the same appearance with all combinations of br, br /, [CDATA], or not [CDATA]. I still don't get functional markup. Can you post a sample page somewhere? That would help us track it down. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] modalContent plugin is not modal

2006-12-20 Thread Mike Alsup
UPDATE: Gavin has reponded to me by email, privately. We should see a new release of the ModalContent plugin before long. Cool. Thanks, Tim. Did you test the event handling with Opera? I'm working on something similar and I'm having trouble squashing events (like TAB, arrow keys) in Opera.

Re: [jQuery] Cannot retrieve $.post( ) response

2006-12-20 Thread Mike Alsup
HTML or XML returned by $.post or the other AJAX methods do not provide a getElementById selector. But even if they did, the xml arg in this case is not valid. It is just text, not a node. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] modalContent plugin is not modal

2006-12-20 Thread Mike Alsup
Mike, in which events are you trying to intercept these keys? I found a few inconsistencies regarding this. Hi Klaus, Just for testing I setup a handler to reject all keypress/keydown events like this: var f = function() { return false; }; $().bind('keypress', f).bind('keydown', f); In

Re: [jQuery] Problem with jq-corner.js and ie6

2006-12-21 Thread Mike Alsup
I have a problem with jq-corner and ie6, the corners don't see (look this page for exemple : That problem is a result of IE's hasLayout quirkiness. You can either give those divs layout or use the latest version of the corner plugin.

Re: [jQuery] Problem with jq-corner.js and ie6

2006-12-21 Thread Mike Alsup
i have change my version by this version (http://jquery.com/dev/svn/trunk/plugins/corner/jquery.corner.js?format=txt) but i have similary problem. Hi Matthieu, Sorry about that. I was thinking the latest version caused layout to be applied to the element automatically, but it does not. You

Re: [jQuery] Problem with jq-corner.js and ie6

2006-12-21 Thread Mike Alsup
! I add this element height:1%; ie6 and very strange ! Thx Matthieu 2006/12/21, Mike Alsup [EMAIL PROTECTED]: i have change my version by this version (http://jquery.com/dev/svn/trunk/plugins/corner/jquery.corner.js?format=txt) but i have similary problem. Hi Matthieu

Re: [jQuery] cache problem? with xmlExec/ taconite

2006-12-21 Thread Mike Alsup
I have posted a relatively simple example at https://shop dot youngwax dot com/cork1.php. The xml returned is basically just a datestamp, available at Can you post that link again? I'm getting a 404. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] cache problem? with xmlExec/ taconite

2006-12-21 Thread Mike Alsup
https://shop dot youngwax dot com/j1.5/cork1.php Ok, I see the problem. It's a bug in xmlExec. I'll get it fixed. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] cache problem? with xmlExec/ taconite

2006-12-21 Thread Mike Alsup
On 12/21/06, Mike Alsup [EMAIL PROTECTED] wrote: https://shop dot youngwax dot com/j1.5/cork1.php Ok, I see the problem. It's a bug in xmlExec. I'll get it fixed. Youngwax, please give this version a try: http://www.malsup.com/jquery/taconite/xmlExec-1.0.4.js Mike

Re: [jQuery] Another XML / .get / iterator question

2006-12-22 Thread Mike Alsup
I'm trying to implement a web2.0y tag interface. I did a subversion update and built jquery.pack.js and tested on more time before posting this question so I think I am completely up to date. $(com.syndic.data.metadata.TagEntity, xml).each(function() { It's the periods in the tag name that

Re: [jQuery] AJAX problems - ajaxSubmit Form-PlugIn

2006-12-26 Thread Mike Alsup
1. the script duplicates the formsheet of Eintragen when you open and close it again and again.. Olaf, It looks like you're returning the entire HTML document in both the IFrame and the return from the form submit? For the form submit (save.php) try returning only the document fragment that

Re: [jQuery] Plugin Authoring: Custom Alias

2006-12-26 Thread Mike Alsup
just added the Custom Alias section to the plugin authoring guide. If you don't know about this yet, check it out. Anyway, please correct or improve it! Nice job, Jörn. That's a handy page. ___ jQuery mailing list discuss@jquery.com

[jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-26 Thread Mike Alsup
This is a plugin for anyone who has an occasional need to simulate synchronous ajax. Sync ajax locks the entire browser which is never a good idea. This plugin can block and unblock user interaction on demand. A demo can be found here: http://www.malsup.com/jquery/block/

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
Why not: $.blockUI()? Like that it's clearer that it is a global function, Good question. I guess I envisioned potential usage like: $('#myDiv').hide().blockUI().load('stuff.php', function() { $(this).fadeIn().unblockUI(); }); ___ jQuery mailing

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
I don't think that's what he was referring to. I think he was referring to the fact that the browser actually *freezes* (as in it registers as Not Responding in the Windows Task Manager) during syncronous AJAX. Thanks, Aaron. Yes, that's exactly what I meant. I should have emphasized that

Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-27 Thread Mike Alsup
I've been doing this same thing manually too. It'll be nice to have a plug-in. In a few of mine though, the message is actually a percentage counter letting the user know what portion of the page has been built. Hmm... I wonder if I can work that in some how. Hi Christopher, I have an

Re: [jQuery] Transmit form contents, receive response...best method?

2006-12-27 Thread Mike Alsup
I'm going to work on this myself, but I wondered if anyone had suggestions for the best way to accomplish this. I'd use the form plugin! :-) And maybe have the server return a json object like: { title: the new title, sortOrder: 1 } The script could be something like this:

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Mike Alsup
Can you give me a pointer to fix this? $(':submit').each(function() { var form = this.form; var b = $('a href=# class=buttonButton Text/a); $(this).after(b).hide(); b.click(function() { form.submit(); return false; }); });

Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Mike Alsup
For example, in $(document).ready( ... jQuery.require('jquery.accordion'); $('#myaccordion').Accordion(); jq.getScript(src); // here it should wait, but how? That won't wait, obviously, because it's an async call. You either need to use synchrnous ajax (like dojo) or

Re: [jQuery] Transmit form contents, receive response...best method?

2006-12-28 Thread Mike Alsup
I feel that it's easier to simply return the HTML string for the element that will get appended. Your example seems to return JSON (a javascript object right?). What are your thoughts on that? It all depends on what you need to do with the returned data. If HTML makes things easier for you

Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
I personally prefer reset() because there's rarely a case where you're setting default values that you don't intend to be the default value ;) I definitely agree with that. $(form :input:not([EMAIL PROTECTED]):not(button)).val() But not that! That will ignore type=text inputs. I'm going to

Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
This is for a CMS so I'm not really that concerned with it validating (as long as it works). Nested forms are not valid markup. I think it makes more sense to handle these special fields manually. Do they simply need to be cleared? If so, you'll be able to use the new clearForm method of the

Re: [jQuery] Clearing all form field values

2006-12-28 Thread Mike Alsup
I think maybe the form plugin needs to provide clearForm and resetForm methods and perhaps options to perform these functions automatically upon successful submit. These change are now in. http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt

Re: [jQuery] Help on form plugin Malsup :)

2006-12-30 Thread Mike Alsup
I am having an issue with the form plug in i cant access my ajax json response data. $(function(){ $('#ticket-form').ajaxForm({ dataType: json, success: function(data){ alert(data.event); } }); }); my responce {event:editSuccess,msg:w00t

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
It occurs to me that it would be cool if you could constrain the UI blocking to a specific element. Mike? I'll look into it, but it may add a dependency on the dimensions plugin. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
just a word of warning, blockUI causes 100% cpu-load on firefox2/linux (jumpy mouse cursor and all) and it takes about 10 seconds for the please wait-overlay to appear while the desktop is basically frozen. can anyone reproduce that? (i just clicked on some of the test-buttons, happens

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
can anyone reproduce that? (i just clicked on some of the test-buttons, happens every time). Moe, How does your cpu do just navigating to the wait page: http://www.malsup.com/jquery/block/wait.php ___ jQuery mailing list discuss@jquery.com

[jQuery] Recent updates to the form plugin

2007-01-03 Thread Mike Alsup
The latest version of the form plugin has some new features that you may not be aware of. New Functions: resetForm, clearForm and clearInputs // invokes the form's native 'reset' method $('#myForm').resetForm(); // clears all (appropriate) fields in the form $('#myForm').clearForm(); // clears

Re: [jQuery] Recent updates to the form plugin

2007-01-03 Thread Mike Alsup
Thanks for clearInputs. Did you resolve the bug in resetForm? Yes, resetForm does a fn test before invocation (which is a pain in IE because IE reports that the reset method is an 'object'!) ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] noob q - using $().html

2007-01-03 Thread Mike Alsup
now what happens when I fill in a value and click is that the value I entered into the text box appears in the member_info p ... but disappears again almost straight away. Try: onclick=findMember(this.form); return false;... Without the return false in there you're going to submit the form.

<    1   2   3   4   5   >