Wow. This is exactly what I had in mind!! I'm very new to Mach-II and didn't
know about HTMLHelperProperty. You pretty much covered everything I had in
mind (and more). I think I'm falling in love with Mach-II :o) Thanks
Peter...



On Wed, Oct 7, 2009 at 12:55 AM, Peter J. Farrell <[email protected]> wrote:

>  I don't know if we are going to ship with an AJAX framework directly in
> the framework at the moment, but you should definitely look at the
> HtmlHelperProperty:
>
> http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/HTMLHelperProperty
>
> It is a great start on a lot of the information in the Yahoo library such
> as timestamps so you can add far future expiry headers for img/css/jss and
> asset packages (we're working on built-in JS compression already for future
> releases).  Some of the things you can do with the helper (titles are
> directly pulled from the best practices from
> http://developer.yahoo.com/performance/rules.html):
>
>  * Add an Expires or a Cache-Control Header  -- using asset cache
> timestamps
>  * Put Stylesheets at the Top -- using outputType="head"
>  * Put Scripts at the Bottom -- we have a ticket filed for this already
>  * Minify JavaScript and CSS -- we have a ticket filed for JS compression
> (we have proof of concept in the works).  CSS compression is a bit trickier
> without an external library
>  * Remove Duplicate Scripts -- the helper keeps track of JS / CSS files
> already included so duplicates won't happen
>  * Split Components Across Domains -- we've discussed this for to split
> assets served by the helper across multiple sub-domains if the helper is
> configured as so (asset hosts -- it's been discussed on the Mach-II
> Developers list)
>
> Most of the other items on the list are things either the developer has to
> do with their code / webserver or does not apply.
>
> Also in combination with the new view tag library (the doco is in the
> process of being updated) -- the meta / script / style custom tags integrate
> directly with the property.
>
> Thanks for your thoughts.
>
> Best,
> .Peter
>
> Sumit Verma said the following on 10/06/2009 11:21 PM:
>
> I think it will be great to have a standardized way of adding
> JavaScript/ajax/jQuery support to the framework/application. Almost every
> application uses these in one way or the other. It will be much easier to
> share code and collaborate if we are following the same structure. We will
> have one less plumbing to worry about and can just focus on the UI and
> business logic.
>  Also, by making it part of the framework we can implement some of the
> best practices mentioned here for JS/Ajax.
> http://developer.yahoo.com/performance/
>
>
>
> On Tue, Oct 6, 2009 at 5:54 PM, Peter J. Farrell <[email protected]>wrote:
>
>>  Team et All,
>>
>> What do you guys think about adding something like this?  Definitely new
>> territory for us and probably something we should discuss before just
>> willy0nilly adding to the framework.  We've been discussing some other
>> additions for JS -- so we might be adding an "externalAssets" folder in
>> which this could reside.
>>
>> .Peter
>>
>> Jorge Loyo said the following on 10/06/2009 04:38 PM:
>>
>> Interested in having this available? He'll yeah.
>> Interested in actually doing the JavaScript function? I can take a
>> crack at it. Just not sure where this file will eventually reside in
>> MachII?
>>
>> On Oct 6, 4:23 pm, "Peter J. Farrell" <[email protected]> 
>> <[email protected]> wrote:
>>
>>
>>  This could be really easy using simple placeholder substitution.
>> Becomes more complex as the number of types of URLs you need to build.
>> I've thought about building a simple BuildUrl() / BuildUrlToModule() in
>> javascript for the framework and it would change how things are built
>> depending on properties set in the framework.  Let me know if anybody is
>> interested in do this.
>>
>> .pjf
>>
>> Dave Evartt said the following on 10/06/2009 02:42 PM:
>>
>>
>>
>>
>>
>>  I would just make an ajax call to your machII application,pass the event
>> and parameters to t and have it construct the url on demand.
>>
>>
>>  -dave
>>
>>
>>  Jorge Loyo wrote:
>>
>>
>>   Thank you peter...
>>
>>
>>   Some good ideas that I may soon implement... Thank you again.
>>
>>
>>
>>
>>
>>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to