[jQuery] Re: can't get an attribute from an appended

2008-11-27 Thread howardk
Code helps, particularly simplified code! Howard On Nov 26, 11:47 am, Radu <[EMAIL PROTECTED]> wrote: > hi, this is my first post on the group > > so, > > i have a form through wich i'm sending an ajax reques to a php script > and get the result back. > to be more clear i write a text into an in

[jQuery] Re: Instantiating multiple plugin instances on the same page

2008-11-25 Thread howardk
zero, so that I now understand this important concept. Now on to figuring out why my *real* plugin (not that much more complicated than this simple test prototype) isn't working ... Howard On Nov 24, 4:20 pm, howardk <[EMAIL PROTECTED]> wrote: > Michael and Sean, > Thanks to both

[jQuery] Re: Pulling images dynamically from a folder.

2008-11-25 Thread howardk
You can do this entirely on the client if (1) you either know the names of all the image files in the directory on the server or (2) you can construct them programatically at runtime. The latter works for instance if the file names are something like image_1.png, image_2.png, image_3.png, ..., i

[jQuery] Re: Instantiating multiple plugin instances on the same page

2008-11-24 Thread howardk
; for plugin methods just like any other functions. > > As Shawn suggested, if you have trouble with a specific bit of code, post a > link to it and someone can take a look at it. > > -Mike > > > From: howardk > > > Is there a way of instantiating multiple instances of

[jQuery] Instantiating multiple plugin instances on the same page

2008-11-24 Thread howardk
Is there a way of instantiating multiple instances of a plugin on the same page? What I have essentially is an animated effects plugin, and I want to be able to invoke separate instantiations of it, doing something like the following: $( '#effect_1' ).animEffect( { name: 'jumper', color

[jQuery] Re: xhr.responseText isn't showing up when expected

2008-11-23 Thread howardk
I'm laughing at myself. :-) Many thanks, dudes! Howard On Nov 23, 7:49 am, Ariel Flesler <[EMAIL PROTECTED]> wrote: > It's async, not asynch. > > -- > Ariel Fleslerhttp://flesler.blogspot.com > > On 23 nov, 12:40, howardk <[EMAIL PROTECTED]> wrote

[jQuery] xhr.responseText isn't showing up when expected

2008-11-23 Thread howardk
Am I misunderstanding how $.ajax( { ..., asynch: false } is supposed to work? I'm not seeing a responseText value immediately on returning from the ajax call as I would expect. Here's the relevant code: -- var xhr = $.ajax(

[jQuery] Re: JSLitmus invaluable tool

2008-11-12 Thread howardk
rebug console: > > 0.051 - test.one() > 0.199 - test.two() > 0.052 - test.one.call(window) > 2.408 - test.two.call(window) > > As you can see, test.two() is several times slower than test.one() when it's > called as a method of the test object, but dramatically slower

[jQuery] JSLitmus invaluable tool

2008-11-11 Thread howardk
I've been experimenting with several different coding styles for plug- ins. Lately I've been curious about the difference in performance between using local variables vs. instance variables for storing state. JSLitmus, while not itself jQuery-based, has just given me the answers I've been looking

[jQuery] JSLitmus invaluable tool

2008-11-11 Thread howardk
I still feel fairly new to jQuery and javascript -- after almost a year! -- and have been experimenting with several different coding styles for plug-ins. Lately I've been curious about the difference in performance between using local variables vs. instance variables for storing state. JSLitmus,

[jQuery] Re: intent of $('selector').title() call

2007-12-12 Thread howardk
Of course! Raise right hand and hit sharply upside the head. :-) Thanks John On Dec 12, 10:33 am, howardk <[EMAIL PROTECTED]> wrote: > John's got an example of chaining in his book, "Pro JavaScript > Techniques", that isn't working for me. More importantly, I don

[jQuery] intent of $('selector').title() call

2007-12-12 Thread howardk
John's got an example of chaining in his book, "Pro JavaScript Techniques", that isn't working for me. More importantly, I don't understand what the code is intending to do, so I can make an attempt to fix it. The code in general is adding a help cursor and a red star to a field in a form to indic

[jQuery] Re: Trying to Ajax-swap two forms

2007-11-30 Thread howardk
return false; /* for submit-2 */ }); }); return false; /* for submit-1 */ }); }); On Nov 30, 2:30 am, Wizzud <[EMAIL PROTECTED]> wrote: > Return false from your submit() functions, otherwise the form does > actually

[jQuery] Trying to Ajax-swap two forms

2007-11-29 Thread howardk
Hi, I think I'm missing something obvious. I'm trying to save screen real-estate and have a search-form do an ajax-swap on a submit with the results page that it creates. The results page is also a form (simply because it has a submit buttom at the bottom at this point), which likewise is supposed

[jQuery] Re: jXML

2007-11-03 Thread howardk
Brian might be making more information available elsewhere (not being Brian, I can't say this definitively :-), but it seems pretty clear from the posting that it's a tutorial, and that Brian has created the jXML object *in* the tutorial for teaching purposes. He's not using an object that origina

[jQuery] Re: Ajax Created from JSON DataSet

2007-10-10 Thread howardk
Phunky, I'm playing in that area right now. The code below shows part of a Members object that reads in club membership data in json format and builds an html table from it. Each individual member object in the json is actually an array of data fields for efficiency sake, eg: {"members":[ ... ["

[jQuery] Re: Thanks to all the jQuery developers out here

2007-10-06 Thread howardk
Peter, Very nice! You might note that the week shown on the current set of cards tho runs from October 6 to October 6 (a very short week indeed! :-) Howard On Oct 5, 12:07 pm, vulgarisoverip <[EMAIL PROTECTED]> wrote: > 1.2 has been a dream come true, fixing a lot of the little animation > bugs I

[jQuery] Re: How to add/remove dynamic blocks of html

2007-10-02 Thread howardk
= a.length; j < al; j++ ) >jQuery(a[j])[n]( this ); > }); > }; > }); > > appendTo is just a wrapper around append - just like prependTo, etc. And all > of these functions run their arguments through > domManip(), which is the code that h

[jQuery] Re: How to add/remove dynamic blocks of html

2007-09-30 Thread howardk
Nice use of join()! I'm new to JavaScript and jQuery both, and it's nice to come across little snippets like this I can readily add to my jQuery repetoire and that slightly expand my understanding of JavaScript. By the way, the docs show that it's legal to pass, as an argument to append(), either

[jQuery] Fifteen puzzle in jQuery

2007-09-09 Thread howardk
Here's a very nice implementation of the "Fifteen" puzzle (http:// en.wikipedia.org/wiki/Fifteen_puzzle) in jQuery: http://www.alexatnet.com/node/68 Howard

[jQuery] confusing appendTo() behaviour

2007-08-13 Thread howardk
Hi, I'm just learning jquery and (mostly!) enjoying it. I'm a bit frustrated at the moment tho not understanding why multiple appendTo()'s don't seem to work, depending on what I'm trying to append. Here's a bit of exploratory code, called from a $.ajax() method, that seems to be misbehaving: fun