Thanks! On Mon, Dec 13, 2010 at 3:52 PM, thebigdog <[email protected]> wrote:
> On 12/13/10 3:41 PM, Isaac wrote: > > is there anyway to run in the client side a JS code returned by an Ajax > > call? > > Sure you could potentially return js code from an ajax call and run that > code > using eval (however, eval is not an optimal solution). Another way would be > to > have the code defined in a javascript page that you include for the client. > This > could be a javascript function. Then the results from your ajax call could > trigger which method(s) to call and perhaps the data that needs to be > provided > to that function call (params). > > The ajax call could return data that you could use in another js function > defined for your site. There are limitless possibilities. What you do want > to do > is try and execute javascript code on the server. You should just use a > serverside language for that (php, ruby, python, etc.) and then provide the > results to the callback function. > > > -- > thebigdog > _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
