[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
it inside Firebug's console, so haven't tested it outside that... On Oct 21, 10:14 pm, The Danny Bos danny...@gmail.com wrote: Thanks, had a good read, figured it out in part. Now I'm stuck trying to introduce an array to do my bidding ... Example below. The array is an example of how I

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

2009-10-22 Thread The Danny Bos
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 danny...@gmail.com wrote: For each click of the DIV I'm hoping to change the BackgroundColor

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

2009-10-22 Thread The Danny Bos
-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 array, it resets to 0. On Oct 22, 4:39 am, The Danny Bos danny...@gmail.com wrote: Thanks so

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

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

2009-10-21 Thread The Danny Bos
'); }); }); On Oct 22, 3:46 am, mkmanning michaell...@gmail.com wrote: .toggle() allows you to rotate through multiple functions, you might want to check it out in the docs:http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C... On Oct 21, 2:58 am, The Danny Bos danny...@gmail.com wrote: I've got one

[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

[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: 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 to

[jQuery] Cross-domain (for analytics)

2009-07-30 Thread Danny Ayers
/TtrackerHowItWorks ) Cheers, Danny.

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

2009-07-30 Thread Danny Ayers
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] Re: Image Processing!!

2009-06-25 Thread Danny
There are people using canvas 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 marzmur...@gmail.com wrote: Hi there, Just wondering is it possible to take an image, for instance an

[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 michaell...@gmail.com wrote: $(div:not(#+pid+) form span).css(background-color,yellow); On Jun 9, 8:19 am, squalli2008 m...@paskell.co.uk wrote: Hi,

[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 bcrupa...@yahoo.com wrote:

[jQuery] Re: jQuery XML

2009-05-23 Thread Danny Nolan
So, first: html = 'img src=' + ($(this).find(xmlvar).text()) + '' + ($(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

[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 rdwo...@gmail.com wrote: From: Richard D. Worth rdwo...@gmail.com Subject: [jQuery] Re:

[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 bharanikumariyer...@gmail.com wrote: From: bharani kumar bharanikumariyer...@gmail.com 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 ,

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
, 2009 at 10:19 AM, Danny Nolan danny_no...@yahoo.co.uk wrote: 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 rdwo...@gmail.com wrote

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
15, 2009 at 10:19 AM, Danny Nolan danny_no...@yahoo.co.uk wrote: 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 rdwo...@gmail.com wrote

[jQuery] Re: Sortable accordion-like widget

2009-05-15 Thread Danny Nolan
: [jQuery] Re: Sortable accordion-like 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 danny_no...@yahoo.co.uk wrote

[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 vincenti...@gmail.com 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

[jQuery] Re: POST Redirection

2009-05-02 Thread Danny Nolan
debug everything I like... Could you please point me to the exact property I have to look for? On 2 Mai, 02:07, Danny Nolan danny_no...@yahoo.co.uk wrote: Firebug is your friend --- On Fri, 5/1/09, Cryptonit dom.helfenst...@gmail.com wrote: From: Cryptonit dom.helfenst...@gmail.com Subject

[jQuery] Re: POST Redirection

2009-05-01 Thread Danny Nolan
Firebug is your friend --- On Fri, 5/1/09, Cryptonit dom.helfenst...@gmail.com wrote: From: Cryptonit dom.helfenst...@gmail.com Subject: [jQuery] POST Redirection To: jQuery (English) jquery-en@googlegroups.com Date: Friday, May 1, 2009, 2:22 PM Hi Folks! Here's my problem: I want to make a

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

[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
: $('#webcamimage').attr('src', 'http://example.com/cam.jpg?time='+Date ()) Danny On Feb 12, 4:30 pm, James james.gp@gmail.com wrote: You can use Javascript's setInterval function to constantly do a check to update an image source. How does the filename look like? Is it predictable? On Feb 12

[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 blueameri...@web.de 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

[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

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

2009-01-02 Thread Danny
() method) On Fri, Jan 2, 2009 at 1:10 AM, Danny d.wac...@prodigy.net 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 and highlight the elements, or right

[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

[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 script type=text/javascript src=path/to/jquery-1.2.6.js/script in your HTML file and jQuery away! Danny On Nov 2, 3:47 pm, minu

[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 get a

[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, style elements can only go in the head. It's a dumb rule, but it's the rule. IE and Firefox are happy to put the style in the body, but Safari won't do it (it ignores styles when setting innerHTML) and I assume Chrome, which is based on WebKit, does the same. You

[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 checkbox when you click anywhere on the row. Here's a version

[jQuery] Re: Wrap tagless text fragments?

2008-08-28 Thread Danny
for 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 this. Of course, users

[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
to 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: 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 PROTECTED] wrote

[jQuery] Re: storing jquery object in array

2008-04-04 Thread Danny
You're probably assigning to searchbox before the #searchinput element exists: head script $.searchfunction = { searchbox: $('#searchinput) } // empty jQuery object because body hasn't been created yet /script /head body div id=searchinput/div script 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] =

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

2008-03-09 Thread Danny
to the body. My solution was to separate out the style element as a .css file, and include it in the head: $('link type=text/css media=screen rel=stylesheet href=/css/ whatever.css').appendTo('head'); Danny On Mar 9, 3:23 pm, rernens [EMAIL PROTECTED] wrote: We extensively use jquery in conjunction

[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, but

[jQuery] Re: Plugin Authoring Help pt 2

2008-03-05 Thread Danny
. 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 different functions in the chain then you need to define two

[jQuery] Re: Change stylesheets if images are off

2008-02-18 Thread Danny
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 general) ... Am I missing something that's staring me in the face

[jQuery] Re: Change stylesheets if images are off

2008-02-16 Thread Danny
://microsoft.com/nothing.gif; onerror=somefunc() / ').appendTo('body') works as well. Danny

[jQuery] Re: Change stylesheets if images are off

2008-02-16 Thread Danny
' 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: Most basic of basic fundamental questions.

2008-02-05 Thread Danny
and executed later but for now we have to use function(){...} HTH, Danny On Feb 5, 9:30 am, Pickledegg [EMAIL PROTECTED] wrote: I'm reading 'learning jQuery'. In this example, and in fact every example, why do you pass a function as an argument. $(document).ready(function() { $('.poem-stanza

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

2008-02-01 Thread Danny
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: td input class=SearchProdID type=hidden value=460 name=ProdID/ input class=SearchQty type=text value=1 size=2 name=qty/ input class=cartadd type

[jQuery] Re: Appending/prepending image source attribute

2008-01-31 Thread Danny
I think you would want to append just the ampersands, not 'amp;' that's only to get the href past the HTML parser. Thus: $('someImage').attr('src', '/umbraco/ImageGen.aspx?image=' + originalSrc + 'width=' + width + 'height=' + height); Danny On Jan 31, 10:05 am, Karl Swedberg [EMAIL PROTECTED

[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: Is this the best way?

2008-01-30 Thread Danny
useful would be a custom filter that tests any attribute: $.expr[':'].attr = 'eval(m[3].replace(/^(\\w+)/,$.attr(a,\\$1\ \)))'; and now write: $('.qualif:attr(level3)').remove(); Unfortunately the parser for [attr] is not extensible, so you can't create a [level3] selector directly Danny

[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
(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 variable? I'm trying to retrieve JSON

[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

[jQuery] Re: htmlspecialchars($string) equivalent

2008-01-11 Thread Danny
function htmlspecialchars(string) = { return $ ('span').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 javascript/jQuery equivalent

[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] wrote

[jQuery] Re: Using one namespace for multiple methods

2008-01-09 Thread Danny
-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: $.fn.pluginName = function() {} $.fn.pluginName.oneThing

[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, ul id=c-rply-to'+id+'/ul is missing a double quote: ul id=c-rply-to'+id+'/ul (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

[jQuery] Re: Chaining methods and Debugging?

2007-12-29 Thread Danny
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: For quickie debugging to FIrebug, you could define $.fn.log

[jQuery] Re: Chaining methods and Debugging?

2007-12-28 Thread Danny
) 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 every debug session I encounter, both for Javascript/jQuery and for Drupal/PHP development

[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 [EMAIL PROTECTED] wrote

[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, 10:38 am, Smaon

[jQuery] Re: Object architecture problem.

2007-12-12 Thread Danny
).show(); Chaining is one of the most powerful features of jQuery... let it work for you! Brian. On 12/12/07, Danny [EMAIL PROTECTED] wrote: If you have no reason to chain your plugin (something like $ ('#photo').photo(...).css(...).attr(...) then having it return a different object

[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, ok, I'm in a big trouble right now. Let me try

[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
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, 10:12 pm, S. Robert James [EMAIL PROTECTED

[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). Am 01.11.2007 um 09

[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: Is it possible to alter internal CSS properties?

2007-11-01 Thread Danny
: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 On Nov 1, 4:24 am, Jesse Klaasse [EMAIL PROTECTED] wrote: As we all know

[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

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

[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. what i want to do

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

2007-10-25 Thread Danny Wachsstock
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 red); etc. }); That ought to work! Danny Sagari-2 wrote: Greetings, I have a nasty surprise: jQuery

[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! You don't even need