> I got one question mark over my head and I please someone for little
> help.
>
> I have this
>
> $j.ajax({
> type: "POST",
> url: domain+"pages/groups/add/about",
> data: "action=start",
> error: function(msg){
> $j("#progress").addClass("progress-error");
> $j("#progress #pmessage").text("Ops! There was error
> with
> loading... Please report problem!");
> },
> success: function(content){
> $j("#tabs").append(content);
> $j("#progress #pmessage").text("Loaded... ");
> setTimeout('$j("#progress").fadeOut("slow");', 2000);
> }
> });
>
> And when this method is executed, content response normally. Problem
> is when I'm trying to do some effects when user is working with
> returned content.
> For example
>
> $j("#type").bind("click", function(){
>
> var typevalue = $j("#type").attr("value");
>
> if ( typevalue == "standalone" )
> {
> $j("#parent").attr("disabled", "disabled");
>
> }else if ( typevalue == "parent" )
> {
> $j("#parent").attr("disabled", "");
> }
>
> });
>
> This is located in base file inside of head element where rest of
> scripts are too but this doesn't response at all.
>
> If for example i set this function inside of returned file than
> everything works normally.
>
> Is there any possible way to do it w/o setting up script tag where is
> returning content?
>
> Thanks a lot!
This should help:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F