Skip to main content
December 1, 2008
Question

Possible to use cfajaximport to pull scripts from another host?

  • December 1, 2008
  • 3 replies
  • 531 views
I'm trying to reduce the number of calls going to a single host by splitting up the requests for different assets across multiple hostnames. This is easy to do with other web application environments (for example, Rails). However, it seems that the cfajaximport tag does not support absolute paths to the scriptSrc directory. If I try using an absolute path (e.g. http://www.adobe.com/scripts/), I get the error: "coldfusion.tagext.html.ajax.HtmlAssembler$InvalidAjaxTagUsageException: Invalid usage of AJAX tag."

Is it really the case that I can only use relative paths with cfajaximport?
This topic has been closed for replies.

3 replies

Inspiring
December 4, 2008
you can only import LOCAL files with cfajaximport tag.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
December 4, 2008
*Bump*
Inspiring
December 1, 2008
yep, it is.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
December 1, 2008
quote:

Originally posted by: Newsgroup User
yep, it is.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Thanks for the response - but in trying to figure out what question you were answering, I realized I phrased the questions such that a 'yes' could be ambiguous :)

I assume you were answering "yep" indicating that is it not possible to use an absolute path, right? If it's not possible, any suggestions other than manually including the requisite script and CSS files myself (thus bypassing the cfajaximport tag)? Has anyone else run into this problem?