Hi,

[EMAIL PROTECTED] wrote:
> How can I get jQuery to use the new divs that are populated as a
> result of an .ajax request.
>   
What you want is the Ajax load method, see 
http://docs.jquery.com/Ajax/load#urldatacallback

>               \$.ajax({
>                       type: "POST",
>                       url: "/creator.pl?colorselect=" + color + "idselect=" + 
> id_select +
> "",
>                       success: function(){ 
> \$("#result").load("/creator.pl?colorselect="
> + color + "&id_select=" + id_select + "") }
>               });
>       });
>
>   
You're nearly there. But wrapping Ajax load with $.ajax is not 
necessary. Try replacing the above code this:

$("#result").load('/creator.pl', {colorselect: color, id_select: 
id_select});

Ajax load will inject the results into the #results div.

Note: I'm giving you the benefit of the doubt regarding that backslash 
you have before each $ sign ;)

-- Ca-Phun Ung
+ http://yelotofu.com


Reply via email to