[jQuery] BlockUI and ASP.NET

2009-12-09 Thread Danny
In regards to this blog post http://tiny.cc/y0vsz Elijah has been able to come up with a workaround for BlockUI. However even with this I'm having problems with ImageButton ASP.NET control. Anyone know of a way to mod BlockUI to better handle this?

[jQuery] Re: Click multiple times, different states, saves different data to DB (confusing?)

2009-10-22 Thread The Danny Bos
doing is getting the current value of a given > property, such as background-color, finding its index in the arrValues > array, incrementing that by one and then setting the new value to the > element in the array with the incremented index. If the index is at > the end of the ar

[jQuery] Re: Click multiple times, different states, saves different data to DB (confusing?)

2009-10-22 Thread The Danny Bos
rote updates the color; you can add an ajax call > to update your db as well, if the value your updating in the db is the > color, or else the value is in an array that's indexed the same. > > On Oct 22, 12:10 am, The Danny Bos wrote: > > > > > For each click o

[jQuery] Re: Click multiple times, different states, saves different data to DB (confusing?)

2009-10-22 Thread The Danny Bos
('background-color'),arrValues)+1; >   $(this).css('background-color',arrValues[bgcolor===arrValues.length? > 0:bgcolor]); > > }); > > disclaimer: just wrote it inside Firebug's console, so haven't tested > it outside that... > > On Oct 21, 10:1

[jQuery] Re: Click multiple times, different states, saves different data to DB (confusing?)

2009-10-21 Thread The Danny Bos
or', 'blue'); }, function() { $(this).css('background-color', 'purple'); }); }); On Oct 22, 3:46 am, mkmanning wrote: > .toggle() allows you to rotate through multiple functions, you might > want to check it out in the > do

[jQuery] Click multiple times, different states, saves different data to DB (confusing?)

2009-10-21 Thread The Danny Bos
I've got one for ya, JQuery and Ajax. I want to have a button image, let's stay it's inactive state it's a grey circle, when someone clicks it once, it'd change to a blue circle (update associated DB field to "blue"), click it again and it becomes a red circle (update the DB field to "red") and s

[jQuery] Re: Remote Success message

2009-09-07 Thread Danny
This is of course the Validator Plugin, but someone must have some insight into how to add this functionality? I've looked, it's not there.

[jQuery] Remote Success message

2009-09-04 Thread Danny
Hi, I'm trying to figure out how to display a Success Message upon remote returning 'true'. Yes, I know this can be done with success: function() {}, however I have multiple fields that I want to use this on, and I want to display more than just a generic message. Let's say I have a Username and

[jQuery] Re: ajax request form in one page, is it possible ?

2009-08-29 Thread Danny
I understand that ive to use - X-Requested-With then I did search a bit about that and I found this code, $.ajaxSetup({ headers: {"X-Requested-With":"Ajax"} }); but I still don't understand how should I send the parameters to the same file and get them in the server side (PHP) I hot t

[jQuery] ajax request form in one page, is it possible ?

2009-08-29 Thread Danny
Hello, I want to build a form that work on one page only, to subtract the PHP pages for getting the data from all my web forms, I tried to pass the parameters to the same page but it dosent work :( i'll be glad if you can direct me to the solution Thanks

[jQuery] Re: Cross-domain (for analytics)

2009-07-30 Thread Danny Ayers
how I did a little write-up of the options I found for cross-domain Ajax at: http://blogs.talis.com/n2/archives/770 Cheers, Danny.

[jQuery] Cross-domain (for analytics)

2009-07-30 Thread Danny Ayers
I've run up against a cross-domain Ajax problem, essentially I want to do something like: (in http://hostA.com/page.html)

[jQuery] Re: Image Processing!!

2009-06-25 Thread Danny
There are people using elements to do image processing in Javascript; see http://ejohn.org/blog/ocr-and-neural-nets-in-javascript/ and http://www.pixastic.com/ On Jun 24, 2:03 pm, rosie wrote: > Hi there, > Just wondering is it possible to take an image, for instance an item > of clothing and r

[jQuery] Re: selector question

2009-06-09 Thread Danny
You probably don't want the '#' character in there: $("div:not("+pid+") form span").css("background-color","yellow"); On Jun 9, 11:45 am, mkmanning wrote: > $("div:not(#"+pid+") form span").css("background-color","yellow"); > > On Jun 9, 8:19 am, squalli2008 wrote: > > > Hi, > > > Im trying to

[jQuery] Re: JQuery UI Accordion Plugin

2009-05-25 Thread Danny Nolan
First is the code you cant see. Any and all post document ready changes are not visible by view >> page source. Instead, select the object with your mouse, right click, and view selection source. As for the accordion, not so sure there! --- On Mon, 5/25/09, Bharat wrote: From: Bharat Subjec

[jQuery] Re: jQuery & XML

2009-05-23 Thread Danny Nolan
So, first: html = '' + ($(this).find("titletext").text()) + '\n\n'; Create a variable with the code needed. $("div").append($(html)); Then dump it to the div. Order and logic you need to figure out, but thats an example of how to dump a xml returned result into a file. --- On Wed, 5/20/09,

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
widget To: jquery-en@googlegroups.com Date: Friday, May 15, 2009, 2:04 PM What UI-LI objects? Your sample code (which I added an extra div level to) only has DIVs and H3s. - Richard On Fri, May 15, 2009 at 2:21 PM, Danny Nolan wrote: Almost, I found it worked almost, except for the fact that

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
ble(); }) Where am I going wrong? --- On Fri, 5/15/09, Richard D. Worth wrote: From: Richard D. Worth Subject: [jQuery] Re: Sortable accordion-like widget To: jquery-en@googlegroups.com Date: Friday, May 15, 2009, 10:51 AM Sure, here you go: http://jsbin.com/aqeca You can edit this example here: ht

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
@googlegroups.com Date: Friday, May 15, 2009, 10:51 AM Sure, here you go: http://jsbin.com/aqeca You can edit this example here: http://jsbin.com/aqeca/edit It's not perfect, since when you sort one, it also toggles it, but it's a start. - Richard On Fri, May 15, 2009 at 10:19 AM, D

[jQuery] Re: how to uncheck the check box

2009-05-15 Thread Danny Nolan
Change to a standard radio group? --- On Fri, 5/15/09, bharani kumar wrote: From: bharani kumar Subject: [jQuery] how to uncheck the check box To: jquery-en@googlegroups.com Date: Friday, May 15, 2009, 9:38 AM Hi all Can u tell me , how to uncheck the check box , when i check another check bo

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
Example? Im very new to jQuery, the old code was partially provided by someone else with a few edits, so not sure how to create that new level you was talking about. --- On Thu, 5/14/09, Richard D. Worth wrote: From: Richard D. Worth Subject: [jQuery] Re: Sortable accordion-like widget To: jq

[jQuery] Re: Global variables in jQuery

2009-05-13 Thread Danny
Are you sure the data is coming back the way you expect? Put an alert (data) in the callback function. On May 13, 3:02 am, V wrote: > I can't get global variables work, maybe somebody knows the answer > because this should be very simple. > > The following does not work, the price is not availab

[jQuery] Re: POST Redirection

2009-05-02 Thread Danny Nolan
int me to the exact property I have to look for? On 2 Mai, 02:07, Danny Nolan wrote: > Firebug is your friend > > --- On Fri, 5/1/09, Cryptonit wrote: > > From: Cryptonit > Subject: [jQuery] POST Redirection > To: "jQuery (English)" > Date: Friday, May 1, 2009,

[jQuery] Re: POST Redirection

2009-05-01 Thread Danny Nolan
Firebug is your friend --- On Fri, 5/1/09, Cryptonit wrote: From: Cryptonit Subject: [jQuery] POST Redirection To: "jQuery (English)" Date: Friday, May 1, 2009, 2:22 PM Hi Folks! Here's my problem: I want to make a post request to a web service site. This site is automaticly redirecting me

[jQuery] IE: jQuery leaking memory on blank page

2009-04-16 Thread Danny Tuppeny
Hi all, I've been trying to fix some memory leaks in my app. As I was stripping the code down I discovered that even on a totally blank page that includes jQuery, memory is leaked. If you point Drip at the jquery.com homepage you'll see quite a few elements left around after the page unloads. It

[jQuery] datepicker highlight individual days

2009-04-07 Thread Danny
Hi, Is there a way to highlight or enable for selection individual days ( not a range of days ) in a datepicker? Thanks in advance, Danny

[jQuery] Re: Using JQuery instead of the Java applet for a web cam. Ideas? Suggestions?

2009-02-12 Thread Danny
dd a query string to change the filename: $('#webcamimage').attr('src', 'http://example.com/cam.jpg?time='+Date ()) Danny On Feb 12, 4:30 pm, James wrote: > You can use Javascript's setInterval function to constantly do a check > to update an image sour

[jQuery] Re: error with selector using jquery.ifixpng2.js and jquery v1.3.1

2009-01-25 Thread Danny
jQuery 1.3 finally got rid of the '@' in selectors. Just use 'img[src $=.png]' On Jan 25, 8:04 am, mcologne wrote: > hi, > > there comes an error with the following selector... i'm using > jquery.ifixpng2.js or (jquery.ifixpng.js) and jquery-1.3.1.min.js > > $('i...@src$=.png]').ifixpng(); > > E

[jQuery] New to JQuery: First Question (animating background image)

2009-01-19 Thread Danny
All, I just started work with jQuery just recently, and I'm beginning to love it. I'm a Prototype convert, and I love the increased power of jQuery. New to it though, I'm running into some trouble already. I'm trying to flip between different background images, with CSS set initially to the BODY

[jQuery] Re: firebug regression: console.log($('div')) less useful

2009-01-02 Thread Danny
onsole.log() method) > > On Fri, Jan 2, 2009 at 1:10 AM, Danny wrote: > > > Has anyone else noticed that Firebug before 1.2 would treat console.log > > ($('div')) as an array and list all the matched elements on the > > console, so you could mouse over the list

[jQuery] firebug regression: console.log($('div')) less useful

2009-01-01 Thread Danny
Has anyone else noticed that Firebug before 1.2 would treat console.log ($('div')) as an array and list all the matched elements on the console, so you could mouse over the list and highlight the elements, or right-click and scroll into view etc., but now it just lists "Object length=13" and you n

[jQuery] Re: Installation

2008-11-02 Thread Danny
Sounds like you are trying to use the file by double-clicking it in Windows. You don't have to do that; there's no "installation". It's ready to use. Include the line

[jQuery] Re: jquery 1.2.3, validation plugin 1.1, and IE6

2008-09-11 Thread Danny
In my experience, problems of "Works in FF but silently fails in IE" are almost always extra commas at the end of objects -- {a: 1, b:2, } sorts of things. > On Thu, Sep 11, 2008 at 5:04 PM, Andy Matthews <[EMAIL PROTECTED]> > wrote: > > A coworker is trying to use this combination of codes to ge

[jQuery] Re: Selecting a checkbox by clicking anywhere on a row

2008-09-08 Thread Danny
add " return false; " to your click handler to keep the click from getting to the checkbox itself. Danny On Sep 8, 10:55 am, "Michael Smith" <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm trying to make a page which automatically toggles a check

[jQuery] Re: $("xx").load can't load css and js in html file on Chrome??

2008-09-08 Thread Danny
According to the W3C standard,

[jQuery] Re: Wrap tagless text fragments?

2008-08-28 Thread Danny
empty text nodes though; change the if clause to (this.nodeType == 3 && $.trim(this.nodeValue)) Danny On Aug 28, 2:30 pm, Steven Black <[EMAIL PROTECTED]> wrote: > I develop and host wikis where users enter free-form text, and my > server-side parsers create WISIWYG HTML from

[jQuery] Re: attr(style: ) vs. css

2008-07-20 Thread Danny
Also attr('style', 'prop:val') replaces the entire inline style. css() just replaces that property. Danny On Jul 19, 12:37 pm, Geir <[EMAIL PROTECTED]> wrote: > Thanks!

[jQuery] Re: A simple plugin to check if your browser supported by jQuery - Officially

2008-05-22 Thread Danny
do capability testing without importing the whole jQuery test suite? Just a small set of things that are known to fail on unsupported browsers? Danny On May 22, 10:36 am, howa <[EMAIL PROTECTED]> wrote: > Just share with you one of a useful plugin: > > jQuery.supported = function()

[jQuery] Re: Very basic animation of an image is jerky (not smooth). Am I doing something wrong?

2008-05-22 Thread Danny
use setTimeout. Danny On May 19, 1:27 pm, Ariel Barreiro <[EMAIL PROTECTED]> wrote: > I am new to jquery but an experience developer. > > Here's the code actually running: > > http://guilespi.dyndns.org/jquery/bounceimage/ > > CSS:http://guilespi.dyn

[jQuery] Re: Google Maps / JQuery

2008-05-15 Thread Danny
I suspect the problem is the window.onload=load line. That replaces any existing onload function (such as jQuery itself) with your function. I would use $(load) to add your load() function to jQuery's document.ready queue. Danny On May 15, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL

[jQuery] Re: storing jquery object in array

2008-04-04 Thread Danny
You're probably assigning to searchbox before the #searchinput element exists: $.searchfunction = { searchbox: $('#searchinput) } // empty jQuery object because hasn't been created yet console.log ($('#searchinput')); // one element in jQuery object console.log ($

[jQuery] Re: array problems

2008-03-30 Thread Danny
In PHP, monster[pid][id2]['db_id'] will create the intermediate arrays (monster[pid] and monster[pid][id2]) if they don't already exist. Javascript isn't that smart, and monster = [[[]]] doesn't help. You'll have to do something like: monster[pid] = monster[pid] || []; monster[pid][id2] = monster[

[jQuery] Re: Safari not rendering styles loaded though ajax

2008-03-09 Thread Danny
Technically, Safari is doing it right (but it's very frustrating).

[jQuery] Re: Xpath and length() doesn't seem to work under IE7?

2008-03-06 Thread Danny
Isn't length a property, not a function (use $(...).length, not $ (...).length() ) On Mar 6, 10:12 am, Yansky <[EMAIL PROTECTED]> wrote: > This isn't a problem as such, just something I'm curious about. > > Under IE7 I've found that when I use xpath, the length() method > doesn't seem to work, bu

[jQuery] Re: Plugin Authoring Help pt 2

2008-03-05 Thread Danny
the next time you use the plugin. Try $.fn.myPlugin1 = function(options) { var myOptions = $.extend( {}, defaults, options); which creates a new object to accumulate the options. Danny On Mar 4, 2:13 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > If you want to use two differe

[jQuery] Re: Change stylesheets if images are off

2008-02-18 Thread Danny
imeout ); I haven't found any way of directly asking the browser if images are enabled, so I think you're stuck with this. Danny On Feb 17, 6:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yet another question about this (or perhaps about Javascript in >

[jQuery] Re: Change stylesheets if images are off

2008-02-16 Thread Danny
images.css' are loaded. The fastest thing may be to use "http://localhost/nothing.gif"; as your non-image. Danny On Feb 16, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OMG, I can't wait to test this!!!

[jQuery] Re: Change stylesheets if images are off

2008-02-16 Thread Danny
t the element, with $('http://microsoft.com/nothing.gif"; onerror="somefunc()" / >').appendTo('body') works as well. Danny

[jQuery] Re: Most basic of basic fundamental questions.

2008-02-05 Thread Danny
function, not a jQuery object of HTML elements, and will probably throw an error. I think Javascript 2 will have a more elegant way of expressing "a block of code to be stored and executed later" but for now we have to use function(){...} HTH, Danny On Feb 5, 9:30 am, Pickledegg

[jQuery] Re: Problem with siblings(?) in IE6

2008-02-01 Thread Danny
Probably a good idea anyway--you hate to mess up the global namespace. Danny On Feb 1, 4:00 am, Michael Price <[EMAIL PROTECTED]> wrote: > > Given the following table cell: > > > > > > > > > > > > > The following JavaScript works in FF2 and IE

[jQuery] Re: Fighting a closure

2008-01-31 Thread Danny
Depends on what you're trying to do. In your case, the index and the value are identical, but next time they may not be: $.each( ['a','b','c'], function (index, val){ // index is 0...1...2, val is 'a'...'b'...'c' }); On Jan 31, 3:40 pm, timothytoe <[EMAIL PROTECTED]> wrote: > $.each( [0,1,2,3,4

[jQuery] Re: Appending/prepending image source attribute

2008-01-31 Thread Danny
I think you would want to append just the ampersands, not '&' that's only to get the href past the HTML parser. Thus: $('someImage').attr('src', '/umbraco/ImageGen.aspx?image=' + originalSrc + '&width=' + width + '&height=&

[jQuery] Re: Is this the best way?

2008-01-30 Thread Danny
t;3)').remove(); Unfortunately the parser for [attr] is not extensible, so you can't create a [level>3] selector directly Danny On Jan 30, 12:22 pm, Feijó <[EMAIL PROTECTED]> wrote: > Hi Cabbite > > Thanks for your 0.02 > > Its possible to simple use like

[jQuery] eval vs. Function

2008-01-22 Thread Danny
A question for the jQuery team: I look at the jQuery source code as my source for Javascript best practices, and I see a few examples of things like: fn = eval("false||function(elem){return " + fn + "}") What is the advantage of that over using Function, as: fn = Function('elem', 'return '+fn)

[jQuery] Re: Callback-return into global variable

2008-01-19 Thread Danny
$.getJSON(paths.get_comment, _params, function(data) { $.each (data.comments, function (comment){...}) }); Danny On Jan 16, 1:17 am, Niels <[EMAIL PROTECTED]> wrote: > Is there any way to put a return from within a callback into a global > varia

[jQuery] Re: submit via link and redirect dynamically

2008-01-13 Thread Danny
I'm not an AJAX guru, but it looks like the pageNumber variable is local to each of your click functions and won't be seen by the showResponse function. Make it global (actually, local to the document.ready function): $(document).ready(function(){ var pageNumber; // local variable in this docu

[jQuery] Re: htmlspecialchars($string) equivalent

2008-01-11 Thread Danny
function htmlspecialchars(string) = { return $ ('').text(string).html() } the text() function does what you want but only by inserting the string into an element. html() pulls it back out. Danny On Jan 10, 5:18 pm, acesfull9 <[EMAIL PROTECTED]> wrote: > is there a javascrip

[jQuery] Re: Using one namespace for multiple methods

2008-01-09 Thread Danny
3A-passing-this-p13540912s27240.html Danny On Jan 9, 12:29 pm, Zoram <[EMAIL PROTECTED]> wrote: > I am working on a plugin and was trying to figure out what was > happening to break my code.. > > I have in my plugin functions similar to the following: &g

[jQuery] Re: Cross domain POST

2008-01-09 Thread Danny
To the best of my knowledge, cross domain script loading is just as much a security risk, but it was present in browsers before the risks were realized and too many sites depend on it, so no one can remove it. It's a historical anomaly. Danny On Jan 9, 9:39 am, Miha <[EMAIL PROTECTED

[jQuery] Re: append ul (unordered list) ie bug

2008-01-07 Thread Danny
It looks like you've got some syntax errors. In the first example, (that's a single quote followed by a double right after id+ In the second, #('#c-r"+id"") should be $('#c-r'+id) See if that works Danny On Jan 6, 4:28 pm, chrismarx <[EMAIL PROT

[jQuery] Re: Chaining methods and Debugging?

2007-12-29 Thread Danny
#x27;m not sure how to add a value to the watch list; when I use the above plugin 'this' and 'brk' are on the watch list but they go out of scope when it returns Danny On Dec 28, 2:59 pm, "Mike Schinkel" <[EMAIL PROTECTED]> wrote: > Danny wrote: >

[jQuery] Re: Chaining methods and Debugging?

2007-12-28 Thread Danny
this (I'm sitting in front of IE 7) but it ought to work. Danny On Dec 27, 9:47 pm, "Mike Schinkel" <[EMAIL PROTECTED]> wrote: > >> Is there a particular problem that you are trying to debug?   > > No, it just seems the pattern I find for practically ever

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-14 Thread Danny
Hi Andy: Erland Schei gave you the answer; the names of the easings changed from the time lavalamp was originally written. Look at http://gsgd.co.uk/sandbox/jquery/easing/ for the correct names. "easeOutBack" is the classic effect. Danny On Dec 13, 8:29 pm, Andy Matthews <[EM

[jQuery] Re: Object architecture problem.

2007-12-12 Thread Danny
> var cropSettings = {width:w,height:h}; > > $('#photo').photo( 'create', createSettings ).photo( 'crop', cropSettings > ).show(); > > Chaining is one of the most powerful features of jQuery... let it work for > you! > > Brian. > > On 12/

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-12 Thread Danny
I modified it to run under 1.2, with the most recent easing plugin: http://youngisrael-stl.org/inc/jquery.lavalamp.js On Dec 12, 10:21 pm, Andy Matthews <[EMAIL PROTECTED]> wrote: > I'm really wanting to use Ganeshki's excellent LavaLamp plugin > (http://www.gmarwaha.com/blog/?p=7) but it appear

[jQuery] Re: Object architecture problem.

2007-12-12 Thread Danny
If you have no reason to chain your plugin (something like $ ('#photo').photo(...).css(...).attr(...) then having it return a different object makes sense. But then, why put it in the jQuery namespace at all? 'return new smaon.photo(...) makes as much sense. Danny On Dec 12,

[jQuery] Re: Object architecture problem.

2007-12-11 Thread Danny
} }); Or, if using my namespace plugin, $.namespace ('photo', { create: function(settings){ }, crop: function(...){ } }); Danny On Dec 11, 6:43 pm, Smaon <[EMAIL PROTECTED]> wrote: > Hi everybody, > >

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Danny
The answers given here (use is and addClass and removeClass for element classes) are correct, but the more general problem is using reserved words in objects. You can always quote them and they'll work: { class: 'foo', for: 'foo', function: 'foo' } all fail, but { 'class': 'foo', 'for': 'foo', '

[jQuery] Re: Animating from one CSS class to another

2007-11-07 Thread Danny
query.js and if you include it you can do: var style = $.parsecss()['.myclassname']; if (style) $('#widget').animate(style); Unfortunately animate throws an error if style is undefined, so it needs the guard condition. Let me know if this is helpful. Danny On Nov 3,

[jQuery] Re: passing this

2007-11-01 Thread Danny
mynamespace().func().$().func(); // alerts 'namespaced plugin', then resets to the normal jquery and alerts 'plugin' Danny On Oct 28, 5:50 pm, Jean-Sébastien <[EMAIL PROTECTED]> wrote: > sorry, james i didn't see someone answer me. > what i want to do is ('

[jQuery] Re: doc type error when using corner plugin

2007-11-01 Thread Danny
I always get error when the server returns my 404 (page not found) error page instead of the javascript file. Make sure the script file with that name exists; I suspect you really want 'jquery.corner.js' (standard way to name plugins) rather than 'jquery- corner.js' On Oct 31, 11:24 pm, iain dunc

[jQuery] Re: Is it possible to alter internal CSS properties?

2007-11-01 Thread Danny
, 'yellow'); On Nov 1, 5:17 pm, Danny <[EMAIL PROTECTED]> wrote: > You can manipulate stylesheets, though it's not pretty (or built-in to > jQuery; you could write plugins to do it). > Seehttp://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript > >

[jQuery] Re: Is it possible to alter internal CSS properties?

2007-11-01 Thread Danny
You can manipulate stylesheets, though it's not pretty (or built-in to jQuery; you could write plugins to do it). See http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript On Nov 1, 4:24 am, "Jesse Klaasse" <[EMAIL PROTECTED]> wrote: > As we all know, we can do the following using jQuery:

[jQuery] Re: Defining and using of JSON defaults/options

2007-11-01 Thread Danny
I believe the syntax is (not tested): $(e).parent().next()[utoggle.animationType](uToggle.speed); Javascript objects are associative arrays. Danny On Nov 1, 3:29 am, Olaf Gleba <[EMAIL PROTECTED]> wrote: > Little Correction for the second example (needless '()' in chain)

[jQuery] Re: passing this

2007-10-28 Thread Danny
Interesting question. As far as I can tell (playing with things like $ (selector).(namespace.function)() and the like) it is not possible to namespace plugins. Danny On Oct 28, 5:50 pm, Jean-Sébastien <[EMAIL PROTECTED]> wrote: > sorry, james i didn't see someone answer me. >

[jQuery] Keepaway plugin-for the easily amused

2007-10-28 Thread Danny
I just got one of those gag surveys: "Are you happy with your salary?" where the "No" button runs away from the mouse. I figured I could use that on a web page someday so I wrote a simple plugin for it; see http://youngisrael-stl.org/wordpress/blogfiles/keepaway.html If there's any positive feedba

[jQuery] Re: Lookup doesn't work within HTML loaded with .load()

2007-10-25 Thread Danny Wachsstock
ecutes within milliseconds, and test.html probably hasn't come back from the server yet. You need to use a callback ( http://docs.jquery.com/Ajax/load#urldatacallback ): $("#left").load("test.html", function(){ $("#left").css("border","1px solid

[jQuery] Re: .attr()

2007-05-01 Thread Danny Wachsstock
You don't even need to explicitly accumulate the result: $.fn.attrs = function(key, val) { if (val != undefined) return this.attr(key, val); return $.map(this, function(a) { return $(a).attr(key); }); }; Danny malsup wrote: > > Good catch, Jörn! > >>