aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery.live() automatic trigger? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery.live() automatic trigger?" Watch "jQuery.live() automatic trigger?" New topic
Author

jQuery.live() automatic trigger?

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

I used jQuery.live in one part of my application. It looks like this....



But then, in the new HTML coming in the response I had to include the following to get the live event to trigger:



Is there a way to do this without the calling trigger() ?


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

.live() does not support custom events. It doesn't even support all W3C events yet.

jQuery 1.4 plans to support more of the W3C events with .live(), but it's not yet known if it will support custom events.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

Bear Bibeault wrote:.live() does not support custom events. It doesn't even support all W3C events yet.

jQuery 1.4 plans to support more of the W3C events with .live(), but it's not yet known if it will support custom events.


Does the liveplugin support more at this point? Or will I need to trigger the events myself anyway?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

Looking at the docs, I think I might have answered my own question, testing now.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

livequery plugin seems to work the way I want it to. For the curious:



vs



If jQuery is going to pull in a plugin to core, would be nice for them to pull in more of it.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

.live() was added with 1.3 -- and yeah, it'd be nice if the match handlers were also added.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery.live() automatic trigger?
 
Similar Threads
Directory Structure JSP & JS
Display data from database to jsp page.
To call and load javascript in struts jsp.
How to pass JSTL value to javascript function
Json & JqGrid Integration in Spring MVC