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

2006-11-15 Thread Mike Alsup
> attr is not an alternative to val. It flat out won't work in FF for > textareas, selects or anything w/o a true "value" attribute. Oops. My apologies. I was using a 1.0 version of jQuery for my test. Ignore the above. ___ jQuery mailing list discu

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

2006-11-15 Thread Mike Alsup
> @Brandon: > Could you possibly include this in the form plugin Mike? Yes, I think this makes sense. > @Jörn: > I think it would be possible to split form's formToArray function: Extract a > formValue > method(or whatever name you like) that is then used by formToArray but also > available for

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

2006-11-15 Thread Mike Alsup
> That sounds like a good solution to me. It puts the form code with other > form code. > > I just started using the form plugin today and noticed that it doesn't pass > along the error callback in ajaxSubmit. I've changed my local copy but I > suspect others might want that as well. That's a grea

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

2006-11-15 Thread Mike Alsup
> > That sounds like a good solution to me. It puts the form code with other > > form code. > > > > I just started using the form plugin today and noticed that it doesn't pass > > along the error callback in ajaxSubmit. I've changed my local copy but I > > suspect others might want that as well. >

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

2006-11-16 Thread Mike Alsup
> The value for the Hidden field is "hiddenValue" and not "secret". :) Fixed. :-) > In the case of the checkboxes, if you check two boxes and use [EMAIL > PROTECTED] > fieldValue will only show the first value. That would need to go into the > array case like the select-multiple. But, if there

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-16 Thread Mike Alsup
Great input, Adam. Stay out of lurk mode. The only thing I disagree with is the importance of winning the size war. Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] $.ajax() with json output

2006-11-16 Thread Mike Alsup
On 11/16/06, Dave Methvin <[EMAIL PROTECTED]> wrote: > If you specify json output in the $.ajax call and the resulting output isn't > well-formed json for any reason, it causes a javascript error on the eval in > $.ajaxData. Has anyone else encountered this? My quick fix was to wrap the > eval in a

Re: [jQuery] Inject arbitrary data into ajaxForm using the before Callback

2006-11-16 Thread Mike Alsup
> The console output shows the altered array which contains a couple more > objects. But this data does not get put in the POST variables. Only the > unmodified data. Is that because formArray is a Pointer or something. Am at > a loss. Yeah, you're creating a new array there. If you want to add i

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 jQuery.pa

Re: [jQuery] Inserting and -- 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/ M

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 the

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 be

Re: [jQuery] Calling default form submit; $('#form')[0].submit(); VS $('#form').submit();

2006-11-24 Thread Mike Alsup
> It's actually a really small addition, just something like: > if ( elem[ fnName ] ) > elem[ fnName ](); Yes, but which do you run first, the native fn or the 'on' fn? Or do you run them both? I think it's not quite as simple as this. Mike ___

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 or 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 swfob

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 i

[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] Form plugin: license

2006-11-27 Thread Mike Alsup
It's been a week and nobody has raised any concern about adding the standard jQuery license to the form plugin so I've made that change. http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt Mike On 11/22/06, Mike Alsup <[EMAIL PROTECTED]> wrote: > On 11/22

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 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 you

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 em

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 thi

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 an

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

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 newli

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 . If it exists, use this value. If not, use > the innerHTML of the (or empty string if there is none) ? > Perhaps this is too much overhead? Yes, that's a good thought but IE is too slippery. getAttribute

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)

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 http://jque

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); Nic

[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 htt

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.

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', 'MSXM

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 http:/

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 discuss@jqu

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

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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> jQuery Form Test $(functi

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 http://

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, Fo

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 ev

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 http://jquery

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: v

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 Re

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 se

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.shipping').ajaxForm({

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 no

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/ ___ jQ

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 error-me

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 w

Re: [jQuery] JQuery driven site

2006-12-19 Thread Mike Alsup
> My kids must be put to sleep... That seems a bit harsh. What did they do to deserve that? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

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, is not valid XHTML. Switch that to 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 ___ j

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 h

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 http://jquery.co

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 Oper

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. http://jquery.com/dev/svn/trunk/plugins/corner/jquery.co

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. Y

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

2006-12-21 Thread Mike Alsup
Your astuce run with ie6 ! > > 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

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 http

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/tac

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

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 tha

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 http://jque

[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 maili

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 tha

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 up

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: $('#new

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 = $('Button Text"); $(this).after(b).hide(); b.click(function() { form.submit(); return false; }); }); ___ jQuery mai

Re: [jQuery] Run a list of functions sequentially

2006-12-27 Thread Mike Alsup
> This will allow $.sequence.runNTimes(5, function() { console.log(this), > function() { console.log("Done") }; which will print 0, 1, 2, 3, 4 and then > "Done" Cool stuff, Yehuda! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

<    1   2   3   4   5   6   >