Welcome Guest, Not a member yet? Register   Sign In
jQuery.Live
#1

[eluser]Philo01[/eluser]
Hi there! Smile

I'm working on a jQuery plugin for my application.
Somehow jQuery Live works for if I use it to check if a form is submitted:
Code:
$(o.submitForm).live("submit",function()

Now I also monitor a button using the following code:
Code:
$(this).click(function () {

This works, but I need it work after content is loaded via ajax.
Normally I would use the live method like this:

Code:
$(this).live("click",function() {

But somehow this is not working.
Does anyone know if this has to do because its written in a plugin?

Kind regards,

Philo


Edit
-----------

Somehow this works:

Code:
$('#user_list .edit').ajaxForms({
button:'#user_list .edit'
});

If I then call this config:

Code:
$(o.button).live("click",function() {

This is kinda wierd because "this" links to the same object as I defined manualy in the button config"#user_list .edit".


Messages In This Thread
jQuery.Live - by El Forum - 12-13-2009, 10:14 AM
jQuery.Live - by El Forum - 12-13-2009, 11:06 AM
jQuery.Live - by El Forum - 12-13-2009, 11:33 AM
jQuery.Live - by El Forum - 12-15-2009, 12:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB