Reply to topic
ColdFusion 8 and New AJAX features
surferBill


Joined: 12 Mar 2007
Posts: 5
Reply with quote
Hello all,

I am working on a new web app which will use AJAX for much asynchronous data transferring between the back end DB and presentation layer. I was originally looking into AjaxCFC, but wanted to check in regarding CF8s built in Ajax functions. Specifically, when I view source from testing CF8 examples (use of cfform), I notice a ton of embedded script calls to the CFIDE directory (aka, CF8 build in repository). Therefore two questions:

1) does HMS automatically grant access to all these scripts for use in the shared host environment?

2) The CF rendering seems excessive in all the script files "loaded" when using cfform, cfgrid, cfdiv, etc... Is it best to stick with AjaxCFC for a cleaner developer experience, or go with the build in CF8 stuff?
Re: ColdFusion 8 and New AJAX features
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 543
Location: Harrisburg, PA
Reply with quote
surferBill wrote:

1) does HMS automatically grant access to all these scripts for use in the shared host environment?


By default, no. You need to have support create a mapping to CFIDE.

surferBill wrote:

2) The CF rendering seems excessive in all the script files "loaded" when using cfform, cfgrid, cfdiv, etc... Is it best to stick with AjaxCFC for a cleaner developer experience, or go with the build in CF8 stuff?


I really don't use the new layout stuff of CF8. I think some of the Ajax is bloated. granted, if you want to do simple things such as an auto suggest, i think they are great to use for novice users who don't choose to learn ajax. I think Ajax CFC is much cleaner

When you use the new layout functionality you mentioned, CF8 to the best of my knowledge, imports all scripts by default. So even if you are using cflayout, it imports all library's regardless of if they are used or not.

But in the end, I really think its personal preference.
sercosoft


Joined: 19 Feb 2008
Posts: 2
Reply with quote
I belive you can use the
Code:
<cfajaximport>
tag to only import the scripts needed for whichever CF Ajax Widget you might be using. Might help you from bloating your code too much.
ColdFusion 8 and New AJAX features
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic