[jQuery] Re: jQuery + OOP + AJAX

2009-12-31 Thread Scott Sauyet
On Dec 31, 4:25 am, fran23 wrote: > the target variable in your sample code has a $-prefix ($target). I think > this is just an eye-catcher for variables - a similar coding to php. If not > - if it has to do with something special in Javascript or jQuery - please > let me know ... "$" is just a r

[jQuery] Re: jQuery + OOP + AJAX

2009-12-30 Thread Scott Sauyet
On Dec 30, 10:51 am, fran23 wrote: > Thanks Scott ! Your proposals are an inspiration in doing things better. Glad to help. This one will have to be shorter... > > First of all, does the click have to be in the last paragraph itself? > > Or could it be in some parent container of the paragraphs

[jQuery] Re: jQuery + OOP + AJAX

2009-12-29 Thread Scott Sauyet
On Dec 29, 5:23 am, fran23 wrote: >> But even here, there is still something strange. On each click of the >> div, you're binding another event handler to do the same job. > > that's the CENTER OF MY TROUBLE. I did speak about the reason for using the > show() function above. > But maybe I can ge

[jQuery] Re: jQuery + OOP + AJAX

2009-12-28 Thread Scott Sauyet
On Dec 28, 11:45 am, fran23 wrote: > There is a new love named "jQuery" but I still have some problems in > understanding issues totally (maybe like in real life ;) Coming from C++ it > takes some effort in dealing on the (totally other) javascript OOP. > The code below (that represents basics of