Re: [jQuery] Mobile application

2007-01-26 Thread Blair McKenzie
http://jquery.com/test/ On 1/27/07, Gerry Danen [EMAIL PROTECTED] wrote: I hope I was clear enough that I meant browser apps that go back to a php/mysql server for content delivery? The server part is no problem, just concerned about the client side and how capable their respective browsers

Re: [jQuery] preceding sibling

2007-01-25 Thread Blair McKenzie
Try $(#menu li.actif ~ li) Translation: Find an element with id menu (id by itself is faster than id with tag), then find a descendent LI with class actif, and return the preceding element if it is a LI. Blair On 1/25/07, Stéphane Nahmani [EMAIL PROTECTED] wrote: Hello again, I have written

Re: [jQuery] ie6 submit button error

2007-01-25 Thread Blair McKenzie
Breaking lines and indenting help. Blair On 1/25/07, old9 [EMAIL PROTECTED] wrote: t many brackets, that's why jQuery always drove me crazy. :D On 1/25/07, Karl Rudd [EMAIL PROTECTED] wrote: Bah. I missed a closing bracket. $(':submit') .attr('disable','true') .hide() .before(

Re: [jQuery] Retrieve a from iframe

2007-01-25 Thread Blair McKenzie
The only way to use jQuery across frames is to include jQuery in each frame's source. If they do, then you could do something like: var a=$(nothing); $(iframe).each(function(){ if (this.jQuery) a.add(this.jQuery(a)); }); Blair On 1/25/07, David Gironella [EMAIL PROTECTED] wrote: How can I

Re: [jQuery] cant append() form objects

2007-01-25 Thread Blair McKenzie
I refactored your function to use jQuery: function appLayer(id){ //create layerbox this.$layer = $(div id=' + id + _layer' class='layerbox'/div).appendTo(#content); //create form this.$layer.append(this.$form = $(form id=' + id + _form' name=' + id + _form' action='index.php'

Re: [jQuery] Retrieve a from iframe

2007-01-25 Thread Blair McKenzie
Ah. That was my last idea. Sorry Blair On 1/25/07, David Gironella [EMAIL PROTECTED] wrote: I test it but firefox 2 say me that I cant access to HTMLDocument.getElementByTagName Giro. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Beginner needs help - Basics

2007-01-24 Thread Blair McKenzie
An easy mistake to make. Code in the head runs before the rest of the document is loaded. That means that when you do $(a) there isn't actually any A's in the document yet. To ensure that your code only runs when the document is ready, put it in this structure: $(function() { ... }); jQuery

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Blair McKenzie
You need to put your IE specific css in a separate css file and put the html link to that file inside the conditional comments. If you want to put IE specific css settings inside your css file, you can use a hack (hack = not supported. MS has committed to supporting conditional comments). One of

Re: [jQuery] ajax and IE

2007-01-22 Thread Blair McKenzie
Different browsers handle adding script tags to the body differently. $().load() covers the gap by manually running script tags in IE, but in the other ajax functions you need to handle it yourself. That's my understanding anyway. Blair On 1/23/07, Hayden Chambers [EMAIL PROTECTED] wrote:

Re: [jQuery] introduction and textarea counter / limiter question

2007-01-21 Thread Blair McKenzie
Put the code inside the $([EMAIL PROTECTED]).each(function() { ... }) into jQuery.fn.countSize(function() { // create a jquery method called countSize return this.each(function() {// for each item in the jquery array, run this function ... }); }); A developer

Re: [jQuery] Getting the optgroup for a select option

2007-01-17 Thread Blair McKenzie
Thanks a really nice plugin. :D I think option-sel would be better - this would have the correct value on load (the default selection) and would also be correct once the user changed the selection. Perhaps something like this: $(document).ready(function() { $('#MySelect')

Re: [jQuery] newb question - JQuery fade and replace

2007-01-17 Thread Blair McKenzie
JQueryFadeSwap(oldStuff, newStuff){ $(newStuff).hide(); // this handles browser differences, but also gives you a place to hook it 'out' animations for new $(oldStuff).fadeOut(function(){ // you can add a callback to animations that run when the effect is completed swap(oldStuff,

Re: [jQuery] Display error if no INPUT radio is checked.

2007-01-17 Thread Blair McKenzie
Try error = error + $(this).parent().parent().find(td:first).text(); Blair On 1/17/07, Jamal Arbib [EMAIL PROTECTED] wrote: hi i am very new to this group i try to display the text of the first TD if no INPUT radio of the second TD is checked. i try this code , it return all TD 's

Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie
What kinds of select strings are you using ( $(in here) ). This can have a big impact on speed. Blair On 1/18/07, byan [EMAIL PROTECTED] wrote: dear all, i'm using $(elm).load(url, function() {...}) to insert new content, but i found this cost me extra 3-5 times than using standar ajax

Re: [jQuery] fadeOut text

2007-01-17 Thread Blair McKenzie
The jQuery ajax methods take callbacks which are run when the data is recieved/loaded, so: $(...).load(url,params,function(){ $('.notify',this).fadeOut('slow'); // '.notify',this, looks for .notify elements inside the element being updated }); Blair On 1/17/07, Vaska [EMAIL PROTECTED] wrote:

Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie
Actually, using an id is as good as it gets. Sorry, that's the only thing I could think of that would effect the speed so much. Blair On 1/18/07, byan [EMAIL PROTECTED] wrote: i have page like this body div id=cleft/div div id=cmain/div div id=cright/div /body new content always fetch into

Re: [jQuery] Trying to show/hide table row...

2007-01-15 Thread Blair McKenzie
1. Add the row to the table - all of the content should be contained in hidden divs 2. Run animations on the divs - show, slide down, fade in, etc Blair On 1/16/07, James Thomas [EMAIL PROTECTED] wrote: Yes, but it just appears, we haven't yet experimented with applying effects. We

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Blair McKenzie
You're handling a case where arg1 isn't a string. What is the alternative? Blair On 1/12/07, Nate Cavanaugh [EMAIL PROTECTED] wrote: John told me to post this here, so here it is I am currently refactoring a large amount of code over to jQuery. Against better principles, the HTML is

Re: [jQuery] a on click show form

2007-01-10 Thread Blair McKenzie
Yes, $(fn) is jQuery for run fn when the page is ready. Putting event binding in here ensures that you don't try binding events to elements that don't exist yet. You can bind element events with either $(selectstring).eventname(fn) or $(selectstring).bind(eventname,fn). One thing to think about

Re: [jQuery] Tiny plugin example, message box

2007-01-10 Thread Blair McKenzie
I think there are some full-fledged formhttp://fuzz.bassistance.de/jQueryFormValidation/validateTest.html validationhttp://www.willjessup.com/sandbox/jquery/form_validator/form_validate.htmlplugins around. Even if none of them are quite what you're after they could probably give you some ideas.

Re: [jQuery] benchmark tool for ajax?

2007-01-10 Thread Blair McKenzie
The latest FireBug extension has JS code profiling in it. As for improving sortable's performance, that's come up a lot in the list so you could probably find something by looking at the nabble archivehttp://www.nabble.com/JQuery-f15494.html. But I think the conclusion was that generic

Re: [jQuery] toggle removes objects' original href=go here function

2007-01-05 Thread Blair McKenzie
Try $(document).ready(function() { $(#download).bind(click,function(){ $(#donate).toggle(); }); }); Blair On 1/6/07, Hannah Gray [EMAIL PROTECTED] wrote: I'm making a download button which links to a zip file but also needs to show a hidden div when clicked. Adding the toggle() or click()

Re: [jQuery] setting an attribute... I *thought* this was how to do it...

2007-01-04 Thread Blair McKenzie
Does the case of 'ID' make any difference? Blair On 1/5/07, Christopher Jordan [EMAIL PROTECTED] wrote: Hi folks, I've got another simple question. Is this not how you set an element's attribute? [from inside an .each()] $(this).attr(AttributeName, Value); I thought that worked... I

Re: [jQuery] Passing formfield value on blur

2007-01-04 Thread Blair McKenzie
First, inside an event you can access the element through 'this': i.e. inside the blur function $('#idm') == $(this) I don't understand this: var formval = {$('#idm').val();}; If you're trying to create an object then you should use: var formval = { idm:$(this).val() }; If you're trying to

Re: [jQuery] File (image) upload

2007-01-03 Thread Blair McKenzie
Define a callback function in the origonal page (yourFunction), then in the page returned by the ajax call put script that uses that function ( parent.yourFunction() ). Blair On 1/4/07, Ámon Tamás [EMAIL PROTECTED] wrote: Ámon Tamás wrote: Hello, I like to upload an image from a form with

Re: [jQuery] Bug in jquery? (IFrame, Ajax Firefox)

2007-01-03 Thread Blair McKenzie
You can use XMLHttpRequest to submit files. Ever. The only way to do AJAX file subission is to create an invisible iframe and set that frame as the target of an ordinary form. When the form is submitted, the iframe uploads the file and downloads the resulting page and executes any script in it,

Re: [jQuery] Bug in jquery? (IFrame, Ajax Firefox)

2007-01-03 Thread Blair McKenzie
Sorry. I got mixed up with another thread! :D Blair On 1/4/07, Hermann-Marcus Behrens [EMAIL PROTECTED] wrote: Hello again, I found the solution: Firebug is installed and made the problem. Firebug Beta 2 is supposed to solve this problem. Found it in Google-Groups:

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

2007-01-03 Thread Blair McKenzie
I think the form may be submitting. The whole page is reloading when you click submit. Try onClick=findMember(this.form; return false;. Blair On 1/4/07, Daniel McBrearty [EMAIL PROTECTED] wrote: Hi Just getting into using js to do things. I'm just experimenting right now. Here is my example

Re: [jQuery] Masked Phone Number Input

2006-12-20 Thread Blair McKenzie
Very nice! I could probably use this as well. Some things: - In IE I was able to put more than three characters in the first part - In IE I was able to put in letters - It would be great if you could add keyboard arrow support, i.e. to navigate between parts Blair On 12/21/06, Jonathan

Re: [jQuery] Masked Phone Number Input

2006-12-20 Thread Blair McKenzie
Now that's interesting. I was using the IE Tab FF extension, and that seems to make a difference. Blair On 12/21/06, Jonathan Sharp [EMAIL PROTECTED] wrote: On 12/20/06, Blair McKenzie [EMAIL PROTECTED] wrote: Very nice! I could probably use this as well. Some things: - In IE I

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Blair McKenzie
This is the sort of situation where a demo page would really help. Can you put any of this on a public server? Blair On 12/21/06, Andy Matthews [EMAIL PROTECTED] wrote: I'm working with recipes and I want to use some jQuery goodness to clone a DOM construct that will contain a few form fields

Re: [jQuery] login help

2006-12-20 Thread Blair McKenzie
1. Get the center of mass of the points ( average x, average y) 2. get the angle of each point in relation to the center of mass (basic trigonometry) 3. sort the array by the angle Blair On 12/21/06, bmsterling [EMAIL PROTECTED] wrote: Guys and gals, I am working on something that

Re: [jQuery] Duplicating a row...

2006-12-20 Thread Blair McKenzie
); }; // Now to start everything off, bind the function to any currently existing add buttons $('#ingList .ingredient .addIng').click(clickAdd); }); On 12/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Quoting Blair McKenzie [EMAIL PROTECTED]: As you two requested...sorry I didn't do

Re: [jQuery] Resetting a form/general floundering

2006-12-19 Thread Blair McKenzie
$(#sQuestion).resetInput(). Most plugins create new methods that you can run on a jQuery selection. I haven't actually had to reset an entire form before, but I would expect that you would have to do $(#nLinkForm)[0].reset(). i.e. $(#nLinkForm) // select the form [0] // access the DOM element

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

2006-12-18 Thread Blair McKenzie
Each takes a function as a parameter. Generally people just pass in an anonymous function (e.g. $('.oneclass').each(function(i) {}); ) but there is no reason you can't pass in a function you defined previously (e.g. $('.oneclass').each(fmoveCodeToImg); ). So, each has a function. When it runs,

Re: [jQuery] Resetting a form/general floundering

2006-12-17 Thread Blair McKenzie
$(nLinkForm) is looking for nLinkForm tags. You need to use css syntax: $(#nLinkForm) for id, $(.nLinkForm) for class. Blair On 12/18/06, Bruce MacKay [EMAIL PROTECTED] wrote: Hello folks, Please excuse this longish post but I'm seriously confused. I'm building a quiz editor. I have form

Re: [jQuery] Empty each text field

2006-12-14 Thread Blair McKenzie
$('[EMAIL PROTECTED]text]').val() On 12/15/06, Mungbeans [EMAIL PROTECTED] wrote: I want to empty every text field in a given form. So far this isn't working: $('[EMAIL PROTECTED]text]').each(function(){ this.val = ; }); -- View this message in context:

Re: [jQuery] Width + Height of a Media

2006-12-13 Thread Blair McKenzie
You could put the size in the url (i.e. url?width=xxxheight=yyy) and then parse out the values on click. function getParams(url) { var params=[]; $.each(href.split(/(?|)/),function(i,s){ var pair = s.split(=) if (pair.length==2) params[pair[0]]=pair[1]; }) return params; };

Re: [jQuery] Select All elements between clicks? need help please

2006-12-13 Thread Blair McKenzie
// declare dates here for access by all events var firstdateel=false; var lastdateel=false; // or you could select hidden input elements and use those var $firstdate = $(input); var $lastdate = $(input); // select all dates var $dates=$(td.selectabledate); // declare the range variable for

Re: [jQuery] missing ; before statement

2006-12-13 Thread Blair McKenzie
Have a look at the various form plugins. The normal forms one will pull all the form data into a hash, but there's another one that will do the reverse. Blair On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote: Erik Beeson wrote: You still have no_html with an underscore... I temporarily

Re: [jQuery] this verus (this)

2006-12-12 Thread Blair McKenzie
Since jQueryizing an element - involves a small performance hit and - not every developer's requires a jQuery object in eqch it makes more sense to simply provide the element itself inside each. This way developers can do $(this) if they need to. Blair On 12/13/06, SRobertJames [EMAIL

Re: [jQuery] Using JQuery to manipulate href (URL params)

2006-12-12 Thread Blair McKenzie
// there are rumblings of romoving the event shortcuts (eg $().change) // not sure if change works on a checkbox, if not click should work $('#sendAlert').bind(change,function(){ // find all links in #panel and apply a function to each one $(#panel a).each(function(){ // within each

Re: [jQuery] How to detect an element's class name?

2006-12-12 Thread Blair McKenzie
Actually getting the class value isn't as usefull as it might seem at first glance because elements can have multiple classes - i.e. div class=note selected mouseover/div. This means that if you did get the value, you'd have to do all sorts of gymnastics to check for what you want. It's much

Re: [jQuery] this verus (this)

2006-12-12 Thread Blair McKenzie
Generally the jQ object has methods that - can apply to the entire selected array of elements. Some extra methods are included for completeness - e.g. attr(href,#) sets the href attribute on all selected elements, but attr(href) will return the href value of the first selected element.

Re: [jQuery] passing functions

2006-12-11 Thread Blair McKenzie
I assume foo is a function? Remember that fn != foo() != new foo(). Instead of bar (new foo()) try bar (foo) Blair On 12/12/06, dmoshal [EMAIL PROTECTED] wrote: thanks for the prompt responses. the problem in more detail: function bar(f) { $(elem).click (f) } bar (new foo()) results

Re: [jQuery] ajax question with javascript on called page in ie6

2006-12-06 Thread Blair McKenzie
Really? Cool. On 12/6/06, Brandon Aaron [EMAIL PROTECTED] wrote: On 12/5/06, Blair McKenzie [EMAIL PROTECTED] wrote: Also, the document ready function won't trigger because you're loading the data via ajax. document ready only runs when the page itself loads. Any function passed

Re: [jQuery] bug in click() after upgrade to svn $Rev: 670 $ from $Rev: 415 $

2006-12-06 Thread Blair McKenzie
Probably something that you do earlier in the event is halting JS and the return false is never executed. Blair On 12/6/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: I use click() on an a and inside the callback I return false, to not execute the a. when I upgraded to the latest svn version... it seems

Re: [jQuery] bug in click() after upgrade to svn $Rev: 670 $ from $Rev: 415 $

2006-12-06 Thread Blair McKenzie
Try removing the other code in the event and build it up - it may be that some other part of the event is tripping on a bug. On 12/6/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: actually I use oneclick() On 12/6/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: I use click() on an a and inside the callback I return

Re: [jQuery] ajax question with javascript on called page in ie6

2006-12-05 Thread Blair McKenzie
Also, the document ready function won't trigger because you're loading the data via ajax. document ready only runs when the page itself loads. Blair On 12/5/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Ronald Haring - Tripolis schrieb: Hi all, I've been trying hard to get the following

Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread Blair McKenzie
- The page with the script will need to have the correct encoding - The page you are requesting needs to have the correct encoding (e.g. php has a method for setting encoding of page) - If you are using database data, the database needs to be configured to use the correct encoding

Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread Blair McKenzie
post the data use what encoding? 在06-12-1,Blair McKenzie [EMAIL PROTECTED] 写道: - The page with the script will need to have the correct encoding - The page you are requesting needs to have the correct encoding ( e.g. php has a method for setting encoding of page) - If you are using

Re: [jQuery] loading content and using events

2006-12-01 Thread Blair McKenzie
You need to put this $(#submission_form).submit(function() { alert('click'); }); in the callback for the load. The order of things happening at the moment is probably something like: 1. Request form with .load 2. Attach event to all #submission_form's (of which there are none at the moment) 3.

Re: [jQuery] modalContent Plugin 0.7

2006-11-30 Thread Blair McKenzie
Your demo doesn't work in IE6 - the grey background and window were added below the content instead of layered on each other. Blair On 12/1/06, Gavin M. Roy [EMAIL PROTECTED] wrote: I've released the very-quickly incremented modalContent plugin which is now at 0.7. This release fixes bugs,

Re: [jQuery] modalContent Plugin 0.7

2006-11-30 Thread Blair McKenzie
Now I'm getting Error: Expected identifier, string or number on line 1 during page load. When I continue and try to use the links I get Object doesn't support this property or method on line 15. On 12/1/06, Gavin M. Roy [EMAIL PROTECTED] wrote: Thanks, I've updated the code and released 0.9.

Re: [jQuery] modalContent Plugin 0.7

2006-11-30 Thread Blair McKenzie
Excellent. :) On 12/1/06, Gavin M. Roy [EMAIL PROTECTED] wrote: Sorry, left something in I meant to take out. Please retest. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] modalContent Plugin 0.7

2006-11-30 Thread Blair McKenzie
Can I control the size of the window? Is it possible to bind an event to close? Can one close from within JS instead of with an a.close element? On 12/1/06, Blair McKenzie [EMAIL PROTECTED] wrote: Excellent. :) ___ jQuery mailing list discuss

Re: [jQuery] Parameters truncated after $.post

2006-11-30 Thread Blair McKenzie
Can you give us a sample page? I occassionally find bizarre problems like this cropping up because of code that appears completely unrelated. Blair On 12/1/06, Christoph Baudson [EMAIL PROTECTED] wrote: Hi Matt, that's exactly how I did it. An object like {name1:value1,name2:value2,...} Any

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

2006-11-29 Thread Blair McKenzie
Considering the recent discussion about removing the macro functions, perhaps it would be reasonalbe to turn val() into a smart function, and to leave straight .value access through .attr(value). Blair On 11/30/06, Brice Burgess [EMAIL PROTECTED] wrote: Brice Burgess wrote: Mike Alsup wrote:

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

2006-11-29 Thread Blair McKenzie
I see what you mean. In that case it may be appropriate to merge fieldValue into val, as it encapsulates the functionality people are expecting from val. On 11/30/06, Aaron Heimlich [EMAIL PROTECTED] wrote: On 11/29/06, Blair McKenzie [EMAIL PROTECTED] wrote: perhaps it would be reasonalbe

Re: [jQuery] Change href of external links

2006-11-28 Thread Blair McKenzie
Or even better: $([EMAIL PROTECTED]'https:']).attr(target,_blank); It's easy to go overboard with JS where its not really needed. :) Another thing you may need to consider is that some browsers seem to return the full url for the href attribute, even for relative links. You may want to filter

Re: [jQuery] problems with slideUP

2006-11-24 Thread Blair McKenzie
I think you're html may be buggy. You shouldn't have DIVs or Ps nested inside other Ps. The outer P should be changed to a DIV. The inline styles you have on the outer P might also be involved. But I'm no CSS guru. Blair On 11/25/06, Alexander Petri [EMAIL PROTECTED] wrote: Hi i done this

Re: [jQuery] Correct way to get the nth item?

2006-11-23 Thread Blair McKenzie
There is an undocumented feature of jQuery where destructive methods (like eq()) will accept a callback function as a second argument. That function will have the new selection as 'this', but other methods on the chain will still be using the origonal selection. i.e. $(div).eq(n,function(){

Re: [jQuery] Off topic: which programming language forwebdevelopment

2006-11-22 Thread Blair McKenzie
Here's another vote for ColdFusion. It's so easy to learn, balances simple syntax and advanced rapid-development features, and hooking into databases is ridiulously simple. The cost of the production server can be an issue for developers of packaged solutions (in that, like ASP.NET, hosts

Re: [jQuery] Sortables with DIV's

2006-11-22 Thread Blair McKenzie
-- *ReynierPM* 5to Ing. Informática Maestro de poco, aprendiz de mucho -- *De:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *En nombre de *Blair McKenzie *Enviado el:* martes, 21 de noviembre de 2006 5:05 pm *Para:* jQuery Discussion. *Asunto:* Re: [jQuery] Sortables with DIV's

Re: [jQuery] Off topic: which programming language forwebdevelopment

2006-11-22 Thread Blair McKenzie
I have to admit that I would like better support for classic code (on top of the standard tag based syntax). Luckily there seems to be a very good chance that ActionScript will get folded into ColdFusion at some point, and that's very similar to JS. Blair On 11/23/06, Paul McLanahan [EMAIL

Re: [jQuery] Adding elements dinamically and mantain later

2006-11-22 Thread Blair McKenzie
You can either use the cookie pluginhttp://www.stilbuero.de/2006/09/17/cookie-plugin-for-jquery/(limited storage) or store the state on the server using a server-side script like php, cf, or asp.net. Blair On 11/23/06, Reynier Perez Mira [EMAIL PROTECTED] wrote: Hi every: I want to add the

Re: [jQuery] expression question

2006-11-16 Thread Blair McKenzie
Use toggle. It will switch the visibility of the selected elements. Blair On 11/17/06, Lucien Stals [EMAIL PROTECTED] wrote: So easy when you know how :) Now I have... $(span.singleEventTitle).click(function() { $(this).next().show(slow); //$(this).find(~

Re: [jQuery] calling xml but not ajax

2006-11-14 Thread Blair McKenzie
Use the AJAX functions. e.g. $.ajax({ dataType:xml, url:common/xml/002.xml, success:function(xml) { alert(xml);} });BlairOn 11/15/06, bmsterling [EMAIL PROTECTED] wrote: Hey all,I have a site that needs to be able to run on both a server and a cd and ihave to call in an xml file.I have it up and

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

2006-11-14 Thread Blair McKenzie
I think the idea of the package builder is so that 'standard' plugins can also be offered.BlairOn 11/15/06, Paul McLanahan [EMAIL PROTECTED] wrote:I agree that it should be as simple as possible for the end user, if only for our sanity because of the potential for increased supportrequests. I

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

2006-11-14 Thread Blair McKenzie
I've been thinking the same thing actually. The messiness of three functions for every event (bind, unbind, and trigger) outweighs the convenience. I think that all these macros should be spun out into a plugin so that they can still be included for backwards compatibility when necessary. BlairOn

Re: [jQuery] How to code a slide-up, slide-down for this?

2006-11-13 Thread Blair McKenzie
One simple approach is a div containing the toggle link/header at the top and another div wrapping the actual text. Inside the link click event you simply toggle all siblings of 'this'.Blair On 11/14/06, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all… I would like to be able to show

Re: [jQuery] if/then equivalents in jQuery

2006-11-12 Thread Blair McKenzie
Is there any reason you can't simply do the client-side validation on params before the post and wrap the post in a simple 'if' statement with the result as the condition?Blair On 11/12/06, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, I'm hoping someone might paint me a picture of how to use

Re: [jQuery] Dismissing Menus

2006-11-12 Thread Blair McKenzie
It depends on the underlying html structure of the menu. The simplest is to use nested lists with the hover(fn,fn) method jQuery provides. hover will trigger the first function when the mouse enters an element, and the second function when it leaves. BlairOn 11/13/06, Alan Gutierrez [EMAIL

Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-07 Thread Blair McKenzie
Very nice. A couple of things came to mind:How would I go about changing the pics?Would it be possible to have the 'hover' pics different from the passive ones? ie when the user goes to select, the stars change color. Even if you could point out how to do it with an extra hover event and some css

Re: [jQuery] Is this possible?

2006-11-06 Thread Blair McKenzie
$([EMAIL PROTECTED]'enabled']).click(function() { ... });See the jQuery docs for more options.BlairOn 11/7/06, Christopher Jordan [EMAIL PROTECTED] wrote: Hi folks, I have a table that represents a calendar. The user will be able to select multiple dates from the calendar, but cannot

Re: [jQuery] stripping out tags...

2006-11-06 Thread Blair McKenzie
Would this work? It would preserve node order.jQuery.fn.unwrap = function () { return this.each( function(){$(this.childNodes).insertBefore(this); });};BlairOn 11/7/06, Dave Methvin [EMAIL PROTECTED] wrote: div id=someIdlabel for="" spantext/span here/label /div I want to remove the label

Re: [jQuery] (no subject)

2006-11-06 Thread Blair McKenzie
Inside an event 'this' refers to the element the event was attached to. This is by design. If you want to access the externaly scoped 'this' do something like: var self=this;$('#text-field).click( function() { alert(self.name); } );Blair On 11/7/06, Steve Reid [EMAIL PROTECTED] wrote: why doesn't

Re: [jQuery] Moving elements

2006-11-06 Thread Blair McKenzie
Look at the animate function in the jQuery api.BlairOn 11/7/06, matthias [EMAIL PROTECTED] wrote:Hi there,first of all, thx for the good work on this list. It's not quite common to get help, if you'll ask some experts as a noob on discussion forums andlists.My problem today: I want to move a div

Re: [jQuery] Is this possible?

2006-11-06 Thread Blair McKenzie
They are more or less equivalent, but using the jQuery select syntax is standard and probably easier to read.BlairOn 11/7/06, Christopher Jordan [EMAIL PROTECTED] wrote: Thanks Klaus! How does this syntax differ from other suggested syntax: $([EMAIL PROTECTED]'enabled']).click()I'm

Re: [jQuery] Is this possible?

2006-11-06 Thread Blair McKenzie
I don't think it makes any difference. jQuery accesses both transparently.BlairOn 11/7/06, Klaus Hartl [EMAIL PROTECTED] wrote:Blair McKenzie schrieb: They are more or less equivalent, but using the jQuery select syntax is standard and probably easier to read.I was assuming that expando

Re: [jQuery] jQuery window plugin (teaser)

2006-11-02 Thread Blair McKenzie
If the functionality lives up to the promise of the pic I'll be first in line!BlairOn 11/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Hi Everyone - Just a teaser to show off my work i am doing on the window plugin:http://img183.imageshack.us/img183/6139/windowao6.png-- Gilles

Re: [jQuery] combo in ie

2006-11-02 Thread Blair McKenzie
I'm inclined to think its a bug in IE, but hopefully jQuery can squash it. :DBlairOn 11/2/06, Mark D.B.D [EMAIL PROTECTED] wrote:Hi All,I just found a little problem in ie with jquery. If we declare a combo box in a form without the value attribute we can´t get the value in internet Explorer.

Re: [jQuery] when checkbox is checked

2006-11-02 Thread Blair McKenzie
I think perhaps that the return false; shouldn't be in there.On 11/3/06, twothirty [EMAIL PROTECTED] wrote:blair, thank you. this however doesn't seem to work in firefox on a mac - it doesn't show the check in the checkbox. it functions right, it just doesn'tactually show a check when you click

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Blair McKenzie
Very nice!BlairOn 11/1/06, John Resig [EMAIL PROTECTED] wrote: Hi Everyone -I just finished reading over the massive thread that discussesembedding metadata into elements for later extraction. Well, I justfinished a plugin to handle all three metadata-extraction methods. You can see a demo here:

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Blair McKenzie
Because a get request is more restrictive (character codes in the url, maximum request size) than post. Therefore, by default, the relatively permissive hash is converted to post format. Load is a generic solution. If you want more control of your request, you need to use a more specific function.

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread Blair McKenzie
I'm pretty sure the ajax functions don't actually use the return values of the callback functions. Were you expecting something to happen when you return false?BlairOn 11/2/06, bmsterling [EMAIL PROTECTED] wrote: Hey all,I am working on some form validation and all works fine except on point.what

Re: [jQuery] Reset JQuery collection

2006-11-01 Thread Blair McKenzie
If you have stored $('.boxes') in a variable before the removal and checked size after the removal, you would get this problem. But you shouldn't if you just use $('.boxes') again.Blair On 11/2/06, Khurshid MUROD [EMAIL PROTECTED] wrote: Hi,Is there any way to reset JQuery collection.For example I

Re: [jQuery] Plugin method question

2006-10-31 Thread Blair McKenzie
Is there any reason not to simply use a _javascript_ snipit in a script tag? There are good reasons to put code at the start of a page or in a separate file, but in this case I would say that putting it at the top of the relevant tag is perfectly reasonable: ul id=list_xyzscript$(#list_xyz).attr(

Re: [jQuery] Serializing Sortables (new approach)

2006-10-29 Thread Blair McKenzie
If you're already depending on the order of the values being reliable (ie first is id, second is level, etc), then why use right and left id at all? Or even level for that matter. A request containing only the parent id would be faster for the connection, and the server-side script would be able

Re: [jQuery] js to jquery parent.frame...

2006-10-29 Thread Blair McKenzie
jQuery is used for DOM manipulation and searching. The 'location' property isn't part of that structure, so jQuery can't be used for it.BlairOn 10/30/06, kidult [EMAIL PROTECTED] wrote: i tried this but that didnt work... any

Re: [jQuery] Adding class to dynamic element

2006-10-27 Thread Blair McKenzie
tried your code, but I received a 'syntax error' on the first .find line.I don't see anything that looks out of the ordinaryBlair McKenzie-2 wrote: Take this with a grain of salt (I haven't tested it), but this should work: $(majorname, xml).each(function(i){var $this = $(this); // Wrap this item

Re: [jQuery] Sneak Peek and Hover question

2006-10-27 Thread Blair McKenzie
This approach stops load time by including hover and unhover backgrounds in the same graphic. This other one uses css to preload the hover image.BlairOn 10/28/06, Glen Lipka [EMAIL PROTECTED] wrote:I think that technique is called double-buffering. I can do that, but is there a better way? It

Re: [jQuery] Scroll document if draggable leaves viewport

2006-10-26 Thread Blair McKenzie
The list server sends your emails on to everyone else - not back to you.BlairOn 10/26/06, Eckhard Rotte [EMAIL PROTECTED] wrote:Hi jQueries,i've posted this mail 2 times ago, but it didn't appear in the mailing list. Only the web frontend did get it, nothing in my inbox.Did you get it?I'll try it

Re: [jQuery] Problem with .left() return auto in Opera

2006-10-26 Thread Blair McKenzie
Have you had a look at the dimensions plugin?BlairOn 10/27/06, Oskar E. [EMAIL PROTECTED] wrote: HiIs there any way to force .left() to return pixel values for Opera 9? The element in question is absolute right positioned, while Opera 8.5and Firefox return a pixel value, Opera 9 returns 'auto'.

Re: [jQuery] Sortable serialize

2006-10-26 Thread Blair McKenzie
Is there any reason you can't just use hidden fields with the name item[]? I think there is a similar conversion process in PHP, and as long as you don't use the name (and the []) for jQuery selection it shouldn't be a problem. I haven't used the item[]=xy = item[0]=xy thing myself (ColdFusion

Re: [jQuery] again on question on selectors

2006-10-25 Thread Blair McKenzie
A small optimisation: $(select.autosubmit).parent().find([EMAIL PROTECTED]).remove(); $(select.autosubmit).change(function(){ this.form.submit (); });is equivilent to $(select.autosubmit).change(function(){ this.form.submit(); }).parent().find([EMAIL PROTECTED]).remove();except that

Re: [jQuery] jQuery Demo - Portlets

2006-10-21 Thread Blair McKenzie
Nice.BlairOn 10/21/06, Nathan Smith [EMAIL PROTECTED] wrote: Here's a little demo I whipped up, just to show off the basics ofjQuery, plus using the Interface sortables. I tried to approach thetutorial from the standpoint of designers, who might feel intimidatedby _javascript_, but still want to

Re: [jQuery] load(),get(),post() params issue

2006-10-20 Thread Blair McKenzie
var params = new Array():Probably a typo, but I thought I'd mention it. Possibly {} creates an object not an array? In which case changevar params = new Array();tovar params = new Object(); BlairOn 10/20/06, Miel Soeterbroek [EMAIL PROTECTED] wrote: Howdy! Consider the following

Re: [jQuery] Popup window reference problem

2006-10-19 Thread Blair McKenzie
That's what I've done. It may be possible to do it another way, but I haven't had the time to experiment.BlairOn 10/19/06, Jacky [EMAIL PROTECTED] wrote:So, I should:1. includes jQuery library in popup. 2. call ref.$()where ref is the window reference created in window.open?On 10/19/06, Blair

Re: [jQuery] How to safely get the clickTarget of an event?

2006-10-19 Thread Blair McKenzie
The target of a click is already available through 'this'.BlairOn 10/19/06, Klaus Hartl [EMAIL PROTECTED] wrote:Jörn Zaefferer schrieb: Klaus Hartl schrieb: Kurt Mackey schrieb: Is there a "jQuery" way of getting an event's click target?I tend to use those elements quite a bit, but getting them

  1   2   >