开发者

cfajaxproxy with url rewriting

I've been able to successfully implement the 开发者_运维知识库cfajaxproxy tag where the cfc in question is located in the root directory of my site.

When a page that is IN the root directory of the site, but is accessed by a rewritten url (eg mysite.com/one/two/ -> mysite.com/two.cfm), the javascript generated by cfajaxproxy does not point toward the root directory, but uses a relative path to mysite.com/one/two/mycfc.cfc

How can I force cfajaxproxy to look in the root directory first, or otherwise work around this problem?

(I don't want to have to rewrite the specific cfc's url)

Thanks.


might wanna keep the path the CFC not part of the URL rewriting, since there's no way to reconfig/remap the url path that cfajaxproxy expects where the cfc should be located.

Or... skip it and use jQuery.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜