dcolumbus
dcolumbus

Reputation: 9722

ColdFusion: Calling Components with AJAX, hide from view source?

I'm curious... I love the asynchronous calls with jQuery, but I don't want my components available to the public by view source...

What is the recommended solution for this?

Upvotes: 1

Views: 296

Answers (2)

bpanulla
bpanulla

Reputation: 2998

You could use a route URI-based framework like Taffy[1]. Taffy uses a RESTful architecture to let you define the URIs used to call your components. The client never sees your actual CFC folder structure or filenames.

[1] http://atuttle.github.com/Taffy/

Upvotes: 0

Antony
Antony

Reputation: 3781

You could make a facade accessible in the webroot that simply passes all inputs to a CFC outside the webroot and returns the results.

That way all that's visible via a direct call to the cfc in the webroot are function and variable names, and all the business logic is out of sight.

Upvotes: 4

Related Questions