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

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 input box

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

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

2008-11-25 Thread howardk
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 of you. I think I'll take you up

[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: script $( '#effect_1' ).animEffect( { name:

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

2008-11-24 Thread howardk
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 a plugin on the same page? What I have essentially is an animated effects plugin, and I want to be able to invoke

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

[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: Am I misunderstanding how $.ajax( { ..., asynch

[jQuery] Re: JSLitmus invaluable tool

2008-11-12 Thread howardk
: 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

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

[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't understand what the code

[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

[jQuery] Re: Ajax Created table 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
function that takes a string will also take DOM elements or jQuery objects, but for this group of functions it's certainly true. -Mike From: 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] 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(),

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