Kush Murod wrote:
if some of you heard of event bubbling then you'd have also
experienced problem with .hover()
to be more specific, once your content loads through ajax you won't
have .hover anymore.
with .click() it was straight forward where you bind event to
parent.
Difficulty I am
Maybe I'm missing something but I don't see the difficulty here.
There's definately no need to do excessive core hacking or chaining of
mouseover and mouseout...
Why not just:
function myFunction()
{
$(this).append(' hover!');
}
And then:
$('#hoverelem').hover(myFunction,myFunction);
or...
(){ alert('foo!'); });
It does not work, since those are actually 2 different functions created on the
fly (although identical).
Plus using the first method is often much cleaner for the code, too.
--
Suni
- Original Message -
From: Juha Suni
To: jQuery Discussion
Sent: Wednesday
Klaus Hartl wrote:
Another pattern for this would be a function that returns a function
(or maybe you meant that with dynamic function):
function myFunction(s) {
return function() {
$(this).append(s);
};
}
$('#hoverelem').hover(myFunction('foo'), myFunction('bar'));
Ah,
Sam Collett wrote:
Any reason why you can't just do:
$(#workList select).change(function(){
alert(Selected: + this.value);
});
No bubbling required.
Bubbling is rather handy pretty often. Especially so if you either require
similar functionality between different elements within a
John Resig wrote:
The trick is that his library, which only does selectors and basic DOM
additions, comes in at 20kb - the same size as jQuery complete (which
includes Ajax, Effects, etc.)
I have some speed improvements sitting around that need to be merged
in and tested some more. I'm
Matt Kruse wrote:
i see the scriptaculs thing that rule on the web...
maybe its because there are working examples of scriptacouls with
php/mysql integration?
How would a client-side sorting plugin interact with php/mysql? Once
the rows are delivered to the browser (independent of
amircx wrote:
im trying to see some working online examples of sortable plugin and
its seems there is no such thing execept the offical website.. .why
pepole dont use it?
This is not online, but is very basic and you can quickly try it out. I was
a bit confused with this at first too due to
Daniel Hofstetter wrote:
Somehow I can't figure out how to bind a hover event to an element.
Something wrong with?
$(this).hover(
functionA,functionB
);
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
strzelecki wrote:
Ah many thanks. I will give that a try.
Just a note: The Editable demos on your site are erroring if Firefox
2.0.0.2 XP:
Error: console is not defined
Looks like Mika forgot that not all people use FireBug (although all js/html
developers pretty much should) :).
It's a
Looks really good, well done!
Might solve the problem with those hyperactive menus that often cause more
disorientation than anything else.
I would be nice to have some kind of sensitivity multiplier setting, so you
could, say make the menus work more / less responsively as wanted.
--
Suni
This is pretty interesting.
Could speed up development on an environment where not everyone is a
javascript coder, yet would like to harness the power of jQuery.
I'm looking forward for some documentation.
--
Suni
Richard Thomas wrote:
I started working on this a while ago and had another
Another rather easy method to avoid all the hassle of re-attaching event
handlers to ajax-loaded content is to attach the event handlers to the
container element only once, and then take advantage of Event Bubbling.
Consider the following example
div id=container
div class=clickmeplease
Brice Burgess wrote:
Juha Suni wrote:
I've seen programming leakage that resulted in session files of
several megabytes, causing some minor slowdowns, but still
functioning 100%.
A few megabyte session is a terrible thing -- and better architecture
should be investigated. I remember doing
David Duymelinck wrote:
Putting post data in a session isn't a good choice because cookies and
sessioncookies have a limited file size.
Ermm... the session data is not stored in the cookie (thank god). Therefore
filesize for regular POST-requests should not be a problem.
Storing huge amounts
Interesting indeed.
The 7th click seems to take up to 5 or 6 times longer than other clicks.
Anyone here with some idea what FF is doing there? I find it hard to believe
their method of doing javascript garbage collection would be in the lines of
let's do it every umm... seventh click the user
Larry Garfield wrote:
Well it helped me. :-) On topic, I vaguely recall something about
CakePHP playing nice with jQuery instead of Prototype, but Googling
didn't turn up anything. Do you use jQuery with cake, and if so how?
Any suggested resources for that?
I'm currently using jQuery with
bmsterling wrote:
Felix,
I noticed on another thread that you work with cakePHP, I am trying
to get my head around it, but not quite there. Can you recommend any
good forums and tutorials (not digging the bakery.cakephp.org too
much) to help me on my way.
I'm using CakePHP daily, and here
One more vote for CakePHP. It has evolved rapidly and I can't see the pace
slowing down. It's own ajax-helpers use the prototype library, but building
your own to use jquery is a flash.
--
Suni___
jQuery mailing list
discuss@jquery.com
Chris W. Parker wrote:
I wouldn't call it intuitive. It's not intuitive because the
knowledge I have about the interface when I first started using it
wasn't enough to actually use it fully. In this case the application
should give hints and/or instructions.
I agree that the instructions, or
Brian Litzinger wrote:
I wanted to create a better to-do list that I can use in my Google
homepage, and wanted it to feel like a Google application. The design
is highly based off Gmail. I also wanted it to feel natural and easy
to use... mainly in the mark off feature as well as the quick
A quick note / bugfix, if you will:
Scandinavian characters were, for me at least, getting messed up when the
labels were updated with ajax.
This fixed by using utf8_decode. Change line 52 in processor.php to:
$value = str_replace(amp;, , utf8_decode($_REQUEST['value']));
And I encourage
Hey Brian:
One more problem. It seems that the zip-file is out of date (or sync) as
everything is not working correctly.
As if your php classes are newer than the view that is displayed. In the
archive (closed to-dos) the links for reopening and deleting post data like
open_todo=269 and
Chris W. Parker wrote:
1. I am able to click the priority text but nothing happens. Is
something happening that I don't know about?
2. Why does the form at the top become disabled when I click any of
the checkboxes in the list?
3. Your system for making new labels is convenient but it's not
Brian Litzinger wrote:
I just re-uploaded the zip file and made sure it contained the same
files as the demo.
Thanks, it seems to work ok now.
--
Suni
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
around
every object.
2.) then set the outer div to overflow: hidden and resize each of them like a
puzzle around the cursor
3.) Then move every 4 along with the cursor
I will test it, we'll see!
2006/11/28, Juha Suni [EMAIL PROTECTED]:
Considering option 3 and the disadvantage
Here goes with another approach. This preserves the original draggable with no
need for a helper, but still allows using event.target for all its goodness.
Might need a bit more coding to implement this in interface, but at least it
seems to work pretty well in this another proof of concept. As
Peter Michaux wrote:
The research I have done with dragdrop behavior is similar to the
research going on here. Perhaps my blog posts can save you some time.
Heh amazing how similar methods we've ended up trying. Could have saved some
time had I known about your research. Nice to see the
Alan Gutierrez wrote:
* smeranda [EMAIL PROTECTED] [2006-11-21 16:55]:
However, the following code doesn't seem to
work on the dynamically created inputs (it does work for the static
text inputs). Any ideas what I'm doing wrong?
$(input).change(indicateChange);
function indicateChange(foo)
29 matches
Mail list logo