Jump to content

not run object/event/fucntion for jquery

- - - - -

  • Please log in to reply
1 reply to this topic

#1
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
hi guys

i have a ajax page using jquery

when post data and get page with this code:

		$.ajax({

			type: 'POST',

			url: "myurl",

			data: 'methods',

			error: function() {

			   alert('Error!');

			},

			success: function(data) {

				$('#content').html(data);

			}

		});

page its ok and #content is change and no problem

but all event/function in new content #content not run, why?

please help me
thanks

#2
oldhendra

oldhendra

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
Could you paste a more detailed code here? Anyway, first thing before Ajaxing might be.. to test whether that "myurl" of yours would respond well to a regular "POST" HTML form request.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users