• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Possible to use cfajaximport to pull scripts from another host?

Community Beginner ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

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?
TOPICS
Advanced techniques

Views

491

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

yep, it is.

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2008 Dec 04, 2008

Copy link to clipboard

Copied

*Bump*

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 04, 2008 Dec 04, 2008

Copy link to clipboard

Copied

LATEST
you can only import LOCAL files with cfajaximport tag.

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation